Elm Exactly

TheoremevExp_unique

StandardElmMech/Determinism.lean:27 · tactic proof

Statement

theorem evExp_unique {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', EvalExp E e v' → v' = v

Proof

by
  intro v' d
  obtain ⟨l', d'⟩ := EvalExp.lift d
  exact (evExp_unique_l h v' l' d').1

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.