Working on Real Computation, it is unavoidable to face multivaluedness. Considering the fact that real numbers have undecidable equality, (speaking in terms of Bishop’s, it’s LPO), the following simple algorithm is not computable:

if(x > 0) ... else ...

if the variable x represents a real number. Instead, with some tolerance factor ,
iRRAM supports such syntax:

if(choose(x > - e, e > x) == 1) ... else ...

The iRRAM choose function returns the index whose corresponding expression gets evaluated to be True; it can be implemented via parallel evaluation of the both expressions, returning the index of whose expression happens to hold first. Hence, even if one expression leads to Bottom, e.g., when x = - e , the choose function works! But, what does happen if both expressions happen to be truth?

Obviously, the one which holds first would be returned. If both are evaluated to be true at the same time, we can make some protocol which to return. This is the matter of the fact of implementation of the language; we can design the language to evaluate the second expression two steps whereas the first expression one step. Therefore, an abstract semantic of the choose function should be a set function whose output is a set of all indexes whose corresponding expressions hold; in abstract semantics, we do not want to talk about how the choose function and real number representations are implemented.

One common mistake in first understanding this multivaluedness is that the nondeterminism is an illusion which is only the matter of implementation; some think that when we fix a real number , the nondeterminism does not occur. However, this is not the case! Let us fix and let . Let us consider two representations of the :

The two sequences of closed intervals are valid names for as they both converges to . However, we can see that choose(x > - e, e > x) == 1 is True for the case 1 and False for the case 2. Even if we fix a real number and the way of implementing the choose function, multivaluedness happens.

Now, let us take this into the view of representation. With denoting a set of natural numbers, is a Baire space. Let be a surjective partial function. If we say realizes and put . Similarly, for a function , if exists such that we call that tracks the function .

Now, let us think in the opposite direction. Consider we have a function . What does the function mean? We can notice that this is just a boring function that receives an infinite sequence of natural numbers and just keep printing endless sequence of natural numbers. In order to give a meaning of the boring function, we can try to give meanings to its domain and codomain. Suppose we let and be the representations of its domain and codomain.

Since does not need to be injective, for an element , there can be several different names ; see that a real number is such a case. If is a singleton for all , then we can define the meaning of ; let be a trivial choice function from singleton subsets of . Then, .

If the set is not a singleton, which is the case of the displayed simple iRRAM program, then, its meaning becomes the multivalued map which can be understood as a set valued function: It is a little unsatisfactory for me that its meaning is a function to … What we compute with the given is an element of not a set of elements.

See more:

[1] iRRAM is a C++ library which enables the computation of real numbers. See the link for the further information, Click

[2] For the further information and studying materials for real computation via computable analysis, see Weihrauch, Klaus. Computable analysis: an introduction. Springer Science & Business Media, 2012.

[3] The notions of realizability/functions in baire space tracking, can be studied in Bauer, Andrej. “Realizability as the connection between computable and constructive mathematics.” Proceedings of CCA. 2005.