The predicate List.Sorted (now deprecated). #
@[deprecated List.instDecidablePairwise (since := "2025-10-11")]
def
List.decidableSorted
{α : Type u}
{r : α → α → Prop}
[DecidableRel r]
(l : List α)
:
Decidable (Sorted r l)
Deprecated decidable instance for Sorted.
Instances For
@[deprecated List.Pairwise.nil (since := "2025-10-11")]
@[deprecated List.Pairwise.of_cons (since := "2025-10-11")]
theorem
List.Sorted.of_cons
{α : Type u}
{r : α → α → Prop}
{a : α}
{l : List α}
(p : Sorted r (a :: l))
:
Sorted r l
@[deprecated List.Pairwise.tail (since := "2025-10-11")]
theorem
List.Sorted.tail
{α : Type u}
{r : α → α → Prop}
{l : List α}
(h : Sorted r l)
:
Sorted r l.tail
@[deprecated List.rel_of_pairwise_cons (since := "2025-10-11")]
theorem
List.rel_of_sorted_cons
{α : Type u}
{r : α → α → Prop}
{a : α}
{l : List α}
(p : Sorted r (a :: l))
{a' : α}
:
a' ∈ l → r a a'
@[deprecated List.pairwise_cons (since := "2025-10-11")]
@[deprecated List.Pairwise.filter (since := "2025-10-11")]
@[deprecated List.pairwise_singleton (since := "2025-10-11")]
@[deprecated List.Pairwise.rel_of_mem_take_of_mem_drop (since := "2025-10-11")]
theorem
List.Sorted.rel_of_mem_take_of_mem_drop
{α : Type u}
{r : α → α → Prop}
{l : List α}
{x y : α}
{i : ℕ}
(h : Sorted r l)
(hx : x ∈ take i l)
(hy : y ∈ drop i l)
:
r x y
@[deprecated List.Pairwise.filterMap (since := "2025-10-11")]