Elm Exactly

TheoremevExp_sound_l

StandardElmMech/Sound.lean:151 · term proof

Soundness for the logged relation: a value of the evaluator, with its log, is derivable.

Statement

theorem evExp_sound_l {o : Oracle} {n : Nat} {E : Env} {e : Exp} {k : Nat} {v : Val} {l : Log} {k' : Nat} :
    evExp o n E e k = ⟨.value v, l, k'⟩ → EvalExpL E e v l

Proof

(soundAt o n).2.2.2.2.1 E e k v l k'

Proved by a term, which Lean's kernel checks directly.

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.