Elm Exactly

TheoremgroupLet_eq

StandardElmMech/Src/DerivesTo.lean:22 · term proof

Statement

theorem groupLet_eq (ds : List SDef) (bs : List BValBind) (body : BExp) :
    groupLet ds bs body = groupLetWith (Grouping.components ds.length (letRefers ds)) bs body

Proof

rfl

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

In StandardElmMech/Src/DerivesTo.lean: The derived forms as the book states them, a relation (DerivesE, DerivesTo), and derive_derivesTo.

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.