Lemmas about List.Pairwise
and List.Nodup
. #
Pairwise and Nodup #
Pairwise #
@[reducible, inline, deprecated List.Pairwise.filterMap (since := "2024-07-29")]
abbrev
List.Pairwise.filter_map
{β : Type u_1}
{α : Type u_2}
{R : α → α → Prop}
{S : β → β → Prop}
(f : α → Option β)
(H : ∀ (a a' : α), R a a' → ∀ (b : β), b ∈ f a → ∀ (b' : β), b' ∈ f a' → S b b')
{l : List α}
(p : Pairwise R l)
:
Pairwise S (List.filterMap f l)
Instances For
theorem
List.Pairwise.filter
{α : Type u_1}
{R : α → α → Prop}
{l : List α}
(p : α → Bool)
:
Pairwise R l → Pairwise R (List.filter p l)
@[reducible, inline, deprecated List.pairwise_flatten (since := "2024-10-14")]