Elm Exactly

TheoremelabConBind_sound

StandardElmMech/Stat/Deterministic.lean:273, Type declarations, given the type names they generate · term proof

Statement

theorem elabConBind_sound (C : Ctx) (τ : Ty) : (cb : BConBind) → (VE : ValEnv) →
    elabConBind C τ cb = some VE → ElConBindOpt C τ cb VE
  | [], VE, h => by simp only [elabConBind, Option.some.injEq] at h; subst h; exact .opt_none
  | (k, tys) :: rest, VE, h => by
    simp only [elabConBind] at h
    split at h
    · rename_i τs VE' h1 h2
      cases h
      have hr

Proof

elabConBind_sound C τ rest VE' h2
      exact .opt_some (.r_sm_conbind (elabTyList_sound C tys τs h1) hr)
    · cases h

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

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.