Documentation

ReflectiveSubsystems.HellingerBridge

Genuine ε₀-Hellinger + the ε₀→query-separation bridge — [Discovery] §3.3 (FV-15) #

Provenance: [Discovery] §3.3 (ε₀ as the squared-Hellinger separation, the inherited 1/ε₀ factor) and [SQ] §3 / Appendix A Claim 1 (the SQ mean-gap > 2τ separation rule). Two micro-targets, both routed in-house on BayesRedundancy.sqHellinger:

Target A — ε₀ as a GENUINE Hellinger quantity #

Where ReflectiveSubsystems.eps0 = M.inf' hM sep carries an ABSTRACT real sep : ι → ℝ (the measure-theoretic Hellinger deferred, FV-8), here sep is instantiated with the real sqHellinger, and the positive-definiteness the abstract route could not state is now proved:

ReflectiveSubsystems.eps0 is UNTOUCHED (its FV-8 guards stay intact); eps0H supersedes it by instantiation.

Target B — the ε₀ → query-separation bridge ([SQ] §3 / App A grounding) #

The chain squared-Hellinger ≥ ε₀ ⟹ a [−1,1] query with mean gap ≥ 2·ε₀:

FIDELITY BOUNDARY — the √ε₀ ("mean-level") reading vs. the certified ε₀ #

[SQ]'s Remark on ε₀ (§4) and Appendix A Claim 1 match the SQ tolerance as τ ≲ √ε₀ ("mean-level"), and read the resulting sample factor as 1/τ² ≈ 1/ε₀. This bridge certifies identifiability only at τ < ε₀ — the guaranteed mean gap is 2·ε₀, not 2·√ε₀ — because the only lower bound available from squared Hellinger is TV ≥ D_H² = ε₀ (sqHellinger_le_tv). The √ε₀ scale is the OTHER direction, TV ≤ √2·√(D_H²) (an upper bound on TV), which coincides with the TV scale only in the local / small-perturbation regime TV ≈ √(D_H²); it is NOT derivable from D_H² ≥ ε₀ in general (e.g. one pmf placing ≈0 mass where the other places ε gives TV ≈ D_H² ≈ ε, so mean gap ≈ 2ε₀, quadratically below √ε₀). So the τ ≲ √ε₀ matching — and the 1/ε₀ sample factor it yields — genuinely rests on a mean-level separation assumption, not on the squared-Hellinger ε₀ alone. From ε₀ alone the honest certified matching is τ < ε₀ (sample factor 1/ε₀²). Everything below is proved at the honest 2·ε₀ / τ < ε₀ scale; the papers' √ε₀ reading is stated with exactly that mean-level qualifier ([SQ] §4, Remark on ε₀).

Everything is elementary (Mathlib calculus + Finset); no sorry.

Target A — ε₀ as a genuine Hellinger quantity #

theorem ReflectiveSubsystems.sqHellinger_pos_of_ne {α : Type u_1} [Fintype α] (p q : α → ℝ) (hp : ∀ (x : α), 0 ≤ p x) (hq : ∀ (x : α), 0 ≤ q x) (hpq : p ≠ q) :

Positive-definiteness of squared Hellinger. For finite nonnegative p ≠ q, 0 < sqHellinger p q. This is what the abstract-sep route (ReflectiveSubsystems.eps0_pos) had to assume (0 < sep i): a competitor with a distinct predictive pmf is strictly separated. Proof: at a point x₀ where p x₀ ≠ q x₀, square-root injectivity on [0,∞) gives √(p x₀) ≠ √(q x₀), so that summand (√p − √q)² is strictly positive; the rest are ≥ 0.

noncomputable def ReflectiveSubsystems.eps0H {α : Type u_1} {ι : Type u_2} [Fintype α] (M : Finset ι) (hM : M.Nonempty) (truth : α → ℝ) (P : ι → α → ℝ) :

ε₀ as a genuine squared-Hellinger quantity (mirrors ReflectiveSubsystems.eps0's Finset.inf' shape, truth-vs-competitor): the least squared-Hellinger separation of the truth's predictive pmf truth from each competitor's P i, over the finite nonempty class M. Where eps0 carries an abstract sep : ι → ℝ, this instantiates sep i := sqHellinger truth (P i).

