MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch10.FiniteClassicalCoupling

Finite operation induction conditional on a supplied implementation. The record decoded here is the actual pair of native timed clocks.

def MindFormal.FiniteClassicalCoupling.agreeingPrefix {Ω : Type u_1} (good : ℕ → Set Ω) (k : ℕ) :
Set Ω
Equations
Instances For
    theorem MindFormal.FiniteClassicalCoupling.prefix_measurable {Ω : Type u_1} [MeasurableSpace Ω] (good : ℕ → Set Ω) (hg : ∀ (j : ℕ), MeasurableSet (good j)) (k : ℕ) :
    theorem MindFormal.FiniteClassicalCoupling.first_measurable {Ω : Type u_1} [MeasurableSpace Ω] (good : ℕ → Set Ω) (hg : ∀ (j : ℕ), MeasurableSet (good j)) (j : ℕ) :
    theorem MindFormal.FiniteClassicalCoupling.first_disjoint {Ω : Type u_1} (good : ℕ → Set Ω) {i j : ℕ} (different : i ≠ j) :
    Disjoint (first good i) (first good j)
    theorem MindFormal.FiniteClassicalCoupling.first_failure {Ω : Type u_1} (good : ℕ → Set Ω) (m : ℕ) :
    (agreeingPrefix good m)ᶜ = ⋃ j ∈ Finset.range m, first good j
    theorem MindFormal.FiniteClassicalCoupling.conditional_first_bound {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (good : ℕ → Set Ω) (j : ℕ) {ε : ℝ} (nonnegative : 0 ≤ ε) (conditional : 0 < μ.real (agreeingPrefix good j) → μ.real (first good j) / μ.real (agreeingPrefix good j) ≤ ε) :
    μ.real (first good j) ≤ ε
    theorem MindFormal.FiniteClassicalCoupling.failure_bound {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (good : ℕ → Set Ω) (m : ℕ) (ε : ℕ → ℝ) (nonnegative : ∀ j < m, 0 ≤ ε j) (conditional : ∀ j < m, 0 < μ.real (agreeingPrefix good j) → μ.real (first good j) / μ.real (agreeingPrefix good j) ≤ ε j) :
    μ.real (agreeingPrefix good m)ᶜ ≤ ∑ j ∈ Finset.range m, ε j
    noncomputable def MindFormal.FiniteClassicalCoupling.nativeRecord {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (H : NNReal) (ω : Ω) :
    Bool → ℕ → ActionSlot (Fin N)
    Equations
    Instances For
      theorem MindFormal.FiniteClassicalCoupling.nativeRecord_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (H : NNReal) :
      theorem MindFormal.FiniteClassicalCoupling.preserved_prefix {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (good : ℕ → Set Ω) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (ω : Ω) (initial : decode 0 (nativeRecord E H ω) = reference 0) (certified : ∀ j < m, ω ∈ agreeingPrefix good j → ω ∈ good j → decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) (k : ℕ) :
      k ≤ m → ω ∈ agreeingPrefix good k → decode k (nativeRecord E H ω) = reference k
      theorem MindFormal.FiniteClassicalCoupling.terminal_bound {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} {B : Type u_6} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (verdict : X → B) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (good : ℕ → Set Ω) (ε : ℕ → ℝ) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (initial : ∀ (ω : Ω), decode 0 (nativeRecord E H ω) = reference 0) (certified : ∀ (ω : Ω), ∀ j < m, ω ∈ agreeingPrefix good j → ω ∈ good j → decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) (nonnegative : ∀ j < m, 0 ≤ ε j) (conditional : ∀ j < m, 0 < E.ground.μ.real (agreeingPrefix good j) → E.ground.μ.real (first good j) / E.ground.μ.real (agreeingPrefix good j) ≤ ε j) :
      E.ground.μ.real {ω : Ω | verdict (decode m (nativeRecord E H ω)) ≠ verdict (reference m)} ≤ ∑ j ∈ Finset.range m, ε j
      theorem MindFormal.FiniteClassicalCoupling.exact_terminal {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} {B : Type u_6} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (verdict : X → B) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (initial : ∀ (ω : Ω), decode 0 (nativeRecord E H ω) = reference 0) (exact_operation : ∀ (ω : Ω), ∀ j < m, decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) (ω : Ω) :
      verdict (decode m (nativeRecord E H ω)) = verdict (reference m)
      theorem MindFormal.FiniteClassicalCoupling.terminal_bound_ae {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} {B : Type u_6} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (verdict : X → B) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (good : ℕ → Set Ω) (ε : ℕ → ℝ) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (initial : ∀ᵐ (ω : Ω) ∂E.ground.μ, decode 0 (nativeRecord E H ω) = reference 0) (certified : ∀ j < m, ∀ᵐ (ω : Ω) ∂E.ground.μ, ω ∈ agreeingPrefix good j → ω ∈ good j → decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) (nonnegative : ∀ j < m, 0 ≤ ε j) (conditional : ∀ j < m, 0 < E.ground.μ.real (agreeingPrefix good j) → E.ground.μ.real (first good j) / E.ground.μ.real (agreeingPrefix good j) ≤ ε j) :
      E.ground.μ.real {ω : Ω | verdict (decode m (nativeRecord E H ω)) ≠ verdict (reference m)} ≤ ∑ j ∈ Finset.range m, ε j
      theorem MindFormal.FiniteClassicalCoupling.exact_terminal_ae {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} {B : Type u_6} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (verdict : X → B) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (initial : ∀ᵐ (ω : Ω) ∂E.ground.μ, decode 0 (nativeRecord E H ω) = reference 0) (exact_operation : ∀ j < m, ∀ᵐ (ω : Ω) ∂E.ground.μ, decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) :
      ∀ᵐ (ω : Ω) ∂E.ground.μ, verdict (decode m (nativeRecord E H ω)) = verdict (reference m)
      theorem MindFormal.FiniteClassicalCoupling.preserved_prefix_ae {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (reference : ℕ → X) (operation : ℕ → X → X) (m : ℕ) (good : ℕ → Set Ω) (reference_step : ∀ j < m, reference (j + 1) = operation j (reference j)) (initial : ∀ᵐ (ω : Ω) ∂E.ground.μ, decode 0 (nativeRecord E H ω) = reference 0) (certified : ∀ j < m, ∀ᵐ (ω : Ω) ∂E.ground.μ, ω ∈ agreeingPrefix good j → ω ∈ good j → decode (j + 1) (nativeRecord E H ω) = operation j (decode j (nativeRecord E H ω))) :
      ∀ᵐ (ω : Ω) ∂E.ground.μ, ∀ k ≤ m, ω ∈ agreeingPrefix good k → decode k (nativeRecord E H ω) = reference k
      theorem MindFormal.FiniteClassicalCoupling.terminal_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {X : Type u_5} {B : Type u_6} [MeasurableSpace X] [MeasurableSpace B] [MeasurableEq B] (E : StateExperiment Ω N n T Λ J) (H : NNReal) (decode : ℕ → (Bool → ℕ → ActionSlot (Fin N)) → X) (verdict : X → B) (reference : ℕ → X) (m : ℕ) (hdecode : Measurable (decode m)) (hverdict : Measurable verdict) :
      MeasurableSet {ω : Ω | verdict (decode m (nativeRecord E H ω)) ≠ verdict (reference m)}