Lemmas about List.eraseP
and List.erase
. #
eraseP #
theorem
List.Pairwise.eraseP
{α✝ : Type u_1}
{p : α✝ → α✝ → Prop}
{l : List α✝}
(q : α✝ → Bool)
:
Pairwise p l → Pairwise p (List.eraseP q l)
theorem
List.Nodup.eraseP
{α✝ : Type u_1}
{l : List α✝}
(p : α✝ → Bool)
:
l.Nodup → (List.eraseP p l).Nodup
erase #
theorem
List.Sublist.erase
{α : Type u_1}
[BEq α]
(a : α)
{l₁ l₂ : List α}
(h : l₁.Sublist l₂)
:
(l₁.erase a).Sublist (l₂.erase a)