All Exercises
#17 List Reverse is an Involution
live.lean-lang.org
Pure Lean 4 · No Mathlib
HardLists

17. List Reverse is an Involution

Prove that reversing any list twice returns the original list unchanged.

Target Theorem
theorem list_reverse_reverse {α : Type} (xs : List α) : xs.reverse.reverse = xs
Hints (0/2)

Stuck? Reveal hints one step at a time without spoiling the full proof.

Symbols:
Initializing Lean 4 editor…
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).