Elm Exactly

TheoremevExpItems_sound

StandardElmMech/Mod/Sound.lean:32 · term proof

Statement

theorem evExpItems_sound {I : Interface} : ∀ {is : List ExpItem} {Is : List Interface},
    evExpItems I is = some Is → EvalExpItems I is Is
  | [], Is, h => by simp only [evExpItems, Option.some.injEq] at h; subst h; exact .seq_nil I
  | it :: is, Is, h => by
    simp only [evExpItems] at h
    split at h
    · rename_i I1 Is' h1 h2
      simp only [Option.some.injEq] at h; subst h
      exact .seq_cons I it is I1 Is' (evExpItem_sound h1) (evExpItems_sound h2)
    · cases h

Proof

Proved by a term, which Lean's kernel checks directly.

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.