Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Mathlib/Data/List/TakeDrop.lean
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,6 @@ theorem tail_iterate (l : List α) (n : ℕ) : (List.tail^[n]) l = l.drop n := b
| zero => rfl
| succ n ih => cases l <;> simp [*]

section TailDropLast

variable (l : List α) (n : ℕ)

theorem tail_take_eq_take_tail : (l.take n).tail = l.tail.take (n - 1) := by
ext
grind

theorem dropLast_take_eq_take_dropLast : (l.take n).dropLast = l.dropLast.take (n - 1) := by
ext
grind

theorem tail_drop_eq_drop_tail : (l.drop n).tail = l.tail.drop n := by
ext
grind

theorem dropLast_drop_eq_drop_dropLast : (l.drop n).dropLast = l.dropLast.drop n := by
ext
grind

end TailDropLast

section TakeI

variable [Inhabited α]
Expand Down
Loading