Equations
- Finset.fintype = { elems := Finset.powerset Finset.univ, complete := ⋯ }
@[simp]
theorem
Fintype.card_finset
{α : Type u_1}
[Fintype α]
:
Fintype.card (Finset α) = 2 ^ Fintype.card α
@[simp]
theorem
Finset.filter_subset_univ
{α : Type u_1}
[Fintype α]
[DecidableEq α]
(s : Finset α)
:
Finset.filter (fun (t : Finset α) => t ⊆ s) Finset.univ = Finset.powerset s
@[simp]
theorem
Finset.powerset_eq_univ
{α : Type u_1}
[Fintype α]
{s : Finset α}
:
Finset.powerset s = Finset.univ ↔ s = Finset.univ
theorem
Finset.mem_powersetCard_univ
{α : Type u_1}
[Fintype α]
{s : Finset α}
{k : ℕ}
:
s ∈ Finset.powersetCard k Finset.univ ↔ s.card = k
@[simp]
theorem
Finset.univ_filter_card_eq
(α : Type u_1)
[Fintype α]
(k : ℕ)
:
Finset.filter (fun (s : Finset α) => s.card = k) Finset.univ = Finset.powersetCard k Finset.univ
@[simp]
theorem
Fintype.card_finset_len
{α : Type u_1}
[Fintype α]
(k : ℕ)
:
Fintype.card { s : Finset α // s.card = k } = Nat.choose (Fintype.card α) k
Equations
- Set.fintype = { elems := Finset.map Finset.coeEmb.toEmbedding Finset.univ, complete := ⋯ }
@[simp]