Documentation

ReflectiveSubsystems.SQPredictiveTransfer

Predictive transfer: the Bayes-mixture perturbation bound ([SQ] Appendix A) #

Provenance: [SQ], Appendix A "Soundness of SQ pruning":

This file (FV-H) discharges that predictive-transfer step. It is the companion to FV-F (ReflectiveSubsystems/SQPrunedMass.lean, post-discovery ∑ ε ≤ δ/2) and FV-G (ReflectiveSubsystems/SQSearchPhaseMass.lean, search-phase ∑ ε ≤ ln2·K(R) + ln(1/δ) w.h.p., Ville-chained) — those mass budgets are exactly the ∑ ε_t that accumulated_perturbation_le consumes: FV-F ⇒ total predictive damage ≤ δ, FV-G ⇒ damage absorbed into the O(r + log(1/δ)) discovery regret.

The mathematical core, made exact (a SHARPENING of the prose) #

A prequential mixture over candidates predicts P(x) = (∑_i u_i · p_i x)/U with unnormalized posterior weights u and U = ∑_i u_i. Pruning the set pruned (posterior mass W = ∑_{pruned} u, fraction ε = W/U) and renormalizing over the survivors alive (V = ∑_{alive} u, U = V + W) yields Q(x) = (∑_{alive} u_i · p_i x)/V. Then, pointwise, Q x − P x = (S x · W − T x · V)/(V·U) with S x = ∑_{alive} u_i p_i x, T x = ∑_{pruned} u_i p_i x, and summing |·| over the outcomes gives ∑_x |Q x − P x| ≤ 2ε exactly — i.e. total variation ≤ ε with no hidden constant, so the paper's "≤ δ/2 in total" is recovered at ε ≤ δ/2 and sharpened. Any α-guarantee on P (L1 vs. the truth q) transfers to α + 2ε on Q.

What this DOES establish #

What this does NOT establish (stays modeled / later assembly; no overclaiming) #

theorem ReflectiveSubsystems.mixture_prune_perturbation {ι : Type u_1} {X : Type u_2} [DecidableEq ι] (alive pruned : Finset ι) (hdisj : Disjoint alive pruned) (outs : Finset X) (u : ι → ℝ) (p : ι → X → ℝ) (hu : ∀ i ∈ alive ∪ pruned, 0 ≤ u i) (hp0 : ∀ i ∈ alive ∪ pruned, ∀ x ∈ outs, 0 ≤ p i x) (hp1 : ∀ i ∈ alive ∪ pruned, ∑ x ∈ outs, p i x = 1) (hV : 0 < ∑ i ∈ alive, u i) :
∑ x ∈ outs, |(∑ i ∈ alive, u i * p i x) / ∑ i ∈ alive, u i - (∑ i ∈ alive ∪ pruned, u i * p i x) / ∑ i ∈ alive ∪ pruned, u i| ≤ 2 * ((∑ i ∈ pruned, u i) / ∑ i ∈ alive ∪ pruned, u i)

T1 (Appendix A, one-step perturbation): pruning the set pruned from a prequential mixture and renormalizing over the survivors alive perturbs the one-step predictive distribution by ∑_x |Q x − P x| ≤ 2·(W/U) in L1, where Q x = (∑_{alive} u_i p_i x)/V, P x = (∑_{alive∪pruned} u_i p_i x)/U, V = ∑_{alive} u, U = ∑_{alive∪pruned} u, W = ∑_{pruned} u. The bound is exact (total variation ≤ W/U, no hidden constant).

theorem ReflectiveSubsystems.predictive_transfer {ι : Type u_1} {X : Type u_2} [DecidableEq ι] (alive pruned : Finset ι) (hdisj : Disjoint alive pruned) (outs : Finset X) (u : ι → ℝ) (p : ι → X → ℝ) (hu : ∀ i ∈ alive ∪ pruned, 0 ≤ u i) (hp0 : ∀ i ∈ alive ∪ pruned, ∀ x ∈ outs, 0 ≤ p i x) (hp1 : ∀ i ∈ alive ∪ pruned, ∑ x ∈ outs, p i x = 1) (hV : 0 < ∑ i ∈ alive, u i) (q : X → ℝ) (α : ℝ) (htruth : ∑ x ∈ outs, |(∑ i ∈ alive ∪ pruned, u i * p i x) / ∑ i ∈ alive ∪ pruned, u i - q x| ≤ α) :
∑ x ∈ outs, |(∑ i ∈ alive, u i * p i x) / ∑ i ∈ alive, u i - q x| ≤ α + 2 * ((∑ i ∈ pruned, u i) / ∑ i ∈ alive ∪ pruned, u i)

T2 (Appendix A, guarantee transfer): if the full prequential mixture P is within α in L1 of the truth q, then after pruning and renormalizing, the survivor mixture Q is within α + 2·(W/U) of q. The predictive guarantee is preserved up to twice the pruned posterior mass.

theorem ReflectiveSubsystems.accumulated_perturbation_le {ι : Type u_1} {X : Type u_2} [DecidableEq ι] (n : ℕ) (alive pruned : ℕ → Finset ι) (outs : Finset X) (u : ℕ → ι → ℝ) (p : ℕ → ι → X → ℝ) (hdisj : ∀ t ∈ Finset.range n, Disjoint (alive t) (pruned t)) (hu : ∀ t ∈ Finset.range n, ∀ i ∈ alive t ∪ pruned t, 0 ≤ u t i) (hp0 : ∀ t ∈ Finset.range n, ∀ i ∈ alive t ∪ pruned t, ∀ x ∈ outs, 0 ≤ p t i x) (hp1 : ∀ t ∈ Finset.range n, ∀ i ∈ alive t ∪ pruned t, ∑ x ∈ outs, p t i x = 1) (hV : ∀ t ∈ Finset.range n, 0 < ∑ i ∈ alive t, u t i) :
∑ t ∈ Finset.range n, ∑ x ∈ outs, |(∑ i ∈ alive t, u t i * p t i x) / ∑ i ∈ alive t, u t i - (∑ i ∈ alive t ∪ pruned t, u t i * p t i x) / ∑ i ∈ alive t ∪ pruned t, u t i| ≤ 2 * ∑ t ∈ Finset.range n, (∑ i ∈ pruned t, u t i) / ∑ i ∈ alive t ∪ pruned t, u t i

T3 (Appendix A, accumulated accounting): across a step-indexed family of prunings — at each step t < n, prune pruned t from the mixture with weights u t and predictors p t, satisfying T1's hypotheses — the total one-step L1 predictive damage is ≤ 2·∑_t ε_t with ε_t = (∑ pruned t)/(∑ alive t ∪ pruned t). Consuming FV-F/FV-G's mass budgets ∑ ε_t here bounds the total damage.