Equations
Instances For
    theorem ReflectiveSubsystems.eps0H_pos {α : Type u_1} {ι : Type u_2} [Fintype α] {M : Finset ι} (hM : M.Nonempty) {truth : α → ℝ} {P : ι → α → ℝ} (hnnT : ∀ (x : α), 0 ≤ truth x) (hnnP : ∀ (i : ι) (x : α), 0 ≤ P i x) (hdist : ∀ i ∈ M, truth ≠ P i) :
    0 < eps0H M hM truth P

    eps0H > 0 under pairwise-distinctness of the predictive pmfs — the genuine positive-definiteness (sqHellinger_pos_of_ne), replacing eps0_pos's assumed 0 < sep i.

    theorem ReflectiveSubsystems.eps0H_le {α : Type u_1} {ι : Type u_2} [Fintype α] {M : Finset ι} (hM : M.Nonempty) {truth : α → ℝ} {P : ι → α → ℝ} {i : ι} (hi : i ∈ M) :
    eps0H M hM truth P ≤ BayesRedundancy.sqHellinger truth (P i)

    eps0H is at most every competitor's squared-Hellinger separation (Finset.inf'_le).

    theorem ReflectiveSubsystems.hsep_of_eps0H {A : Type u_1} {ι : Type u_2} [Fintype A] [DecidableEq A] [Fintype ι] [DecidableEq ι] (q : ι → ℕ → A → ℝ) (ω : ℕ → A) (R : ι) (ε₀ : ℝ) (n : ℕ) (hne : (Finset.univ.erase R).Nonempty) (hfloor : ∀ t ∈ Finset.range n, ε₀ ≤ eps0H (Finset.univ.erase R) hne (fun (x : A) => if x = ω t then 1 else 0) fun (i : ι) => q i t) (i : ι) :
    i ≠ R → ∀ t ∈ Finset.range n, ε₀ ≤ BayesRedundancy.sqHellinger (fun (x : A) => if x = ω t then 1 else 0) (q i t)

    Reconnection to DeterministicDiscovery. A per-step eps0H-floor over the competitors (univ.erase R), with the truth's step-t pmf the realized point mass δ_{ω t}, discharges the per-instance separation hypothesis hsep of deterministic_discovery — the honest form: the per-step floor ε₀ ≤ eps0H … (δ_{ω t}) (q · t) at every t < n gives ∀ i ≠ R, ∀ t < n, ε₀ ≤ sqHellinger (δ_{ω t}) (q i t).

    theorem ReflectiveSubsystems.discovery_of_eps0H {A : Type u_1} {ι : Type u_2} [Fintype A] [DecidableEq A] [Fintype ι] [DecidableEq ι] {q : ι → ℕ → A → ℝ} {w : ι → ℝ} {ω : ℕ → A} {R : ι} (hnn : ∀ (i : ι) (s : ℕ) (x : A), 0 ≤ q i s x) (hpmf : ∀ (i : ι) (s : ℕ), ∑ x : A, q i s x = 1) (hw : ∀ (i : ι), 0 ≤ w i) (k : ℕ) (hwR : w R = 2 ^ (-↑k)) (hsumw : ∑ i : ι, w i ≤ 1) (hreal : ∀ (s : ℕ), q R s (ω s) = 1) (δ ε₀ : ℝ) (hδ : 0 < δ) (hε : 0 < ε₀) (n : ℕ) (hne : (Finset.univ.erase R).Nonempty) (hfloor : ∀ t ∈ Finset.range n, ε₀ ≤ eps0H (Finset.univ.erase R) hne (fun (x : A) => if x = ω t then 1 else 0) fun (i : ι) => q i t) (hT : (↑k * Real.log 2 + Real.log (2 / δ)) / (2 * ε₀) ≤ ↑n) :
    1 - δ / 2 ≤ w R * BayesRedundancy.Lik q ω R n / BayesRedundancy.Pbarₚ q w ω n

    eps0H drives Theorem 3.1. With a per-step eps0H-floor ε₀ (via hsep_of_eps0H) and n ≥ T_discover, the prequential posterior concentrates on the true rule: wpost ≥ 1 − δ/2. This is deterministic_discovery with its hsep supplied by the genuine ε₀-Hellinger floor.

    Target B — the ε₀ → query-separation bridge #

    noncomputable def ReflectiveSubsystems.tv {α : Type u_1} [Fintype α] (p q : α → ℝ) :

    Total variation of two finite "distributions": TV(p,q) = (1/2)·∑ₓ |p x − q x|.

    Equations
    Instances For
      theorem ReflectiveSubsystems.sqHellinger_le_tv {α : Type u_1} [Fintype α] (p q : α → ℝ) (hp : ∀ (x : α), 0 ≤ p x) (hq : ∀ (x : α), 0 ≤ q x) :

      Squared Hellinger dominated by TV. D_H²(p,q) ≤ TV(p,q) for finite nonnegative p, q — the pointwise (√a − √b)² ≤ |a − b| (|a − b| = |√a − √b|·(√a + √b) ≥ |√a − √b|² = (√a − √b)², the triangle bound |√a − √b| ≤ √a + √b). This is the lower bound TV ≥ D_H² used by the bridge.

      theorem ReflectiveSubsystems.exists_separating_query {α : Type u_1} [Fintype α] (p q : α → ℝ) :
      ∃ (φ : α → ℝ), (∀ (x : α), |φ x| ≤ 1) ∧ 2 * tv p q ≤ |∑ x : α, p x * φ x - ∑ x : α, q x * φ x|

      The sign-set query realizes the TV gap. There is a [−1,1]-valued query φ with 2·TV(p,q) ≤ |E_p[φ] − E_q[φ]| — take φ = sign(p − q), for which the gap equals ∑ₓ|p x − q x| = 2·TV exactly (≤ suffices). This is TV = (1/2)·sup_{|φ|≤1}|∑(p−q)φ| in the direction we need.

      theorem ReflectiveSubsystems.identifiable_of_sqHellinger {α : Type u_1} [Fintype α] (p q : α → ℝ) (hp : ∀ (x : α), 0 ≤ p x) (hq : ∀ (x : α), 0 ≤ q x) (ε₀ : ℝ) (hsep : ε₀ ≤ BayesRedundancy.sqHellinger p q) :
      ∃ (φ : α → ℝ), (∀ (x : α), |φ x| ≤ 1) ∧ 2 * ε₀ ≤ |∑ x : α, p x * φ x - ∑ x : α, q x * φ x|

      The bridge. Finite nonnegative pmfs with sqHellinger p q ≥ ε₀ admit a [−1,1] query whose mean gap is ≥ 2·ε₀: D_H² ≥ ε₀ ⟹ TV ≥ ε₀ (sqHellinger_le_tv) ⟹ the sign query's 2·TV-gap is ≥ 2·ε₀. NOTE (fidelity): the certified gap is 2·ε₀, at the squared-Hellinger scale — NOT the 2·√ε₀ a "mean-level" reading would assume; see the module boundary note.

      noncomputable def ReflectiveSubsystems.meanAns {α : Type u_1} [Fintype α] (φ p : α → ℝ) :

      The mean-level answer functional meanAns φ p = E_p[φ] = ∑ₓ p x · φ x. Instantiates SQObjects.ans : Q → ι → ℝ with queries Q = α → ℝ and candidate pmfs ι = α → ℝ.

      Equations
      Instances For
        theorem ReflectiveSubsystems.separates_of_sqHellinger {α : Type u_1} [Fintype α] (p q : α → ℝ) (hp : ∀ (x : α), 0 ≤ p x) (hq : ∀ (x : α), 0 ≤ q x) (ε₀ τ : ℝ) (hsep : ε₀ ≤ BayesRedundancy.sqHellinger p q) (hτ : τ < ε₀) :
        ∃ (φ : α → ℝ), (∀ (x : α), |φ x| ≤ 1) ∧ 2 * τ < |meanAns φ p - meanAns φ q|

        Identifiability in FV-J/FV-L's vocabulary. Distinct rules with squared-Hellinger separation ε₀ are 2τ-identifiable for any τ < ε₀: there is a [−1,1] query φ with 2τ < |meanAns φ p − meanAns φ q| — i.e. SQObjects.Separates (2*τ) meanAns φ p q (definitionally, since Separates c ans φ i j := c < |ans φ i − ans φ j|). The honest τ < ε₀ threshold: the guaranteed gap is 2ε₀, so 2τ < 2ε₀ ≤ gap. (A τ ≲ √ε₀ claim would need the mean-level assumption; see the boundary note.)