TheoremevExp_complete_l
Completeness for the logged relation: the derivation's log is the evaluator's.
Statement
theorem evExp_complete_l {E : Env} {e : Exp} {v : Val} {l : Log} (h : EvalExpL E e v l) :
∃ (L : List Bool) (n : Nat), evExp (Oracle.ofList L) n E e 0 = ⟨.value v, l, L.length⟩Proof
by
obtain ⟨L, n, c⟩ := EvalExpL.complete h
exact ⟨L, n, by rw [c (Oracle.ofList L) 0 n (Nat.le_refl n) (agrees_ofList L)]; simp⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Determinism.lean: noValue_of_stuck, evExp_unique, evExp_unique_l, evExp_complete, noValue_iff, and the same for applications and declarations.
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.