Weighted threshold circuits and their input-reading transcripts #
Real-weight threshold gates form a signature for CSLib's existing Program and Circuit.
A gate returns true exactly when its weighted sum is at least its threshold. The model allows
arbitrary real coefficients, repeated argument wires, and nullary gates.
Coefficients are aggregated by actual wire before determining which gates read original inputs. In particular, repeated weights may cancel. The values of these input-reading gates determine all internal gate values. Circuit outputs are therefore determined when they select gate wires; an output selecting an original input is not covered by that conclusion.
These are semantic results. Comparing arbitrary real numbers is noncomputable, and this module does not assert an algorithm for evaluating rationally encoded circuits.
Main definitions #
Cslib.Circuits.Boolean.WeightedThreshold.signature: the weighted threshold basis.Cslib.Circuits.Boolean.WeightedThreshold.inputGates: gates with a nonzero aggregated coefficient on an original input.Cslib.Circuits.Boolean.WeightedThreshold.transcript: the values of these gates.
Main results #
Cslib.Circuits.Boolean.WeightedThreshold.eval_gate_eq: the dense gate equation, with repeated wire coefficients aggregated.Cslib.Circuits.Boolean.WeightedThreshold.eval_eq_of_transcript_eq: the restricted transcript determines every internal gate value.Cslib.Circuits.Boolean.WeightedThreshold.circuit_eval_eq_of_transcript_eq: the corresponding statement for circuits whose designated outputs are gates.
References #
- [Threshold Circuits as Decision Trees and Finite-State Programs, Section 3] [26]
The signature of real-weight threshold gates.
Instances For
A gate is true exactly when its weighted sum is at least its threshold.
Instances For
Unweighted thresholds have unit coefficients, and negation has coefficient -1 and
threshold zero.
Instances For
The existing unweighted threshold basis embeds gate for gate.
Instances For
Translating the existing threshold basis preserves its Boolean interpretation.
A line's value splits into its aggregated input and gate contributions.
A native program gate satisfies the usual dense threshold equation. Coefficients of the current gate and of later gates are zero by the program's topological order.
Every input coefficient vanishes at a gate outside the input-reading set.
The restricted activation transcript, indexed by the input-reading gates.
Instances For
Agreement on input-reading gates before a given bound forces agreement on every gate before that bound.
Agreement on all input-reading gates forces agreement on every gate.
The restricted transcript determines the complete gate valuation.
Gate-valued designated outputs are determined by the restricted transcript. The output hypothesis is necessary: native circuits may select original inputs without any gates.