Median-cut and coordinate-split restrictions for weighted threshold programs #
This module proves the coordinate-split and median-cut rectangle-extraction lemmas for weighted
threshold programs. Given a coordinate split U : Finset (Fin n) and sets A and B of inputs
fixed to false on U and Uᶜ, we restrict the remaining coordinates P ⊆ (U → Bool) and
Q ⊆ (↥Uᶜ → Bool) gate by gate in topological order so that every gate of the program becomes
constant on the induced combinatorial rectangle:
- If a gate's active input support meets both
U \ AandUᶜ \ B, we cut bothPandQat the medians of their half-sums (exists_median), halving each side at most once. - If a gate's active input support meets only one side, its threshold condition depends only on that side, so we halve only that side.
- If a gate's input support is contained in
A ∪ B, its weighted input sum vanishes onP × Q, and neither side is shrunk.
The public statements use A and B only in the size bounds
2 ^ (|U| - |A|) ≤ |P| · 2 ^ t and 2 ^ (|Uᶜ| - |B|) ≤ |Q| · 2 ^ t', where t counts the gates
whose input support meets U \ A and t' those whose input support meets Uᶜ \ B. They do not
assert that the points of P and Q are false on A and B.
Specializing A = ∅ and B = ∅ gives the general median-cut rectangle lemma
(exists_rectangle_of_cut), the cut theorem (lt_of_split), and the balanced cut-weight bound
n ≤ 2 * ((inputGates p).card + k) (le_two_mul_add). Specializing to gates that do not cross
U gives the coordinate-split restriction (exists_rectangle_of_split).
Main definitions #
Cslib.Circuits.Boolean.WeightedThreshold.inputSupport: the set of original inputs with nonzero aggregated weight at a gate.Cslib.Circuits.Boolean.WeightedThreshold.glue: combines partial assignments onUandUᶜinto a full inputFin n → Bool.
Main results #
Cslib.Circuits.Boolean.WeightedThreshold.exists_median: every finite set of points with a real-valued weight function has a median threshold splitting at least half the points to each side.Cslib.Circuits.Boolean.WeightedThreshold.exists_rectangle_of_cut_with_fixed: unified median-cut and coordinate-fixing rectangle extraction.Cslib.Circuits.Boolean.WeightedThreshold.exists_rectangle_of_cut,Cslib.Circuits.Boolean.WeightedThreshold.exists_rectangle_of_split: median-cut and unsplit-gate rectangle extraction.Cslib.Circuits.Boolean.WeightedThreshold.lt_of_split,Cslib.Circuits.Boolean.WeightedThreshold.circuit_lt_of_split: the cut theorem.Cslib.Circuits.Boolean.WeightedThreshold.le_two_mul_add,Cslib.Circuits.Boolean.WeightedThreshold.circuit_le_two_mul_add: the balanced cut bound.
References #
Aggregated input support #
An input i belongs to inputSupport p gate if and only if inputWeight p gate i ≠ 0.
A gate belongs to inputGates p iff its aggregated input support is nonempty.
A gate's aggregated input support is nonempty iff it belongs to inputGates p.
Gluing across a coordinate split #
If f is monochromatic on the rectangle glue U '' (P × Q) and two-sided
K-rectangle-free, then P.card < K or Q.card < K.
Weighted sums and gluing #
Medians and halving #
Every finite set P equipped with a real-valued function f has a threshold μ such that
at least half of P satisfies f x ≤ μ and at least half satisfies μ ≤ f x.
Initial subcubes with fixed coordinates #
Unified median-cut and coordinate-fixing invariant #
Rectangle extraction and cut bounds #
Unified median-cut and coordinate-fixing rectangle extraction. For any split U and
sets A and B of coordinates, there is a combinatorial rectangle P × Q on which the entire
gate-evaluation vector p.eval interpretation is constant, with P losing at most |A|
coordinates initially and one factor of 2 per gate whose support on U is not contained in A
(and symmetrically for Q, Uᶜ and B). The sets A and B enter only these size bounds: the
conclusion does not assert that the points of P and Q are false on A and B.
The cut lemma. For every coordinate split U, there is a rectangle P × Q on which
f is constant, with 2 ^ |U| ≤ |P| · 2 ^ #{j : inputSupport p j ∩ U ≠ ∅} and symmetrically
for Uᶜ.
Coordinate-split rectangle extraction. When every gate's input support is contained in
U or in Uᶜ, for any sets A and B of coordinates there is a monochromatic rectangle
P × Q with P losing at most |A| coordinates initially and one factor of 2 per gate with
support contained in U but not in A (and symmetrically for Q, Uᶜ and B). The conclusion
does not assert that the points of P and Q are false on A and B.
The cut theorem. If p computes a two-sided K-rectangle-free function f through
readout with K ≤ 2 ^ k, then for every coordinate split U, one side has fewer than k
more coordinates than gates whose input support meets that side.
The cut theorem for a single-output weighted threshold circuit whose output selects a gate.
The balanced cut bound. If p computes a two-sided K-rectangle-free function f
through readout with K ≤ 2 ^ k, then n ≤ 2 * ((inputGates p).card + k).
The balanced cut bound for a single-output weighted threshold circuit whose output selects a gate.