Documentation

ReflectiveSubsystems.SQMixtureSupermartingale

The mixture mass Z_t as a genuine supermartingale ([SQ] Appendix A, FV-I) #

Provenance: [SQ], Appendix A: "Ville's inequality: the likelihood ratio is a non-negative supermartingale under realizability", with Z_t = βˆ‘ w(R')Β·L_t(R') and 𝔼[Z_0] ≀ 1 by Kraft. This is exactly the premise FV-G's chained theorem (ReflectiveSubsystems.search_phase_mass_ville_chain, ReflectiveSubsystems/SQSearchPhaseMass.lean) still carries as hsuper : Supermartingale Z β„± ΞΌ. FV-I constructs that Z on a trajectory space, discharging the premise for the paper's realizable-deterministic regime ([Discovery] Β§3): candidates are deterministic rules, the truth predicts the realized symbol with probability 1, so each per-step likelihood factor of a candidate lies in [0,1] and L_t(R') = ∏_{s<t} (factor s).

Key design fact (why this needs no Ionescu–Tulcea construction) #

With factors in [0,1], L_t β€” hence Z_t β€” is pointwise NON-INCREASING in t. A pointwise-antitone, adapted, bounded non-negative process is a supermartingale for ANY probability measure: ΞΌ[Z_j | β„±_i] ≀ ΞΌ[Z_i | β„±_i] = Z_i by condExp_mono plus condExp_of_stronglyMeasurable. So the truth's law stays an ARBITRARY probability measure on β„• β†’ X; no product-measure / Kernel.traj machinery is needed. The stochastic-truth case (a genuine martingale argument) is explicitly out of scope (GrΓΌnwald–Mehta stochastic case).

Filtration: Mathlib's MeasureTheory.Filtration.piLE on β„• β†’ X β€” piLE i is the Οƒ-algebra of events depending only on coordinates ≀ i. FOUND in Mathlib (not hand-rolled).

What this DOES establish #

What this does NOT establish (out of scope; no overclaiming) #

@[reducible, inline]

The coordinate filtration on the trajectory space β„• β†’ X (Mathlib's Filtration.piLE): coordFil X n is the Οƒ-algebra of events depending only on coordinates ≀ n.

Equations
Instances For
    def ReflectiveSubsystems.L {X : Type u_1} {ΞΉ : Type u_2} (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (i : ΞΉ) (t : β„•) (Ο‰ : β„• β†’ X) :

    Candidate i's likelihood up to time t: the product of its per-step factors.

    Equations
    Instances For
      def ReflectiveSubsystems.Z {X : Type u_1} {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (t : β„•) (Ο‰ : β„• β†’ X) :

      The prequential mixture mass Z_t = βˆ‘_{i ∈ cands} w(i)Β·L_i(t).

      Equations
      Instances For
        theorem ReflectiveSubsystems.Z_nonneg {X : Type u_1} {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hg01 : βˆ€ (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X), g i s Ο‰ ∈ Set.Icc 0 1) (t : β„•) (Ο‰ : β„• β†’ X) :
        0 ≀ Z cands w g t Ο‰

        Z_t β‰₯ 0: a nonnegative-weighted sum of products of nonnegative factors.

        theorem ReflectiveSubsystems.Z_le_one {X : Type u_1} {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hkraft : βˆ‘ i ∈ cands, w i ≀ 1) (hg01 : βˆ€ (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X), g i s Ο‰ ∈ Set.Icc 0 1) (t : β„•) (Ο‰ : β„• β†’ X) :
        Z cands w g t Ο‰ ≀ 1

        Z_t ≀ βˆ‘ w ≀ 1: each likelihood is ≀ 1 (product of [0,1] factors), then Kraft.

        theorem ReflectiveSubsystems.Z_antitone {X : Type u_1} {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hg01 : βˆ€ (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X), g i s Ο‰ ∈ Set.Icc 0 1) (Ο‰ : β„• β†’ X) :
        Antitone fun (t : β„•) => Z cands w g t Ο‰

        Z is pointwise non-increasing: appending a [0,1] factor cannot increase any likelihood.

        theorem ReflectiveSubsystems.Z_stronglyAdapted {X : Type u_1} [MeasurableSpace X] {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) (hgmeas : βˆ€ (i : ΞΉ) (s : β„•), MeasureTheory.StronglyMeasurable (g i s)) :

        Z is strongly adapted to the coordinate filtration: the factor g i s looks only at coordinates ≀ s + 1, and for s < t that Οƒ-algebra sits inside coordFil X t.

        theorem ReflectiveSubsystems.Z_supermartingale {X : Type u_1} [MeasurableSpace X] {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) {ΞΌ : MeasureTheory.Measure (β„• β†’ X)} (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hkraft : βˆ‘ i ∈ cands, w i ≀ 1) (hg01 : βˆ€ (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X), g i s Ο‰ ∈ Set.Icc 0 1) (hgmeas : βˆ€ (i : ΞΉ) (s : β„•), MeasureTheory.StronglyMeasurable (g i s)) [MeasureTheory.IsProbabilityMeasure ΞΌ] :

        Z is a genuine MeasureTheory.Supermartingale for ANY probability truth law ΞΌ: adapted + integrable + ΞΌ[Z_{i+1} | β„±_i] ≀ ΞΌ[Z_i | β„±_i] = Z_i (condExp_mono on the antitone step, then condExp_of_stronglyMeasurable). No martingale / product-measure construction.

        theorem ReflectiveSubsystems.integral_Z_zero_le_one {X : Type u_1} [MeasurableSpace X] {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) {ΞΌ : MeasureTheory.Measure (β„• β†’ X)} (hkraft : βˆ‘ i ∈ cands, w i ≀ 1) [MeasureTheory.IsProbabilityMeasure ΞΌ] :
        ∫ (x : β„• β†’ X), Z cands w g 0 x βˆ‚ΞΌ ≀ 1

        𝔼[Z_0] ≀ 1: Z_0 = βˆ‘ w is constant (empty product = 1), and Kraft gives βˆ‘ w ≀ 1.

        theorem ReflectiveSubsystems.search_phase_mass_bound {X : Type u_1} [MeasurableSpace X] {ΞΉ : Type u_2} (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (g : ΞΉ β†’ β„• β†’ (β„• β†’ X) β†’ ℝ) {ΞΌ : MeasureTheory.Measure (β„• β†’ X)} (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hkraft : βˆ‘ i ∈ cands, w i ≀ 1) (hg01 : βˆ€ (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X), g i s Ο‰ ∈ Set.Icc 0 1) (hgmeas : βˆ€ (i : ΞΉ) (s : β„•), MeasureTheory.StronglyMeasurable (g i s)) [MeasureTheory.IsProbabilityMeasure ΞΌ] (Ξ΄ : ℝ) (hΞ΄0 : 0 < Ξ΄) {ΞΊ : Type u_3} (pruned : (β„• β†’ X) β†’ Finset ΞΊ) (mfun : (β„• β†’ X) β†’ ΞΊ β†’ ℝ) (Ξ¦ : (β„• β†’ X) β†’ β„• β†’ ℝ) (N : β„•) (Cc : ℝ) (hm1 : βˆ€ (Ο‰ : β„• β†’ X), βˆ€ i ∈ pruned Ο‰, mfun Ο‰ i < 1) (hΞ¦0 : βˆ€ (Ο‰ : β„• β†’ X), Ξ¦ Ο‰ 0 ≀ Cc) (hΞ¦n : βˆ€ (Ο‰ : β„• β†’ X), 0 ≀ Ξ¦ Ο‰ N) (hcharge : βˆ€ (Ο‰ : β„• β†’ X), (βˆ€ (t : β„•), Z cands w g t Ο‰ < 1 / Ξ΄) β†’ βˆ‘ i ∈ pruned Ο‰, -Real.log (1 - mfun Ο‰ i) ≀ βˆ‘ k ∈ Finset.range N, (Ξ¦ Ο‰ k - Ξ¦ Ο‰ (k + 1)) + Real.log (1 / Ξ΄)) :
        ΞΌ {Ο‰ : β„• β†’ X | Cc + Real.log (1 / Ξ΄) < βˆ‘ i ∈ pruned Ο‰, mfun Ο‰ i} ≀ ENNReal.ofReal Ξ΄

        FV-I capstone: the FV-G search-phase mass bound, with its supermartingale / nonnegativity / 𝔼[Z_0] ≀ 1 premises DISCHARGED by the constructed mixture Z. Only the FV-G search-side data survives as hypotheses (pruned, m, Ξ¦, hcharge β€” now conditioned on the concrete βˆ€ t, Z t Ο‰ < 1/Ξ΄).

        The deterministic-rule factor (completing FV-I for the paper's rule class) #

        [Discovery] / [SQ] rules are DETERMINISTIC: a candidate R' predicts a single next symbol pred R' s h ∈ X from the length-s history h, so its per-step likelihood of the realized symbol is 0/1. This section instantiates the abstract factor g at that concrete detFactor, discharging FV-I's last named hypothesis (hgmeas) for the deterministic regime: the strong measurability is PROVED from Filtration.piLE's coordinate structure (both the predicted symbol and the realized symbol Ο‰ s depend only on coordinates ≀ s + 1), the alphabet X being discrete (Countable + MeasurableSingletonClass) so equality-events are measurable.

        def ReflectiveSubsystems.detFactor {X : Type u_1} [DecidableEq X] {ΞΉ : Type u_2} (pred : ΞΉ β†’ (s : β„•) β†’ (Fin s β†’ X) β†’ X) (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X) :

        The per-step likelihood of a DETERMINISTIC candidate: 1 if the rule pred i predicts the realized symbol Ο‰ s from the history Ο‰|_{<s}, else 0 ([Discovery] / [SQ] rules are deterministic: p_{R'}(x ∣ h) ∈ {0,1}).

        Equations
        Instances For
          theorem ReflectiveSubsystems.detFactor_mem_Icc {X : Type u_1} [DecidableEq X] {ΞΉ : Type u_2} (pred : ΞΉ β†’ (s : β„•) β†’ (Fin s β†’ X) β†’ X) (i : ΞΉ) (s : β„•) (Ο‰ : β„• β†’ X) :
          detFactor pred i s Ο‰ ∈ Set.Icc 0 1

          A deterministic factor is {0,1}-valued, hence in [0,1] β€” the hg01 input to Z.

          theorem ReflectiveSubsystems.detFactor_stronglyMeasurable {X : Type u_1} [MeasurableSpace X] [Countable X] [MeasurableSingletonClass X] [DecidableEq X] {ΞΉ : Type u_2} (pred : ΞΉ β†’ (s : β„•) β†’ (Fin s β†’ X) β†’ X) (i : ΞΉ) (s : β„•) :

          The equality event {Ο‰ | pred i s (Ο‰|_{<s}) = Ο‰ s} is coordFil X (s+1)-measurable β€” both the predicted symbol and the realized symbol Ο‰ s factor through coordinates ≀ s + 1 (piLE is the comap of the Set.Iic (s+1)-restriction), and the discrete alphabet makes equality measurable β€” so the {0,1}-valued detFactor is β„±_{s+1}-strongly measurable (the hgmeas input to Z).

          theorem ReflectiveSubsystems.L_det_eq_indicator {X : Type u_1} [DecidableEq X] {ΞΉ : Type u_2} (pred : ΞΉ β†’ (s : β„•) β†’ (Fin s β†’ X) β†’ X) (i : ΞΉ) (t : β„•) (Ο‰ : β„• β†’ X) :
          L (detFactor pred) i t Ο‰ = if βˆ€ s ∈ Finset.range t, (pred i s fun (k : Fin s) => Ο‰ ↑k) = Ο‰ s then 1 else 0

          The deterministic likelihood is the indicator of FULL consistency: L_t = 1 iff the rule predicts every realized symbol up to time t, else 0 (a product of 0/1 indicators). This makes Z for deterministic rules literally the alive-consistent posterior mass β€” the paper's picture.

          theorem ReflectiveSubsystems.Z_det_supermartingale {X : Type u_1} [MeasurableSpace X] [Countable X] [MeasurableSingletonClass X] [DecidableEq X] {ΞΉ : Type u_2} {ΞΌ : MeasureTheory.Measure (β„• β†’ X)} [MeasureTheory.IsProbabilityMeasure ΞΌ] (cands : Finset ΞΉ) (w : ΞΉ β†’ ℝ) (pred : ΞΉ β†’ (s : β„•) β†’ (Fin s β†’ X) β†’ X) (hw : βˆ€ i ∈ cands, 0 ≀ w i) (hkraft : βˆ‘ i ∈ cands, w i ≀ 1) :

          FV-I hardening: Z for the paper's DETERMINISTIC rule class is a genuine supermartingale for ANY probability truth law, with NO abstract-g hypotheses left β€” only the deterministic rule pred, the weights, and Kraft.