Documentation

CslibFrontier.Computability.Circuit.Boolean.ACC0.Simulation

Simulation of MOD_q circuits in AC¹, NC¹, and P/poly #

A MOD_q gate reading k wires is a symmetric function of them, so it has a De Morgan circuit of fan-in two with O(k²) gates and depth O(log k) (symmetricDeMorganCircuit). A gate may read a wire many times, but only the multiplicity modulo q matters, so after aggregating multiplicities (Unbounded.multCircuit) a gate of a circuit with n inputs and s gates is a MOD_q function of at most max q 1 · (n + s) bits. Replacing every MOD_q gate by the symmetric circuit and every conjunction and disjunction by a balanced tree (Unbounded.modMultDeMorganCircuit) turns a circuit of depth d into a De Morgan circuit of polynomial size and depth O(log (max q 1 · (n + s))) · d (Unbounded.exists_deMorgan_simulation_modGate). For polynomial-size circuits this gives ACⁱ[q] ⊆ NCⁱ⁺¹ (ACMod_subset_NC_succ), and so ACC⁰ ⊆ NC¹ (ACC0_subset_NC_one) Arora and Barak, Chapter 13, Exercise §4. All classes are nonuniform.

Replacing the majority gate in modCircuitOfMajority by the logarithmic-depth De Morgan majority circuit (majorityDeMorganCircuit) simulates each operation of the MOD_q multiplicity basis over Unbounded.signature in polynomial size and logarithmic depth (Unbounded.modMultUnboundedCircuit, Unbounded.exists_unbounded_simulation_modGate): ACⁱ[q] ⊆ ACⁱ⁺¹ (ACMod_subset_AC_succ) and ACC0 ⊆ AC 1 ⊆ PPoly (ACC0_subset_AC_one, ACC0_subset_PPoly). The De Morgan simulation also bounds unbounded-depth MOD_q circuits by De Morgan circuits (SIZEMod_subset_SIZE).

Main definitions #

Main results #

References #

A circuit over the unbounded fan-in basis simulating each operation of the MOD_q multiplicity basis, using majorityDeMorganCircuit mapped into Unbounded.signature inside modCircuitOfMajority.

theorem Cslib.Circuits.Boolean.Unbounded.exists_unbounded_simulation_modGate {n m : ℕ} (q : ℕ) (C : Circuit extSignature n m) :
∃ (D : Circuit signature n m), D.eval interpretation = C.eval (extInterpretation (modGate q)) ∧ D.size ≤ C.size * (2100 * (max q 1 * (n + C.size) + 1) ^ 3) ∧ D.depth ≤ (6 + 23 * Nat.clog 2 (2 * max q 1 * (n + C.size) + 3)) * C.depth

Unbounded fan-in circuits simulate MOD_q gates in logarithmic depth: a circuit with MOD_q gates of n inputs, s gates and depth d has an equivalent circuit over the unbounded fan-in basis of at most 2100 * s * (max q 1 * (n + s) + 1) ^ 3 gates and depth at most (6 + 23 * ⌈log₂ (2 * max q 1 * (n + s) + 3)⌉) * d.

A De Morgan circuit of fan-in two simulating each operation of the MOD_q multiplicity basis: a balanced tree for a conjunction or a disjunction, and for a MOD_q gate the symmetric circuit symmetricDeMorganCircuit on its arguments repeated with their multiplicities reduced by modMult.

An operation reading a wires has a De Morgan circuit of at most 70 (max q 1 · a + 1) ^ 2 gates.

An operation reading a wires has a De Morgan circuit of depth at most 2 + 21 ⌈log₂ (max q 1 · a + 1)⌉.

Fan-in two simulates MOD_q gates in logarithmic depth: a circuit with MOD_q gates of n inputs, s gates and depth d has an equivalent De Morgan circuit of fan-in two with at most 70 s (max q 1 · (n + s) + 1) ^ 2 gates and depth at most (2 + 21 ⌈log₂ (max q 1 · (n + s) + 1)⌉) d.

ACⁱ[q] ⊆ ACⁱ⁺¹: polynomial-size circuits with MOD_q gates of depth O((log n) ^ i) are simulated by polynomial-size circuits over the unbounded fan-in basis of depth O((log n) ^ (i + 1)).

AC⁰[q] ⊆ AC¹.

ACⁱ[q] ⊆ NCⁱ⁺¹: polynomial-size circuits with MOD_q gates of depth O((log n) ^ i) are simulated by polynomial-size De Morgan circuits of fan-in two and depth O((log n) ^ (i + 1)).

AC⁰[q] ⊆ NC¹.

ACC⁰ ⊆ NC¹ Arora and Barak, web draft 2007-01-08, Chapter 13, Exercise §4, printed p. 252 / PDF p. 268: every language decided by polynomial-size, constant-depth circuits with negations and unbounded fan-in AND, OR and MOD_q gates, for a fixed modulus q, is decided by polynomial-size De Morgan circuits of fan-in two and depth O(log n). Both classes are nonuniform. A circuit with gates for several moduli is one with the single modulus their product, since a MOD_m gate is a MOD_{m k} gate reading each wire k times (modGate_mul_right).

AC⁰[q] ⊆ P/poly for every modulus q.

Some language over Bool is not in ACC⁰ (by Shannon's counting argument and ACC0 ⊆ PPoly).

Unbounded-depth MOD_q circuit size classes (SIZEMod) #

The class of languages over Bool decided at every input length n by circuits over the AC⁰[q] basis (Unbounded.extInterpretation (modGate q)) of size at most s n (of arbitrary depth).

SIZEMod q is monotone in the size bound.

theorem Cslib.Circuits.Boolean.SIZEMod_subset_SIZE (q c k : ℕ) :
(SIZEMod q fun (n : ℕ) => c * (n + 1) ^ k) ⊆ SIZE fun (n : ℕ) => 70 * max q 1 ^ 2 * (c + 1) ^ 3 * (n + 1) ^ (3 * (k + 1))

Simulating SIZEMod q in De Morgan SIZE: a circuit with MOD_q gates of size at most c * (n + 1) ^ k is simulated by a fan-in-two De Morgan circuit of size at most 70 * (max q 1) ^ 2 * (c + 1) ^ 3 * (n + 1) ^ (3 * (k + 1)).