Elm Exactly

TheoremexValue_sound

StandardElmMech/Eff/Examples.lean:26 · tactic proof

Statement

theorem exValue_sound {e : Exp} {v : Val} (h : exValue e = some v) : EvalExp E_ex e v

Proof

by
  unfold exValue at h
  split at h
  · rename_i w l k hr; cases h; exact evExp_sound (by rw [hr])
  · cases h

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

Theorems it uses

Used by

In StandardElmMech/Eff/Examples.lean: Task.perform, Task.sequence of six tasks reduced to its outcome, Task.attempt of a failing task, and the flattening of Cmd.batch [Cmd.none, Cmd.none], by the kernel.

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.