MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch15.EventError

theorem MindFormal.Transactions.event_probability_error {Ω : Type u_1} [MeasurableSpace Ω] (mu : MeasureTheory.Measure Ω) [MeasureTheory.IsFiniteMeasure mu] (A B bad : Set Ω) (hAB : A ⊆ B ∪ bad) (hBA : B ⊆ A ∪ bad) :
|mu.real A - mu.real B| ≤ mu.real bad

Two event inclusions pay their common unresolved event once.

theorem MindFormal.Transactions.event_error_on_good {Ω : Type u_1} [MeasurableSpace Ω] (mu : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure mu] (A B good : Set Ω) (hgm : MeasurableSet good) {epsilon : ℝ} (hmass : 1 - epsilon ≤ mu.real good) (same : ∀ z ∈ good, z ∈ A ↔ z ∈ B) :
|mu.real A - mu.real B| ≤ epsilon

Agreement on a derived full-path event bounds the native probability error.

theorem MindFormal.Transactions.paired_read_error {a b ar br ea eb : ℝ} (ha : |a - ar| ≤ ea) (hb : |b - br| ≤ eb) :
|a - b - (ar - br)| ≤ ea + eb

Subtracting two reads pays the two original errors, with their signs retained.