Elm Exactly

TheoremmapV_modify

StandardElmMech/Stat/RefuseScope.lean:265, Finite maps · tactic proof

Statement

theorem mapV_modify (f g : FMap K V) (h : V → W) :
    FMap.mapV (FMap.modify f g) h = FMap.modify (FMap.mapV f h) (FMap.mapV g h)

Proof

by
  unfold FMap.modify
  rw [keys_mapV]
  simp [FMap.mapV, List.map_append, List.filter_map, Function.comp_def]

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

Theorems it uses

Used by

In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).

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.