TheoremevExp_unique_l
Statement
theorem evExp_unique_l {o : Oracle} {n : Nat} {E : Env} {e : Exp} {k : Nat} {v : Val} {l : Log}
(h : evExp o n E e k = ⟨.value v, l, k⟩) : ∀ v' l', EvalExpL E e v' l' → v' = v ∧ l' = lProof
by
intro v' l' d
rcases EvalExpL.nostuck d o n k _ h with h1 | h1 | h1
· simp at h1
· simp at h1
· simp only [Res.mk.injEq, Outcome.value.injEq] at h1; exact ⟨h1.1.symm, h1.2.1.symm⟩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.