TheoremnoValue_of_stuck
Statement
theorem noValue_of_stuck {o : Oracle} {n : Nat} {E : Env} {e : Exp} {k : Nat} {l : Log}
(h : evExp o n E e k = ⟨.stuck, l, k⟩) : ¬ ∃ v, EvalExp E e vProof
by
rintro ⟨v, d⟩
obtain ⟨l', d'⟩ := EvalExp.lift d
rcases EvalExpL.nostuck d' o n k _ h with h1 | h1 | h1 <;> simp at h1Proved 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.