Capabilities, entities, and devices [000X]
- November 3, 2025
Definition Entities [001C]
- November 13, 2025
We assume a globally fixed set of entities \mathbf {E}. Entities represent types of objects in the game, and can be either naturally occurring (such as trees and rocks) or manufactured (such as branch predictors).
Definition Capabilities [001D]
- November 13, 2025
We also assume a globally fixed set of capabilities \mathbf {C}. A capability represents the ability of a robot to do a particular thing: for example, to add, to move, make use of recursive functions, etc. For each built-in command c there is a capability \mathsf {Exc}(c) which represents the capability to use command c, but there are other capabilities as well.
Definition Devices [001E]
- November 13, 2025
Some entities provide one or more capabilities when they are equipped; such entities are known as devices. For example, a branch predictor device provides the \mathsf {Exc}(\mathsf {if}) capability, which allows robots to evaluate conditional expressions.
Devices \to capabilities [001F]
- November 13, 2025
We assume a fixed function \mathsf {caps} : \mathbf {E} \to \mathcal {P}(\mathbf {C}) which maps each entity to the set (possibly empty) of capabilities it provides. In a standard abuse of notation, if D \subseteq \mathbf {E} is a set of entities, we write \mathsf {caps}(D) to denote the image of D under \mathsf {caps}, that is, \mathsf {caps}(D) = \bigcup _{d \in D} \mathsf {caps}(d).
Capabilities \to devices oracle [001G]
- November 13, 2025
Of course we can invert the \mathsf {caps} function to yield a function \mathsf {caps}^{-1} : \mathbf {C} \to \mathcal {P}(\mathbf {E}) which maps a capability to the set of entities which provide it. More interesting, however, is that we also assume the existence of a provisioning oracle \mathsf {provision} : \mathcal {P}(\mathbf {C}) \times \mathcal {P}(\mathbf {E}) \to \mathcal {P}(\mathbf {E}) which calculates a set of devices which together provides (at least) the given set of capabilities, and is a superset of the given set of entities. That is, it must be the case that for any capability set \Delta and any set of devices D, D \subseteq \mathsf {provision}(\Delta , D) and \Delta \subseteq \mathsf {caps}(\mathsf {provision}(\Delta , D)). Simply defining \mathsf {provision}(\Delta , D) = D \cup \bigcup _{c \in \Delta } \mathsf {caps}^{-1}(c) would fit the bill, but would be unsatisfying, since its output would typically contain many redundant devices. Ideally we want some sort of "minimal" device set for a given set of capabilities. Solving this exactly is NP-hard, but there are various heuristics that can give approximate solutions. The precise algorithm used by the provisioning oracle does not matter for our purposes here; we simply assume that it exists and has the required properties.