MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch12.LeadConfidence.Calibration

theorem MindFormal.LeadConfidence.calibration_iff_bins {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (Q : Ω → ℝ) (hQ : Measurable Q) (hiQ : MeasureTheory.Integrable Q μ) (C : Set Ω) (hC : MeasurableSet C) :
μ[C.indicator fun (x : Ω) => 1 | MeasurableSpace.comap Q inferInstance] =ᵐ[μ] Q ↔ ∀ (s : Set Ω), MeasurableSet s → 0 < μ.real s → (∫ (ω : Ω) in s, Q ω ∂μ) / μ.real s - μ.real (s ∩ C) / μ.real s = 0

OC1.11 on the normalized completed-report law: calibration is equivalent to zero gap in every positive-mass category measurable from the report. No assumption about representative question sampling appears in either side.

theorem MindFormal.LeadConfidence.lead_calibration_sufficient {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (F : ℝ → ℝ) (lead : Ω → ℝ) (hlead : Measurable lead) (hF : Measurable F) (C : Set Ω) (cal : μ[C.indicator fun (x : Ω) => 1 | MeasurableSpace.comap lead inferInstance] =ᵐ[μ] fun (ω : Ω) => F (lead ω)) :
μ[C.indicator fun (x : Ω) => 1 | MeasurableSpace.comap (F ∘ lead) inferInstance] =ᵐ[μ] fun (ω : Ω) => F (lead ω)

Conditioning on the whole lead is sufficient; the tower passes to the registered report even when the scale identifies distinct leads.