MindFormal v1.0.0One Mind

MindFormal.Example.ReadWitnessComparison

def MindFormal.ReadWitness.supportBox (W : Fin 4 → Fin 4 → ℚ) (v : Fin 4 → Fin 2 → ℚ) (u lo hi : Fin 4 → ℚ) :

A rational activity rectangle inside the existing coefficient box. Links, values, focus and returned inputs retain their complete original ranges.

Equations
Instances For
    def MindFormal.ReadWitness.SupportChecked (σ g α : ℚ) (W : Fin 4 → Fin 4 → ℚ) (v : Fin 4 → Fin 2 → ℚ) (race : Bool) (u lo hi load err : Fin 4 → ℚ) :

    Kernel arithmetic for supports over a proposed activity rectangle. These are coefficient checks, not support bounds assumed on a trajectory.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[instance_reducible]
      instance MindFormal.ReadWitness.instDecidableSupportChecked (σ g α : ℚ) (W : Fin 4 → Fin 4 → ℚ) (v : Fin 4 → Fin 2 → ℚ) (race : Bool) (u lo hi load err : Fin 4 → ℚ) :
      Decidable (SupportChecked σ g α W v race u lo hi load err)
      Equations
      theorem MindFormal.ReadWitness.support_mem {σ g α : ℚ} {W : Fin 4 → Fin 4 → ℚ} {v : Fin 4 → Fin 2 → ℚ} {race : Bool} (u lo hi : Fin 4 → ℚ) (s : MindState (Fin 4) 2 Unit Unit) (hs : InCorridorBox (↑(start σ g α W v race)) 1 1 (1 / 1000000) (1 / 1000000) s) (hx : ∀ (i : Fin 4), ↑(lo i) ≤ mindActivity s i ∧ mindActivity s i ≤ ↑(hi i)) (z q : Fin 4 → ℝ) (hz : ∀ (i : Fin 4), ↑(u i) ≤ z i ∧ z i ≤ ↑(u i) + ↑slow) (hq : ∀ (i : Fin 4), q i ∈ {0, 1}) :
      RExpr.InBox (supportBox W v u lo hi) (Sum.elim s (Sum.elim z q))

      An arbitrary state in the original box and the proposed activity rectangle is in the sound evaluator's coefficient domain.

      theorem MindFormal.ReadWitness.support_bound {σ g α : ℚ} {W : Fin 4 → Fin 4 → ℚ} {v : Fin 4 → Fin 2 → ℚ} {race : Bool} (hD : (data σ g α W v race).Admissible) (u lo hi load err : Fin 4 → ℚ) (checked : SupportChecked σ g α W v race u lo hi load err) (s : MindState (Fin 4) 2 Unit Unit) (hs : InCorridorBox (↑(start σ g α W v race)) 1 1 (1 / 1000000) (1 / 1000000) s) (hx : ∀ (i : Fin 4), ↑(lo i) ≤ mindActivity s i ∧ mindActivity s i ≤ ↑(hi i)) (z q : Fin 4 → ℝ) (hz : ∀ (i : Fin 4), ↑(u i) ≤ z i ∧ z i ≤ ↑(u i) + ↑slow) (hq : ∀ (i : Fin 4), q i ∈ {0, 1}) (i : Fin 4) :
      |assembledInputs (mind hD).drift z q s i - ↑(load i)| ≤ ↑(err i)

      Sound rational support arithmetic for every original focus mode, every returned input and every arbitrary state in the box intersection.

      Two cells suffice for the driven floor and the subsequent linked read.

      Equations
      Instances For

        The declared cell endpoints are ordered; there is no selected native calendar.

        def MindFormal.ReadWitness.comparison {σ 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) :
        LoadComparison (box hD G hG u hu hg hc)

        The original LoadComparison, with all of its fields discharged from rational data and the all-history world bounds. No new comparison interface.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.ReadWitness.reference_eq {σ 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) {t : ℝ} (ht : t ∈ Set.Icc 0 10) (i : Fin 4) :
          (comparison hD G hG u hu hg hc load err hl checked).reference i t = (1 - Real.exp (-t)) * normalizedTarget (↑σ) (↑g) (fun (j : Fin 4) => ↑(load j)) i

          The reference is the constant-load, zero-start exponential comparison. The cell split refines bounds without changing this reference or its mind.

          theorem MindFormal.ReadWitness.refinedError_eq {σ 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) (d : ℕ → Fin 4 → ℝ) (t : ℝ) (i : Fin 4) :
          (comparison hD G hG u hu hg hc load err hl checked).refinedError d i t = comparisonWeight 1 t 0 1 * comparisonTargetError (↑σ) (fun (j : Fin 4) => ↑(load j)) (d 0) i + comparisonWeight 1 t 1 10 * comparisonTargetError (↑σ) (fun (j : Fin 4) => ↑(load j)) (d 1) i + 2 / 1000000000

          Exact two-cell error formula, retaining every coordinate in the pool.

          theorem MindFormal.ReadWitness.weights {t : ℝ} (ht : t ∈ Set.Icc 0 10) :

          The two positive cell weights sum to the usual rising fraction.

          theorem MindFormal.ReadWitness.error_le {σ 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) {t : ℝ} (ht : t ∈ Set.Icc 0 10) (i : Fin 4) (hn : 0 ≤ comparisonTargetError (↑σ) (fun (j : Fin 4) => ↑(load j)) (fun (j : Fin 4) => ↑(err j)) i) :
          (comparison hD G hG u hu hg hc load err hl checked).activityError i t ≤ comparisonTargetError (↑σ) (fun (j : Fin 4) => ↑(load j)) (fun (j : Fin 4) => ↑(err j)) i + 2 / 1000000000

          With the initial coarse error constant across cells its exact time bill is bounded by one full target allowance plus the reflected innovation.