Elm Exactly

TheoremdoProc_sound

StandardElmMech/Prog/Sched.lean:513, Soundness · tactic proof

Statement

theorem doProc_sound {c : Ctx} {st : SchedState} {n : Nat} {t : Taken} {st' : SchedState}
    (h : doProc c st n = .trans t st') : TransOK c st t st'

Proof

by
  unfold doProc at h
  split at h
  · rename_i tk s' o hp
    split at h
    · exact procOutcome_sound hp h
    · exact procTask_sound hp h
  · cases h

Proved 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.