Documentation

CslibFrontier.Computability.Circuit.Boolean.Smolensky.RankProperty

The $\mathbb{F}_p$-Rank Property: Largeness and Finite Tradeoffs Against AC⁰[p] #

This module defines the signed zero-sum matrix and $\mathbb{F}_p$-rank property over ZMod p for every prime $p$, and proves its largeness (≥ 1/2), Smolensky rank–size usefulness tradeoffs against constant-depth MOD_p circuits, and an explicit polylogarithmic-length usefulness bound (rankLengthMod).

Packaging into NaturalProof.IsLarge and NaturalProof.IsUseful (AC0Mod p) is kept separate in CslibFrontier.Computability.Circuit.Boolean.Smolensky.RankProperty.Useful, so clients of the finite lower bounds alone (such as Razborov.MiddleSlice and Smolensky.Majority) do not import NaturalProof or the polynomial-time Turing machine library.

At p = 2, (-1 : ZMod 2) ^ weight x = 1, so zeroSumMatrixMod 2, rankTestMod 2, and rankPropertyMod 2 specialize to the GF(2) rank property in CslibFrontier.Computability.Circuit.Boolean.Razborov.RankProperty and CslibFrontier.Computability.Circuit.Boolean.Razborov.Useful.

Scope and open gap. Together with CslibFrontier.Computability.Circuit.Boolean.Smolensky.RankProperty.Useful, this establishes only largeness and usefulness against AC0Mod p; it does not prove constructivity (truthTableLanguage (rankPropertyMod p) ∈ P/poly) or naturalness (IsNatural) for odd primes p. Constructivity and P/poly-naturalness for p = 2 are proved in CslibFrontier.Computability.Circuit.Boolean.Razborov.Natural; odd-prime constructivity, naturalness, and CIKK learning remain open under #798.

Sources and variant. [Raz87] and [Smo87] establish the low-degree polynomial approximation method for AC⁰[p] over characteristic p; Razborov and Rudich, §3.2, p. 27 extract the rank property abstractly; Carmosino et al., Theorem 5.3 (p. 10:19) and p. 10:20 use an $\mathbb{F}_p$-rank property useful against AC⁰[p] for every prime p. This module formalizes a single-level square-matrix variant using the signed zero-sum matrix ∑_{x : x|_{I ∪ J} = 0} (-1)^{weight x} * h x (preserving both rank-factorization through the support of h and vanishing on low-degree functions for every prime p), threshold C(n, a) / 2, and level ⌈n / 2⌉ - ⌊√(n + 1)⌋ / 10.

Main definitions #

Main results #

References #

The signed zero-sum matrix over ZMod p #

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

The signed zero-sum matrix of h : (ι → Bool) → ZMod p at level a: rows and columns are the a-subsets of ι, and entry (I, J) is ∑_{x : x|_{I ∪ J} = 0} (-1)^{weight x} * h x.

