TheoremevLibModule_sound
Statement
theorem evLibModule_sound {B : Basis} {m : Module} {mid : ModId} {I : Interface} {VE : ValEnv}
(h : evLibModule B m = some (mid, I, VE)) : EvalModule B m [(mid, I)] VEProof
by
unfold evLibModule at h
split at h
· rename_i mid' I' VE' l k hr
simp only [Option.some.injEq, Prod.mk.injEq] at h
obtain ⟨rfl, rfl, rfl⟩ := h
exact (evModule_sound_l hr).forget
· simp at hProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
In StandardElmMech/Lib/Library.lean: The core library values written in Elm (plans/library-elm-texts.md): libME, the interfaces Chapter 7's rules give the library modules of Generated/Library.lean, evaluated in order in ME0 (libME_eval: each module's derivation by r:dm-module, from the evaluator's soundness); Lib.Btest, the dynamic test basis with the library (Mod.Btest libME), in which the view programs' theorems are stated. Only a value a program looks up is evaluated.
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.