The powerset of a finset #
powerset #
For predicate p
decidable on subsets, it is decidable whether p
holds for any subset.
Equations
- finset.decidable_exists_of_decidable_subsets = decidable_of_iff (∃ (t : finset α) (hs : t ∈ s.powerset), p t _) finset.decidable_exists_of_decidable_subsets._proof_2
For predicate p
decidable on subsets, it is decidable whether p
holds for every subset.
Equations
- finset.decidable_forall_of_decidable_subsets = decidable_of_iff (∀ (t : finset α) (h : t ∈ s.powerset), p t _) finset.decidable_forall_of_decidable_subsets._proof_2
A version of finset.decidable_exists_of_decidable_subsets
with a non-dependent p
.
Typeclass inference cannot find hu
here, so this is not an instance.
A version of finset.decidable_forall_of_decidable_subsets
with a non-dependent p
.
Typeclass inference cannot find hu
here, so this is not an instance.
For s
a finset, s.ssubsets
is the finset comprising strict subsets of s
.
For predicate p
decidable on ssubsets, it is decidable whether p
holds for any ssubset.
Equations
- finset.decidable_exists_of_decidable_ssubsets = decidable_of_iff (∃ (t : finset α) (hs : t ∈ s.ssubsets), p t _) finset.decidable_exists_of_decidable_ssubsets._proof_2
For predicate p
decidable on ssubsets, it is decidable whether p
holds for every ssubset.
Equations
- finset.decidable_forall_of_decidable_ssubsets = decidable_of_iff (∀ (t : finset α) (h : t ∈ s.ssubsets), p t _) finset.decidable_forall_of_decidable_ssubsets._proof_2
A version of finset.decidable_exists_of_decidable_ssubsets
with a non-dependent p
.
Typeclass inference cannot find hu
here, so this is not an instance.
A version of finset.decidable_forall_of_decidable_ssubsets
with a non-dependent p
.
Typeclass inference cannot find hu
here, so this is not an instance.
Given an integer n
and a finset s
, then powerset_len n s
is the finset of subsets of s
of cardinality n
.
Equations
- finset.powerset_len n s = {val := multiset.pmap finset.mk (multiset.powerset_len n s.val) _, nodup := _}
Formula for the Number of Combinations