MindFormal v1.0.0One Mind

MindFormal.Tools.A630EncounterLaws.Diagnostics

def MindFormal.A630EncounterLaws.unvisited {Ω : Type u_1} (visit : ℕ → Set Ω) (R : ℕ) :
Set Ω
Equations
Instances For
    theorem MindFormal.A630EncounterLaws.diagnostic_coverage {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {I : Type u_2} [Fintype I] (visit : I → ℕ → Set Ω) (past : ℕ → MeasurableSpace Ω) (sub : ∀ (n : ℕ), past n ≤ mΩ) (hm : ∀ (i : I) (n : ℕ), MeasurableSet (visit i n)) (known : ∀ (i : I) (n : ℕ), MeasurableSet (unvisited (visit i) n)) {z : ℝ} (hz : 0 ≤ z) (hz1 : z ≤ 1) (opportunity : ∀ (i : I) (n : ℕ), ∀ᵐ (ω : Ω) ∂μ, ω ∈ unvisited (visit i) n → z ≤ μ[(visit i n).indicator 1 | past n] ω) (R : ℕ) :
    μ.real (⋃ (i : I), unvisited (visit i) R) ≤ ↑(Fintype.card I) * (1 - z) ^ R

    Multiplication of conditional nonvisit bounds uses the actual past sigma algebras and charges each diagnostic type once.

    theorem MindFormal.A630EncounterLaws.midpoint_upper {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {N : ℕ} (hN : 0 < N) (X : Fin N → Ω → ℝ) (hm : ∀ (i : Fin N), Measurable (X i)) (hi : ProbabilityTheory.iIndepFun X μ) (range : ∀ (i : Fin N) (ω : Ω), X i ω ∈ Set.Icc 0 1) (mean : ℝ) (hme : ∀ (i : Fin N), ∫ (ω : Ω), X i ω ∂μ = mean) {gap : ℝ} (hg : 0 < gap) :
    μ.real {ω : Ω | mean + gap / 2 ≤ (∑ i : Fin N, X i ω) / ↑N} ≤ Real.exp (-↑N * gap ^ 2 / 2)

    Hoeffding's midpoint bound for independent repeated bounded records. Binary records are a special case. The actual common mean is required; this lemma does not replace adaptive records by independent redraws.

    theorem MindFormal.A630EncounterLaws.midpoint_lower {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {N : ℕ} (hN : 0 < N) (X : Fin N → Ω → ℝ) (hm : ∀ (i : Fin N), Measurable (X i)) (hi : ProbabilityTheory.iIndepFun X μ) (range : ∀ (i : Fin N) (ω : Ω), X i ω ∈ Set.Icc 0 1) (mean : ℝ) (hme : ∀ (i : Fin N), ∫ (ω : Ω), X i ω ∂μ = mean) {gap : ℝ} (hg : 0 < gap) :
    μ.real {ω : Ω | (∑ i : Fin N, X i ω) / ↑N ≤ mean - gap / 2} ≤ Real.exp (-↑N * gap ^ 2 / 2)

    The other midpoint error uses the complemented bounded records, so both separated hypotheses get the same finite error price.