Combinations #
Combinations in a type are finite subsets of given cardinality.
Set.powersetCard α nis the set of allFinset αwith cardinalityn. The name is chosen in relation withFinset.powersetCardwhich corresponds to the analogous structure for subsets of given cardinality of a givenFinset, as aFinset.Set.powersetCard.cardproves that theNat.card-cardinality of this set is equal to(Nat.card α).choose n.
The type of combinations of n elements of a type α.
See also Finset.powersetCard.
Equations
Instances For
Equations
Equations
The map powersetCard α n → powersetCard β n induced by embedding f : α ↪ β.
Equations
Instances For
The equivalence sending a : α to the singleton {a}.
Equations
Instances For
Complement of Finsets as an equivalence on Set.powersetCard.
Equations
Instances For
Equations
If 0 < n < ENat.card α, then powersetCard α n is nontrivial.
A variant of Set.powersetCard.nontrivial that uses Nat.card.