TheoremevExp_complete
D1's completeness: every derivation of the book is found by some choices and fuel.
Statement
theorem evExp_complete {E : Env} {e : Exp} {v : Val} (h : EvalExp E e v) :
∃ (L : List Bool) (n : Nat), (evExp (Oracle.ofList L) n E e 0).out = .value vProof
by
obtain ⟨l, hl⟩ := EvalExp.lift h
obtain ⟨L, n, c⟩ := EvalExpL.complete hl
exact ⟨L, n, by rw [c (Oracle.ofList L) 0 n (Nat.le_refl n) (agrees_ofList L)]⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
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.