Documentation

CslibFrontier.Computability.Circuit.Boolean.SymmetricNC1

Symmetric functions in logarithmic depth #

A Boolean function of k bits is symmetric when it depends only on the number of true bits, that is, it is x ↦ g (weight x) for some g : ℕ → Bool. Such a function has a De Morgan circuit of fan-in two with O(k²) gates and depth O(log k) (symmetricDeMorganCircuit): the carry-save circuit weightCircuit k writes the weight in binary with w = ⌈log₂ (k + 1)⌉ bits in depth O(log k), and the disjunction of the minterms of the accepted weights j ≤ k reads it, in depth 1 + ⌈log₂ w⌉ + ⌈log₂ (k + 1)⌉ Vollmer, Chapter 4.

MOD_q gates are symmetric, so this simulates them in logarithmic depth (Cslib.Circuits.Boolean.Unbounded.modMultDeMorganCircuit), the step from ACC⁰ to NC¹.

Main definitions #

Main results #

References #

Symmetric functions in logarithmic depth: a De Morgan circuit of fan-in two computing x ↦ g (weight x) on k bits. It writes the weight in binary (weightCircuit k) and tests it against the accepted weights j ≤ k by a balanced disjunction of minterms.

symmetricDeMorganCircuit k g has at most 70 (k + 1)² gates.

symmetricDeMorganCircuit k g has depth at most 2 + 21 ⌈log₂ (k + 1)⌉.