Multisets form an ordered monoid #
This file contains the ordered monoid instance on multisets, and lemmas related to it.
See note [foundational algebra order theory].
Additive monoid #
@[implicit_reducible]
Cardinality #
Multiset.card bundled as a group hom.
Instances For
Multiset.replicate as an AddMonoidHom.
Instances For
@[simp]
Multiset.map as an AddMonoidHom.
Instances For
@[simp]
@[simp]
Subtraction #
countP #
countP p, the number of elements of a multiset satisfying p, promoted to an
AddMonoidHom.
Instances For
@[simp]
Multiplicity of an element #
count a, the multiplicity of a in a multiset, promoted to an AddMonoidHom.
Instances For
@[simp]