Documentation

CslibFrontier.Computability.Circuit.Boolean.Razborov.RankProperty

Razborov's GF(2) rank property against AC⁰[2] #

This module specializes the general prime-p rank property of CslibFrontier.Computability.Circuit.Boolean.Smolensky.RankProperty to p = 2, recovering the GF(2) rank property of truth tables that is large and useful against AC⁰[2]—the property that Razborov and Rudich, §3.2, p. 27 extract from Razborov's lower bound for constant-depth circuits with parity gates [Raz87].

The zero-sum matrix of h : (ι → Bool) → ZMod 2 at level a (zeroSumMatrix) is Smolensky.zeroSumMatrixMod 2 a h, with rows and columns indexed by the a-subsets of ι. Over ZMod 2 the sign (-1) ^ weight x is 1, so entry (I, J) is both the subset Möbius transform of h at (I ∪ J)ᶜ (zeroSumMatrix_apply_eq_subsetMobius) and the sum of h over the points vanishing on I ∪ J (zeroSumMatrix_apply). Three facts about the matrix drive the argument:

The rank test (rankTest n a := Smolensky.rankTestMod 2 n a) accepts a Boolean function f on n inputs when the rank of the zero-sum matrix of f is at least C(n, a) / 2.

The constructivity of the test, a circuit of size 173 · 8 ^ n deciding it from truth tables, is in CslibFrontier.Computability.Circuit.Boolean.Razborov.Natural.

Sources and variant. Razborov and Rudich, §3.2, p. 27 state the rank property only abstractly and leave its largeness as an exercise. The explicit form for p = 2 is the sketch in Carmosino et al., p. 10:20, who accept when some matrix of level b ≤ a, a = n/2 - √n, has rank at least 2 ^ n / (140 n²). This module uses a variant: one square matrix at a single level a, the threshold C(n, a) / 2 (which makes largeness exactly 1/2), and the level a = ⌈n/2⌉ - s. Razborov's original paper [Raz87] was not checked for its own form of the property.

Main definitions #

Main results #

References #

The zero-sum matrix #

