TheoremelmTexts_eval
Every text of the fragment evaluates in E_K to the value VE_elm binds.
Statement
theorem elmTexts_eval : ∀ x p ps e, Def.fn x (p :: ps) e ∈ elmTexts →
EvalDec E_K (.val (.var x (lams (p :: ps) e) none)) [(x, .closure p (lams ps e) E_K [])]Proof
by
intro x p ps e hm
apply elmText_derivation
have := List.all_eq_true.mp elmTexts_nonrec _ hm
simpa [elmTextNonRec] using thisProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Theorems.lean: The command #mod_program_theorems (one theorem per program, in module form, in Lib.Btest; tagged [library] when the program names a core library value), budgetNative, the rulings stated directly, and theorems that D1 makes possible (a43_one_unique, a51_one_choice, log_order_demo).
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.