TheoremderiveDef_derives
Statement
theorem deriveDef_derives (d : SDef) : DerivesDs [d] [deriveDef d]Proof
by
have h := deriveDefs_derives [d]
match d with
| .fn _ _ [] _ => exact h
| .fn _ _ [_] _ => exact h
| .fn _ _ (_ :: _ :: _) _ => exact h
| .pat _ _ => exact hProved with tactics, which Lean expands into a proof term that its kernel checks.
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.