ACC⁰ circuits are quasi-polynomial SYM ∘ AND circuits #
Theorem (Yao; Beigel–Tarui [BeigelTarui1994, Theorem 1.1]). A circuit of size s and depth
d on n inputs with NOT, unbounded AND/OR and MOD_m gates, m > 0
(Unbounded.extInterpretation (modGate m)), computes the same function as a SYM ∘ AND circuit
(Circuits.Boolean.SymAnd) of fan-in at most (2B) ^ (5 ^ (d (m + 2))) and at most
2 ^ ((2B) ^ (5 ^ (d (m + 2)))) AND gates, where B = 3 ((m + 1) ^ 2 + ⌊log₂ (n + s)⌋ + 2)
(Circuit.exists_symAnd_eval_eq). For fixed d and m this is fan-in polylog(n + s) and size
2 ^ polylog(n + s), so every language of AC0Mod m and of ACC0 is decided by SYM ∘ AND
circuits of polylogarithmic fan-in and quasi-polynomial size
(exists_symAnd_of_mem_AC0Mod, exists_symAnd_of_mem_ACC0).
Construction. Fix a seed r of the binary field 𝔽_{2^κ} (Cslib.BinaryField), with
κ = 2 ⌊log₂ (n + s)⌋ + 4. Each seed runs its own tower of prime-modulus polynomial layers
(Circuits.Boolean.ModPolyLayer) on one slot per wire of the circuit and one auxiliary slot per
gate k, prime p and digit i. Every gate is evaluated by the polynomials below, and d rounds
of the following layers make every gate of depth at most d correct:
- for each prime
p ≤ m, aMOD_player computing, for each gatekwithp ^ (i + 1) ∣ m, the digit testC(c_k, p ^ i) ≢ 0 (mod p)of the numberc_kof true arguments of gatek, through the sum of itsp ^ i-element monomials, of degreep ^ i < m(Cslib.BitString.sum_powersetCard_monomial); - one
MOD_2layer updating every gate: NOT is1 - y; OR is the seeded testCslib.BitString.orTeston the vectorsr ^ idx wof its argument wires, of degreeκ, and AND its dual;MOD_mis the OR of its digit tests, byc % m ≠ 0 ↔ ∃ p i, p ^ (i + 1) ∣ m ∧ p ∤ C(c, p ^ i)(Nat.mod_ne_zero_iff_exists_not_dvd_choose, [BeigelTarui1994, Lemma 2.1]).
The seeded OR test is wrong for a gate only if the seed is a root of a nonzero polynomial of
degree below n + s (Cslib.BitString.card_filter_sum_pow_eq_zero_le), so on every input fewer
than half of the seeds are bad. The majority over the seeds of the output slot is a
SYM ∘ AND circuit of fan-in 1 on top of the towers; it collapses through them
(SymAnd.collapseRun, from [BeigelTarui1994, Lemma 2.8]), and restricting the non-input slots to
their initial value false (SymAnd.restrict) gives a circuit over the inputs.
Beigel and Tarui isolate a true argument of an OR gate by the Valiant–Vazirani lemma
[BeigelTarui1994, Lemma 2.3]; the seeded OR test here instead uses the powering construction of
Alon, Goldreich, Håstad and Peralta [AlonGoldreichHastadPeralta1992,
§5, Construction 3 and Proposition 3, June 14, 1992, p. 10]: a seed is one
element of 𝔽_{2^κ}, κ = O(log (n + s)) bits, and every test has degree κ. The source handles
MOD_m through stratified circuits with one modulus m per level [BeigelTarui1994, Section 2.2];
here each MOD_m gate becomes MOD_p digit tests, so every layer of the tower has a prime modulus.
The exponent 5 ^ (d (m + 2)) is not optimized.
The circuit is canonical: Circuit.toSymAnd C m is built from C and m by the steps above,
with no witness taken from an existence proof (Circuit.eval_toSymAnd, Circuit.fanIn_toSymAnd_le,
Circuit.size_toSymAnd_le): the seed field uses its least irreducible modulus and each collapse
uses the canonical Möbius circuit. Equality in the seed field is decided classically, so the
definition is not executable as a Lean term. Williams's algorithm needs the circuit to be
constructed in time 2 ^ polylog(s) [Wil14]; that computation is not formalized here.
Main definitions #
Cslib.Circuits.Circuit.toSymAnd: the explicitSYM ∘ ANDcircuit of an ACC⁰ circuit.
Main results #
Cslib.Circuits.Circuit.eval_toSymAnd,Cslib.Circuits.Circuit.fanIn_toSymAnd_le,Cslib.Circuits.Circuit.size_toSymAnd_le: what it computes, and its fan-in and size bounds.Cslib.Circuits.Circuit.exists_symAnd_eval_eq: an ACC⁰ circuit is aSYM ∘ ANDcircuit with explicit bounds.Cslib.Circuits.Boolean.exists_symAnd_of_mem_AC0Mod,exists_symAnd_of_mem_ACC0: languages ofAC0Mod mandACC0haveSYM ∘ ANDcircuits of polylogarithmic fan-in and quasi-polynomial size.
References #
The seeds: the binary field with 2 ^ (2ℓ + 2) elements.
The power basis of the seeds over 𝔽₂.
An injective numbering of the wires by [0, n + g).
The wire numbering is injective.
The layers #
The integer polynomial evaluating gate k with line L from the slots u of seed r: NOT is
1 - y; OR is the seeded OR test and AND its dual; MOD_m is the OR of its digit tests.
The sum of the e-element monomials of the arguments of L, which is C(c, e) for c the
number of true arguments.
The layer of one seed.
All seeds side by side: the layer on F × S acting on each row by the layer of its seed.
d rounds.
Correctness for a good seed #
The layers of one round at seed r.
A seed is good on input x when it is good for the arguments of every gate, under their
values and under their negations.
Instances For
One round. For a good seed, a round makes every wire of depth at most j + 1 correct.
The tower of a good seed. After d rounds from the initial values, every wire of depth at
most d is correct.
Counting the good seeds #
The majority over the seeds #
top ℓ o has one AND gate per seed.
The majority is correct when it agrees with b on the good seeds and fewer than half of
the seeds are bad.
Degrees #
The MOD_2 layer polynomials have degree at most 2ℓ + 2 + (m + 1) ^ 2.
The digit layer polynomials have degree at most m, for m > 0.
Every layer of the towers has a prime modulus at most m + 2 and slot polynomials of degree
at most 2ℓ + 2 + (m + 1) ^ 2.
Size bounds #
The theorem #
The explicit SYM ∘ AND circuit of a program P with output wire o, for MOD_m gates,
seeds of 2ℓ + 2 bits and d rounds: the majority over the seeds of slot o, collapsed through
the towers (SymAnd.collapseRun with bound 3 ((m + 1) ^ 2 + ℓ + 1)) and restricted to the
inputs.
The explicit SYM ∘ AND circuit of an ACC⁰ circuit: compile with seeds of
2 (⌊log₂ (n + s)⌋ + 1) + 2 bits and d rounds, where s is the size and d the depth of C.
It is specified only for m > 0 (Circuit.eval_toSymAnd); for m = 0 it is well-typed but no
theorem describes it.
What the explicit circuit computes (Yao; Beigel–Tarui [BeigelTarui1994, Theorem 1.1]):
for m > 0, C.toSymAnd m computes the function of the circuit C with NOT, unbounded AND/OR and
MOD_m gates.
The explicit circuit has fan-in at most (2B) ^ (5 ^ (d (m + 2))), where
B = 3 ((m + 1) ^ 2 + ⌊log₂ (n + s)⌋ + 2).
The explicit circuit has at most 2 ^ ((2B) ^ (5 ^ (d (m + 2)))) AND gates, where
B = 3 ((m + 1) ^ 2 + ⌊log₂ (n + s)⌋ + 2).
ACC⁰ circuits are quasi-polynomial SYM ∘ AND circuits (Yao; Beigel–Tarui
[BeigelTarui1994, Theorem 1.1]). A circuit C with NOT, unbounded AND/OR and MOD_m gates,
m > 0, of depth d, with s gates on n inputs, computes the same function as a SYM ∘ AND
circuit of fan-in at most (2B) ^ (5 ^ (d (m + 2))) with at most 2 ^ ((2B) ^ (5 ^ (d (m + 2))))
AND gates, where B = 3 ((m + 1) ^ 2 + ⌊log₂ (n + s)⌋ + 2). The circuit is C.toSymAnd m.
ACC⁰ has quasi-polynomial SYM ∘ AND circuits (Yao; Beigel–Tarui
[BeigelTarui1994, Theorem 1.1]). Every language of ACC0 is decided at every length n by
SYM ∘ AND circuits of fan-in at most (c (⌊log₂ n⌋ + 1)) ^ c with at most
2 ^ ((c (⌊log₂ n⌋ + 1)) ^ c) AND gates, for a constant c depending on the language.
AC⁰[m] has quasi-polynomial SYM ∘ AND circuits. Every language of AC0Mod m is
decided at every length n by SYM ∘ AND circuits of fan-in at most (c (⌊log₂ n⌋ + 1)) ^ c with
at most 2 ^ ((c (⌊log₂ n⌋ + 1)) ^ c) AND gates, for a constant c depending on the language. The
case m = 0 goes through AC0Mod 0 ⊆ ACC0 (AC0Mod_subset_ACC0).