TheoremapplyList_map
Statement
theorem applyList_map (f : TyName → TyName) (S : Subst) :
∀ l : List Ty, (mapSubst f S).applyList (mapTys f l) = (S.applyList l).map (mapTys f)
| [] => by simp [mapTys, Subst.applyList]
| τ :: rest => by
simp only [mapTys, Subst.applyList]
rw [apply_map f S τ, applyList_map f S rest]
cases S.apply τ <;> cases S.applyList rest <;> simp [mapTys]Proof
Proved by a term, which Lean's kernel checks directly.
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.