Elm Exactly

TheoremtupleTy_map

StandardElmMech/Stat/RefuseTypes.lean:303, Simulation of the elaboration of type expressions · tactic proof

Statement

theorem tupleTy_map (f : TyName → TyName) (hf : FixesBuiltins f) (τ1 τ2 : Ty) (τ3 : Option Ty) :
    mapTy f (tupleTy τ1 τ2 τ3) = tupleTy (mapTy f τ1) (mapTy f τ2) (τ3.map (mapTy f))

Proof

by
  cases τ3 <;> simp [tupleTy, mapTy, mapTys, hf.2.1, hf.2.2]

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/RefuseTypes.lean: Refusals by type expressions (aliases, constructor arguments, annotations, ports) and by the type of main (typesFailB, mainFailB), for every choice of generated names and variable sorts.

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.