Elm Exactly

Theoremmodify_map

StandardElmMech/Stat/RefuseTypes.lean:114, Renaming type names · tactic proof

Statement

theorem modify_map (g : Ty → Ty) (ρ ρ' : Row) :
    Row.modify (rowMap g ρ) (rowMap g ρ') = rowMap g (Row.modify ρ ρ')

Proof

by
  unfold Row.modify
  have : (rowMap g ρ).length + (rowMap g ρ').length = ρ.length + ρ'.length := by simp [rowMap]
  rw [this, modifyF_map]

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

Theorems it uses

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.