The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Finset.Slice
26 declarations. Mathlib docs · Source
r-sets and slice
This file defines the r-th slice of a set family and provides a way to say that a set family is
made of r-sets.
An r-set is a finset of cardinality r (aka of size r). The r-th slice of a set family is
the set family made of its r-sets.
Main declarations
Set.Sized:A.Sized rmeans thatAonly containsr-sets.Finset.slice:A.slice ris the set ofr-sets inA.
Notation
A # r is notation for A.slice r in scope finset_family.
Families of r-sets
Slices
def Set.Sized E3 #
{α : Type u_1} → ℕ → Set (Finset α) → Prop
Sized r A means that every Finset in A has size r.
theorem Set.Sized.mono E1 #
∀ {α : Type u_1} {A B : Set (Finset α)} {r : ℕ}, A ⊆ B → Set.Sized r B → Set.Sized r A
theorem Set.sized_empty E0 #
∀ {α : Type u_1} {r : ℕ}, Set.Sized r ∅
theorem Set.sized_singleton E0 #
∀ {α : Type u_1} {s : Finset α} {r : ℕ}, Set.Sized r {s} ↔ s.card = r
theorem Set.sized_union E1 #
∀ {α : Type u_1} {A B : Set (Finset α)} {r : ℕ}, Set.Sized r (A ∪ B) ↔ Set.Sized r A ∧ Set.Sized r B
theorem Set.sized.union E1 #
∀ {α : Type u_1} {A B : Set (Finset α)} {r : ℕ}, Set.Sized r A ∧ Set.Sized r B → Set.Sized r (A ∪ B)
Alias of the reverse direction of Set.sized_union.
theorem Set.sized_iUnion E0 #
∀ {α : Type u_1} {ι : Sort u_2} {r : ℕ} {f : ι → Set (Finset α)}, Set.Sized r (⋃ i, f i) ↔ ∀ (i : ι), Set.Sized r (f i)
theorem Set.sized_iUnion₂ E1 #
∀ {α : Type u_1} {ι : Sort u_2} {κ : ι → Sort u_3} {r : ℕ} {f : (i : ι) → κ i → Set (Finset α)},
Set.Sized r (⋃ i, ⋃ j, f i j) ↔ ∀ (i : ι) (j : κ i), Set.Sized r (f i j)
theorem Set.Sized.isAntichain E1 #
∀ {α : Type u_1} {A : Set (Finset α)} {r : ℕ}, Set.Sized r A → IsAntichain (fun x1 x2 ↦ x1 ⊆ x2) A
theorem Set.Sized.subsingleton E1 #
∀ {α : Type u_1} {A : Set (Finset α)}, Set.Sized 0 A → A.Subsingleton
theorem Set.Sized.subsingleton' E1 #
∀ {α : Type u_1} {A : Set (Finset α)} [inst : Fintype α], Set.Sized (Fintype.card α) A → A.Subsingleton
theorem Set.Sized.empty_mem_iff E0 #
∀ {α : Type u_1} {A : Set (Finset α)} {r : ℕ}, Set.Sized r A → (∅ ∈ A ↔ A = {∅})
theorem Set.Sized.univ_mem_iff E0 #
∀ {α : Type u_1} {A : Set (Finset α)} {r : ℕ} [inst : Fintype α], Set.Sized r A → (Finset.univ ∈ A ↔ A = {Finset.univ})
theorem Set.sized_powersetCard E1 #
∀ {α : Type u_1} (s : Finset α) (r : ℕ), Set.Sized r ↑(Finset.powersetCard r s)
theorem Finset.subset_powersetCard_univ_iff E0 #
∀ {α : Type u_1} [inst : Fintype α] {𝒜 : Finset (Finset α)} {r : ℕ},
𝒜 ⊆ Finset.powersetCard r Finset.univ ↔ Set.Sized r ↑𝒜
theorem Set.Sized.subset_powersetCard_univ E1 #
∀ {α : Type u_1} [inst : Fintype α] {𝒜 : Finset (Finset α)} {r : ℕ},
Set.Sized r ↑𝒜 → 𝒜 ⊆ Finset.powersetCard r Finset.univ
Alias of the reverse direction of Finset.subset_powersetCard_univ_iff.
theorem Set.Sized.card_le E1 #
∀ {α : Type u_1} [inst : Fintype α] {𝒜 : Finset (Finset α)} {r : ℕ}, Set.Sized r ↑𝒜 → 𝒜.card ≤ (Fintype.card α).choose r
def Finset.slice E3 #
{α : Type u_1} → Finset (Finset α) → ℕ → Finset (Finset α)
The r-th slice of a set family is the subset of its elements which have cardinality r.
def Finset.«term_#_» E1 #
Lean.TrailingParserDescr
The r-th slice of a set family is the subset of its elements which have cardinality r.
theorem Finset.mem_slice E0 #
∀ {α : Type u_1} {𝒜 : Finset (Finset α)} {A : Finset α} {r : ℕ}, A ∈ 𝒜.slice r ↔ A ∈ 𝒜 ∧ A.card = r
A is in the r-th slice of 𝒜 iff it's in 𝒜 and has cardinality r.
theorem Finset.slice_subset E1 #
∀ {α : Type u_1} {𝒜 : Finset (Finset α)} {r : ℕ}, 𝒜.slice r ⊆ 𝒜
The r-th slice of 𝒜 is a subset of 𝒜.
theorem Finset.sized_slice E1 #
∀ {α : Type u_1} {𝒜 : Finset (Finset α)} {r : ℕ}, Set.Sized r ↑(𝒜.slice r)
Everything in the r-th slice of 𝒜 has size r.
theorem Finset.ne_of_mem_slice E1 #
∀ {α : Type u_1} {𝒜 : Finset (Finset α)} {A₁ A₂ : Finset α} {r₁ r₂ : ℕ},
A₁ ∈ 𝒜.slice r₁ → A₂ ∈ 𝒜.slice r₂ → r₁ ≠ r₂ → A₁ ≠ A₂
Elements in distinct slices must be distinct.
theorem Finset.pairwiseDisjoint_slice E1 #
∀ {α : Type u_1} {𝒜 : Finset (Finset α)}, Set.univ.PairwiseDisjoint 𝒜.slice
theorem Finset.biUnion_slice E0 #
∀ {α : Type u_1} (𝒜 : Finset (Finset α)) [inst : Fintype α] [inst_1 : DecidableEq α],
(Finset.Iic (Fintype.card α)).biUnion 𝒜.slice = 𝒜
theorem Finset.sum_card_slice E0 #
∀ {α : Type u_1} (𝒜 : Finset (Finset α)) [inst : Fintype α], ∑ r ≤ Fintype.card α, (𝒜.slice r).card = 𝒜.card