Swarm polytypes [001N]

Most generally, a Swarm polytype is of the form \forall \overline {\alpha }; \overline {\delta }.\; \Delta \Rightarrow \tau where \overline {\alpha } is a sequence of type variables, \overline {\delta } is a sequence of capability set variables, \Delta is a capability set expression, and \tau is a monotype. Such a type is ascribed to expressions which, under any substitutions [\overline {\alpha } \mapsto \overline {\tau }] and [\overline {\delta } \mapsto \overline {\Delta }], can be evaluated by a robot with capabilities \Delta , producing either a value of type \tau or \bot (due to either an exception or nontermination).

Note that in the case that there are no capability set variables \delta , we often omit them from the syntax, writing simply \forall \overline {\alpha }.\; \Delta \Rightarrow \tau as an abbreviation for \forall \overline {\alpha }; \varnothing .\; \Delta \Rightarrow \tau . Moreover, we also omit writing \Delta \Rightarrow in the case when \Delta is \varnothing , and omit writing \forall when there are no variables being quantified over.

XXX need variables for capsets, devsets, inventory?