Pure Lean 4 · No Mathlib
MediumLists
44. Reverse of Appended Lists
Prove that `List.reverse` is an anti-homomorphism for list concatenation `++`: reversing `xs ++ ys` reverses both lists and swaps their order.
Target Theorem
theorem list_reverse_append {α : Type} (xs ys : List α) : (xs ++ ys).reverse = ys.reverse ++ xs.reverseHints (0/3)
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).