MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.MatchedSaving.Population

theorem MindFormal.MatchedSaving.preparation_gap {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (r RL RH : Ω → ℝ) (high : MeasurableSet {ω : Ω | r ω < RH ω}) (nested : ∀ (ω : Ω), RH ω < RL ω) (noHighAtom : μ.real {ω : Ω | r ω = RH ω} = 0) :
μ.real {ω : Ω | r ω < RL ω} - μ.real {ω : Ω | r ω < RH ω} = μ.real {ω : Ω | RH ω < r ω ∧ r ω < RL ω}

M5: preparations, including their two cutoffs, are drawn before assignment. Only the high tie boundary needs removing in this subtraction; the source also excludes the low tie boundary when identifying first-act yes sets.

theorem MindFormal.MatchedSaving.positive_gap_iff {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (r RL RH : Ω → ℝ) (high : MeasurableSet {ω : Ω | r ω < RH ω}) (nested : ∀ (ω : Ω), RH ω < RL ω) (noHighAtom : μ.real {ω : Ω | r ω = RH ω} = 0) :
μ.real {ω : Ω | r ω < RH ω} < μ.real {ω : Ω | r ω < RL ω} ↔ 0 < μ.real {ω : Ω | RH ω < r ω ∧ r ω < RL ω}

M5's necessity and sufficiency is a statement about preparation mass, not a fitted distribution or the activity-share change alone.

theorem MindFormal.MatchedSaving.union_transfer {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] {yes reference bad strip : Set Ω} (hy : MeasurableSet yes) (hr : MeasurableSet reference) (disagreement : symmDiff yes reference ⊆ bad ∪ strip) {eps w : ℝ} (hb : μ.real bad ≤ eps) (hw : μ.real strip ≤ w) :
|μ.real yes - μ.real reference| ≤ eps + w

M9: disagreement is charged to one union of failed certificates and boundary preparations. No independence between those events is required. This measure lemma does not construct the native disagreement inclusion.

theorem MindFormal.MatchedSaving.all_trial_gap {pL pH pL0 pH0 zL zH : ℝ} (hL : |pL - pL0| ≤ zL) (hH : |pH - pH0| ≤ zH) :
pL0 - pH0 - zL - zH ≤ pL - pH

M10's all-trial subtraction, with omissions still included in the probability space. This algebra does not assume or prove a native event law.

theorem MindFormal.MatchedSaving.reply_numerator {p p0 retained recordedRef discrepancy omitted : ℝ} (hp0 : p0 ∈ Set.Icc 0 1) (hret : retained + omitted = 1) (href : 0 ≤ p0 - recordedRef ∧ p0 - recordedRef ≤ omitted) (hdisc : |p - recordedRef| ≤ discrepancy) :
|p - p0 * retained| ≤ discrepancy + omitted

M10: the error on retained trials and the omission mass share the numerator allowance. This avoids charging the same omission twice.

theorem MindFormal.MatchedSaving.reply_correction {p p0 retained zeta : ℝ} (hz : zeta < 1) (hret : 1 - zeta ≤ retained) (hnum : |p - p0 * retained| ≤ zeta) :
|p / retained - p0| ≤ zeta / (1 - zeta)

M10's denominator correction once the common native event has supplied the combined numerator budget and the retained-mass lower bound.

theorem MindFormal.MatchedSaving.positive_reply_gap {qL qH pL0 pH0 zL zH : ℝ} (hL : |qL - pL0| ≤ zL / (1 - zL)) (hH : |qH - pH0| ≤ zH / (1 - zH)) (margin : 0 < pL0 - pH0 - zL / (1 - zL) - zH / (1 - zH)) :
qH < qL

M10's stricter positive margin for the binary-completed instrument.