MindFormal v1.0.0One Mind

MindFormal.Tools.A640SharedReports.RiskTransfer

theorem MindFormal.A640SharedReports.square_unit {y x : ℝ} (hy : y ∈ Set.Icc 0 1) (hx : x ∈ Set.Icc 0 1) :
(y - x) ^ 2 ∈ Set.Icc 0 1
theorem MindFormal.A640SharedReports.square_lipschitz {y x z : ℝ} (hy : y ∈ Set.Icc 0 1) (hx : x ∈ Set.Icc 0 1) (hz : z ∈ Set.Icc 0 1) :
|(y - x) ^ 2 - (y - z) ^ 2| ≤ 2 * |x - z|
theorem MindFormal.A640SharedReports.risk_transfer {Ω : Type u_1} {I : Type u_2} [MeasurableSpace Ω] [Fintype I] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (Y f g : Ω → ℝ) (hY : Measurable Y) (hf : Measurable f) (hg : Measurable g) (bY : ∀ (ω : Ω), Y ω ∈ Set.Icc 0 1) (bf : ∀ (ω : Ω), f ω ∈ Set.Icc 0 1) (bg : ∀ (ω : Ω), g ω ∈ Set.Icc 0 1) (bad : I → Set Ω) (hb : ∀ (i : I), MeasurableSet (bad i)) (ε : I → ℝ) (bill : ∀ (i : I), μ.real (bad i) ≤ ε i) {e : ℝ} (he : 0 ≤ e) (coupling : ∀ (ω : Ω), (∀ (i : I), ω ∉ bad i) → |f ω - g ω| ≤ e) :
|∫ (ω : Ω), (Y ω - f ω) ^ 2 ∂μ - ∫ (ω : Ω), (Y ω - g ω) ^ 2 ∂μ| ≤ 2 * e + ∑ i : I, ε i

Every actual return/read failure contributes its own allowance. The coupling is on the complete experiment, without independence.