theorems.fun
a working notebook of open problems ↘
theorems / list_append_nil

Empty list is right identity for append

Closed

Posted about 1 month ago · proven 21 days ago

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.