Elm Exactly

TheoremlistTexts_eval

StandardElmMech/Eff/TaskTexts.lean:185, The environments and the interfaces · term proof

Each text of List (foldl and foldrHelper by r:d-dec-rec, reverse and foldr by r:d-dec-nonrec) derives its value in the environment of the texts before it.

Statement

theorem listTexts_eval : ∀ k x p ps e, listTexts[k]? = some (.fn x (p :: ps) e) →
    EvalDec (E_List0.plusVE (textValues E_List0 (listTexts.take k))) (.val (.var x (lams (p :: ps) e) none))
      (textValue (E_List0.plusVE (textValues E_List0 (listTexts.take k))) (.fn x (p :: ps) e))

Proof

fun _ x p ps e _ => textValue_eval _ x p ps e

Proved by a term, which Lean's kernel checks directly.

Rules of the book it uses

Theorems it uses

In StandardElmMech/Eff/TaskTexts.lean: The elm/core 1.0.5 texts of Task and of the List functions it reaches, their values taken in order, and their derivations (textValue_eval, taskTexts_eval, listTexts_eval); ME0(Task) and ME0(Process).

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.