Elm Exactly

TheoremevExpList_sound

StandardElmMech/Mod/Sound.lean:43 · tactic proof

Statement

theorem evExpList_sound {I : Interface} {el : ExpList} {I' : Interface} :
    evExpList I el = some I' → EvalExpList I el I'

Proof

by
  cases el with
  | all => simp only [evExpList, Option.some.injEq]; rintro rfl; exact .r_dm_explist_all I
  | items is =>
    cases is with
    | nil => simp [evExpList]
    | cons it rest =>
      simp only [evExpList, Option.map_eq_some_iff]
      rintro ⟨Is, h, rfl⟩
      exact .r_dm_explist_items I (it :: rest) Is (by simp) (evExpItems_sound h)

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

Rules of the book it uses

Theorems it uses

Used by

In StandardElmMech/Mod/Sound.lean: Its soundness.

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.