The powerset of a finset #
powerset #
When s is a finset, s.powerset is the finset of all subsets of s (seen as finsets).
Equations
Instances For
Number of Subsets of a Set
For predicate p decidable on ssubsets, it is decidable whether p holds for any ssubset.
Equations
Instances For
For predicate p decidable on ssubsets, it is decidable whether p holds for every ssubset.
Equations
Instances For
A version of Finset.decidableExistsOfDecidableSSubsets with a non-dependent p.
Typeclass inference cannot find hu here, so this is not an instance.
Equations
Instances For
A version of Finset.decidableForallOfDecidableSSubsets with a non-dependent p.
Typeclass inference cannot find hu here, so this is not an instance.
Equations
Instances For
Given an integer n and a finset s, then powersetCard n s is the finset of subsets of s
of cardinality n.
Equations
Instances For
Formula for the Number of Combinations
Alias of the reverse direction of Finset.powersetCard_nonempty.