TheoremdoUpdate_sound
Statement
theorem doUpdate_sound {c : Ctx} {st : SchedState} {t : Taken} {st' : SchedState}
(h : doUpdate c st = .trans t st') : TransOK c st t st'Proof
by
rcases hK : st.K with ⟨s, v, M0, P, sb, Q, H⟩
unfold doUpdate at h
simp only [hK] at h
split at h
· rename_i v1 M fu fs hfu hfs
split at h
· rename_i v2 l1 k1 h1
split at h
· rename_i v' cm l2 k2 h2
split at h
· rename_i cs hf
split at h
· rename_i P' Q' ns hd
split at h
· rename_i sb' l3 k3 h3
simp only [ChoiceOut.trans.injEq] at h; obtain ⟨rfl, rfl⟩ := h
refine ⟨?_, .silent _ _, rfl, rfl⟩
show StepL c.PE c.r st.K _ _ _; rw [hK]
exact .r_p_update_l s v v1 M P sb Q H fu fs v2 v' cm cs _ P' Q' H sb' l1 l2 l3 hfu hfs
(appVal_sound_l h1) (appVal_sound_l h2) hf (c.cfg.leafOrder.perm cs) (dispatchFn_sound hd)
(appVal_sound_l h3)
· cases h
· cases h
· cases h
· cases h
· cases h
· cases hProved with tactics, which Lean expands into a proof term that its kernel checks.
Rules of the book it uses
Theorems it uses
Used by
In StandardElmMech/Prog/Sched.lean: The default scheduler (run): one choice per iteration, overridable per test, each transition proved by doChoice_sound; run_sound: every run is an execution.
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.