MOD_q gates from majority gates: ACⁱ[q] ⊆ TCⁱ #
Over a basis containing the unbounded fan-in basis, the MOD_q function on n bits is the
disjunction, over the k ≤ n not divisible by q, of "exactly k bits are true", each of which is
two thresholds, so two majority gates on padded inputs (modCircuitOfMajority)
Chandra, Stockmeyer and Vishkin. With a single majority gate this
is a circuit of 8 n + 9 gates and depth five.
A MOD_q gate depends on how often it reads each wire, but only modulo q (for q = 0, only on
whether it reads it at all): after aggregating multiplicities (Unbounded.multCircuit), a gate
reading N distinct wires is a MOD_q function of at most max q 1 · N bits, wired from its
arguments (Unbounded.modMultCircuit). Replacing every gate of a polynomial-size circuit with
MOD_q gates, of depth d, gives a polynomial-size circuit with majority gates of depth at most
5 d: ACⁱ[q] ⊆ TCⁱ (ACMod_subset_TC) Vollmer, Chapter 4, in particular
AC⁰[q] ⊆ TC⁰ (AC0Mod_subset_TC0).
Main definitions #
Cslib.Circuits.Boolean.modCircuitOfMajority:MOD_qfrom a circuit for majority.Cslib.Circuits.Boolean.Unbounded.modMultCircuit: a circuit with majority gates for every operation of the basis withMOD_qgates and multiplicities.
Main results #
Cslib.Circuits.Boolean.computes_modCircuitOfMajority: the circuit computesMOD_q.Cslib.Circuits.Boolean.Unbounded.exists_majority_simulation_modGate: a circuit withMOD_qgates ofninputs,sgates and depthdhas an equivalent circuit with majority gates of at mosts (9 + 8 max q 1 · (n + s))gates and depth at most5 d.Cslib.Circuits.Boolean.ACMod_subset_TC: ACⁱ[q] ⊆ TCⁱ.Cslib.Circuits.Boolean.AC0Mod_subset_TC0: AC⁰[q] ⊆ TC⁰.
References #
- [A. K. Chandra, L. Stockmeyer, U. Vishkin, Constant depth reducibility] [CSV84]
- H. Vollmer, Introduction to Circuit Complexity
MOD_q is four deeper than the majority circuit.
The circuit computes MOD_q.
The MOD_q gate computes modCount q of the number of its true arguments.
The multiplicity of a wire that matters to a MOD_q gate: modulo q, and for q = 0 whether
it is read at all.
Instances For
A circuit with majority gates for each operation of the basis with MOD_q gates and
multiplicities: an operation of the unbounded fan-in basis is one gate, and a MOD_q gate is
modCircuitOfMajority on its arguments repeated with their multiplicities reduced by modMult.
Instances For
The circuit of an operation computes it.
The circuit of an operation reading N wires has at most 9 + 8 max q 1 · N gates.
The circuit of an operation has depth at most five.
Majority gates simulate MOD_q gates Vollmer, Chapter 4: a circuit with
MOD_q gates of n inputs, s gates and depth d has an equivalent circuit with majority gates
of at most s (9 + 8 max q 1 · (n + s)) gates and depth at most 5 d. Its gates are first made to
read their distinct wires with multiplicities (multCircuit), and then replaced by
modMultCircuit.
ACⁱ[q] ⊆ TCⁱ Vollmer, Chapter 4: polynomial-size circuits with MOD_q
gates of depth O((log n) ^ i) are simulated by polynomial-size circuits with majority gates of
depth O((log n) ^ i).