Documentation

CslibFrontier.Computability.Circuit.Prefix.OptimalDepth

Minimal depth of optimal fanout-bounded prefix circuits #

Following Sergeev [Ser25a], we complete the depth characterization of optimal (zero-deficiency) fanout-k universal prefix circuits. Extracting principal-chain segments directly from any zero-deficiency universal prefix DAG yields sharp k = 2 width bounds (width_le_one_add_maxCircuitWidthUpper_two, width_le_maxCircuitWidthUpper_two) and general exponential circuit width upper bounds (width_le_mul_alphaRoot_pow) in terms of the unique positive root α_k (alphaRoot k) of the characteristic polynomial P_k(x) = 2 + x + ⋯ + x^{k-2} - x^k (prefixCharPoly k).

Combining these upper bounds with the constructive lower bounds of CslibFrontier.Computability.Circuit.Prefix.ConsistentTree, we establish that for each fanout bound k ≥ 2, there exists a constant C ≥ 0 (depending on k) such that for every input width N ≥ 1, the minimal depth D(N, k) (optimalPrefixDepth N k) of an optimal fanout-k universal prefix circuit on N inputs satisfies |(optimalPrefixDepth N k : ℝ) - Real.logb (alphaRoot k) N| ≤ C (abs_optimalPrefixDepth_sub_logb_le), together with the exact k = 2 threshold characterization (optimalPrefixDepth_two_le_iff), strict monotonicity of α_k on k ≥ 2 (alphaRoot_strictMonoOn), and convergence α_k → φ (tendsto_alphaRoot_atTop).

Main definitions #

Main results #

References #

Exact maximum width bound for optimal fanout-2 prefix circuits of positive depth: N ≤ 1 + w_2*(c.depth - 1) ([Ser25a], p. 3, w_2(D) = w_2*(D - 1)).

Every optimal fanout-2 prefix circuit on N ≥ 1 inputs satisfies N ≤ maxCircuitWidthUpper 2 c.depth ([Ser25a], p. 3, Eq. (3)).

theorem Cslib.Circuits.Prefix.width_le_mul_alphaRoot_pow {k : ℕ} (hk : 2 ≤ k) :
∃ (A : ℝ), 1 ≤ A ∧ ∀ {N : ℕ}, 1 ≤ N → ∀ {c : PrefixCircuit N}, IsOptimalPrefixCircuit c → FanoutAtMost c k → ↑N ≤ A * alphaRoot k ^ Circuit.depth c

Exponential upper bound on the input width of any optimal (zero-deficiency) fanout-k universal prefix circuit in terms of (alphaRoot k) ^ c.depth ([Ser25a], pp. 3–5).

Minimal depth D(N, k) of an optimal (zero-deficiency) universal prefix circuit on N inputs with wire fanout bounded by k ([Ser25a], p. 2).

For every k ≥ 2 and N ≥ 1, there exists an optimal fanout-k universal prefix circuit on N inputs attaining depth optimalPrefixDepth N k.

On a single input N = 1, the minimal depth of an optimal fanout-k prefix circuit is 0.

Exact threshold characterization of optimalPrefixDepth N 2 for D ≥ 1 and N ≥ 1: optimalPrefixDepth N 2 ≤ D if and only if N ≤ 1 + maxCircuitWidthUpper 2 (D - 1) ([Ser25a], pp. 2–3, following Eq. (3)).

theorem Cslib.Circuits.Prefix.abs_optimalPrefixDepth_sub_logb_le {k : ℕ} (hk : 2 ≤ k) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (N : ℕ), 1 ≤ N → |↑(optimalPrefixDepth N k) - Real.logb (alphaRoot k) ↑N| ≤ C

Sergeev's Theorem ([Ser25a], p. 2): for every fanout bound k ≥ 2, there exists a constant C ≥ 0 (depending only on k) such that for every input width N ≥ 1, the minimal depth optimalPrefixDepth N k of an optimal (zero-deficiency) fanout-k universal prefix circuit on N inputs satisfies |(optimalPrefixDepth N k : ℝ) - Real.logb (alphaRoot k) N| ≤ C.