TheoremelabConBind_sound
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 hrProof
elabConBind_sound C τ rest VE' h2
exact .opt_some (.r_sm_conbind (elabTyList_sound C tys τs h1) hr)
· cases hProved 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.