Theorems · Theorem · combinatorics
Multiset.count_map
∀ {α : Type u_3} {β : Type u_4} (f : α → β) (s : Multiset α) [inst : DecidableEq β] (b : β),
Multiset.count b (Multiset.map f s) = (Multiset.filter (fun a => b = f a) s).card- Defined in
- Mathlib.Data.Multiset.Filter
- Cited by
- 4 results in Mathlib
- Foundations
- Depth 19 from the axioms · uses propext, Quot.sound
- Assumes
- DecidableEq
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites6
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Multisetstatement and proof · cited by 2,627
- Multiset.mapstatement · cited by 876
- Multiset.cardstatement and proof · cited by 375
- Multiset.countstatement · cited by 302
- Multiset.filterstatement and proof · cited by 102
- Multiset.countP_mapproof · cited by 2
Cited by4
Results whose statement or proof uses this declaration.
- Multiset.map_toEnumFinset_fstproof · cited by 7
- Polynomial.roots_expand_powproof · cited by 3
- Multiset.map_fst_le_of_subset_toEnumFinsetproof · cited by 3
- Polynomial.roots_expand_pow_map_iterateFrobenius_leproof · cited by 2