Pure Lean 4 · No Mathlib
EasyLists
43. Reverse Preserves List Length
Prove that reversing any list leaves its length unchanged.
Target Theorem
theorem list_reverse_length {α : Type} (xs : List α) : xs.reverse.length = xs.lengthHints (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).