6 Bisection and identification
Two ingredients turn a coloured cover into an algorithm: one measurement names the piece within a colour class, and \(L\) adaptive measurements find the colour among at most \(2^L\).
Let \(X\) be a nonempty metric space, let \(cc\) be a coloured cover of \(X\) with countable index set, diameter \(\varepsilon \) and separation \(c {\gt} 0\), and let \(r\) be a colour. Then there are a continuous functional \(\varphi : X \to \mathbb {R}\) and a map \(\mathrm{dec} : \mathbb {Z} \to X\) such that for every \(x\) in the closure of the colour class of \(r\) there is \(n \in \mathbb {Z}\) with \(\varphi (x) = n\) and \(\operatorname {dist}\bigl( x, \mathrm{dec}(n) \bigr) \le \varepsilon + c/8\).
Enumerate the pieces of the colour class and attach to the \(j\)-th piece a collar function, supported in its \(c/8\)-neighbourhood and equal to \(1\) on the piece. The functional is the sum of the collar functions weighted by the logit of an injective encoding of \(j\); the weights make the sum locally finite and continuous, and its value on a point of the colour class names the piece.
Let \(X\) be a nonempty metric space, let \(A_1, \dots , A_{K}\) be sets, and suppose that for each \(r\) there are a scheme of \(\ell \) measurements and a reconstruction map that is \(\eta \)-accurate on \(\overline{A_r}\). Then for every \(L \in \mathbb {N}_0\) and every set \(C\) of at most \(2^L\) colours there are a scheme of \(\ell + L\) measurements and a reconstruction map that is \(\eta \)-accurate on \(\overline{\bigcup _{r \in C} A_r}\).
Induction on \(L\). Split \(C\) into two halves of at most \(2^{L-1}\) colours, take the schemes the inductive hypothesis provides for each half, and put them together with the branch combinator, asking first a functional that separates the two halves.