MindFormal v1.0.0One Mind

MindFormal.Tools.CompanionSharedEvidence.ProbeVariance

noncomputable def MindFormal.CompanionSharedEvidence.diffusionGenerator {J : Type u_1} [Fintype J] (drift : ℝ) (hessian : J → ℝ) :

Generator contraction at one checkpoint, with one directional Hessian contraction per original Brownian source.

Equations
Instances For
    def MindFormal.CompanionSharedEvidence.probeGamma {J : Type u_1} [Fintype J] (direction : J → ℝ) :
    Equations
    Instances For
      theorem MindFormal.CompanionSharedEvidence.generator_square {J : Type u_1} [Fintype J] (f drift : ℝ) (hessian direction : J → ℝ) :
      (diffusionGenerator (2 * f * drift) fun (j : J) => 2 * direction j ^ 2 + 2 * f * hessian j) - 2 * f * diffusionGenerator drift hessian = probeGamma direction

      The product jet cancels the entire drift and leaves precisely the original source quadratic coefficient; no zero-drift or centering premise is used.

      theorem MindFormal.CompanionSharedEvidence.square_loss_decomposition {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} (hX : MeasureTheory.MemLp X 2 μ) (a : ℝ) :
      ∫ (ω : Ω), (X ω - a) ^ 2 ∂μ = ProbabilityTheory.variance X μ + (∫ (ω : Ω), X ω ∂μ - a) ^ 2
      theorem MindFormal.CompanionSharedEvidence.deterministic_record_risk {Ω : Type u_1} {R : Type u_2} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} (hX : MeasureTheory.MemLp X 2 μ) (record : Ω → R) (r₀ : R) (constant : ∀ᵐ (ω : Ω) ∂μ, record ω = r₀) :
      (∀ (a : R → ℝ), ∫ (ω : Ω), (X ω - a (record ω)) ^ 2 ∂μ = ProbabilityTheory.variance X μ + (∫ (ω : Ω), X ω ∂μ - a r₀) ^ 2) ∧ ∫ (ω : Ω), (X ω - (fun (x : R) => ∫ (ω : Ω), X ω ∂μ) (record ω)) ^ 2 ∂μ = ProbabilityTheory.variance X μ ∧ ∀ (a : R → ℝ), ProbabilityTheory.variance X μ ≤ ∫ (ω : Ω), (X ω - a (record ω)) ^ 2 ∂μ

      A deterministic public record has an attaining mean predictor, and every record-only real predictor pays exactly its squared displacement from that mean.

      Independent identically distributed copies have exactly twice the original variance as their squared difference, before any small-time approximation.

      theorem MindFormal.CompanionSharedEvidence.moment_variance_limit (m q : ℝ → ℝ) (f l₁ l₂ : ℝ) (mean : Filter.Tendsto (fun (t : ℝ) => (m t - f) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds l₁)) (second : Filter.Tendsto (fun (t : ℝ) => (q t - f ^ 2) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds l₂)) :
      Filter.Tendsto (fun (t : ℝ) => (q t - m t ^ 2) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds (l₂ - 2 * f * l₁))

      The generator-domain hypotheses are the two printed first-order moment expansions. This subtraction proves the variance expansion rather than assuming it, using only a right-hand small-time limit.

      theorem MindFormal.CompanionSharedEvidence.moment_variance_littleO (m q : ℝ → ℝ) (f l₁ l₂ : ℝ) (mean : Filter.Tendsto (fun (t : ℝ) => (m t - f) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds l₁)) (second : Filter.Tendsto (fun (t : ℝ) => (q t - f ^ 2) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds l₂)) :
      (fun (t : ℝ) => q t - m t ^ 2 - t * (l₂ - 2 * f * l₁)) =o[nhdsWithin 0 (Set.Ioi 0)] fun (t : ℝ) => t
      theorem MindFormal.CompanionSharedEvidence.private_coefficient {J : Type u_1} [Fintype J] (direction : J → ℝ) (privateBlock : Finset J) (j : J) (hj : j ∈ privateBlock) (nonzero : direction j ≠ 0) :
      ∑ k ∈ privateBlock, direction k ^ 2 ≤ probeGamma direction ∧ 0 < ∑ k ∈ privateBlock, direction k ^ 2 ∧ 0 < probeGamma direction

      The coefficient from any declared private source block is a lower bound. Positivity requires a nonzero actual probe derivative in one such direction.

      theorem MindFormal.CompanionSharedEvidence.positive_small_time {v : ℝ → ℝ} {γ : ℝ} (hγ : 0 < γ) (limit : Filter.Tendsto (fun (t : ℝ) => v t / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds γ)) :
      ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ioi 0), 0 < v t
      theorem MindFormal.CompanionSharedEvidence.positive_square_difference {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) {X Y : Ω → ℝ} (positive : 0 < ∫ (ω : Ω), (X ω - Y ω) ^ 2 ∂μ) :
      0 < μ {ω : Ω | X ω ≠ Y ω}
      theorem MindFormal.CompanionSharedEvidence.bounded_tail_lower {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (Y : Ω → ℝ) (hY : Measurable Y) (bounded : ∀ (ω : Ω), Y ω ∈ Set.Icc 0 1) {u r : ℝ} (_hu : 0 ≤ u) (hu1 : u < 1) (moment : r ≤ ∫ (ω : Ω), Y ω ∂μ) :
      max 0 (r - u) / (1 - u) ≤ μ.real {ω : Ω | u < Y ω}

      Bounded second moment gives the printed finite separation margin. The positive part makes a vacuous lower moment estimate harmless.