Documentation

CslibFrontier.Computability.Circuit.Boolean.Zhegalkin.AdditiveDefs

Active square of a Boolean matrix and the additive {0, +} circuit basis #

Defines Matrix.activeSquare (S(A)), the additive circuit signature Additive.signature over {0, +}, its monoid Additive.interpretation, and the explicit Lemma 1 gate budget Additive.matrixBound.

Main definitions #

Main results #

References #

def Matrix.activeSquare {m n : ℕ} (A : Matrix (Fin m) (Fin n) Bool) :

The active square S(A) of an m × n Boolean matrix A (Sergeev, p. 2): the number of entries (i, j) located within horizontal distance Nat.log 2 m of a true entry in the same row i. Because column distances are natural numbers, for 1 ≤ m the condition Nat.dist j j' ≤ Nat.log 2 m is equivalent to (Nat.dist j j' : ℝ) ≤ Real.logb 2 m.

theorem Matrix.activeSquare_le_mul {m n : ℕ} (A : Matrix (Fin m) (Fin n) Bool) :

The active square of an m × n Boolean matrix is at most m * n.

Operations of the additive monoid circuit basis {0, +}.

  • zero : Op

    The additive identity 0.

  • add : Op

    Binary addition +.

Instances For
    @[reducible, inline]

    The additive circuit signature: nullary zero and binary add.

    Interpretation of the additive signature in any type with 0 and +.

    @[simp]
    theorem Cslib.Circuits.Additive.interpretation_add (G : Type u_1) [AddZeroClass G] (x : Fin 2 → G) :
    interpretation G Op.add x = x 0 + x 1
    def Cslib.Circuits.Additive.matrixBound {m n : ℕ} (A : Matrix (Fin m) (Fin n) Bool) (s p : ℕ) :

    Explicit gate budget of Sergeev, Lemma 1, p. 3 for an m × n Boolean matrix A with column-group width s and horizontal section height p.