MindFormal v1.0.0One Mind

MindFormal.Example.ReadWitnessOutput

theorem MindFormal.ReadWitness.reference_nonneg {σ 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) :
0 ≤ (comparison hD G hG u hu hg hc load err hl checked).reference i t

Nonnegativity of the computed reference is derived, not an extra hold.

def MindFormal.ReadWitness.output {σ 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) :
OutputComparison (comparison hD G hG u hu hg hc load err hl checked)

The original output certificate with the entire two-element value bank. Zero weight is a property of this declared read, not a frozen value element.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.ReadWitness.score_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) :
    (output hD G hG u hu hg hc load err hl checked).score t i = if race = true then (comparison hD G hG u hu hg hc load err hl checked).reference i t + ↑(v i 0) else 0

    The computed score uses the declared prepared value; every actual value excursion remains charged by OutputComparison.error and refinedError.

    theorem MindFormal.ReadWitness.output_error {σ 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 : ℝ) (i : Fin 4) :
    (output hD G hG u hu hg hc load err hl checked).error t i = if race = true then (comparison hD G hG u hu hg hc load err hl checked).activityError i t + 1 / 1000000 else 0

    The score bill contains the full activity allowance and the one nonzero value-read weight, with no value-rate identification or value hold.