Equip/unequip [00H2]

As discussed previously, the \mathsf {equip} and \mathsf {unequip} commands allow robots to move devices between their inventory and equipped set. Unlike \mathsf {stock} and \mathsf {require}, to allow for necessary flexibility, these commands take an arbitrary expression that evaluates to the name of a device. So, conservatively, we must use generic typing rules that do not interact with the requirements system at all.

However, when d is a literal device name, we can do a bit better, with special rules for an \mathsf {equip} or \mathsf {unequip} followed by another command: XXX