MindFormal v1.0.0One Mind

MindFormal.Example.ResponsiveSearch.LossGain

SR17's strict gain decrease is derived on the actual full-state certificate, rather than assumed as a residual ordering at the switch.

theorem MindFormal.ResponsiveSearch.exp_quarter_bounds :
778 / 1000 < Real.exp (-(1 / 4)) ∧ Real.exp (-(1 / 4)) < 779 / 1000

Rational enclosure with enough clearance for both switch offsets.

theorem MindFormal.ResponsiveSearch.value_drift_bound (χ : ℝ) (a : ℚ) (s : MindState (Fin 3) 2 Unit Unit) (hx : ∀ (i : Fin 3), mindActivity s i ∈ Set.Icc 0 1) (hr : ∀ (i : Fin 3), mindTrace s i () ∈ Set.Icc 0 1) (hv : ∀ (i : Fin 3) (b : Fin 2), |mindValue s i b ()| ≤ 1) (u q : Fin 3 → ℝ) (hu : u ∈ inputRange) (i : Fin 3) (b : Fin 2) :
|assembledDrift (mind χ a).drift u q s (Sum.inr (Sum.inr (Sum.inl (i, b, ()))))| ≤ if b = 0 then 11 / 1000 else 22 / 1000

The unequal rates in III yield their separate switch-time movement budgets.

theorem MindFormal.ResponsiveSearch.weighted_error (w v : Fin 3 → ℝ) (c d : ℝ) (hv : ∀ (i : Fin 3), |v i - c| ≤ d) :
|∑ i : Fin 3, w i * (v i - c)| ≤ d * ∑ i : Fin 3, |w i|

Weighted value errors retain the total absolute writer weights.

theorem MindFormal.ResponsiveSearch.offset_order (s : MindState (Fin 3) 2 Unit Unit) (hA : ∑ i : Fin 3, (mindActivity s i - 2 * mindTrace s i ()) < -(3255 / 10000)) (hB : ∑ i : Fin 3, |mindActivity s i - 2 * mindTrace s i ()| < 2323 / 1000) (hv0 : ∀ (i : Fin 3), |mindValue s i 0 () - 1 / 10| ≤ 375 / 100000) (hv1 : ∀ (i : Fin 3), |mindValue s i 1 () - 1 / 5| ≤ 65 / 10000) :
have c := fun (b : Fin 2) => -(1 / 100 + ∑ i : Fin 3, (mindActivity s i - 2 * mindTrace s i ()) * mindValue s i b ()); 0 < c 0 ∧ c 0 < c 1 ∧ c 1 < 49 / 100

The two residual offsets satisfy the strict order required by the source switch algebra; all numerical bounds are consequences of the full state.

theorem MindFormal.ResponsiveSearch.actual_loss_gain (R : PhysicalGlobalData 3 2 Unit Unit) (χ : ℝ) (a : ℚ) (hdata : R.data = (mind χ a).drift) (hs : R.state 0 = ↑start) (hb : ∀ t ∈ Set.Icc 0 1, InCorridorBox (↑start) 1 1 (9 / 1000) (4 / 5) (R.state t)) (hn : ∀ t ∈ Set.Icc 0 1, ∀ (c : CoordinateIndex (Fin 3) 2 Unit Unit), |R.driver t.toNNReal c| ≤ 1 / 1000) (hu : ∀ t ∈ Set.Icc 0 1, R.input t ∈ inputRange) :
((mind χ a).gain fun (t : Unit) (b : Fin 2) => |assembledResidual (mind χ a).drift (presentation 2) (R.state (1 / 4)) t b|) < (mind χ a).gain fun (t : Unit) (b : Fin 2) => |assembledResidual (mind χ a).drift (presentation 1) (R.state (1 / 4)) t b|

The actual gain strictly decreases when the useful delivery is exchanged for the competing delivery at one quarter, with both value rates moving.