The canonical SYM ∘ AND circuit of a low-degree function #
Let c be an integer function of degree at most D on the cube T → Bool, for a finite set of
positions T. Its subset Möbius coefficients μ S = ∑_{U ⊆ S} (-1) ^ (#S - #U) c 1_U
(Cslib.BitString.subsetMobius) vanish on sets of more than D positions, and
c = ∑_S μ S · x^S (Cslib.BitString.eq_sum_subsetMobius_smul_monomial). Modulo M > 0, taking
every set S of at most D positions as an AND gate with multiplicity the least residue of μ S
modulo M (Cslib.Circuits.Boolean.SymAnd.mobiusGates) gives a multiset of AND gates whose
number of satisfied gates is congruent to c modulo M at every point. Applying a symmetric gate
to that number modulo M gives the canonical circuit Cslib.Circuits.Boolean.SymAnd.ofLowDegree:
it outputs out (c x mod M) (SymAnd.eval_ofLowDegree), with fan-in at most D and at most
M (|T| + 1) ^ D AND gates.
The circuit is determined by D, M, out and the values of c at the indicators of sets of at
most D positions, with no choice. Its gates give the existence form
SymAnd.exists_countP_modEq_of_mem_lowDegree, and it is the step from which the collapse of
modular towers (CslibFrontier.Computability.Circuit.Boolean.SymAnd.Collapse) builds its circuits.
Main definitions #
Cslib.Circuits.Boolean.SymAnd.mobiusGates: the AND gates with Möbius multiplicities moduloM.Cslib.Circuits.Boolean.SymAnd.ofLowDegree: the canonicalSYM ∘ ANDcircuit ofcmoduloM.
Main results #
Cslib.Circuits.Boolean.SymAnd.natCast_count_ofLowDegree_modEq: the number of satisfied gates iscmoduloM.Cslib.Circuits.Boolean.SymAnd.eval_ofLowDegree: the circuit computesout (c x mod M).Cslib.Circuits.Boolean.SymAnd.fanIn_ofLowDegree_le,Cslib.Circuits.Boolean.SymAnd.size_ofLowDegree_le: fan-in at mostD, size at mostM (|T| + 1) ^ D.Cslib.Circuits.Boolean.SymAnd.exists_countP_modEq_of_mem_lowDegree: low-degree integer functions are AND counts moduloM.
References #
The AND gates of c modulo M up to degree D: every set S of at most D positions, with
multiplicity the least residue modulo M of the subset Möbius coefficient of c at S.
Every gate of mobiusGates D M c reads at most D positions.
There are at most M (|T| + 1) ^ D gates: fewer than M copies of each set of at most D
positions.
The canonical SYM ∘ AND circuit of c modulo M up to degree D: the gates
mobiusGates D M c below the symmetric gate z ↦ out (z mod M).
The canonical gates count c modulo M. If c has degree at most D and M > 0, the
number of satisfied gates of ofLowDegree D M c out is congruent to c modulo M.
The number of satisfied gates modulo M is the least residue of c modulo M.
What the canonical circuit computes: out of the least residue of c x modulo M, for
c of degree at most D and M > 0.
The canonical circuit has fan-in at most D.
Low-degree integer functions are AND counts modulo M. For c of degree at most D on
the cube and M > 0, some multiset of at most M * (|T| + 1) ^ D sets of at most D positions
has, at every point, a number of satisfied sets congruent to c modulo M; the gates of
ofLowDegree are one.