Theorems · Theorem · combinatorics
Multiset.count_map_eq_count
∀ {α : Type u_1} {β : Type v} [inst : DecidableEq α] [inst_1 : DecidableEq β] (f : α → β) (s : Multiset α),
Set.InjOn f {x | x ∈ s} → ∀ x ∈ s, Multiset.count (f x) (Multiset.map f s) = Multiset.count x sMultiset.map f preserves count if f is injective on the set of elements contained in
the multiset
- Defined in
- Mathlib.Data.Multiset.Filter
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 20 from the axioms · uses propext, Quot.sound
- Assumes
- DecidableEqDecidableEq
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites14
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Set.ofPredstatement and proof · cited by 6,101
- Multisetstatement and proof · cited by 2,627
- Multiset.mapstatement and proof · cited by 876
- Set.InjOnstatement and proof · cited by 543
- Multiset.cardproof · cited by 375
- Multiset.countstatement and proof · cited by 302
- Multiset.filterproof · cited by 102
- Multiset.card_replicateproof · cited by 12
- Multiset.filter_congrproof · cited by 11
- Multiset.mem_filterproof · cited by 10
- Multiset.eq_replicate_cardproof · cited by 7
- Multiset.count_filter_of_posproof · cited by 5
Cited by1
Results whose statement or proof uses this declaration.
- Multiset.count_map_eq_count'proof · cited by 9