MindFormal v1.0.0One Mind

MindFormal.Example.LeadConfidence.NativeRace

theorem MindFormal.LeadConfidence.native_upper_boundary {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : NNReal) (fav riv : Fin N) {a S L r : ℝ} (hL : L = 2 * a - S) (hLp : 0 < L) (hr : r ∈ Set.Icc 0 ↑H) (Z : ℝ → ℝ) (read : ∀ t ∈ Set.Icc 0 ↑H, ∀ i ∈ {fav, riv}, 0 ≤ (G.reads.guards false) (G.realPath t) i ↔ a ≤ mindActivity (G.state t) i) (others : ∀ t ∈ Set.Icc 0 r, ∀ i ∉ {fav, riv}, (G.reads.guards false) (G.realPath t) i < 0) (matchFav : ∀ t ∈ Set.Icc 0 r, mindActivity (G.state t) fav = (S + Z t) / 2) (matchRiv : ∀ t ∈ Set.Icc 0 r, mindActivity (G.state t) riv = (S - Z t) / 2) (before : ∀ t ∈ Set.Ico 0 r, |Z t| < L) (hit : Z r = L) :
((G.native (↑H) false).search 0).event = some (r, fav) ∧ mindActivity (G.state r) fav - mindActivity (G.state r) riv = L

The exact held race reaches its native first answer at the upper scalar boundary. The proof uses every output guard and the actual open release.