MindFormal v1.0.0One Mind

MindFormal.Example.ReadWitnessRefinement

def MindFormal.ReadWitness.RangeChecked (σ g : ℚ) (load err : Fin 4 → ℚ) (lo hi : ℕ → Fin 4 → ℚ) :

Finite checks that the first computed enclosure fits a proposed rectangle. The late-cell lower bound uses only exp(-1) < 1/2.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[instance_reducible]
    instance MindFormal.ReadWitness.instDecidableRangeChecked (σ g : ℚ) (load err : Fin 4 → ℚ) (lo hi : ℕ → Fin 4 → ℚ) :
    Decidable (RangeChecked σ g load err lo hi)
    Equations
    theorem MindFormal.ReadWitness.range_encloses {σ g α : ℚ} {W : Fin 4 → Fin 4 → ℚ} {v : Fin 4 → Fin 2 → ℚ} {race : Bool} (hD : (data σ g α W v race).Admissible) {Ω : Type u_1} [MeasurableSpace Ω] (G : EquationGround Ω Unit) (hG : CompletedEquationGround G) (u : Fin 4 → ℚ) (hu : ∀ (i : Fin 4), 0 ≤ u i) (hg : 1 / 100000000 ≤ g) (hc : DriftChecked σ g α W v race u) (load err : Fin 4 → ℚ) (hl : ∀ (i : Fin 4), 0 ≤ load i) (checked : SupportChecked σ g α W v race u 0 1 load err) (lo hi : ℕ → Fin 4 → ℚ) (hr : RangeChecked σ g load err lo hi) {k : ℕ} (hk : k < 2) {t : ℝ} (ht : t ∈ Set.Ioo (cut k) (cut (k + 1))) (s : MindState (Fin 4) 2 Unit Unit) (hs : ∀ (i : Fin 4), 0 ≤ mindActivity s i) (hx : ∀ (i : Fin 4), |mindActivity s i - (comparison hD G hG u hu hg hc load err hl checked).reference i t| ≤ (comparison hD G hG u hu hg hc load err hl checked).activityError i t) (i : Fin 4) :
    ↑(lo k i) ≤ mindActivity s i ∧ mindActivity s i ≤ ↑(hi k i)

    The proposed range is a consequence of the earlier computed comparison for an arbitrary coefficient-box state. It is never supplied along the run.

    theorem MindFormal.ReadWitness.refined_event {σ g α : ℚ} {W : Fin 4 → Fin 4 → ℚ} {v : Fin 4 → Fin 2 → ℚ} {race : Bool} (hD : (data σ g α W v race).Admissible) {Ω : Type u_1} [MeasurableSpace Ω] (G : EquationGround Ω Unit) (hG : CompletedEquationGround G) (u : Fin 4 → ℚ) (hu : ∀ (i : Fin 4), 0 ≤ u i) (hg : 1 / 100000000 ≤ g) (hc : DriftChecked σ g α W v race u) (load err : Fin 4 → ℚ) (hl : ∀ (i : Fin 4), 0 ≤ load i) (checked : SupportChecked σ g α W v race u 0 1 load err) (lo hi δ : ℕ → Fin 4 → ℚ) (hr : RangeChecked σ g load err lo hi) (hs : ∀ (k : Fin 2), SupportChecked σ g α W v race u (lo ↑k) (hi ↑k) load (δ ↑k)) :
    have C := comparison hD G hG u hu hg hc load err hl checked; have R := output hD G hG u hu hg hc load err hl checked; ∃ (good : Set Ω), MeasurableSet good ∧ 1 - (box hD G hG u hu hg hc).errorProbability ≤ G.μ.real good ∧ ∀ ω ∈ good, (experiment hD G hG u hu).own.data.toPhysicalNoiseData.Good ω ∧ ∀ t ∈ Set.Icc 0 10, ∀ (i : Fin 4), |((experiment hD G hG u hu).supportHistory ω).x t i - C.reference i t| ≤ C.refinedError (fun (k : ℕ) (j : Fin 4) => ↑(δ k j)) i t ∧ |(((experiment hD G hG u hu).supportHistory ω).reads.scores false) (((experiment hD G hG u hu).supportHistory ω).realPath t) i - R.score t i| ≤ R.refinedError (fun (k : ℕ) (j : Fin 4) => ↑(δ k j)) t i

    One data-checked refinement gives one event carrying the entire activity and output comparisons on the original own noise. Cell rectangles are derived inside the general refinement theorem, rather than supplied on the run. The checks include all focus modes and all histories of the act-responsive world. The only probabilistic input is the primitive completed ground.