TheoremevDec_unique_l
Statement
theorem evDec_unique_l {o : Oracle} {n : Nat} {E : Env} {d : Dec} {k : Nat} {VE : ValEnv} {l : Log}
(h : evDec o n E d k = ⟨.value VE, l, k⟩) : ∀ VE' l', EvalDecL E d VE' l' → VE' = VE ∧ l' = lProof
by
intro VE' l' dd
rcases EvalDecL.nostuck dd 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
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.