TheoremdoInn_sound
Statement
theorem doInn_sound {c : Ctx} {st : SchedState} {t : Taken} {st' : SchedState}
(h : doInn c st = .trans t st') : TransOK c st t st'Proof
by
rcases hK : st.K with ⟨s, v, M, P, sb, Q, H⟩
unfold doInn at h
simp only [hK] at h
split at h
· rename_i i j hpend
split at h
· rename_i _ _ τ hs' hpe hh
split at h
· rename_i v' hd
split at h
· rename_i cs hf
split at h
· rename_i Ms l k' ha
simp only [ChoiceOut.trans.injEq] at h; obtain ⟨rfl, rfl⟩ := h
refine ⟨?_, hostAfter_sound hh, rfl, rfl⟩
show StepL c.PE c.r st.K _ _ _; rw [hK]
exact .r_p_in_accept_l s v M P sb Q H i τ j v' cs _ Ms l hpe ((dec_iff τ j v').mpr hd) hf
(c.cfg.leafOrder.perm cs) (acceptFn_sound ha)
· cases h
· cases h
· rename_i hd
simp only [ChoiceOut.trans.injEq] at h; obtain ⟨rfl, rfl⟩ := h
refine ⟨?_, hostAfter_sound hh, rfl, rfl⟩
show StepL c.PE c.r st.K _ _ _; rw [hK]
exact .r_p_in_reject_l _ i τ j hpe (fun ⟨w, hw⟩ => by rw [dec_iff] at hw; rw [hw] at hd; cases hd)
· 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.