The powerset of a finset #
powerset #
Variant of Finset.image_injOn_powerset_of_injOn for a family S of finsets whose
union supports an InjOn hypothesis, rather than the full powerset of a set.
For s a finset, s.ssubsets is the finset comprising strict subsets of s.
Instances For
For predicate p decidable on ssubsets, it is decidable whether p holds for any ssubset.
Instances For
For predicate p decidable on ssubsets, it is decidable whether p holds for every ssubset.
Instances For
A version of Finset.decidableExistsOfDecidableSSubsets with a non-dependent p.
Typeclass inference cannot find hu here, so this is not an instance.
Instances For
A version of Finset.decidableForallOfDecidableSSubsets with a non-dependent p.
Typeclass inference cannot find hu here, so this is not an instance.
Instances For
Given an integer n and a finset s, then powersetCard n s is the finset of subsets of s
of cardinality n.
Instances For
Formula for the Number of Combinations
The n-element subsets of t containing s are exactly the (n - s.card)-element
subsets of t \ s, unioned with s.
The number of n-element subsets of t containing s equals
Nat.choose (#t - #s) (n - #s).
Alias of the reverse direction of Finset.powersetCard_nonempty.