MindFormal v1.0.0One Mind

MindFormal.Example.LeadConfidence.NativeTube

theorem MindFormal.LeadConfidence.native_outer_exit {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 e r : ℝ} (hL : L = 2 * a - S) (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 (min (((G.native (↑H) false).search 0).event.elim (↑H) Prod.fst) r), ∀ i ∉ {fav, riv}, (G.reads.guards false) (G.realPath t) i < 0) (start : ∀ i ∈ {fav, riv}, mindActivity (G.state 0) i < a) (tube : ∀ t ∈ Set.Icc 0 (min (((G.native (↑H) false).search 0).event.elim (↑H) Prod.fst) r), |mindActivity (G.state t) fav - (S + Z t) / 2| ≤ e ∧ |mindActivity (G.state t) riv - (S - Z t) / 2| ≤ e) (hit : Z r = L + 2 * e ∨ Z r = -(L + 2 * e)) :
∃ (t : ℝ) (w : Fin N), ((G.native (↑H) false).search 0).event = some (t, w) ∧ t ≤ r ∧ w ∈ {fav, riv} ∧ |mindActivity (G.state t) fav + mindActivity (G.state t) riv - S| ≤ 2 * e ∧ ||mindActivity (G.state t) fav - mindActivity (G.state t) riv| - L| ≤ 2 * e

An outer reference contact forces the existing native slot to occur by that time. The tube is needed only through the earlier of that contact and the actual first slot; later returned input is unrestricted.