Elm Exactly

TheoremkeysIn_mapV

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

Statement

theorem keysIn_mapV {f : FMap K V} {g : V → W} {xs : List K} (h : KeysIn f xs) :
    KeysIn (FMap.mapV f g) xs

Proof

by
  intro x w hx
  rw [find?_mapV] at hx
  cases hf : FMap.find? f x with
  | none => rw [hf] at hx; cases hx
  | some v => exact h x v hf

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.