Some lemmas about lists involving sets #
Split out from Data.List.Basic
to reduce its dependencies.
@[deprecated List.getElem_reverse (since := "2024-08-20")]
Alias of List.getElem_reverse
.
@[deprecated List.tail_reverse (since := "2024-12-10")]
theorem
List.tail_reverse_eq_reverse_dropLast
{α : Type u_1}
(l : List α)
:
l.reverse.tail = l.dropLast.reverse
Alias of List.tail_reverse
.
@[deprecated List.getElem_tail (since := "2024-08-19")]
Alias of List.getElem_tail
.
@[deprecated List.injOn_insertIdx_index_of_not_mem (since := "2024-10-21")]
Alias of List.injOn_insertIdx_index_of_not_mem
.
MapAccumr and Foldr #
Some lemmas relation mapAccumr
and foldr