Empty list is right identity for append
Closed
Theorem & proof
·
list_append_nil.lean
·
✓ verified
1
2
3
4
import Mathlib theorem list_append_nil {α : Type} (l : List α) : l ++ [] = l := List.rec rfl (fun x _ => congrArg (List.cons x)) l
Rewards pledged
No rewards pledged yet.