noncomputable def Cslib.Circuits.Boolean.Razborov.zeroSumMatrix {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ℕ) (h : (ι → Bool) → ZMod 2) :
Matrix { I : Finset ι // I.card = a } { I : Finset ι // I.card = a } (ZMod 2)

The zero-sum matrix of h at level a: Smolensky.zeroSumMatrixMod 2 a h. Rows and columns are the a-subsets of ι, and over ZMod 2 entry (I, J) is both the subset Möbius transform of h at (I ∪ J)ᶜ (zeroSumMatrix_apply_eq_subsetMobius) and the sum of h over the points vanishing on I ∪ J (zeroSumMatrix_apply).

theorem Cslib.Circuits.Boolean.Razborov.zeroSumMatrix_apply_eq_subsetMobius {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ℕ) (h : (ι → Bool) → ZMod 2) (I J : { I : Finset ι // I.card = a }) :
zeroSumMatrix a h I J = BitString.subsetMobius (fun (T : Finset ι) => h fun (i : ι) => decide (i ∈ T)) (↑I ∪ ↑J)ᶜ

The entry of the zero-sum matrix at (I, J) is the subset Möbius transform at (I ∪ J)ᶜ.

theorem Cslib.Circuits.Boolean.Razborov.zeroSumMatrix_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ℕ) (h : (ι → Bool) → ZMod 2) (I J : { I : Finset ι // I.card = a }) :
zeroSumMatrix a h I J = ∑ x : ι → Bool with ∀ i ∈ ↑I ∪ ↑J, x i = false, h x

The entries of the zero-sum matrix over ZMod 2: the entry at (I, J) is the sum of h over the points vanishing on I ∪ J.

theorem Cslib.Circuits.Boolean.Razborov.zeroSumMatrix_add {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ℕ) (g h : (ι → Bool) → ZMod 2) :

The zero-sum matrix is additive.

theorem Cslib.Circuits.Boolean.Razborov.zeroSumMatrix_sub {ι : Type u_1} [Fintype ι] [DecidableEq ι] (a : ℕ) (g h : (ι → Bool) → ZMod 2) :

The zero-sum matrix commutes with subtraction.

theorem Cslib.Circuits.Boolean.Razborov.zeroSumMatrix_eq_zero_of_mem_lowDegree {ι : Type u_1} [Fintype ι] [DecidableEq ι] {a D : ℕ} {h : (ι → Bool) → ZMod 2} (hh : h ∈ BitString.lowDegree (ZMod 2) ι D) (hD : D + 2 * a < Fintype.card ι) :

Low-degree functions have zero matrix: if h has degree at most D and D + 2 a < |ι|, then the complement of the union of two a-sets has more than D elements, so every entry of the zero-sum matrix of h is a vanishing coefficient.

theorem Cslib.Circuits.Boolean.Razborov.rank_zeroSumMatrix_le_card {ι : Type u_1} [Fintype ι] [DecidableEq ι] {a : ℕ} {h : (ι → Bool) → ZMod 2} {E : Finset (ι → Bool)} (hE : ∀ x ∉ E, h x = 0) :

The rank of the zero-sum matrix is at most the support size: if h vanishes off E, the matrix of h is the product of the a-sets-by-E incidence matrix [I ⊆ zeros x] with a matrix with #E rows, so its rank is at most #E.

def Cslib.Circuits.Boolean.Razborov.exactWeight {ι : Type u_1} [Fintype ι] (k : ℕ) (x : ι → Bool) :

The indicator of the points of weight k: exactWeight k x holds when x has exactly k true coordinates.

@[simp]

exactWeight k x holds exactly when x has weight k.

The identity witness: the zero-sum matrix at level a of the indicator of the points with exactly a zeros (weight |ι| - a) is the identity. A point vanishing on I ∪ J with exactly a zeros has zero set I = J, and for I = J there is exactly one such point.

The rank test #

The rank test at level a: Smolensky.rankTestMod 2 n a, accepting a Boolean function f on n inputs when the zero-sum matrix of f (read in ZMod 2) has rank at least C(n, a) / 2. This is a variant of the rank property of Razborov and Rudich, §3.2 with one square matrix and the threshold C(n, a) / 2; see the module docstring.

Membership in the rank test.

The indicator of the points with exactly a zeros passes the rank test at level a: its zero-sum matrix is the identity, of full rank C(n, a).

Largeness of the rank test: at every n and a, at least half of the Boolean functions on n inputs pass the rank test at level a.

theorem Cslib.Circuits.Boolean.Razborov.rank_mul_two_pow_le_size {n : ℕ} {f : BooleanFunction n} {C : Circuit Unbounded.extSignature n 1} (hC : C.Computes (Unbounded.extInterpretation (modGate 2)) (single f)) {ℓ a : ℕ} (hℓ : 1 ≤ ℓ) (hd : ℓ ^ C.depth + 2 * a < n) :
(zeroSumMatrix a fun (x : Fin n → Bool) => BitString.bitVal (ZMod 2) (f x)).rank * 2 ^ ℓ ≤ C.size * 2 ^ n

Usefulness of the rank test against AC⁰[2]: if a circuit of the AC⁰[2] basis of depth d computes f, then for every ℓ ≥ 1 with ℓ ^ d + 2 a < n, the zero-sum matrix of f at level a has rank at most size · 2 ^ n / 2 ^ ℓ.

theorem Cslib.Circuits.Boolean.Razborov.two_mul_two_pow_le_size_of_mem_rankTest {n : ℕ} {f : BooleanFunction n} {s : ℕ} (hs : 1 ≤ s) (h : 100 * s ^ 2 ≤ n + 1) (hf : f ∈ rankTest n ((n + 1) / 2 - s)) {C : Circuit Unbounded.extSignature n 1} (hC : C.Computes (Unbounded.extInterpretation (modGate 2)) (single f)) {ℓ : ℕ} (hℓ : 1 ≤ ℓ) (hd : ℓ ^ C.depth + 2 ≤ 2 * s) :
2 * 2 ^ ℓ ≤ 5 * (n + 1) * C.size

The size–depth tradeoff for the rank test: let 1 ≤ s and 100 s² ≤ n + 1. If f passes the rank test at level ⌈n/2⌉ - s and a circuit of the AC⁰[2] basis of depth d computes f, then its size is at least 2 · 2 ^ ℓ / (5 (n + 1)) for every ℓ ≥ 1 with ℓ ^ d + 2 ≤ 2 s.