Finsets and multisets form a graded order #
This file characterises atoms, coatoms and the covering relation in finsets and multisets. It also
proves that they form a ℕ-graded order.
Main declarations #
Multiset.instGradeMinOrder_nat: Multisets areℕ-gradedFinset.instGradeMinOrder_nat: Finsets areℕ-graded
@[simp]
theorem
CovBy.exists_multiset_cons
{α : Type u_1}
{s t : Multiset α}
(h : s ⋖ t)
:
∃ (a : α), a ::ₘ s = t
@[implicit_reducible]
@[simp]
Finsets form an order-connected suborder of multisets.
Finsets form an order-connected suborder of sets.
@[simp]
@[simp]
@[simp]
@[simp]
Alias of the reverse direction of Finset.val_wcovBy_val.
Alias of the reverse direction of Finset.val_covBy_val.
Alias of the reverse direction of Finset.coe_wcovBy_coe.
Alias of the reverse direction of Finset.coe_covBy_coe.
@[simp]
theorem
CovBy.exists_finset_cons
{α : Type u_1}
{s t : Finset α}
(h : s ⋖ t)
:
∃ (a : α) (ha : a ∉ s), Finset.cons a s ha = t
@[simp]
@[simp]
@[simp]
theorem
CovBy.exists_finset_insert
{α : Type u_1}
{s t : Finset α}
[DecidableEq α]
(h : s ⋖ t)
:
∃ a ∉ s, insert a s = t
theorem
CovBy.exists_finset_erase
{α : Type u_1}
{s t : Finset α}
[DecidableEq α]
(h : s ⋖ t)
:
∃ a ∈ t, t.erase a = s
theorem
Finset.covBy_iff_exists_insert
{α : Type u_1}
{s t : Finset α}
[DecidableEq α]
:
s ⋖ t ↔ ∃ a ∉ s, insert a s = t
@[simp]
@[implicit_reducible]