All Exercises
#13 Length of Appended Lists
live.lean-lang.org
Pure Lean 4 · No Mathlib
MediumLists

13. Length of Appended Lists

Prove that the length of concatenating two lists equals the sum of their lengths.

Target Theorem
theorem list_length_append {α : Type} (xs ys : List α) : (xs ++ ys).length = xs.length + ys.length
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).