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.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).