submultisets
Submultisets are a generalization of ordinary subsets to multisets. Given a multiset M on a universe U, a submultiset N of M is another multiset on U such that for every element x in U, the multiplicity of x in N does not exceed the multiplicity of x in M. Equivalently, N can be obtained by removing some occurrences of elements from M. The collection of all submultisets of M forms a partially ordered set under the componentwise order on multiplicities: N ≤ M if and only if for all x in U, the multiplicity of x in N is at most that in M.
A convenient representation of a multiset M is as a function m: U → NonnegativeIntegers, where m(x)
Operations on multisets extend to submultisets via componentwise definitions: the union (in the multiset sense) uses