Elm Exactly

TheoremelabTyRowOpt_sound

StandardElmMech/Stat/Deterministic.lean:125, Type expressions · term proof

Statement

theorem elabTyRowOpt_sound (C : Ctx) : (r : Option BTyRow) → (ρ : Row) → elabTyRowOpt C r = some ρ → ElTyRowOpt C r ρ
  | none, ρ, h => by unfold elabTyRowOpt at h; cases h; exact .opt_none
  | some r, ρ, h => by unfold elabTyRowOpt at h; exact .opt_some (elabTyRow_sound C r ρ h)

Proof

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

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.