TheoremdoChoice_sound
Statement
theorem doChoice_sound {c : Ctx} {st : SchedState} {ch : Choice} {t : Taken} {st' : SchedState}
(h : doChoice c st ch = .trans t st') : TransOK c st t st'Proof
by
cases ch with
| update => exact doUpdate_sound h
| proc n => exact doProc_sound h
| out p => exact doOut_sound h
| inn => exact doInn_sound h
| wait d => exact doWait_sound h
| wake => simp [doChoice, doWake] at h
| stop => simp [doChoice] at hProved with tactics, which Lean expands into a proof term that its kernel checks.
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.