Elm Exactly

TheoremelabExpList_sound

StandardElmMech/Stat/Deterministic.lean:236, Exposing lists and imports · tactic proof

Statement

theorem elabExpList_sound (mI : ModId × IEnv) (el : BExpList) (NN : List SmLongId × List SmLongId)
    (h : elabExpList mI el = some NN) : ElExpList mI el NN

Proof

by
  obtain ⟨mid, I⟩ := mI
  cases el with
  | all => simp only [elabExpList, Option.some.injEq] at h; subst h; exact .r_sm_explist_all
  | items is => exact .r_sm_explist_items (elabItems_sound _ is NN 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/Stat/Deterministic.lean: The deterministic parts as functions, each sound for its relation: type expressions, imports and exposing, type declarations given their names (checkTypes), ports.

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.