Inventories and requirement contexts [000W]

In order to be able to properly express typing rules for the command monad, we first need to develop some additional machinery.

XXX note inventories are kind of like the free commutative monoid over entities, but with possibility of infinite cardinality. Like a free "star-commutative monoid". Star commutative monoid = commutative monoid with an additional operation a^* satisfying the axiom a^* = aa^*?

Context

Notes on redesign of the Swarm type system [000U]

Related

Swarm command monad [001U]