Unambiguous transcript cells and quadratic-potential unique-sink representations #
Every straight-line threshold program in strict unit-margin normal form (StrictMarginProgram),
where each gate i has score
Q_i(x, z) = ∑ a, a_{i, a} x_a + ∑ j < i, b_{i, j} z_j - θ_i with |Q_i(x, z)| ≥ 1 on all
Boolean assignments and outputs true iff 0 < Q_i(x, z), admits two exact characterizations of
its gate transcript (StrictMarginProgram.eval):
Unambiguous cells, coordinatewise dominance, and unique-extension ILP (Section 10 of
[ThresholdCircuitRepresentations2026]): For a putative transcriptz : Fin g → Boolwith signσ_i = boolSign (z i) ∈ {-1, 1}, the consistency cell predicate∀ i, 1 ≤ σ_i * Q_i(x, z)holds if and only ifz = P.eval x(inTranscriptCell_iff_eq_eval). The cells therefore partition the input cube (∃! z, P.inTranscriptCell x z,existsUnique_inTranscriptCell). Across any input splitU, cell membership is equivalent to coordinatewise dominancerightDemand ≤ leftSupplyin dimensiong(inTranscriptCell_iff_dominance), and given upper bounds|Q_i(x, z)| ≤ M_i, to the linear inequalities1 - (M_i + 1)(1 - z_i) ≤ Q_i(x, z) ≤ -1 + (M_i + 1) z_i(ilpValid_iff_eq_eval).Quadratic Boolean potential and unique sinks on cube faces (Section 11, Theorem 11.1 of
[ThresholdCircuitRepresentations2026]): Defining positive priorities backwards byλ_i = 1 + ∑_{j > i} λ_j |b_{j, i}|(priority) and the quadratic Boolean energyE_x(z) = - ∑_i λ_i z_i Q_i(x, z)(energy), flipping coordinateifromfalsetotruechangesE_xby-λ_i Q_i(x, z) - ∑_{j > i} λ_j b_{j, i} z_j(energy_update_true_sub_false). Because the later-gate sum has magnitude at mostλ_i - 1while|λ_i Q_i(x, z)| ≥ λ_i, the energy-decreasing direction of every cube edge at coordinateiagrees strictly (by at least1) with gatei's local threshold rule (energy_le_update_not_iff). Consequently, on every subcube face(fixed, val), there is a unique sink under single-coordinate flips, equal to the face-restricted topological evaluation (isSinkOnFace_iff_eq_faceEval,existsUnique_isSinkOnFace), and a topological sweep reaches it ingcoordinate steps (sweep_eq_faceEval).
Main definitions #
Cslib.Circuits.Boolean.WeightedThreshold.boolSign:{false, true} → {-1, 1} ⊂ ℝ.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram: straight-line threshold program with strictly lower-triangular gate weights and unit score margin|Q_i(x, z)| ≥ 1.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.score,.sweep,.faceEval,.eval: gate scores, topological coordinate sweep, face evaluation, and full evaluation.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.inTranscriptCell,.leftSupply,.rightDemand,.ilpValid: transcript cell, split-dominance vectors, and ILP inequalities.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.priority,.energy,.IsSinkOnFace: backwards positive priorities, quadratic Boolean energy, and cube-face sinks.
Main results #
Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.inTranscriptCell_iff_eq_eval,.existsUnique_inTranscriptCell: unambiguous transcript cell characterization and partition.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.inTranscriptCell_iff_dominance,.ilpValid_iff_eq_eval: coordinatewise dominance and unique-extension ILP characterizations.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.energy_update_true_sub_false: exact coordinate-flip energy difference (equation (27)).Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.isSinkOnFace_iff_eq_faceEval,.existsUnique_isSinkOnFace,.isSink_iff_eq_eval: unique sink on every cube face and on the whole cube (Theorem 11.1).Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.sweep_eq_faceEval,.energy_sweep_le: topological coordinate sweep reaches the unique sink ingsteps with nonincreasing energy when started on the face.Cslib.Circuits.Boolean.WeightedThreshold.StrictMarginProgram.priority_le_pow: exponential upper boundλ_i ≤ (W + 1) ^ (g - 1 - i)under weight bound|b_{j, i}| ≤ W.
References #
- [Threshold Circuits as Decision Trees and Finite-State Programs, Sections 10 and 11] [26]
Sign 2 z - 1 ∈ {-1, 1} of a Boolean bit z.
Instances For
A straight-line threshold program on n Boolean inputs with g gates in strict unit-margin
normal form (Sections 10–11 of [ThresholdCircuitRepresentations2026]): gate i has score
Q_i(x, z) = ∑ a, inputWeight i a * x_a + ∑ j, gateWeight i j * z_j - threshold i with
gateWeight i j = 0 for i ≤ j and |Q_i(x, z)| ≥ 1 on every Boolean (x, z).
Direct input weights
a_ifor gatei.Strictly lower-triangular internal gate weights
b_{i, j}(0fori ≤ j).Threshold
θ_ifor gatei.- gateWeight_eq_zero_of_le (i j : Fin g) : i ≤ j → self.gateWeight i j = 0
Strict lower triangularity of
gateWeight. - one_le_abs_score (x : Fin n → Bool) (z : Fin g → Bool) (i : Fin g) : 1 ≤ |∑ a : Fin n, self.inputWeight i a * ↑(x a).toNat + ∑ j : Fin g, self.gateWeight i j * ↑(z j).toNat - self.threshold i|
Unit margin
|Q_i(x, z)| ≥ 1on all Boolean inputs and transcripts.
Instances For
Direct input contribution ∑ a, a_{i, a} x_a at gate i.
Instances For
Internal gate contribution ∑ j, b_{i, j} z_j at gate i.
Instances For
Score Q_i(x, z) = inputSum i x + internalSum i z - threshold i at gate i.
Instances For
Gate i's internal sum depends only on earlier coordinates j < i.
Gate i's score depends only on earlier coordinates j < i.
Updating coordinate j ≥ i leaves gate i's score unchanged.
Topological coordinate sweep and face evaluation #
Single-coordinate update at gate i on the subcube face (fixed, val): assign val i if
i ∈ fixed, and the local threshold rule decide (0 < P.score x z i) otherwise.
Instances For
Topological sweep of the first k coordinates on the subcube face (fixed, val), starting
from z.
Instances For
Once coordinate i has been swept at step i + 1, later sweep steps leave it unchanged.
At step i + 1, coordinate i is set according to the face rule on the state after i
steps.
After g sweep steps from any initial assignment z, every coordinate i satisfies the
face-restricted gate equation.
Face-restricted topological evaluation on (fixed, val), fixing z_i = val i for i ∈ fixed
and evaluating free gates in topological order.
Instances For
P.faceEval fixed val x is the unique assignment agreeing with val on fixed and satisfying
every free gate's threshold rule.
A full g-step topological sweep from any starting assignment z reaches
P.faceEval fixed val x.
A full g-step topological sweep with no fixed coordinates reaches P.eval x.
Construct a StrictMarginProgram from a Program signature n g whose gates satisfy the unit
margin condition.
Instances For
Evaluation of ofProgram p hmargin agrees with p.eval interpretation.
Section 10: Unambiguous cells, coordinatewise dominance, and unique-extension ILP #
Consistency cell predicate x ∈ P_z (equation (23)): (2 z_i - 1) Q_i(x, z) ≥ 1 for every
gate i.
Instances For
By the unit margin, 1 ≤ boolSign (z i) * P.score x z i holds iff z i agrees with gate i's
threshold decision.
Unambiguous cell theorem: x belongs to the consistency cell of z if and only if z is
the unique circuit transcript P.eval x.
The consistency cells {P_z}_{z : Fin g → Bool} partition the input cube: every input x
belongs to the cell of a unique transcript z.
Disjoint-support indicator expansion (equation (24)): summing the cell indicators over all
transcripts with z out = true recovers the output bit (P.eval x out).toNat.
Right-half demand vector β_z(v)_i = 1 - σ_i (∑_{a ∈ Uᶜ} a_{i, a} x_a + internalSum i z - θ_i)
for an input split U.
Instances For
Coordinatewise dominance characterization: across any input split U, x belongs to the
consistency cell of z iff rightDemand U z x i ≤ leftSupply U z x i for every gate i.
Linear inequalities of the unique-extension integer linear program (equation (25)) with score
upper bounds M : Fin g → ℝ.
Instances For
Given score bounds |P.score x z i| ≤ M i, the ILP inequalities at gate i are equivalent to
1 ≤ boolSign (z i) * P.score x z i.
Unique-extension ILP theorem (equation (25)): when |P.score x z i| ≤ M i for every gate
i, P.ilpValid M x z holds if and only if z = P.eval x.
Section 11: Backwards priorities, quadratic Boolean energy, and unique sinks #
Backwards positive priority λ_i = 1 + ∑_{j > i} λ_j |b_{j, i}|.
Instances For
Every gate priority is at least 1.
Every gate priority is strictly positive.
The total contribution of later gates j > i to coordinate i's flip difference has magnitude
at most P.priority i - 1.
If |b_{j, i}| ≤ W for all i < j, then P.priority i ≤ (W + 1) ^ (g - 1 - i).
Quadratic Boolean energy E_x(z) = - ∑ i, λ_i z_i Q_i(x, z) (equation (26)).
Instances For
Coordinate-flip energy identity (equation (27)): changing z_i from false to true
changes P.energy x by -λ_i Q_i(x, z) - ∑_{j > i} λ_j b_{j, i} z_j.
When 0 < P.score x z i, setting z_i = true decreases the energy by at least 1 relative to
z_i = false.
When ¬ (0 < P.score x z i), setting z_i = false decreases the energy by at least 1
relative to z_i = true.
Flipping coordinate i does not decrease P.energy x if and only if z i already satisfies
gate i's local threshold rule.
Flipping coordinate i strictly decreases P.energy x if and only if z i violates gate
i's local threshold rule.
z is a sink on the cube face (fixed, val) if z agrees with val on fixed and no
single free-coordinate flip strictly decreases P.energy x.
Instances For
Theorem 11.1 (Unique sink on every cube face): z is a sink on the subcube face
(fixed, val) if and only if z = P.faceEval fixed val x.
Every subcube face (fixed, val) has a unique sink under P.energy x.
Unique sink on the whole cube: on the unrestricted cube (fixed = ∅), z is a sink under
P.energy x if and only if z is the circuit transcript P.eval x.
Updating coordinate i via P.faceStep fixed val x does not increase P.energy x whenever
z already agrees with val at i if i ∈ fixed.
Sweeping preserves agreement with val on fixed.
Starting from any assignment z on the face (fixed, val), the topological coordinate sweep
monotonically decreases (or preserves) P.energy x at every step.