There was an error while loading. Please reload this page.
1 parent c91b3ae commit 98f21e6Copy full SHA for 98f21e6
1 file changed
Mathlib/Data/List/Basic.lean
@@ -396,8 +396,8 @@ theorem mem_getLast?_append_of_mem_getLast? {l₁ l₂ : List α} {x : α} (h :
396
@[simp]
397
theorem head!_nil [Inhabited α] : ([] : List α).head! = default := rfl
398
399
-@[simp] theorem head_cons_tail (x : List α) (h : x ≠ []) : x.head h :: x.tail = x := by
400
- cases x <;> simp at h ⊢
+@[deprecated cons_head_tail (since := "2025-08-15")]
+theorem head_cons_tail (x : List α) (h : x ≠ []) : x.head h :: x.tail = x := by simp
401
402
theorem head_eq_getElem_zero {l : List α} (hl : l ≠ []) :
403
l.head hl = l[0]'(length_pos_iff.2 hl) :=
0 commit comments