Theorems · Theorem · combinatorics
Multiset.count_filter
∀ {α : Type u_1} [inst : DecidableEq α] {p : α → Prop} [inst_1 : DecidablePred p] {a : α} {s : Multiset α},
Multiset.count a (Multiset.filter p s) = if p a then Multiset.count a s else 0- Defined in
- Mathlib.Data.Multiset.Filter
- Cited by
- 3 results in Mathlib
- Foundations
- Depth 22 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- DecidableEqDecidablePred
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites5
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.countstatement and proof · cited by 302
- Multiset.filterstatement and proof · cited by 102
- Multiset.count_filter_of_posproof · cited by 5
- Multiset.count_filter_of_negproof · cited by 3
Cited by3
Results whose statement or proof uses this declaration.
- Multiset.countPerms_filter_neproof · cited by 2
- Sym.fill_filterNeproof · cited by 1
- Polynomial.filter_roots_map_range_eq_map_rootsproof · cited by 0