Theorema79_nothing_else
A79: when a process without origin ends, nothing else happens in that step.
Statement
theorem a79_nothing_else {PE : PortEnv} {r : List (String × Val)} {K K' : Config} {a : Option Event}
{n : Nat} {t : Val} {s' : Time} (h : Step PE r K a K')
(h1 : K.procs.get n = some (.live ⟨t, s', none⟩)) (h2 : K'.procs.get n = some .ended) :
K'.msgs = K.msgs ∧ K'.model = K.modelProof
by
have hset : ∀ (P : Procs) (n' : Nat) (e : PEntry), n ≠ n' → (P.set n' e).get n = P.get n :=
fun P n' e hne => natLookup_natSet_other P n' n e hne
cases h with
| r_p_update s v v1 M P sb Q H fu fs v2 v' cm cs L P' Q' H' sb' _ _ _ _ _ _ h7 _ =>
have := dispatch_preserves_existing h7 h1
simp_all
| r_p_proc_message _ _ _ P _ _ _ n' _ _ _ _ hp _ =>
exfalso
by_cases hne : n = n'
· subst hne; simp_all
· simp only at h2; rw [hset P n' _ hne] at h2; simp_all
| r_p_in_accept => simp_all
| r_p_platform _ _ _ hp => cases hp
| _ => simpProved with tactics, which Lean expands into a proof term that its kernel checks.
Rules of the book it uses
Theorems it uses
About ruling A79 of the book, where the implementations disagreed or were silent and the definition decides.
In StandardElmMech/Prog/Rulings.lean: The rulings A62, A72, A77, A79, A80 and A81 as theorems, and a66_batch_order_open: a program whose batch is delivered in either order.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.