Theoremapp_basic_choice_l
r:d-app-basic-apply at a member chosen by the oracle.
Statement
theorem app_basic_choice_l {b : BasVal} {vs ws : List Val} {v w w' : Val} (c : Bool) :
vs.length + 1 = b.arity → applySet b (vs ++ [v]) = w :: w' :: ws →
AppValL (.basApp b vs) v (if c then w' else w) (logEntry b (vs ++ [v]))Proof
by
intro h1 h2
cases c
· exact AppValL.r_d_app_basic_apply_l _ _ _ _ h1 (applySet_first h2)
· exact AppValL.r_d_app_basic_apply_l _ _ _ _ h1 (applySet_second h2)Proved 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/Sound.lean: soundAt, evExp_sound_l, evExp_sound: every value of the evaluator, with its log, is derivable in the logged relation, and so in the book's.
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.