Random restriction lemmas for linear threshold functions #
This module formalizes the repaired Kane–Williams gate and wire random restriction lemmas for
linear threshold functions ([KW16], arXiv:1511.07860v1, Lemma 1.1 and Lemma 3.1;
Milestone 3 of #2347).
Given a linear threshold function ltfEval a θ w = decide (θ ≤ ∑ i, a i * (w i).toNat) on
ι → Bool with nonzero weight support S = ltfSupport a and a live set B : Finset ι:
ForcedToConst f B wholds when fixing all coordinates outsideBtowmakesfconstant on completionsuonB.ForcedToAtMostOne f B wholds when fixing all coordinates outsideBtowmakesfdepend on at most one live coordinatei₀ ∈ B(equivalently, constant or a literalu i₀/!(u i₀)).card_not_forcedToConst_ltfEval_le: for any fixedB, the fraction ofw : ι → Boolnot forcingltfEval a θto a constant outsideBis at most2 * ∑ i ∈ B ∩ S, 1 / √(ltfWeightRank a i).sum_card_not_forcedToConst_ltfEval_le(Gate Random Restriction Lemma, Lemma 1.1): averaging overB : Ω → Finset ιwith singleton survival probability≤ ponSgives non-forcing probability at most4 * p * √(#S).sum_card_not_forcedToAtMostOne_ltfEval_le(Wire Random Restriction Lemma, Lemma 3.1): averaging overB : Ω → Finset ιwith singleton survival≤ pand distinct-pair survival≤ p ^ 2onSgives probability at most4 * #S * p * √pof not being forced to a function of at most one input.sum_card_not_forcedToConst_blockLiveSet_le,sum_card_not_forcedToAtMostOne_blockLiveSet_le: specializations toblockLiveSet blockVar σfor jointly injectiveblockVar : κ → τ → ι.
References #
Partial-assignment completions and forcing predicates #
Replace the coordinates of w inside the live set B with u, keeping w outside B.
A Boolean function f : (ι → Bool) → Bool is forced to a constant outside B by w if
all completions restrictUpdate B w u take the same Boolean value c.
Instances For
A Boolean function f : (ι → Bool) → Bool is forced to a function of at most one input
outside B by w if it is forced to a constant or depends on at most one coordinate i₀ ∈ B.
Instances For
Being forced to a constant implies being forced to a function of at most one input.
A restricted Boolean function depends on at most one coordinate in B if and only if it is
constant or equals a literal u i₀ or !(u i₀) for some i₀ ∈ B.
Extremal completions and forcing characterizations for linear threshold functions #
Completion on B minimizing ∑ i, a i * (u i).toNat by setting u i = decide (a i < 0).
Completion on B maximizing ∑ i, a i * (u i).toNat by setting u i = decide (0 ≤ a i).
On any completion restrictUpdate B w u, the linear form is bounded below by ltfMinAssign
and above by ltfMaxAssign.
The maximum completion sum minus the minimum completion sum on B equals
∑ i ∈ B ∩ ltfSupport a, |a i|.
ltfEval a θ is not forced to a constant outside B at w if and only if its minimum
completion sum on B lies in the half-open interval [θ - ∑ i ∈ B ∩ ltfSupport a, |a i|, θ).
If B contains at most one coordinate of ltfSupport a, then ltfEval a θ is forced to a
function of at most one input outside B at every w.
If ltfEval a θ is not forced to a function of at most one input outside B at w, then
2 ≤ #(B ∩ ltfSupport a) and ltfEval a θ is not forced to a constant outside B at w.
Fixed-B LTF restriction bound (repaired Kane–Williams Equation RestrictToBEqn) #
Fixed-B LTF non-forcing bound (repaired Equation (RestrictToBEqn) of Kane–Williams,
arXiv:1511.07860v1): for any linear threshold function ltfEval a θ and any live set
B : Finset ι,
(#{w : ι → Bool | ¬ ForcedToConst (ltfEval a θ) B w} : ℝ) ≤ (2 : ℝ) ^ Fintype.card ι * (2 * ∑ i ∈ B ∩ ltfSupport a, 1 / Real.sqrt (ltfWeightRank a i)).
Fixed-B LTF single-input non-forcing bound: if #(B ∩ ltfSupport a) < 2, no input fails
ForcedToAtMostOne (ltfEval a θ) B; otherwise the non-forcing count satisfies the same bound as
ForcedToConst.
Kane–Williams Gate and Wire Random Restriction Lemmas (Lemma 1.1 and Lemma 3.1) #
Gate Random Restriction Lemma (Kane–Williams arXiv:1511.07860v1, Lemma 1.1):
for any family of live sets B : Ω → Finset ι such that every active coordinate
i ∈ ltfSupport a belongs to B ω for at most p * |Ω| choices of ω : Ω,
the total number of pairs (ω, w) where ltfEval a θ is not forced to a constant outside B ω
at w is at most |Ω| * 2 ^ |ι| * (4 * p * √(#(ltfSupport a))).
Wire Random Restriction Lemma (Kane–Williams arXiv:1511.07860v1, Lemma 3.1):
for any family of live sets B : Ω → Finset ι with 0 ≤ p such that every active coordinate
i ∈ ltfSupport a is live for at most p * |Ω| choices of ω : Ω and every distinct pair
i, j ∈ ltfSupport a (j ≠ i) is jointly live for at most p ^ 2 * |Ω| choices of ω : Ω,
the total number of pairs (ω, w) where ltfEval a θ is not forced to a function of at most one
input outside B ω at w is at most |Ω| * 2 ^ |ι| * (4 * #(ltfSupport a) * p * √p).
Block-partition random restriction corollaries #
Block-partition Gate Random Restriction Lemma: when blockVar : κ → τ → ι is jointly
injective across blocks and slots, averaging
¬ ForcedToConst (ltfEval a θ) (blockLiveSet blockVar σ) w over all choices of one live variable
per block σ : κ → τ and w : ι → Bool gives at most
|κ → τ| * 2 ^ |ι| * (4 * (1 / |τ|) * √(#(ltfSupport a))).
Block-partition Wire Random Restriction Lemma: when blockVar : κ → τ → ι is jointly
injective across blocks and slots, averaging
¬ ForcedToAtMostOne (ltfEval a θ) (blockLiveSet blockVar σ) w over all σ : κ → τ and
w : ι → Bool gives at most
|κ → τ| * 2 ^ |ι| * (4 * #(ltfSupport a) * (1 / |τ|) * √(1 / |τ|)).