Elm Exactly

TheoremappVal_unique_l

StandardElmMech/Determinism.lean:39 · tactic proof

Statement

theorem appVal_unique_l {o : Oracle} {n : Nat} {f v : Val} {k : Nat} {w : Val} {l : Log}
    (h : appVal o n f v k = ⟨.value w, l, k⟩) : ∀ w' l', AppValL f v w' l' → w' = w ∧ l' = l

Proof

by
  intro w' l' d
  rcases AppValL.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.