Theorems · Theorem · combinatorics
Multiset.count_cons
∀ {α : Type u_1} [inst : DecidableEq α] (a b : α) (s : Multiset α),
Multiset.count a (b ::ₘ s) = Multiset.count a s + if a = b then 1 else 0- Defined in
- Mathlib.Data.Multiset.Count
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 18 from the axioms · uses propext, Quot.sound
- Assumes
- DecidableEq
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites4
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.countstatement · cited by 302
- Multiset.countP_consproof · cited by 3
Cited by1
Results whose statement or proof uses this declaration.
- Multiset.count_singletonproof · cited by 10