MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.DrawCount

theorem MindFormal.A695LogicPaper.PrivatePaper.finite_visit_bill {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (mode : ℕ → Set Ω) (count cap : ℕ) (hm : ∀ k < count, MeasurableSet (mode k)) (hc : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∈ mode k}.card ≤ cap) :
∑ k ∈ Finset.range count, μ.real (mode k) ≤ ↑cap

A pathwise finite program bound also bounds its expected number of visits. The mode may depend on all earlier private bits.

theorem MindFormal.A695LogicPaper.PrivatePaper.prefix_first_failures {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} (initial : Set Ω) (stage : ℕ → Set Ω) (count : ℕ) :
μ.real (initial ∩ prefixEvent stage count)ᶜ ≤ μ.real initialᶜ + ∑ k ∈ Finset.range count, μ.real (initial ∩ prefixEvent stage k ∩ (stage k)ᶜ)

First failures are disjoint from all later successful prefixes. This union bound requires no independence and pays each actual first failure once.

theorem MindFormal.A695LogicPaper.PrivatePaper.adaptive_prefix_bill {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (initial : Set Ω) (stage mode : ℕ → Set Ω) (count ordinary draws : ℕ) {po ps : ℝ} (ho : 0 ≤ po) (hs : 0 ≤ ps) (hm : ∀ k < count, MeasurableSet (mode k)) (hordinary : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∉ mode k}.card ≤ ordinary) (hdraws : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∈ mode k}.card ≤ draws) (hstep : ∀ k < count, μ.real (initial ∩ prefixEvent stage k ∩ (stage k)ᶜ) ≤ po * μ.real (mode k)ᶜ + ps * μ.real (mode k)) :
μ.real (initial ∩ prefixEvent stage count)ᶜ ≤ μ.real initialᶜ + ↑ordinary * po + ↑draws * ps

Adaptive Draw/ordinary counts give the printed separate primitive bill. The caller must derive the stage prices on its actual known successful prefix.

theorem MindFormal.A695LogicPaper.PrivatePaper.finite_visit_bill_on {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (B : Set Ω) (hB : MeasurableSet B) (mode : ℕ → Set Ω) (count cap : ℕ) (hm : ∀ k < count, MeasurableSet (mode k)) (hc : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∈ mode k}.card ≤ cap) :
∑ k ∈ Finset.range count, μ.real (B ∩ mode k) ≤ ↑cap * μ.real B
theorem MindFormal.A695LogicPaper.PrivatePaper.prefix_first_failures_on {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} (B : Set Ω) (stage : ℕ → Set Ω) (count : ℕ) :
μ.real (B ∩ (prefixEvent stage count)ᶜ) ≤ ∑ k ∈ Finset.range count, μ.real (B ∩ prefixEvent stage k ∩ (stage k)ᶜ)
theorem MindFormal.A695LogicPaper.PrivatePaper.adaptive_prefix_bill_on {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (B : Set Ω) (hB : MeasurableSet B) (stage mode : ℕ → Set Ω) (count ordinary draws : ℕ) {po ps : ℝ} (ho : 0 ≤ po) (hs : 0 ≤ ps) (hm : ∀ k < count, MeasurableSet (mode k)) (hordinary : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∉ mode k}.card ≤ ordinary) (hdraws : ∀ (ω : Ω), {k ∈ Finset.range count | ω ∈ mode k}.card ≤ draws) (hstep : ∀ k < count, μ.real (B ∩ prefixEvent stage k ∩ (stage k)ᶜ) ≤ po * μ.real (B ∩ (mode k)ᶜ) + ps * μ.real (B ∩ mode k)) :
μ.real (B ∩ (prefixEvent stage count)ᶜ) ≤ (↑ordinary * po + ↑draws * ps) * μ.real B
theorem MindFormal.A695LogicPaper.PrivatePaper.prefixEvent_subset {Ω : Type u_1} {stage : ℕ → Set Ω} {m n : ℕ} (h : m ≤ n) :
prefixEvent stage n ⊆ prefixEvent stage m