The basis of threshold gates #
The threshold gate Th^m_j of m arguments says that at least j of them are true
(Cslib.threshold m j). The threshold gates of every arity and every cutoff, together with
negation, form the basis of threshold circuits Hajnal et al., Section 2. Here the
gates are unweighted: each of the m arguments counts once. A circuit may wire one value to
several arguments of a gate, which counts it that many times, so positive integer weights cost no
extra gates; a gate with weights ±1 is a threshold gate reading some of its arguments negated.
As for AC⁰ circuits over the unbounded fan-in basis, negations are free in the depth that counts
threshold gates (Threshold.thresholdCost).
Cutoff 0 is the constant true, a cutoff above the arity the constant false
(Cslib.threshold_zero_right, Cslib.threshold_eq_false_of_lt), cutoff 1 the disjunction and
cutoff m the conjunction of m arguments (Cslib.threshold_one_right, Cslib.threshold_self).
So the unbounded fan-in basis maps into the threshold basis keeping the meaning of every operation
(Threshold.ofUnbounded), and its AND/OR depth becomes the threshold depth
(Threshold.thresholdCost_ofUnbounded). The majority gate of m arguments is the threshold gate
Th^m_⌈m/2⌉ (Cslib.majority), so the basis of TC⁰ maps into the threshold basis too
(Threshold.ofMajority).
Main definitions #
Cslib.Circuits.Boolean.Threshold.Op,Cslib.Circuits.Boolean.Threshold.Op.arity,Cslib.Circuits.Boolean.Threshold.signature: negation, and the threshold gates of every arity and cutoff.Cslib.Circuits.Boolean.Threshold.interpretation: their Boolean meaning.Cslib.Circuits.Boolean.Threshold.thresholdCost: the costs of the threshold depth, in which negations are free.Cslib.Circuits.Boolean.Threshold.ofUnboundedOp,Cslib.Circuits.Boolean.Threshold.ofUnbounded: the unbounded fan-in basis inside the threshold basis.Cslib.Circuits.Boolean.Threshold.ofMajorityOp,Cslib.Circuits.Boolean.Threshold.ofMajority: the basis of TC⁰, with majority gates, inside the threshold basis.
Main results #
Cslib.Circuits.Boolean.Threshold.preserves_ofUnbounded: conjunctions and disjunctions are threshold gates.Cslib.Circuits.Boolean.Threshold.thresholdCost_ofUnbounded: the AND/OR depth is the threshold depth.Cslib.Circuits.Boolean.Threshold.preserves_ofMajority: majority gates are threshold gates.
References #
The arity of an operation.
The signature of negation and of the threshold gates. It is reducible, so that case analysis on its operations sees their arities.
The Boolean meaning of the operations.
Instances For
The threshold-basis interpretation of .not is Boolean negation of its single argument.
The threshold-basis interpretation of .threshold m j is Cslib.threshold m j.
The cost of an operation in the threshold depth: negations are free. With these costs,
Circuit.depthWith is the largest number of threshold gates on a path, as
Unbounded.andOrCost counts the AND and OR gates of circuits over the unbounded fan-in basis.
Negation has thresholdCost equal to 0.
Every threshold gate .threshold m j has thresholdCost equal to 1.
Every operation in the threshold basis has thresholdCost at most 1.
The operations of the unbounded fan-in basis as threshold gates: the conjunction of m
arguments is Th^m_m and their disjunction is Th^m_1.
The unbounded fan-in basis inside the threshold basis.
Instances For
ofUnbounded acts on operations as ofUnboundedOp.
Conjunctions and disjunctions are threshold gates.
The AND/OR depth of a circuit over the unbounded fan-in basis is the threshold depth of its translation.
The operations of the basis of TC⁰ as threshold gates: the majority gate of m arguments is
Th^m_⌈m/2⌉.
The basis of TC⁰, the unbounded fan-in basis with majority gates, inside the threshold basis.
Instances For
ofMajority acts on operations as ofMajorityOp.
Majority gates are threshold gates.