diff --git a/Mathlib/Data/List/Basic.lean b/Mathlib/Data/List/Basic.lean index 6b8c7c19967e6..993ecdfb1e314 100644 --- a/Mathlib/Data/List/Basic.lean +++ b/Mathlib/Data/List/Basic.lean @@ -487,10 +487,6 @@ theorem forall_mem_iff_getElem {l : List α} {p : α → Prop} : (∀ x ∈ l, p x) ↔ ∀ (i : ℕ) (_ : i < l.length), p l[i] := by simp [mem_iff_getElem, @forall_swap α] -theorem getElem_cons {l : List α} {a : α} {n : ℕ} (h : n < (a :: l).length) : - (a :: l)[n] = if hn : n = 0 then a else l[n - 1]'(by rw [length_cons] at h; omega) := by - cases n <;> simp - theorem get_tail (l : List α) (i) (h : i < l.tail.length) (h' : i + 1 < l.length := (by simp only [length_tail] at h; omega)) : l.tail.get ⟨i, h⟩ = l.get ⟨i + 1, h'⟩ := by diff --git a/lake-manifest.json b/lake-manifest.json index f4f74a36219e6..16cdbe6b704cd 100644 --- a/lake-manifest.json +++ b/lake-manifest.json @@ -65,7 +65,7 @@ "type": "git", "subDir": null, "scope": "leanprover-community", - "rev": "fb26177ca3f6862cb9b57ea4083bf163f5199c6e", + "rev": "c792d1da5f40fe2df83ae19cdacba457040e1a55", "name": "batteries", "manifestFile": "lake-manifest.json", "inputRev": "lean-pr-testing-6342",