Elm Exactly

TheoremoptEq_sound

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

Statement

theorem optEq_sound {o : Option Val} {w : Val} (h : optEq o w = true) : o = some w

Proof

by
  cases o with
  | none => simp [optEq] at h
  | some v => simp only [optEq] at h; rw [eqFO_sound 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.