Elm Exactly

TheoremelabTyOpt_sound

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

Statement

theorem elabTyOpt_sound (C : Ctx) : (t : Option BTy) → (τ : Option Ty) → elabTyOpt C t = some τ → ElTyOpt C t τ
  | none, τ, h => by unfold elabTyOpt at h; cases h; exact .opt_none
  | some t, τ, h => by
    unfold elabTyOpt at h
    split at h
    · cases h; exact .opt_some (elabTy_sound C t _ ‹_›)
    · cases 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.