MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.PolicyCoverage

theorem MindFormal.PolicyTests.path_reach {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (edge : ℕ → Set Ω) (p : ℕ → ℝ) (d : ℕ) (hp : ∀ k < d, 0 ≤ p k) (hedge : ∀ k < d, p k ≤ conditionalSuccess μ edge k) :
∏ k ∈ Finset.range d, p k ≤ μ.real (prefixEvent edge d)
theorem MindFormal.PolicyTests.no_visit {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (visit : ℕ → Set Ω) {p : ℝ} (hp : p ∈ Set.Icc 0 1) (R : ℕ) (opportunity : ∀ k < R, μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) (k + 1)) ≤ (1 - p) * μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) k)) :
μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) R) ≤ (1 - p) ^ R

The block premise is conditional on the complete past of failures, including any retained native state. No independence is used.

theorem MindFormal.PolicyTests.no_visit_conditional {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (visit : ℕ → Set Ω) {p : ℝ} (hp : p ∈ Set.Icc 0 1) (R : ℕ) (hm : ∀ k < R, MeasurableSet (visit k)) (opportunity : ∀ k < R, μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) k) ≠ 0 → p ≤ μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) k ∩ visit k) / μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) k)) :
μ.real (prefixEvent (fun (j : ℕ) => (visit j)ᶜ) R) ≤ (1 - p) ^ R

The entry's conditional opportunity is a lower bound on success given all previous failures. The failure recursion is derived here.

theorem MindFormal.PolicyTests.coverage_union {Ω : Type u_1} {I : Type u_2} [MeasurableSpace Ω] [Fintype I] (μ : MeasureTheory.Measure Ω) (miss : I → Set Ω) {p : ℝ} (R : ℕ) (hb : ∀ (i : I), μ.real (miss i) ≤ (1 - p) ^ R) :
μ.real (⋃ (i : I), miss i) ≤ ↑(Fintype.card I) * (1 - p) ^ R