MindFormal v1.0.0One Mind

MindFormal.Tools.A640Standards.KernelError

theorem MindFormal.A640Standards.KernelError.bounded_integrable {X : Type u_1} [MeasurableSpace X] (P : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure P] (f : X → ℝ) (hf : Measurable f) (h0 : ∀ (x : X), 0 ≤ f x) (h1 : ∀ (x : X), f x ≤ 1) :
theorem MindFormal.A640Standards.KernelError.oscillation {X : Type u_1} [MeasurableSpace X] (P Q : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] (f : X → ℝ) (hf : Measurable f) {l r : ℝ} (hr : 0 ≤ r) (bounds : ∀ (x : X), l ≤ f x ∧ f x ≤ l + r) :
|∫ (x : X), f x ∂P - ∫ (x : X), f x ∂Q| ≤ r * Page.totalVariation P Q

Equal total mass removes the common offset of a bounded test.

Uniform one-step minorization contracts TV by precisely 1-epsilon, including the complete-refresh endpoint epsilon=1.

Averaging a uniform row error introduces no independence premise.

Subtract both invariant equations, then contract with the reference kernel. Invariant existence is the printed hold, never inferred from a tube.

theorem MindFormal.A640Standards.KernelError.mark_error {X : Type u_1} {Y : Type u_2} [MeasurableSpace X] [MeasurableSpace Y] (K L : ProbabilityTheory.Kernel X X) [ProbabilityTheory.IsMarkovKernel K] [ProbabilityTheory.IsMarkovKernel L] (M R : ProbabilityTheory.Kernel X Y) [ProbabilityTheory.IsMarkovKernel M] [ProbabilityTheory.IsMarkovKernel R] (P Q ν : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] [MeasureTheory.IsProbabilityMeasure ν] {ε δP δK : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) (minor : ∀ (x : X), ENNReal.ofReal ε • ν ≤ L x) (transitions : ∀ (x : X), Page.totalVariation (K x) (L x) ≤ δP) (marks : ∀ (x : X), Page.totalVariation (M x) (R x) ≤ δK) (hP : P.bind ⇑K = P) (hQ : Q.bind ⇑L = Q) :
Page.totalVariation (P.bind ⇑M) (Q.bind ⇑R) ≤ min 1 (δP / ε + δK)

Uniform full-mark rows and invariant propagation yield the joint unconditioned mark error, before discarding any free/forced flag.

theorem MindFormal.A640Standards.KernelError.conditioned_event {Y : Type u_2} [MeasurableSpace Y] (P Q : MeasureTheory.Measure Y) [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] (free event : Set Y) (hf : MeasurableSet free) (he : MeasurableSet event) {Δ : ℝ} (error : Page.totalVariation P Q ≤ Δ) (positive : Δ < Q.real free) :
0 < P.real free ∧ |P.real (free ∩ event) / P.real free - Q.real (free ∩ event) / Q.real free| ≤ 2 * Δ / (Q.real free - Δ)

Ratio normalization pays for both the numerator and the denominator. The numerator is a subevent of the complete free event.

theorem MindFormal.A640Standards.KernelError.conditional_real {Y : Type u_2} [MeasurableSpace Y] (P : MeasureTheory.Measure Y) (free event : Set Y) (hf : MeasurableSet free) :
P[|free].real event = P.real (free ∩ event) / P.real free
theorem MindFormal.A640Standards.KernelError.conditioned_tv {Y : Type u_2} [MeasurableSpace Y] (P Q : MeasureTheory.Measure Y) [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] (free : Set Y) (hf : MeasurableSet free) {Δ : ℝ} (error : Page.totalVariation P Q ≤ Δ) (positive : Δ < Q.real free) :
0 < P.real free ∧ Page.totalVariation P[|free] Q[|free] ≤ min 1 (2 * Δ / (Q.real free - Δ))
theorem MindFormal.A640Standards.KernelError.incentive_error {Y : Type u_2} [MeasurableSpace Y] (P Q : MeasureTheory.Measure Y) [MeasureTheory.IsProbabilityMeasure P] [MeasureTheory.IsProbabilityMeasure Q] (u v : Y → ℝ) (hu : Measurable u) (hv : Measurable v) {l r δ : ℝ} (hr : 0 ≤ r) (bu : ∀ (x : Y), l ≤ u x ∧ u x ≤ l + r) (bv : ∀ (x : Y), l ≤ v x ∧ v x ≤ l + r) (error : Page.totalVariation P Q ≤ δ) :
|∫ (x : Y), u x ∂P - ∫ (x : Y), v x ∂P - (∫ (x : Y), u x ∂Q - ∫ (x : Y), v x ∂Q)| ≤ 2 * r * δ

A fixed deviation changes two payoff expectations, each charged by the declared payoff range. A violation exceeding this bill survives.