As a step toward this goal, define a matrix whose elements are given by
Case 1:
If the inverse matrix exists, we can define
Note that although the elements are integers greater than or equal to zero, the elements are are rational numbers that can be negative. Therefore, although multisets form a rig, dual multisets form a -algebra.
The weights are then given explicitly by
Case 2: and
When the sets are disjoint, is a diagonal matrix whose entries are given by
The inverse matrix is obviously also diagonal with entries given by