Pure Lean 4 · No Mathlib
MediumLists
14. Map Distributes over Append
Prove that `List.map f` is a monoid homomorphism with respect to list concatenation `++`.
Target Theorem
theorem list_map_append {α β : Type} (f : α → β) (xs ys : List α) : (xs ++ ys).map f = xs.map f ++ ys.map fHints (0/2)
Stuck? Reveal hints one step at a time without spoiling the full proof.
Symbols:
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).