Rectifier circuits (OR-circuits) and Nechiporuk's rectangle-free lower bound #
A rectifier (α, β)-circuit (or OR-circuit, [Lup56]; [JS13];
[Ser14], p. 1) on a vertex type V is a directed graph with distinct input poles
inp : β ↪ V and output poles out : α ↪ V (Disjoint (Set.range inp) (Set.range out)). It
computes (implements) a Boolean matrix A : Matrix α β Bool when A i j = true iff there is a
directed walk from inp j to out i. Its size (complexity) is #edges, and it has depth at
most d (HasDepthLE d) when every directed walk in it has length at most d (which in
particular forces acyclicity).
For finite row and column types, orComplexity A (OR(A) : ℕ) is the minimum size of a finite
rectifier circuit computing A, and
orDepthComplexity d A (OR_d(A) : ℕ∞) is the minimum size over circuits of depth at most d
(⊤ at d = 0 when A has a true entry).
For K-rectangle-free matrices A, Nechiporuk's theorem ([JS13], §3.3,
Theorem 3.9, pp. 32–33, taking both rectangle parameters k, l to be K - 1; [Nec70];
[Ser14], p. 3 quotes the weaker denominator K ^ 2 while p. 1 records the
2-free consequence) charges each true entry (i, j) of A via Pippenger's threshold-edge
argument to an edge along a walk from inp j to out i that covers at most (K - 1) ^ 2
input-output pairs, yielding boolMatrixWeight A ≤ (K - 1) ^ 2 * C.size
(RectifierCircuit.Computes.boolMatrixWeight_le_sq_pred_mul_size) and
boolMatrixWeight A ≤ (K - 1) ^ 2 * orComplexity A
(boolMatrixWeight_le_sq_pred_mul_orComplexity). At K = 2 this matches the trivial depth-1
circuit (RectifierCircuit.direct), giving the exact identity orComplexity A = boolMatrixWeight A
and orDepthComplexity d A = boolMatrixWeight A (1 ≤ d) for every 2-free Boolean matrix A.
Main definitions #
Cslib.Circuits.RectifierCircuit: directed graph with disjoint injective input and output poles.Cslib.Circuits.RectifierCircuit.Walk,Walk.length,Walk.append,Walk.uncons: directed walks in a rectifier circuit.Cslib.Circuits.RectifierCircuit.size,RectifierCircuit.HasDepthLE,RectifierCircuit.Computes: edge count, bounded walk depth, and Boolean matrix implementation.Cslib.Circuits.RectifierCircuit.direct: canonical depth-1rectifier circuit of sizeboolMatrixWeight A.Cslib.Circuits.orComplexity,Cslib.Circuits.orDepthComplexity:OR(A)andOR_d(A).
Main results #
Cslib.Circuits.le_orComplexity,Cslib.Circuits.le_orDepthComplexity,Cslib.Circuits.orDepthComplexity_zero_eq_top: lower-bound introduction rules and thed = 0⊤boundary for nonzero matrices.Cslib.Circuits.orComplexity_le_orDepthComplexity,Cslib.Circuits.orDepthComplexity_anti,Cslib.Circuits.orDepthComplexity_one_le_boolMatrixWeight,Cslib.Circuits.orComplexity_le_boolMatrixWeight: monotonicity and depth-1upper bounds.Cslib.Circuits.orComplexity_reindex,Cslib.Circuits.orDepthComplexity_reindex: invariance under row and column permutations.Cslib.Circuits.RectifierCircuit.Computes.boolMatrixWeight_le_sq_pred_mul_size,Cslib.Circuits.boolMatrixWeight_le_sq_pred_mul_orComplexity: Nechiporuk'sK-free rectifier lower bound|A| ≤ (K - 1) ^ 2 * OR(A).Cslib.Circuits.orComplexity_eq_boolMatrixWeight_of_isRectangleFree_two,Cslib.Circuits.orDepthComplexity_eq_boolMatrixWeight_of_isRectangleFree_two: for2-freeA,OR(A) = OR_d(A) = |A|(1 ≤ d).
References #
- O. B. Lupanov, On rectifier and switching-and-rectifier schemes
- E. I. Nechiporuk, On the topological principles of self-correction
- S. Jukna, I. Sergeev, Complexity of linear Boolean operators, §3.3, Theorem 3.9, pp. 32–33
- I. S. Sergeev, On relative OR-complexity of Boolean matrices and their complements, pp. 1, 3
A rectifier (α, β)-circuit (OR-circuit) on vertex type V: a finite edge set with
injective input poles inp : β ↪ V and output poles out : α ↪ V having disjoint ranges
([Ser14], p. 1; [JS13]).
Directed walks along the edges of a rectifier circuit C.
- nil {α : Type u_1} {β : Type u_2} {V : Type u_5} {C : RectifierCircuit α β V} (u : V) : C.Walk u u
The zero-edge walk at
u. - cons {α : Type u_1} {β : Type u_2} {V : Type u_5} {C : RectifierCircuit α β V} {u v w : V} (h : (u, v) ∈ C.edges) (p : C.Walk v w) : C.Walk u w
Prepend a directed edge
(u, v) ∈ C.edgesto a walk fromvtow.
Number of edges in a directed walk.
Concatenate two directed walks sharing an intermediate endpoint.
Complexity (number of edges) of a rectifier circuit ([Ser14], p. 1).
C has depth at most d if every directed walk in C has length at most d
([Ser14], p. 1).
If a natural-number layer strictly advances by 1 on every edge and never exceeds d, then
the circuit has depth at most d.
Reindex the vertex type of a rectifier circuit along an equivalence e : V ≃ V'.
Reindex the input and output pole types of a rectifier circuit along equivalences.
The canonical depth-1 rectifier circuit for A : Matrix α β Bool on vertex set β ⊕ α,
placing one directed edge Sum.inl j → Sum.inr i for each entry A i j = true.
Any walk between distinct vertices u ≠ w begins with at least one directed edge (u, v)
followed by a walk from v to w.
Nechiporuk's rectangle-free rectifier bound ([JS13], §3.3, Theorem 3.9,
pp. 32–33, taking k = l = K - 1; [Nec70]; [Ser14], p. 3 quotes the
weaker denominator K ^ 2): if a rectifier circuit C computes a K-free Boolean matrix A, then
boolMatrixWeight A ≤ (K - 1) ^ 2 * C.size.
Rectifier (OR) complexity OR(A) of a finite Boolean matrix A: the minimum number of
edges in a finite rectifier circuit computing A ([Ser14], p. 1).
Finite row and column types ensure that a direct circuit exists, so the feasible set is nonempty.
Bounded-depth rectifier (OR) complexity OR_d(A) of a Boolean matrix A: the minimum
number of edges in a finite rectifier circuit of depth at most d computing A, or ⊤ if none
exists ([Ser14], p. 1).
Any finite rectifier circuit C computing A bounds orComplexity A by C.size.
Any finite rectifier circuit C of depth at most d computing A bounds
orDepthComplexity d A by C.size.
A lower bound holds for orComplexity A whenever it holds for the size of every finite
rectifier circuit computing A.
A lower bound holds for orDepthComplexity d A whenever it holds for the size of every finite
rectifier circuit of depth at most d computing A.
At depth 0, any Boolean matrix with a true entry has orDepthComplexity 0 A = ⊤, since
distinct input and output poles admit no zero-edge walk.
Increasing the allowed depth d can only decrease orDepthComplexity d A.
Nechiporuk's theorem for OR-complexity ([JS13], §3.3, Theorem 3.9, pp. 32–33,
taking k = l = K - 1; [Nec70]; [Ser14], p. 3 quotes the weaker
denominator K ^ 2): for every K-rectangle-free finite Boolean matrix A,
boolMatrixWeight A ≤ (K - 1) ^ 2 * orComplexity A.
For every 2-rectangle-free finite Boolean matrix A, orComplexity A = boolMatrixWeight A
([JS13], §3.3, Theorem 3.9, p. 33; [Ser14], p. 1;
[Nec70]).
For every 2-rectangle-free finite Boolean matrix A and every 1 ≤ d,
orDepthComplexity d A = boolMatrixWeight A ([JS13], §3.3, Theorem 3.9, p. 33;
[Ser14], p. 1; [Nec70]).