MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.SavingsRead

Counted elapsed time, the exact LI1.6 denominator bill and finite savings/flattening margins. These operate on the existing native record.

theorem MindFormal.SavingsRead.ratio_error {d d0 db d0b b b0 : ℝ} (hd0 : 0 < d0b) (hb0 : b0 < d0b) (hdb : 0 ≤ db) (hden : |d0 - d0b| ≤ b0) (hnum : |d - db| ≤ b) :
0 < d0 ∧ |1 - d / d0 - (1 - db / d0b)| ≤ b / (d0b - b0) + db * b0 / (d0b * (d0b - b0))
theorem MindFormal.SavingsRead.fall {a b ar br ea eb : ℝ} (ha : |a - ar| ≤ ea) (hb : |b - br| ≤ eb) (margin : ea + eb < ar - br) :
b < a
theorem MindFormal.SavingsRead.flatten {a b c ar br cr ea eb ec w : ℝ} (hw : 0 ≤ w) (hw1 : w ≤ 1) (ha : |a - ar| ≤ ea) (hb : |b - br| ≤ eb) (hc : |c - cr| ≤ ec) (margin : w * ea + (1 - w) * ec + eb < w * ar + (1 - w) * cr - br) :
b < w * a + (1 - w) * c
noncomputable def MindFormal.SavingsRead.time {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) {K : ℕ} (coeff : Fin K → ℝ) (z : Ω) :
Equations
Instances For
    theorem MindFormal.SavingsRead.time_error {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) {K : ℕ} (coeff center radius : Fin K → ℝ) (z : Ω) (he : ∀ (q : Fin K), |(C.run.record (↑q) z).1 - center q| ≤ radius q) :
    |time C coeff z - ∑ q : Fin K, coeff q * center q| ≤ ∑ q : Fin K, |coeff q| * radius q
    theorem MindFormal.SavingsRead.joint {Ω : Type u_1} {A : Type u_2} [MeasurableSpace Ω] [Fintype A] (mu : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure mu] (good : A → Set Ω) (hm : ∀ (a : A), MeasurableSet (good a)) (eps : A → ℝ) (he : ∀ (a : A), 1 - eps a ≤ mu.real (good a)) :
    MeasurableSet (⋂ (a : A), good a) ∧ 1 - ∑ a : A, eps a ≤ mu.real (⋂ (a : A), good a)

    Joint failure is a union bill; no independence of arms, events or preparations is used.