Documentation

CslibFrontier.Computability.Circuit.Boolean.TCSubsetNC

TCⁱ ⊆ NCⁱ⁺¹ #

For the nonuniform gate-counted classes, a polynomial-size majority circuit of depth O((log n)^i) has an equivalent polynomial-size De Morgan circuit of depth O((log n)^(i+1)). A majority gate may read a wire arbitrarily many times. Unbounded.multCircuit records those multiplicities and bounds the number of distinct inputs by the input length plus the gate count. Small integer weights then replace the multiplicities, so the word width in the integer threshold simulation is polynomial in that number. AND, OR and NOT use their balanced formulas.

Main results #

theorem Cslib.Circuits.Boolean.Unbounded.exists_deMorgan_simulation_tc {n m : ℕ} (C : Circuit extSignature n m) :
∃ (D : Circuit Boolean.signature n m), D.eval Boolean.interpretation = C.eval (extInterpretation majority) ∧ D.size ≤ C.size * (70 * (n + C.size + 1) * ((n + C.size + 2) ^ 2 + 2) ^ 2) ∧ D.depth ≤ (9 + 2 * Nat.clog 2 ((n + C.size + 2) ^ 2 + 2) + 12 * Nat.clog 2 (n + C.size + 1)) * C.depth

De Morgan circuits simulate TC circuits: a TC circuit with n inputs, s gates and depth d has an equivalent De Morgan circuit with at most s · 70 (K + 1) ((K + 2) ^ 2 + 2) ^ 2 gates and depth at most (9 + 2 ⌈log₂ ((K + 2) ^ 2 + 2)⌉ + 12 ⌈log₂ (K + 1)⌉) d, where K = n + s.

For gate-counted nonuniform families, a polynomial-size majority circuit of depth O((log n)^i) on each input length has a polynomial-size De Morgan simulation of depth O((log n)^(i+1)), even when gates read the same wire arbitrarily many times.