theorem Cslib.Circuits.Boolean.Smolensky.zeroSumMatrixMod_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p a : ℕ) (h : (ι → Bool) → ZMod p) (I J : { I : Finset ι // I.card = a }) :
zeroSumMatrixMod p a h I J = ∑ x : ι → Bool with ∀ i ∈ ↑I ∪ ↑J, x i = false, (-1) ^ BitString.weight x * h x

Entries of the signed zero-sum matrix as signed sums over subcubes.

theorem Cslib.Circuits.Boolean.Smolensky.zeroSumMatrixMod_eq_sign_mul_subsetMobius {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p a : ℕ) (h : (ι → Bool) → ZMod p) (I J : { I : Finset ι // I.card = a }) :
zeroSumMatrixMod p a h I J = (-1) ^ (↑I ∪ ↑J)ᶜ.card * BitString.subsetMobius (fun (T : Finset ι) => h fun (i : ι) => decide (i ∈ T)) (↑I ∪ ↑J)ᶜ

Relation to the subset Möbius transform: zeroSumMatrixMod p a h I J = (-1)^{|(I ∪ J)ᶜ|} * subsetMobius h (I ∪ J)ᶜ.

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

The signed zero-sum matrix is additive.

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

The signed zero-sum matrix commutes with subtraction.

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

Low-degree functions over ZMod p have zero matrix whenever D + 2 * a < |ι|.

theorem Cslib.Circuits.Boolean.Smolensky.rank_zeroSumMatrixMod_le_card {ι : Type u_1} [Fintype ι] [DecidableEq ι] {p a : ℕ} [Fact (Nat.Prime p)] {h : (ι → Bool) → ZMod p} {E : Finset (ι → Bool)} (hE : ∀ x ∉ E, h x = 0) :

Support rank bound: over any field ZMod p, if h vanishes off E, then (zeroSumMatrixMod p a h).rank ≤ #E.

The signed identity witness: the signed zero-sum matrix at level a of the indicator of points of weight |ι| - a (exactly a zeros) is (-1)^{|ι| - a} • 1.

The $\mathbb{F}_p$-rank test: largeness ≥ 1/2 and Smolensky usefulness #

The $\mathbb{F}_p$-rank test at level a: f : BooleanFunction n passes when the rank of zeroSumMatrixMod p a (bitVal (ZMod p) ∘ f) is at least C(n, a) / 2.

Membership in rankTestMod.

The indicator of points of weight n - a (exactly a zeros) passes rankTestMod p n a with full rank C(n, a).

Largeness of the $\mathbb{F}_p$-rank test for every prime p: at least half of all n-bit Boolean functions pass rankTestMod p n a.

theorem Cslib.Circuits.Boolean.Smolensky.rankMod_mul_two_pow_le_size {n p : ℕ} [Fact (Nat.Prime p)] {f : BooleanFunction n} {C : Circuit Unbounded.extSignature n 1} (hC : C.Computes (Unbounded.extInterpretation (modGate p)) (single f)) {ℓ a : ℕ} (hℓ : 1 ≤ ℓ) (hd : ((p - 1) * ℓ) ^ C.depth + 2 * a < n) :
(zeroSumMatrixMod p a fun (x : Fin n → Bool) => BitString.bitVal (ZMod p) (f x)).rank * 2 ^ ℓ ≤ C.size * 2 ^ n

Usefulness of rankTestMod p against constant-depth MOD_p circuits: via Smolensky approximation over ZMod p, if a depth-d circuit computes f and ((p - 1) * ℓ)^d + 2 * a < n, then rank(M(f)) * 2^ℓ ≤ C.size * 2^n.

theorem Cslib.Circuits.Boolean.Smolensky.two_mul_two_pow_le_size_of_mem_rankTestMod {n p : ℕ} [Fact (Nat.Prime p)] {f : BooleanFunction n} {s : ℕ} (hs : 1 ≤ s) (h : 100 * s ^ 2 ≤ n + 1) (hf : f ∈ rankTestMod p n ((n + 1) / 2 - s)) {C : Circuit Unbounded.extSignature n 1} (hC : C.Computes (Unbounded.extInterpretation (modGate p)) (single f)) {ℓ : ℕ} (hℓ : 1 ≤ ℓ) (hd : ((p - 1) * ℓ) ^ C.depth + 2 ≤ 2 * s) :
2 * 2 ^ ℓ ≤ 5 * (n + 1) * C.size

Size–depth tradeoff for rankTestMod p at level ⌈n/2⌉ - s.

The $\mathbb{F}_p$-rank property along the middle-slice level #

The $\mathbb{F}_p$-rank property along the middle-slice level ⌈n / 2⌉ - ⌊√(n + 1)⌋ / 10.

@[simp]

On n inputs, rankPropertyMod p is rankTestMod p at level ⌈n / 2⌉ - ⌊√(n + 1)⌋ / 10.

theorem Cslib.Circuits.Boolean.Smolensky.two_mul_two_pow_le_size_of_mem_rankPropertyMod {p : ℕ} [Fact (Nat.Prime p)] {m d ℓ : ℕ} (hℓ : 1 ≤ ℓ) (hm : 100 * (((p - 1) * ℓ) ^ d + 1) ^ 2 ≤ m + 1) {f : BooleanFunction m} (hf : f ∈ rankPropertyMod p m) {C : Circuit Unbounded.extSignature m 1} (hC : C.Computes (Unbounded.extInterpretation (modGate p)) (single f)) (hCd : C.depth ≤ d) :
2 * 2 ^ ℓ ≤ 5 * (m + 1) * C.size

Size–depth tradeoff for rankPropertyMod p at level ⌈m / 2⌉ - ⌊√(m + 1)⌋ / 10.

Explicit polylogarithmic input length rankLengthMod p d x at which rankPropertyMod p rejects every constant-depth MOD_p circuit of depth ≤ d and size ≤ 2^x.

theorem Cslib.Circuits.Boolean.Smolensky.rankLengthMod_add_one_le {p : ℕ} [Fact (Nat.Prime p)] {d x : ℕ} (hx : 1 ≤ x) :
rankLengthMod p d x + 1 ≤ 401 * ((p - 1) * 2 ^ (4 * d * (Nat.log 2 p + 2) + 8)) ^ (2 * d) * x ^ (2 * d)

Polylogarithmic length bound: for x ≥ 1, rankLengthMod p d x + 1 is O_{p, d}(x^{2d}).

Explicit usefulness against constant-depth MOD_p circuits: at rankLengthMod p d x, no circuit of depth ≤ d and size ≤ 2^x computes a function in rankPropertyMod p.