Additive matrix synthesis and multiplicative-to-total complexity over {⊕, ∧, 1} #
This file formalizes the constructive upper bounds of Igor S. Sergeev on additive matrix synthesis
and total-from-multiplicative circuit complexity over the Zhegalkin basis {⊕, ∧, 1}
[Ser13]:
- Active-square additive matrix synthesis
(Sergeev, Lemma 1, pp. 2–3, reformulating a special case of
Nechiporuk): for an
m × nBoolean matrixA, its active squareA.activeSquare(S(A)) counts the entries(i, j)within horizontal distanceNat.log 2 mof atrueentry in rowi. Over any additive commutative monoidG, the linear operatorx ↦ (i ↦ ∑ j, if A i j then x j else 0)can be computed by an additive circuit of size at most(n * 2 ^ s) / s + A.activeSquare / (2 * s) + m * p + (m ⌈/⌉ p) * 2 ^ s * (n ⌈/⌉ s)whenever0 < s ≤ Nat.log 2 m + 1and0 < p(Additive.exists_circuit_matrix_le_bound), hence asymptoticallyA.activeSquare / (2 * Real.logb 2 m) + ε * (m + n) ^ 2 / Real.logb 2 m(Additive.exists_circuit_matrix_le). - Multiplicative-to-total complexity upper bound over
{⊕, ∧, 1}(Sergeev, Theorem 1 (upper bound), pp. 1, 3): everyn-variable Boolean function computed by a{⊕, ∧, 1}-circuit with at mostMconjunction (∧) gates can be computed by an acyclic{⊕, ∧, 1}-circuit using no more∧-gates and total gate count at mostZhegalkin.totalBound n M s p(Zhegalkin.exists_circuit_of_andCost_le_bound), giving(1 / 2 + ε) * M * (M + 2 * n) / Real.logb 2 Muniformly innfor all sufficiently largeM(Zhegalkin.exists_circuit_of_andCost_le,Zhegalkin.complexity_le_of_multiplicativeComplexity_le).
To keep the {⊕, ∧, 1} circuit strictly acyclic while sharing paired column sums across all 2 M
conjunction-input rows, the M topologically ordered ∧-gates are processed in stages of s
consecutive gates: every paired sum y_{r₁, r₂} between rows r₁ < r₂ reads only original inputs
and ∧-gate blocks completed strictly before r₁'s stage, while the < s intra-stage ∧-gates
preceding a gate are added directly with O(M s) XOR gates.
Main definitions #
Matrix.activeSquare: active squareS(A)of anm × nBoolean matrix.Cslib.Circuits.Additive.Op,Cslib.Circuits.Additive.signature,Cslib.Circuits.Additive.interpretation,Cslib.Circuits.Additive.matrixBound: the additive circuit basis{0, +}and explicit(s, p)gate budget of Lemma 1.Cslib.Circuits.Boolean.Zhegalkin.Op,Cslib.Circuits.Boolean.Zhegalkin.signature,Cslib.Circuits.Boolean.Zhegalkin.interpretation: the Zhegalkin Boolean basis{⊕, ∧, 1}.Cslib.Circuits.Boolean.Zhegalkin.andCost,Cslib.Circuits.Boolean.Zhegalkin.multiplicativeComplexity: conjunction-gate cost and multiplicative complexityL_∧(f).Cslib.Circuits.Boolean.Zhegalkin.totalBound: explicit(n, M, s, p)total gate budget for the upper bound of Theorem 1.
Main results #
Cslib.Circuits.Additive.exists_circuit_matrix_le_bound: explicit active-square additive matrix synthesis bound (Sergeev, Lemma 1, pp. 2–3).Cslib.Circuits.Additive.exists_circuit_matrix_le: asymptotic active-square additive matrix boundS(A) / (2 log₂ m) + ε (m + n)² / log₂ m(Sergeev, Lemma 1, p. 2).Cslib.Circuits.Boolean.Zhegalkin.exists_circuit_of_andCost_le_bound: explicit staged acyclic{⊕, ∧, 1}-circuit synthesis bound preserving conjunction count (Sergeev, Theorem 1 (upper bound), p. 3).Cslib.Circuits.Boolean.Zhegalkin.exists_circuit_of_andCost_le,Cslib.Circuits.Boolean.Zhegalkin.complexity_le_of_multiplicativeComplexity_le: asymptotic(1 / 2 + ε) * M * (M + 2 * n) / log₂ Mtotal complexity upper bound from multiplicative complexity (Sergeev, Theorem 1 (upper bound), p. 1).