Threshold circuits #
Basis.threshold consists of unbounded-fan-in unweighted threshold gates.
Cutoff zero is constant true, cutoff one is disjunction, cutoff equal to
fan-in is conjunction, and cutoff n / 2 + 1 is strict majority.
The exact basis map Basis.andOrToThresholdHom shows that every unbounded
AND/OR circuit becomes a threshold circuit without changing wiring, size,
depth, negation flags, or semantics.
Cutoff equal to fan-in computes conjunction.
Cutoff one computes disjunction, including false at arity zero.
Exact, arity-dependent embedding of unbounded AND/OR into threshold gates.