Documentation

CslibFrontier.Computability.Circuit.Boolean.Zhegalkin.UpperBound

Explicit and asymptotic Theorem 1 upper bounds over {⊕, ∧, 1} #

Proves the staged synthesis upper bound Zhegalkin.exists_circuit_of_andCost_le_bound and its asymptotic corollary Zhegalkin.exists_circuit_of_andCost_le (Sergeev, Theorem 1 (upper bound), pp. 1, 3).

Main results #

References #

Explicit staged multiplicative-to-total synthesis bound over {⊕, ∧, 1} (Sergeev, Theorem 1 (upper bound), p. 3): every n-input Boolean function f computed by a {⊕, ∧, 1}-circuit c with at most M conjunction gates (c.program.cost andCost ≤ M) can be computed by an acyclic {⊕, ∧, 1}-circuit c' using no more conjunction gates (c'.program.cost andCost ≤ c.program.cost andCost) and total size at most totalBound n M s p, for any block/stage width 0 < s and horizontal section height 0 < p.

theorem Cslib.Circuits.Boolean.Zhegalkin.exists_circuit_of_andCost_le {ε : ℝ} (hε : 0 < ε) :
∃ (M₀ : ℕ), 2 ≤ M₀ ∧ ∀ {n M : ℕ}, M₀ ≤ M → ∀ {f : BooleanFunction n} (c : Circuit signature n 1), c.Computes interpretation (single f) → c.program.cost andCost ≤ M → ∃ (c' : Circuit signature n 1), c'.Computes interpretation (single f) ∧ c'.program.cost andCost ≤ c.program.cost andCost ∧ ↑c'.size ≤ (1 / 2 + ε) * ↑M * (↑M + 2 * ↑n) / Real.logb 2 ↑M

Asymptotic multiplicative-to-total circuit synthesis upper bound over {⊕, ∧, 1} (Sergeev, Theorem 1 (upper bound), p. 1): for every ε > 0, there exists M₀ such that for all M ≥ M₀, all n : ℕ, and every Boolean function f : BooleanFunction n computed by a {⊕, ∧, 1}-circuit c with at most M conjunction gates, f is computed by a {⊕, ∧, 1}-circuit c' with no more conjunction gates than c and total gate count at most (1 / 2 + ε) * M * (M + 2 * n) / Real.logb 2 M.

Sergeev states Theorem 1 under M = Ω(n) and separately notes asymptotic optimality on pp. 1–2; bounding the explicit (s, p) synthesis budget totalBound n M s p directly gives a uniform threshold in M for all n : ℕ and recovers the published upper bound when M = Ω(n).

theorem Cslib.Circuits.Boolean.Zhegalkin.complexity_le_of_multiplicativeComplexity_le {ε : ℝ} (hε : 0 < ε) :
∃ (M₀ : ℕ), 2 ≤ M₀ ∧ ∀ {n M : ℕ}, M₀ ≤ M → ∀ (f : BooleanFunction n), multiplicativeComplexity (single f) ≤ M → ↑(complexity interpretation (single f)) ≤ (1 / 2 + ε) * ↑M * (↑M + 2 * ↑n) / Real.logb 2 ↑M

Multiplicative-to-total complexity upper bound over {⊕, ∧, 1} (Sergeev, Theorem 1 (upper bound), p. 1): for every ε > 0, there exists M₀ such that for all M ≥ M₀, all n : ℕ, and every n-variable Boolean function f of multiplicative complexity at most M (multiplicativeComplexity (single f) ≤ M), the total {⊕, ∧, 1} circuit complexity satisfies complexity interpretation (single f) ≤ (1 / 2 + ε) * M * (M + 2 * n) / Real.logb 2 M.