TheoremevImports_sound
Statement
theorem evImports_sound {B : Basis} : ∀ {is : List Import} {E : Env},
evImports B is = some E → EvalImports B is E
| [], E, h => by simp only [evImports, Option.some.injEq] at h; subst h; exact .r_dm_imports_empty B
| ⟨m, q, el⟩ :: rest, E, h => by
simp only [evImports] at h
split at h
· rename_i I hI
split at h
· rename_i I' E' h1 h2
simp only [Option.some.injEq] at h; subst h
exact .r_dm_imports_import B m q el rest I I' E' hI (evExpListOpt_sound h1) (evImports_sound h2)
· cases h
· cases hProof
Proved by a term, which Lean's kernel checks directly.
Rules of the book it uses
Used by
In StandardElmMech/Mod/Sound.lean: Its soundness.
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.