Elm Exactly

TheoremevDec_sound

StandardElmMech/Sound.lean:175 · tactic proof

Statement

theorem evDec_sound {o : Oracle} {n : Nat} {E : Env} {d : Dec} {k : Nat} {VE : ValEnv} :
    (evDec o n E d k).out = .value VE → EvalDec E d VE

Proof

by
  intro h
  rcases hr : evDec o n E d k with ⟨out, l, k'⟩
  rw [hr] at h; simp only at h; subst h
  exact EvalDecL.forget (evDec_sound_l hr)

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Theorems it uses

Used by

In StandardElmMech/Sound.lean: soundAt, evExp_sound_l, evExp_sound: every value of the evaluator, with its log, is derivable in the logged relation, and so in the book's.

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.