The Razborov–Smolensky lower bound #
MOD_p is not in AC⁰[q] for any two distinct primes p ≠ q (modGate_notMem_AC0Mod,
compl_modGate_notMem_AC0Mod): constant-depth, polynomial-size circuits of negations, unbounded
fan-in conjunctions and disjunctions, and MOD_q gates do not compute MOD_p [Raz87],
[Smo87]. The library's modGate p m x accepts when the number of true inputs is not
divisible by p (mem_ofSlices_modGate_iff); the complement (Language.ofSlices (modGate p))ᶜ
is the textbook convention rejecting when the count is nonzero mod p
(mem_compl_ofSlices_modGate_iff). Since modGate 2 = parity, the p = 2 special case is
parity_notMem_AC0Mod.
For the general finite tradeoff (two_mul_two_pow_le_size_of_computes_modGate), an AC⁰[q] circuit
of depth d computing modGate p on n bits is approximated in degree
D = ((q - 1) ℓ) ^ d over the algebraic closure F of ZMod q with error rate size / 2 ^ ℓ
(exists_lowDegree_approx). Fixing a primitive p-th root of unity ω ∈ F and padding
r ∈ [1, p) additional true bits onto m = n - (p - 1) inputs turns the approximator into a
degree-D polynomial agreeing with ω ^ weight x whenever all p - 1 shifted evaluations
agree, yielding 2 · 2 ^ ℓ ≤ 5 (p - 1) 2 ^ (p - 1) · size when
100 (D + 1)² + (p - 1) ≤ n + 1 via BitString.card_agree_phaseChar_le and
ten_mul_card_filter_card_le_le. For parity against an odd prime
(two_mul_two_pow_le_size_of_computes_parity), working directly over ZMod p preserves the sharper
constant 2 · 2 ^ ℓ ≤ 5 · size under 100 (D + 1)² ≤ n + 1.
Main definitions #
Cslib.Circuits.Boolean.Smolensky.invertibleTwo:2is invertible inZMod pfor an odd primep.
Main results #
Cslib.Circuits.Boolean.Smolensky.mem_ofSlices_modGate_iff,Cslib.Circuits.Boolean.Smolensky.mem_compl_ofSlices_modGate_iff: characterization ofLanguage.ofSlices (modGate p)and its complement in terms ofList.count true % p.Cslib.Circuits.Boolean.Smolensky.two_mul_two_pow_le_size_of_computes_modGate: the finite size–depth tradeoff formodGate pagainst AC⁰[q] circuits for distinct primesp ≠ q.Cslib.Circuits.Boolean.Smolensky.modGate_notMem_AC0Mod,Cslib.Circuits.Boolean.Smolensky.compl_modGate_notMem_AC0Mod:MOD_pand its complement are not in AC⁰[q] for any distinct primesp ≠ q.Cslib.Circuits.Boolean.Smolensky.two_mul_two_pow_le_size_of_computes_parity,Cslib.Circuits.Boolean.Smolensky.parity_notMem_AC0Mod: the parity size–depth tradeoff and membership separation for odd primesp.
References #
Language.ofSlices (modGate p) accepts bit strings whose number of true entries is not
divisible by p.
The complement (Language.ofSlices (modGate p))ᶜ accepts bit strings whose number of true
entries is divisible by p, matching the MOD_p convention where multiples of p are accepted.
Padding helpers and shared counting bound #
Finite size–depth tradeoffs and separation theorems #
The general Razborov–Smolensky size–depth tradeoff. A circuit of the AC⁰[q] basis of
depth d computing modGate p on n bits, for distinct primes p ≠ q, has size at least
2 * 2 ^ ℓ / (5 * (p - 1) * 2 ^ (p - 1)) whenever 100 (((q - 1) ℓ) ^ d + 1)² + (p - 1) ≤ n + 1.
The Razborov–Smolensky size–depth tradeoff for parity. A circuit of the AC⁰[p] basis of
depth d computing the parity of n bits, for an odd prime p, has size at least 2 ^ ℓ · 2 / 5
whenever 100 (((p - 1) ℓ) ^ d + 1)² ≤ n + 1.
Parity is not in AC⁰[p] for an odd prime p (Razborov–Smolensky), as the q = 2 case
of modGate_notMem_AC0Mod.