Elm Exactly

TheoremtopBinds_rel

StandardElmMech/Src/DerivesTo.lean:216, Modules · term proof

Statement

theorem topBinds_rel : ∀ vs : List TopVal, TopBindsRel vs (topBinds vs)
  | [] => .nil
  | .port _ _ :: vs => .port (topBinds_rel vs)
  | .val d :: vs => .val (deriveDef_derives d) (topBinds_rel vs)

Proof

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

Used by

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.