Documentation

CslibFrontier.Computability.Circuit.Prefix.OptimalDepth.SegmentDecomposition

Principal-chain segment decomposition of optimal prefix circuits #

Combines zero-deficiency multiplication-gate uniqueness (universal_mul_sets) with buildSegTree to extract consistent (IntervalTree, GenPrefixTree) pairs across all c.depth principal-chain segments of an optimal fanout-k universal prefix circuit [Ser25a].

Main results #

References #

theorem Cslib.Circuits.Prefix.optimal_segment_decomposition {N k : ℕ} (hN : 1 ≤ N) {c : PrefixCircuit N} (hopt : IsOptimalPrefixCircuit c) (hfan : FanoutAtMost c k) :
∃ (T : ℕ → ℕ), T 0 = 1 ∧ T (Circuit.depth c) = N ∧ ∀ d < Circuit.depth c, T d < T (d + 1) ∧ ∃ (I : IntervalTree (T d) (T (d + 1))) (t : GenPrefixTree), I.depth ≤ d ∧ t.state = T d ∧ GenPrefixTree.MaxStateLt (T (d + 1)) t ∧ t.rootBudget + 1 ≤ k ∧ GenPrefixTree.FanoutAtMost k t ∧ d + t.depth ≤ Circuit.depth c ∧ GenPrefixTree.Valid (I.intervals.erase (T d, T (d + 1))) t ∧ (∀ (s : ℕ), GenPrefixTree.outAt s t ≤ 1) ∧ (∀ (m : ℕ), GenPrefixTree.mulCount m t ≤ 1) ∧ T (d + 1) - T d ≤ t.outCount

Decomposes any optimal (zero-deficiency) fanout-k universal prefix circuit of depth D along its principal chain 1 = T 0 < T 1 < ⋯ < T D = N into valid (IntervalTree, GenPrefixTree) pairs at each step d < D ([Ser25a], pp. 2–3).