TheoremkeysIn_foldl
Statement
theorem keysIn_foldl {fs : List (FMap K V)} {acc : FMap K V} {xs : List K}
(hacc : KeysIn acc xs) (h : ∀ f ∈ fs, KeysIn f xs) : KeysIn (fs.foldl FMap.modify acc) xsProof
by
induction fs generalizing acc with
| nil => exact hacc
| cons f fs ih =>
simp only [List.foldl_cons]
exact ih (keysIn_modify hacc (h f (by simp))) (fun g hg => h g (by simp [hg]))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.