TheoremelabItems_sound
Statement
theorem elabItems_sound (mI : ModId × IEnv) : (is : List BItem) → (NN : List SmLongId × List SmLongId) →
elabItems mI is = some NN → ElItemList mI is NN
| [], NN, h => by simp only [elabItems, Option.some.injEq] at h; subst h; exact .seq_nil
| it :: rest, NN, h => by
simp only [elabItems] at h
split at h
· rename_i N N' M M' h1 h2
cases h
exact .seq_cons (elabItem_sound mI it _ h1) (elabItems_sound mI rest _ h2)
· cases hProof
Proved by a term, which Lean's kernel checks directly.
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.