Documentation

ReflectiveSubsystems.BirkhoffTool

Trajectory space and the shift #

def ReflectiveSubsystems.shift {X : Type u_1} :
(ℕ → X) → ℕ → X

The left shift on the trajectory space ℕ → X: (shift ω) i = ω (i + 1). A probability measure with MeasurePreserving shift μ μ is a stationary trajectory law; Ergodic shift μ is an ergodic stationary trajectory law.

Equations
Instances For
    theorem ReflectiveSubsystems.birkhoffAverage_eq_empiricalMean {X : Type u_1} (φ : (ℕ → X) → ℝ) (n : ℕ) (ω : ℕ → X) :

    The bridge. The Birkhoff time-average of φ along the shift orbit through ω is exactly the single-orbit empirical mean SQOracle.empiricalMean of the query-ensemble i ↦ φ ∘ shift^[i]. Definitional up to smul = mul on ℝ.

    Tool (i): the single-orbit law of large numbers (qualitative) #

    theorem ReflectiveSubsystems.timeAverage_tendsto_expectation {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (herg : Ergodic shift μ) (φ : (ℕ → X) → ℝ) (hφ : MeasureTheory.Integrable φ μ) :
    ∀ᵐ (ω : ℕ → X) ∂μ, Filter.Tendsto (fun (n : ℕ) => SQOracle.empiricalMean (fun (i : ℕ) => φ ∘ shift^[i]) n ω) Filter.atTop (nhds (∫ (x : ℕ → X), φ x ∂μ))

    Tool (i), qualitative — single-orbit LLN from the pointwise ergodic theorem. For an ergodic, measure-preserving (stationary) trajectory law μ on ℕ → X and an integrable observable φ, the single-orbit time-average of φ converges μ-a.e. to the mean ∫ φ ∂μ.

    Proof: the vendored pointwise Birkhoff theorem gives a.e. convergence to the invariant conditional expectation μ[φ | invariants shift]; ergodicity (Ergodic.ae_eq_const_of_ae_eq_comp₀) collapses that invariant function to a constant, which integral_condExp identifies as the mean ∫ φ ∂μ.

    Tool (i), quantitative: the FJS-shaped mixing Hoeffding hypothesis and its oracle corollaries #

    The qualitative Tool (i) above gives no rate. The single-orbit rate is supplied by one named hypothesis in the citable spectral-gap Hoeffding shape, from which the FV-E oracle-error interface is reached by the same real-analysis as SQOracle.sq_oracle_sample_complexity.

    theorem ReflectiveSubsystems.mixingHoeffding_of_iid {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ : ℝ) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hbdd : ∀ (i : ℕ) (ω : ℕ → X), Z i ω ∈ Set.Icc (-1) 1) (hindep : ProbabilityTheory.iIndepFun Z μ) (hmean : ∀ (i : ℕ), ∫ (ω : ℕ → X), Z i ω ∂μ = predZ) :
    MixingHoeffding μ Z predZ 1

    MixingHoeffding at c = 1 is the i.i.d. case, genuinely ([SQ] §3.2, Tool (i); FV-M). The FJS-shaped hypothesis above is exactly SQOracle.sq_oracle_concentration's conclusion once c = 1 collapses the denominator 2 * c to 2: an i.i.d. ensemble of trajectories satisfies MixingHoeffding at the constant its own Hoeffding bound gives, with no mixing hypothesis needed.

    theorem ReflectiveSubsystems.mixingHoeffding_of_nonpos {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (hc : c ≤ 0) :
    MixingHoeffding μ Z predZ c

    The c ≤ 0 vacuity of MixingHoeffding ([Inevitability] §2, Definition 2.3's e1 field — the existential there quantifies c away). MixingHoeffding μ Z predZ c holds trivially whenever c ≤ 0, for EVERY probability law μ, query ensemble Z, and target predZ: the mixing constant carries the hypothesis's entire content, and this is the boundary at which it carries none. Real division's x / 0 = 0 convention pins the exponent at 0 when c = 0; at c < 0 the exponent is nonnegative for the opposite reason (a nonpositive numerator over a negative denominator). Either way the right-hand side is ≥ 2, dominating any probability.

    MixingHoeffding from a deterministic deviation envelope, measure-agnostic #

    No probability computation is needed: a deterministic bound on how far the empirical mean can stray from the declared answer, at every sample size, already forces the FJS tail bound at every probability law supported on the trajectories obeying it — the vacuity lemma above is this lemma's E = 0 case, and a Dirac law is its single-point case.

    theorem ReflectiveSubsystems.mixingHoeffding_of_deviation_bound {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ E : ℝ) (hE : 0 ≤ E) (hbound : ∀ᵐ (ω : ℕ → X) ∂μ, ∀ (n : ℕ), 1 ≤ n → ↑n * |SQOracle.empiricalMean Z n ω - predZ| ≤ E) :
    MixingHoeffding μ Z predZ (E ^ 2 / (2 * Real.log 2))

    MixingHoeffding from a deterministic deviation envelope ([Inevitability]'s membership endgame; the measure-form reading over a finite host's phase law). For ANY probability law μ, once a deviation bound n * |empiricalMean Z n ω - predZ| ≤ E holds μ-a.e. at every sample size n ≥ 1, μ satisfies MixingHoeffding at the constant E² / (2 ln 2) — no probability computation, measurability, or independence assumption needed.

    Proof: fix n ≥ 1, τ ≥ 0. Past τ = E/n the deviation event is μ-a.e. empty (the envelope already keeps |empiricalMean Z n ω - predZ| ≤ E/n < τ), so its measure is 0. Below τ = E/n, n·τ² ≤ E², and one_le_two_exp_of_deviation shows this already forces the tail bound's own right side above 1, which dominates any probability.

    theorem ReflectiveSubsystems.mixingHoeffding_dirac_of_deviation_bound {X : Type u_1} [MeasurableSpace X] (ω₀ : ℕ → X) (Z : ℕ → (ℕ → X) → ℝ) (predZ E : ℝ) (hE : 0 ≤ E) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hbound : ∀ (n : ℕ), 1 ≤ n → ↑n * |SQOracle.empiricalMean Z n ω₀ - predZ| ≤ E) :

    The Dirac corollary of mixingHoeffding_of_deviation_bound. At a single fixed trajectory ω₀, the a.e. hypothesis collapses to a pointwise one: MixingHoeffding at Measure.dirac ω₀ follows directly from the deviation bound holding at ω₀ itself. Needs measurability of the query ensemble to compute the Dirac measure of the (possibly non-open/closed) deviation event, the same requirement ReflectiveSubsystems.mixingHoeffding_dirac_iff carries.

    Finite-horizon MixingHoeffding: the predicate MixingHoeffdingTo #

    No consumer of MixingHoeffding above uses more than one sample size — verified at the three oracle corollaries and at not_mixingHoeffding_pinned's own witness: each applies the hypothesis at exactly the n its own bound names. MixingHoeffdingTo restricts the quantifier to a finite horizon N and changes nothing else, so every conclusion above is available verbatim for a run whose sample size clears its own bound inside the horizon. All three oracle corollaries below now carry exactly that bounded twin (mixing_oracle_tail_to, mixing_oracle_sample_complexity_to, mixing_oracle_truth_survives_noisy_to), each unbounded form recovered from its own twin at N := n.

    theorem ReflectiveSubsystems.mixingHoeffdingTo_of_le_floor {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (N : ℕ) (hc : 0 < c) (hZ : ∀ (i : ℕ) (ω : ℕ → X), Z i ω ∈ Set.Icc (-1) 1) (hpred : predZ ∈ Set.Icc (-1) 1) (hN : ↑N ≤ c * Real.log 2 / 2) :

    The vacuity floor for MixingHoeffdingTo. Below the horizon N ≤ c·log 2 / 2, every [−1, 1]-normalized law satisfies the predicate — the finite-horizon sibling of mixingHoeffding_of_nonpos's c ≤ 0 vacuity, and the reason a finite-horizon E1 claim must travel with its horizon stated against its constant. At tolerance τ ≤ 2 the tail bound's right side is already ≥ 1, since n·τ² ≤ 4n ≤ 4N ≤ 2c·log 2; past τ = 2 the deviation event is empty outright, since a [−1, 1]-bounded ensemble's empirical mean, against a [−1, 1]-bounded declared answer, never strays more than 2.

    theorem ReflectiveSubsystems.not_mixingHoeffdingTo_pinned {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] {c : ℝ} (hc : 0 < c) {N : ℕ} (hN : ⌈2 * c * Real.log 2⌉₊ + 1 ≤ N) :
    ¬MixingHoeffding.MixingHoeffdingTo N μ (fun (x : ℕ) (x_1 : ℕ → X) => 1) 0 c

    MixingHoeffdingTo at positive c is refutable past its own vacuity floor. The same pinned witness as not_mixingHoeffding_pinned — the constant ensemble Z i ≡ 1 against predZ = 0 — refutes the bounded predicate at every horizon N ≥ ⌈2c·log 2⌉₊ + 1: that is the same n₀ the unbounded refutation fixes, so instantiating hmix there needs only n₀ ≤ N. Below that horizon mixingHoeffdingTo_of_le_floor already covers every law, so the two results meet exactly at the threshold the floor names — a large enough c drops N under the floor and every law passes, which is the floor working rather than the guard failing.

    theorem ReflectiveSubsystems.not_mixingHoeffding_pinned {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] {c : ℝ} (hc : 0 < c) :
    ¬MixingHoeffding μ (fun (x : ℕ) (x_1 : ℕ → X) => 1) 0 c

    MixingHoeffding at positive c is refutable: a frozen orbit is not mixing ([Inevitability] §5, Theorem 5.1(a): "the update is a permutation, so E1 fails"). The constant query ensemble Z i ≡ 1 against the declared answer predZ = 0 witnesses this at every positive mixing constant c: the empirical mean never moves off 1, so the deviation event at tolerance τ = 1 is the whole space, and no exponential tail bound with a fixed positive c can dominate a probability pinned at 1 for arbitrarily large n. c ≤ 0 is excluded by hypothesis, as it must be — see mixingHoeffding_of_nonpos. See not_mixingHoeffdingTo_pinned for the finite-horizon form this specializes.

    theorem ReflectiveSubsystems.not_mixingHoeffding_of_periodic_ne {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c avg : ℝ) (hc : 0 < c) (Pd : ℕ) (hPd : 0 < Pd) (hper : ∀ (ω : ℕ → X) (m : ℕ), 0 < m → SQOracle.empiricalMean Z (m * Pd) ω = avg) (hne : avg ≠ predZ) :
    ¬MixingHoeffding μ Z predZ c

    A periodic empirical mean, disagreeing with the declared answer, refutes MixingHoeffding. A process whose empirical mean is a constant avg at every positive multiple of a period Pd — the observation process of any deterministic finite host, whose orbit must eventually repeat — refutes the unbounded predicate at every positive mixing constant c: the deviation from the declared answer predZ is the fixed gap |avg − predZ| at every one of those n, so the tail event is the whole space at tolerance τ = |avg − predZ| / 2, and no fixed positive c can keep the exponential bound below 1 for arbitrarily large n. not_mixingHoeffding_pinned is the Pd = 1, avg = 1, predZ = 0 case; stating this one beside it is the point.

    This is the exact obstruction a periodic host faces: a finite deterministic system's observation process is periodic, so unless its declared answers are its own period averages, no positive constant saves it — a guard family in the corpus's usual sense, kept beside the theorem whose e1 hypothesis it makes load-bearing.

    theorem ReflectiveSubsystems.mixingHoeffdingTo_mono_const {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) (Z : ℕ → (ℕ → X) → ℝ) (predZ : ℝ) {c c' : ℝ} (N : ℕ) (hcc : c ≤ c') (hc : 0 < c) (h : MixingHoeffding.MixingHoeffdingTo N μ Z predZ c) :

    MixingHoeffdingTo is monotone in the mixing constant. A schedule's queries carry different mixing constants (ReflectiveSubsystems.scheduledConst branches between samePairConst and pairConst); this lifts a per-query MixingHoeffdingTo at its own constant c to any larger constant c', since widening the FJS variance proxy only weakens the tail bound.

    theorem ReflectiveSubsystems.mixing_oracle_sample_complexity_to {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (N n : ℕ) (τ δ : ℝ) (hmix : MixingHoeffding.MixingHoeffdingTo N μ Z predZ c) (hc : 0 < c) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hn1 : 1 ≤ n) (hnN : n ≤ N) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) :
    1 - δ ≤ μ.real {ω : ℕ → X | |SQOracle.empiricalMean Z n ω - predZ| < τ}

    Single-orbit oracle sample complexity, finite horizon (from MixingHoeffdingTo), in the exact shape mixing_oracle_truth_survives_noisy_to consumes: with n ≥ (2c/τ²)·log(2/δ) and n ≤ N, n single-orbit steps answer the SQ query to tolerance τ with confidence ≥ 1 − δ. The bounded twin of mixing_oracle_sample_complexity, which is recovered from it below via mixingHoeffdingTo_of_mixingHoeffding, the same pattern as mixing_oracle_tail_to.

    theorem ReflectiveSubsystems.mixing_oracle_sample_complexity {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (n : ℕ) (τ δ : ℝ) (hmix : MixingHoeffding μ Z predZ c) (hc : 0 < c) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hn1 : 1 ≤ n) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) :
    1 - δ ≤ μ.real {ω : ℕ → X | |SQOracle.empiricalMean Z n ω - predZ| < τ}

    Single-orbit oracle sample complexity (from MixingHoeffding). n ≥ (2c/τ²)·log(2/δ) single-orbit steps answer the SQ query to tolerance τ with confidence ≥ 1 − δ — the same conclusion shape as the i.i.d. SQOracle.sq_oracle_sample_complexity, with the mixing constant c inflating the sample size by exactly the factor c.

    theorem ReflectiveSubsystems.mixing_oracle_tail_to {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (N n : ℕ) (τ δ : ℝ) (hmix : MixingHoeffding.MixingHoeffdingTo N μ Z predZ c) (hc : 0 < c) (hn1 : 1 ≤ n) (hnN : n ≤ N) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) :
    μ {ω : ℕ → X | τ < |SQOracle.empiricalMean Z n ω - predZ|} ≤ ENNReal.ofReal δ

    Single-orbit oracle tail bound, finite horizon (from MixingHoeffdingTo), in the exact shape the FV-E oracle object SQOracle.empirical_isSQOracle consumes: with n ≥ (2c/τ²)·log(2/δ) and n ≤ N, the single-orbit empirical answer fails tolerance τ with probability ≤ δ. The bounded twin of mixing_oracle_tail, which is recovered from it below via mixingHoeffdingTo_of_mixingHoeffding.

    theorem ReflectiveSubsystems.mixing_oracle_tail {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predZ c : ℝ) (n : ℕ) (τ δ : ℝ) (hmix : MixingHoeffding μ Z predZ c) (hc : 0 < c) (hn1 : 1 ≤ n) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) :
    μ {ω : ℕ → X | τ < |SQOracle.empiricalMean Z n ω - predZ|} ≤ ENNReal.ofReal δ

    Single-orbit oracle tail bound (from MixingHoeffding), in the exact shape the FV-E oracle object SQOracle.empirical_isSQOracle consumes: with n ≥ (2c/τ²)·log(2/δ), the single-orbit empirical answer fails tolerance τ with probability ≤ δ.

    theorem ReflectiveSubsystems.mixing_oracle_truth_survives_noisy_to {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predR a c : ℝ) (N n : ℕ) (τ δ η : ℝ) (hmix : MixingHoeffding.MixingHoeffdingTo N μ Z a c) (hc : 0 < c) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hn1 : 1 ≤ n) (hnN : n ≤ N) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) (hη : 0 ≤ η) (hbudget : 2 * η ≤ τ) (hnoise : |a - predR| ≤ 2 * η) :
    1 - δ ≤ μ.real {ω : ℕ → X | |predR - SQOracle.empiricalMean Z n ω| ≤ 2 * τ}

    Single-orbit noisy truth-survival, finite horizon (from MixingHoeffdingTo; [SQ] §3.1's window-noise budget, carried to the single-trajectory route). The bounded twin of mixing_oracle_truth_survives_noisy, which is recovered from it below via mixingHoeffdingTo_of_mixingHoeffding: with n ≥ (2c/τ²)·log(2/δ), n ≤ N, and window-noise budget 2η ≤ τ, the deterministic-prediction truth predR's statistic lies within 2τ of the empirical answer with probability ≥ 1 − δ. Consumes mixing_oracle_sample_complexity_to for the concentration half and passes the mixing hypothesis down without applying it itself, which is why the horizon threads through unused past the first line.

    theorem ReflectiveSubsystems.mixing_oracle_truth_survives_noisy {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] (Z : ℕ → (ℕ → X) → ℝ) (predR a c : ℝ) (n : ℕ) (τ δ η : ℝ) (hmix : MixingHoeffding μ Z a c) (hc : 0 < c) (hmeas : ∀ (i : ℕ), Measurable (Z i)) (hn1 : 1 ≤ n) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 / δ) ≤ ↑n) (hη : 0 ≤ η) (hbudget : 2 * η ≤ τ) (hnoise : |a - predR| ≤ 2 * η) :
    1 - δ ≤ μ.real {ω : ℕ → X | |predR - SQOracle.empiricalMean Z n ω| ≤ 2 * τ}

    Single-orbit noisy truth-survival (from MixingHoeffding; [SQ] §3.1's window-noise budget, carried to the single-trajectory route). Mirrors SQOracle.sq_oracle_truth_survives_noisy, with the i.i.d.-ensemble sample complexity replaced by the single-orbit mixing_oracle_sample_complexity: with n ≥ (2c/τ²)·log(2/δ) single-orbit steps and window-noise budget 2η ≤ τ, the deterministic-prediction truth predR's statistic lies within 2τ of the empirical answer with probability ≥ 1 − δ — so the unchanged 2τ-pruning rule never discards it, on a mixing trajectory rather than an i.i.d. ensemble. At η = 0 (forcing a = predR) this composes mixing_oracle_sample_complexity with SQBounds.truth_survives_pruning.

    FV-E → FV-J union-bound glue, mixing case: a finite schedule over one orbit segment #

    The finite-horizon composition ([SQ] §3.3; FV-M): sq_oracle_uniform_tail's union bound applied to a schedule of queries each satisfying MixingHoeffdingTo at one shared constant c, giving FV-J's oracle object off an event of measure ≤ δ at a single sample size n ≤ N — the mixing, finite-horizon twin of SQOracle.empirical_isSQOracle_of_iid, which is its c = 1, N = n case.

    theorem ReflectiveSubsystems.empirical_isSQOracle_of_mixingTo {X : Type u_1} [MeasurableSpace X] (μ : MeasureTheory.Measure (ℕ → X)) [MeasureTheory.IsProbabilityMeasure μ] {Q : Type u_2} (Qs : Finset Q) (hQs : Qs.Nonempty) (Z : Q → ℕ → (ℕ → X) → ℝ) (tru : Q → ℝ) (c : ℝ) (N n : ℕ) (τ δ : ℝ) (hmix : ∀ φ ∈ Qs, MixingHoeffding.MixingHoeffdingTo N μ (Z φ) (tru φ) c) (hc : 0 < c) (hn1 : 1 ≤ n) (hnN : n ≤ N) (hτ : 0 < τ) (hδ0 : 0 < δ) (hn : 2 * c / τ ^ 2 * Real.log (2 * ↑Qs.card / δ) ≤ ↑n) :
    μ {ω : ℕ → X | SQObjects.IsSQOracle (fun (φ : ↥Qs) => SQOracle.empiricalMean (Z ↑φ) n ω) (fun (φ : ↥Qs) => tru ↑φ) τ}ᶜ ≤ ENNReal.ofReal δ

    Finite-horizon mixing oracle over a schedule ([SQ] §3.3; FV-M). A schedule of queries Qs, each representative below the horizon N at one shared mixing constant c (MixingHoeffdingTo N μ (Z φ) (tru φ) c for every φ ∈ Qs), gives FV-J's genuine oracle object SQObjects.IsSQOracle off an event of measure ≤ δ, at n ≤ N single-orbit steps of one orbit segment — the schedule entering only as log |Qs| in the sample size, exactly as empirical_isSQOracle_of_iid does at c = 1. Composes mixing_oracle_tail_to's per-query bound at δ' := δ/|Qs| with sq_oracle_uniform_tail's union bound.

    Axiom audit #

    not_mixingHoeffding_of_periodic_ne is #print axioms-clean on the standard triple, and the guard below makes that build-enforced.