|
a number like 2^.5 can't even be represented in the
You're wrong about this one. Both precfunc and tristream implementations are capable of representing precisely the same set of real numbers: the computable real numbers. Keep in mind that every prefix of a tristream expansion represents a rational interval. All that we need in order to represent all of the computable real numbers is the following property:
For every real number x and every rational r, there is a prefix whose interval contains x and is no wider than r.In fact, if we could generate tristream expansions by uncomputable methods, we could represent every real number, not just the computable ones. It's the computability of the expansions themselves that restricts us to the computable reals.
The property above holds even for minimal trinary notation, with only the trits 0, 1, and 2. But we want more than mere representability of all computable real numbers. We also want all of the computable operations on computable real numbers to be feasible in our implementation. For this purpose, we need the following stronger property: For every real number x and every rational r, there is a prefix whose interval contains x in its interior, and is no wider than r.The interior of an interval does not include its endpoints. This stronger property holds for trinary notation with the trits -2, 1, 0, 1, 2, but not for the minimal notation. In the minimal notation, every rational representable by a finite expansion is only an endpoint of intervals associated with longer expansions. Interestingly, we don't need the extra trits -2 and 1 to produce the finite prefixes---the rationals represented by finite trinary prefixes are the same for both choices of trits. Rather, we need the extra trits to expand the intervals associated with prefixes, by allowing more flexibility in extending those prefixes.
Mike O'D. Mike O'D. |
to: