Gates with arbitrary scalar activations and mixed capacity costs #
Every gate of a real-weight program with arbitrary scalar activations ℝ → Bool forms its own
scalar block. Given the values of earlier gates, an input-reading gate j applies its activation
(p.lines j).op.activate to t + c in its aggregated weighted input sum t, for a constant c
collecting the contributions of earlier gates. When its activation changes at most T j times,
the gate's block has capacity cost max 1 (4 * T j), while gates with zero aggregated input
weights are constant in the input sum and have cost 1.
Main definitions #
Cslib.Circuits.Boolean.WeightedThreshold.ActivationOp,Cslib.Circuits.Boolean.WeightedThreshold.activationSignature,Cslib.Circuits.Boolean.WeightedThreshold.activationInterpretation: real-weight gates with arbitrary scalar activationsℝ → Bool.Cslib.Circuits.Boolean.WeightedThreshold.ofWeightedThreshold: embedding of the weighted threshold signature into the activation signature.Cslib.Circuits.Boolean.WeightedThreshold.activationInputWeight,Cslib.Circuits.Boolean.WeightedThreshold.activationGateWeight,Cslib.Circuits.Boolean.WeightedThreshold.activationInputGates: aggregated wire coefficients and input-reading gates.Cslib.Circuits.Boolean.WeightedThreshold.activationBlockDecomposition: gate-by-gate scalar block decomposition.
Main results #
Cslib.Circuits.Boolean.WeightedThreshold.cost_activationBlockDecomposition: exact cost∏ j ∈ activationInputGates p, max 1 (4 * T j).Cslib.Circuits.Boolean.WeightedThreshold.two_pow_lt_of_activations,Cslib.Circuits.Boolean.WeightedThreshold.circuit_two_pow_lt_of_activations: the C4 mixed activation capacity bound.
References #
Post-composition preserves a change bound.
A real-weight linear-combination operation with an arbitrary scalar activation.
- arity : ℕ
The number of argument slots.
The coefficient of each argument slot.
The scalar activation applied to the weighted sum.
Instances For
The signature of real-weight gates with arbitrary scalar activations.
Instances For
A gate applies its scalar activation to its weighted sum.
Instances For
A threshold gate is the activation t ↦ decide (threshold ≤ t).
Instances For
The weighted threshold basis embeds gate for gate into the activation basis.
Instances For
Embedding a weighted threshold gate into the activation basis preserves its semantics.
The combined coefficient of an actual wire in an activation line, summing all slots that read it.
Instances For
Regrouping argument slots by actual wire preserves their weighted sum.
An activation line's value splits into its aggregated input and gate contributions.
The direct coefficient of an original input in an activation-program gate.
Instances For
The coefficient of an internal gate in another gate of an activation program.
Instances For
A native activation-program gate applies its activation to the sum of its aggregated input and gate contributions.
A gate has zero coefficient on its own output and on later gate outputs.
The gates of an activation program with a nonzero aggregated direct-input coefficient.
Instances For
Every input coefficient vanishes at a gate outside activationInputGates p.
Revealing the gate evaluation of an activation program one gate at a time gives a scalar
block decomposition with per-gate change bounds T.
Instances For
Each input-reading gate j costs max 1 (4 * T j), and every other gate costs 1.
C4: mixed activation gate costs. If an activation program computes f through a Boolean
readout of its gate values, and each input-reading gate j has activation changing at most T j
times, then 2 ^ n < 4 * K ^ 2 * ∏ j ∈ activationInputGates p, max 1 (4 * T j).
The C4 mixed-activation bound for a single-output circuit whose output selects a gate.