Theorems · Theorem · combinatorics
Multiset.countP_cons
∀ {α : Type u_1} (p : α → Prop) [inst : DecidablePred p] (b : α) (s : Multiset α),
Multiset.countP p (b ::ₘ s) = Multiset.countP p s + if p b then 1 else 0- Defined in
- Mathlib.Data.Multiset.Count
- Cited by
- 3 results in Mathlib
- Foundations
- Depth 17 from the axioms · uses propext, Quot.sound
- Assumes
- DecidablePred
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites3
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.consstatement · cited by 313
- Multiset.countPstatement · cited by 28
Cited by3
Results whose statement or proof uses this declaration.
- Multiset.countP_mapproof · cited by 2
- Multiset.count_consproof · cited by 1
- Multiset.Rel.countP_eqproof · cited by 0