Skip to content

Commit 98f21e6

Browse files
committed
lint
1 parent c91b3ae commit 98f21e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mathlib/Data/List/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ theorem mem_getLast?_append_of_mem_getLast? {l₁ l₂ : List α} {x : α} (h :
396396
@[simp]
397397
theorem head!_nil [Inhabited α] : ([] : List α).head! = default := rfl
398398

399-
@[simp] theorem head_cons_tail (x : List α) (h : x ≠ []) : x.head h :: x.tail = x := by
400-
cases x <;> simp at h ⊢
399+
@[deprecated cons_head_tail (since := "2025-08-15")]
400+
theorem head_cons_tail (x : List α) (h : x ≠ []) : x.head h :: x.tail = x := by simp
401401

402402
theorem head_eq_getElem_zero {l : List α} (hl : l ≠ []) :
403403
l.head hl = l[0]'(length_pos_iff.2 hl) :=

0 commit comments

Comments
 (0)