Elm Exactly

TheoremelabTyRow_sound

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

Statement

theorem elabTyRow_sound (C : Ctx) : (r : BTyRow) → (ρ : Row) → elabTyRow C r = some ρ → ElTyRow C r ρ
  | .field l t rest, ρ, h => by
    unfold elabTyRow at h
    split at h
    · rename_i τ ρ' h1 h2
      cases h
      exact .r_s_tyrow (elabTy_sound C t _ h1) (elabTyRowOpt_sound C rest _ h2)
    · cases h

Proof

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

Rules of the book it uses

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.