Capabilities \to devices oracle [001G]
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.