Documentation

CslibFrontier.Computability.Circuit.Rectifier.ComplementSeparation

Relative OR-complexity of Boolean matrices and their complements #

Igor S. Sergeev ([Ser14], pp. 1–3) constructs explicit n × n Boolean matrices whose rectifier (OR) complexity is linear (OR_3(C) = O(n)), while their entrywise complements C̄ are 2-rectangle-free with OR(C̄) = |C̄| = Ω(n^{4/3}).

Given an m × m Boolean matrix A, let B = twoRectMatrix A be its n × n 2-rectangle lift (n = C(m, 2)):

Main definitions #

Main results #

References #

inductive Cslib.Circuits.ComplTwoRectVertex (α : Type u_3) (β : Type u_4) :
Type (max u_3 u_4)

Vertex layers of Sergeev's depth-3 rectifier circuit implementing (twoRectMatrix A).map (! ·) ([Ser14], p. 3).

Instances For
    def Cslib.Circuits.instDecidableEqComplTwoRectVertex.decEq {α✝ : Type u_3} {β✝ : Type u_4} [DecidableEq α✝] [DecidableEq β✝] (x✝ x✝¹ : ComplTwoRectVertex α✝ β✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Cslib.Circuits.instDecidableEqComplTwoRectVertex {α✝ : Type u_3} {β✝ : Type u_4} [DecidableEq α✝] [DecidableEq β✝] :
    def Cslib.Circuits.complTwoRectCircuit {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (A : Matrix α β Bool) :

    Sergeev's depth-3 rectifier circuit implementing (twoRectMatrix A).map (! ·) ([Ser14], p. 3).

    theorem Cslib.Circuits.size_complTwoRectCircuit {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (A : Matrix α β Bool) :

    Exact edge count of complTwoRectCircuit A.

    theorem Cslib.Circuits.computes_complTwoRectCircuit {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (A : Matrix α β Bool) :

    complTwoRectCircuit A computes (twoRectMatrix A).map (! ·) ([Ser14], p. 3).

    Sergeev's Lemma 3, upper bound ([Ser14], pp. 2–3): for any m × m Boolean matrix A (m = |α|, n = C(m, 2)), orDepthComplexity 3 ((twoRectMatrix A).map (! ·)) ≤ 4 * n + boolMatrixWeight (A.map (! ·)).

    Sergeev's Lemma 3, linear depth-3 upper bound ([Ser14], pp. 2–3): for any m × m Boolean matrix A with 3 ≤ m (n = C(m, 2)), orDepthComplexity 3 ((twoRectMatrix A).map (! ·)) ≤ 7 * n.

    Sergeev's Lemma 3, polynomial lower bound ([Ser14], pp. 2–3): if an m × m Boolean matrix A is k-free and 4 * m ^ 3 ≤ |A| ^ 2, then |A| ^ 4 ≤ 8 * (k * m) ^ 4 * orComplexity (twoRectMatrix A) (that is, OR(twoRectMatrix A) = Ω((|A| / (k m)) ^ 4)).

    Sergeev's explicit complement-separation matrix C = (twoRectMatrix (brownMatrix p)).map (! ·) of dimension C(p ^ 3, 2) × C(p ^ 3, 2) ([Ser14], Theorem 1(ii), p. 3).

    Sergeev's Theorem 1(ii), depth-3 linear upper bound ([Ser14], pp. 2–3): for prime p ≡ 3 (mod 4) and n = C(p ^ 3, 2), orDepthComplexity 3 (sergeevComplementMatrix p) ≤ 7 * n.

    Sergeev's Theorem 1(ii), linear OR-complexity upper bound ([Ser14], pp. 1–2): for prime p ≡ 3 (mod 4), orComplexity (sergeevComplementMatrix p) ≤ 7 * C(p ^ 3, 2).

    Sergeev's Theorem 1(ii), 2-freeness of the complement ([Ser14], p. 2): for prime p ≡ 3 (mod 4), (sergeevComplementMatrix p).map (! ·) is 2-rectangle-free.

    Sergeev's Theorem 1(ii), exact OR-complexity of the complement ([Ser14], pp. 1–2): for prime p ≡ 3 (mod 4), orComplexity ((sergeevComplementMatrix p).map (! ·)) = boolMatrixWeight ((sergeevComplementMatrix p).map (! ·)).

    Sergeev's Theorem 1(ii), Ω(n^{4/3}) complement lower bound ([Ser14], pp. 1–3): for every prime p ≡ 3 (mod 4) and n = C(p ^ 3, 2), n ^ 4 ≤ 2 ^ 23 * orComplexity ((sergeevComplementMatrix p).map (! ·)) ^ 3.

    theorem Cslib.Circuits.exists_gt_sergeev_or_complement_separation (N : ℕ) :
    ∃ (n : ℕ) (C : Matrix (Fin n) (Fin n) Bool), N < n ∧ orDepthComplexity 3 C ≤ ↑(7 * n) ∧ orComplexity C ≤ 7 * n ∧ IsRectangleFreeMatrix (C.map fun (x : Bool) => !x) 2 ∧ orComplexity (C.map fun (x : Bool) => !x) = boolMatrixWeight (C.map fun (x : Bool) => !x) ∧ n ^ 4 ≤ 2 ^ 23 * orComplexity (C.map fun (x : Bool) => !x) ^ 3

    Sergeev's Theorem 1(ii), unbounded Fin n × Fin n family ([Ser14], pp. 1–2): for arbitrarily large n, there is an n × n Boolean matrix C with OR_3(C) ≤ 7 * n, OR(C) ≤ 7 * n, C̄ 2-rectangle-free, OR(C̄) = |C̄|, and n ^ 4 ≤ 2 ^ 23 * OR(C̄) ^ 3.