Counting depth-two threshold functions and restricting depth-two threshold circuits #
This module formalizes the threshold-function counting bound and the depth-two circuit
random-restriction collapse used in the Kane–Williams gate and wire lower bounds for depth-two
weighted threshold circuits ([KW16], arXiv:1511.07860v1, Theorem 2.3 and Section 4):
- Chow moment injectivity and threshold counting (
IsThresholdOver,featureMoment,eq_of_isThresholdOver_of_featureMoment_eq,card_isThresholdOver_le): Every threshold functionf : X → Booloverg : ι → X → Boolis uniquely determined among all Boolean functions onXby#{x | f x}andfun j => #{x | f x ∧ g j x}, giving at most(|X| + 1) ^ (|ι| + 1)threshold functions overg. - Counting LTFs and depth-two threshold functions (
IsLTF,card_isLTF_le,IsDepthTwoWithGates,card_isDepthTwoWithGates_le): Onκ → Bool, there are at most(2 ^ |κ| + 1) ^ (|κ| + 1)LTFs and at most(2 ^ |κ| + 1) ^ ((|κ| + 2) * q + |κ| + 1)functions inIsDepthTwoWithGates q. A fixed real functionφ : X → ℝhas at most|X| + 1upper level sets, at most|X| - 1of them nonconstant (IsUpperLevelSet,card_isUpperLevelSet_le,card_isUpperLevelSet_nonconst_le); threshold shiftsIsThresholdShiftof a fixed weight vector are the case of a linear form (card_isThresholdShift_le,card_isThresholdShift_nonconst_le). The original fixed-weight refinementIsDepthTwoOverWeightscounts threshold shifts from a fixed finite familyW:card_isThresholdShift_le,card_isWeightShift_le, andcard_isDepthTwoOverWeights_le; it is monotone inqandW(IsDepthTwoOverWeights.mono,IsDepthTwoOverWeights.mono_weights) and contains the constants (isDepthTwoOverWeights_const). Its per-survivor description costsO(|κ| + log (#W + 1))bits. This refinement is not attributed to Kane–Williams. - Depth-two circuit collapse under subcube restrictions (
embedUpdate,sum_card_filter_embedUpdate,isDepthTwoWithGates_eval_embedUpdate,isDepthTwoWithGates_eval_embedUpdate_const,sum_card_filter_not_forcedToConst_blockLiveSet_le,sum_card_filter_not_forcedToAtMostOne_blockLiveSet_le,sum_circuitUnforcedConstCount_blockLiveSet_le,sum_circuitUnforcedAtMostOneCount_blockLiveSet_le): Under any restriction fixing all inputs outsideuniv.image emb(emb : κ → Fin ninjective), every depth-1 gate satisfyingForcedToAtMostOnecollapses to an affine-linear form onκand is absorbed into the top threshold gate.
Chow moment injectivity and threshold counting over finite feature maps #
A Boolean function f : X → Bool is a threshold function over a feature family
g : ι → X → Bool if f x = ltfEval a θ (fun j => g j x) for some a : ι → ℝ and θ : ℝ.
Instances For
The feature moment vector (generalized Chow parameters) of f : X → Bool with respect to
g : ι → X → Bool, recording #{x : X | f x = true} and
fun j => #{x : X | f x = true ∧ g j x = true}.
Chow moment injectivity: if f₁ : X → Bool is a threshold function over g : ι → X → Bool
and featureMoment g f₁ = featureMoment g f₂, then f₁ = f₂.
At most (|X| + 1) ^ (|ι| + 1) Boolean functions f : X → Bool are threshold functions over
g : ι → X → Bool.
Counting linear threshold functions and depth-two threshold functions #
IsLTF is IsThresholdOver for the coordinate projections fun j u => u j.
There are at most (2 ^ |κ| + 1) ^ (|κ| + 1) linear threshold functions on κ → Bool.
A Boolean function f : (κ → Bool) → Bool belongs to IsDepthTwoWithGates q if it is a
threshold function over q bottom LTFs g : Fin q → (κ → Bool) → Bool and the |κ| direct input
coordinates.
Instances For
Padding the bottom features with constant-false features preserves threshold functions.
IsDepthTwoWithGates is monotone in the bottom gate budget q.
Counting depth-two threshold functions with q bottom LTF gates: there are at most
(2 ^ |κ| + 1) ^ ((|κ| + 2) * q + |κ| + 1) functions in IsDepthTwoWithGates q.
Upper level sets of a fixed real function and threshold shifts #
Upper level sets of a fixed function are nested, so an upper level set is determined by the
number of points where it is true.
A fixed real function φ : X → ℝ has at most |X| + 1 upper level sets.
A fixed real function φ : X → ℝ has at most |X| - 1 nonconstant upper level sets.
Threshold shifts of a fixed weight vector are nested, so a threshold shift is determined by the number of its satisfying assignments.
A fixed weight vector β : κ → ℝ has at most 2 ^ |κ| + 1 threshold shifts.
A fixed weight vector β : κ → ℝ has at most 2 ^ |κ| - 1 nonconstant threshold shifts.
g : (κ → Bool) → Bool is a weight shift over a finite set W : Finset (κ → ℝ) of weight
vectors if it is the constant false function or a threshold shift of some β ∈ W.
Instances For
Every weight shift is a linear threshold function.
There are at most (2 ^ |κ| + 1) * min (#W + 1) ((2 ^ |κ| + 1) ^ |κ|) weight shifts over
W : Finset (κ → ℝ).
A Boolean function f : (κ → Bool) → Bool belongs to IsDepthTwoOverWeights W q if it is a
threshold function over q weight shifts over W and the |κ| direct input coordinates. Unlike
IsDepthTwoWithGates q, the bottom weight vectors are drawn from the fixed finite set W; only
their thresholds are free.
Instances For
Every function in IsDepthTwoOverWeights W q belongs to IsDepthTwoWithGates q.
IsDepthTwoOverWeights W is monotone in the bottom gate budget q.
IsDepthTwoOverWeights W q is monotone in the set W of bottom weight vectors.
Every constant Boolean function belongs to IsDepthTwoOverWeights W q.
Counting depth-two threshold functions over fixed bottom weight vectors: there are at most
((2 ^ |κ| + 1) * min (#W + 1) ((2 ^ |κ| + 1) ^ |κ|)) ^ q * (2 ^ |κ| + 1) ^ (q + |κ| + 1)
functions in IsDepthTwoOverWeights W q. Each bottom gate costs O(|κ| + log #W) bits, compared
with the O(|κ| ^ 2) bits of an arbitrary LTF in card_isDepthTwoWithGates_le.
Embedded subcube completions and collapse of depth-two threshold circuits #
Lift an assignment u : κ → Bool along emb : κ → ι (false outside univ.image emb).
Summing #{u : κ → Bool | P (embedUpdate emb w u)} over all w : ι → Bool equals
2 ^ |κ| * #{w : ι → Bool | P w}.
Splitting ∑ i : ι, a i * (embedUpdate emb w u i).toNat into outside and live parts.
Any LTF ltfEval a θ restricted via embedUpdate emb w is an LTF on κ → Bool.
Any Boolean function f : (ι → Bool) → Bool satisfying ForcedToAtMostOne f (univ.image emb) w
has ((f (embedUpdate emb w u)).toNat : ℝ) = c₀ + ∑ j : κ, d j * (u j).toNat.
circuitUnforcedAtMostOneCount c o B w ≤ circuitUnforcedConstCount c o B w.
The live weight vectors of a circuit output o along emb : κ → Fin n: the restrictions
fun j => inputWeight c.program k (emb j) of the input weight vectors of the bottom gates
k ∈ gateSupport c.program top read by the output gate top (empty if o is an input wire).
They depend on emb but not on the values of the fixed inputs.
A circuit output has at most c.wireCount live weight vectors: every bottom gate read by the
output gate contributes an active gate-to-gate wire.
Depth-Two Circuit Restriction Collapse over Fixed Weights: for any weighted threshold
circuit c : Circuit signature n 1 of depth at most 2 and any injective live-variable embedding
emb : κ → Fin n, restricting c outside univ.image emb to w produces a function in
IsDepthTwoOverWeights (circuitLiveWeights c o emb) (circuitUnforcedAtMostOneCount c o (univ.image emb) w). The surviving bottom gates keep their weights on the live coordinates; only
their thresholds depend on w.
Monotonicity corollary of isDepthTwoOverWeights_eval_embedUpdate using
circuitUnforcedConstCount.
Depth-Two Circuit Restriction Collapse: for any weighted threshold circuit
c : Circuit signature n 1 of depth at most 2 and any injective live-variable embedding
emb : κ → Fin n, restricting c outside univ.image emb to w produces a function in
IsDepthTwoWithGates (circuitUnforcedAtMostOneCount c o (univ.image emb) w).
Monotonicity corollary of isDepthTwoWithGates_eval_embedUpdate using
circuitUnforcedConstCount.
Expected unforced gate counts under block-partition random restrictions #
Averaging the number of gates k ∈ G whose depth-1 LTF is not ForcedToConst outside
blockLiveSet blockVar σ by w, over all block selections σ : κ → τ and assignments
w : Fin n → Bool, gives at most |κ → τ| * 2 ^ n * (4 * (1 / |τ|) * c.size * √n), for any set
G of gates of c.
Averaging the number of gates k ∈ G whose depth-1 LTF is not ForcedToAtMostOne outside
blockLiveSet blockVar σ by w, over all block selections σ : κ → τ and assignments
w : Fin n → Bool, gives at most |κ → τ| * 2 ^ n * (4 * c.wireCount * (1 / |τ|) * √(1 / |τ|)),
for any set G of gates of c.
Averaging circuitUnforcedConstCount c o (blockLiveSet blockVar σ) w over all block selections
σ : κ → τ and assignments w : Fin n → Bool gives at most
|κ → τ| * 2 ^ n * (4 * (1 / |τ|) * c.size * √n).
Averaging circuitUnforcedAtMostOneCount c o (blockLiveSet blockVar σ) w over all block
selections σ : κ → τ and assignments w : Fin n → Bool gives at most
|κ → τ| * 2 ^ n * (4 * c.wireCount * (1 / |τ|) * √(1 / |τ|)).