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 #
Cslib.Circuits.Boolean.Unbounded.modMultDeMorganCircuit: logarithmic-depth fan-in-two simulation of a singleMOD_qmultiplicity operation.Cslib.Circuits.Boolean.Unbounded.modMultUnboundedCircuit: logarithmic-depth unbounded-fan-in simulation of a singleMOD_qmultiplicity operation.Cslib.Circuits.Boolean.SIZEMod: languages decided byMOD_qcircuits of size at mosts n.
Main results #
Cslib.Circuits.Boolean.Unbounded.exists_deMorgan_simulation_modGate,Cslib.Circuits.Boolean.Unbounded.exists_unbounded_simulation_modGate: gate-by-gate simulations ofMOD_qcircuits with fan-in two and with unbounded fan-in.Cslib.Circuits.Boolean.ACMod_subset_NC_succ,Cslib.Circuits.Boolean.AC0Mod_subset_NC_one,Cslib.Circuits.Boolean.ACC0_subset_NC_one: ACⁱ[q] ⊆ NCⁱ⁺¹ and ACC⁰ ⊆ NC¹.Cslib.Circuits.Boolean.ACMod_subset_AC_succ,Cslib.Circuits.Boolean.ACC0_subset_AC_one,Cslib.Circuits.Boolean.ACC0_subset_PPoly.Cslib.Circuits.Boolean.SIZEMod_subset_SIZE: simulatingSIZEMod qin De MorganSIZE.
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.
modMultUnboundedCircuit q op computes op under Unbounded.interpretation.
Polynomial size bound for modMultUnboundedCircuit q op.
Logarithmic depth bound for modMultUnboundedCircuit q op.
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.
modMultDeMorganCircuit q op computes op.
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.
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.
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)).