Documentation

CslibFrontier.Computability.Circuit.Boolean.Zhegalkin.AdditiveBound

Active-square additive matrix bounds (Sergeev, Lemma 1) #

Proves both the explicit (s, p) active-square additive matrix synthesis bound (Additive.exists_circuit_matrix_le_bound) and its asymptotic form (Additive.exists_circuit_matrix_le).

Main results #

References #

theorem Cslib.Circuits.Additive.exists_circuit_matrix_le_bound {m n : ℕ} (G : Type u_2) [AddCommMonoid G] (A : Matrix (Fin m) (Fin n) Bool) {s p : ℕ} (hs : 0 < s) (hs_log : s ≤ Nat.log 2 m + 1) (hp : 0 < p) :
∃ (c : Circuit signature n m), (c.Computes (interpretation G) fun (x : Fin n → G) (i : Fin m) => ∑ j : Fin n, if A i j = true then x j else 0) ∧ c.size ≤ matrixBound A s p

Explicit active-square additive matrix bound (Sergeev, Lemma 1, pp. 2–3): over any additive commutative monoid G, every m × n Boolean matrix A is computed by an additive {0, +}-circuit of size at most matrixBound A s p whenever 0 < s ≤ Nat.log 2 m + 1 and 0 < p (AddCommMonoid G supplies 0 for all-zero rows on total output wires, whereas Sergeev's p. 2 footnote 4 states a commutative semigroup (G, +) and the construction here emits zero Op.zero gates whenever every row of A has a true entry).

theorem Cslib.Circuits.Additive.exists_circuit_matrix_le {ε : ℝ} (hε : 0 < ε) :
∃ (N₀ : ℕ), ∀ {m n : ℕ}, 2 ≤ m → N₀ ≤ m + n → ∀ (G : Type u_1) [inst : AddCommMonoid G] (A : Matrix (Fin m) (Fin n) Bool), ∃ (c : Circuit signature n m), (c.Computes (interpretation G) fun (x : Fin n → G) (i : Fin m) => ∑ j : Fin n, if A i j = true then x j else 0) ∧ ↑c.size ≤ ↑A.activeSquare / (2 * Real.logb 2 ↑m) + ε * ((↑m + ↑n) ^ 2 / Real.logb 2 ↑m)

Asymptotic active-square additive matrix bound (Sergeev, Lemma 1, p. 2): for every ε > 0, for all sufficiently large m + n with 2 ≤ m, every m × n Boolean matrix A over any additive commutative monoid G is computed by an additive {0, +}-circuit of size at most A.activeSquare / (2 * Real.logb 2 m) + ε * ((m + n) ^ 2 / Real.logb 2 m).