Theorems · Theorem · combinatorics
Multiset.filterMap_cons
∀ {α : Type u_1} {β : Type v} (f : α → Option β) (a : α) (s : Multiset α),
Multiset.filterMap f (a ::ₘ s) = (Option.map singleton (f a)).getD 0 + Multiset.filterMap f s- Defined in
- Mathlib.Data.Multiset.Filter
- Cited by
- 2 results in Mathlib
- Foundations
- Depth 15 from the axioms · uses propext, Quot.sound
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.consstatement and proof · cited by 313
- Multiset.filterMapstatement and proof · cited by 25
- Multiset.zero_addproof · cited by 15
- Multiset.filterMap_cons_noneproof · cited by 1
- Multiset.filterMap_cons_someproof · cited by 1
Cited by2
Results whose statement or proof uses this declaration.
- Multiset.filterMap_eq_bindproof · cited by 1
- Multiset.map_filter_eq_filterMapproof · cited by 0