List Sub-permutations #
This file develops theory about the List.Subperm
relation.
Notation #
The notation <+~
is used for sub-permutations.
theorem
List.subperm_iff_count
{α : Type u_1}
{l₁ l₂ : List α}
[DecidableEq α]
:
l₁.Subperm l₂ ↔ ∀ (a : α), List.count a l₁ ≤ List.count a l₂
See also List.subperm_ext_iff
.
Alias of the reverse direction of List.subperm_cons
.
Alias of the forward direction of List.subperm_cons
.
theorem
List.Nodup.subperm
{α : Type u_1}
{l₁ l₂ : List α}
(d : l₁.Nodup)
(H : l₁ ⊆ l₂)
:
l₁.Subperm l₂