Martin Ziegler
Computable Real Numbers
Theorem:
Theorem: For For r r ∈ ∈ , ,
t t he he following following are are equivalent equivalent : :
a) a) r r has a has a computable computable binary binary expansion expansion
b) b) There There is is an an algorithm algorithm printing printing , on , on input input n n ∈ ∈ , , some some a a ∈ ∈ with with | | r r - - a a /2 /2
n+1n+1|≤ | ≤ 2 2
--nn. .
c) c) There There is is an an algorithm algorithm printing printing two two sequences
sequences ( ( q q
nn) ) ⊆ ⊆ and ( and ( ε ε
nn) ) with with | | r r - - q q
nn| | ≤ ≤ ε ε
nn→ → 0 0
H := { 〈 B,x 〉 : algorithm B terminates on input x } ⊆
There is an algorithm which, given n
∈, prints
bn∈{0,1} where r=
∑n bn2
-nb) ⇔ c) holds uniformly,
⇔ a) does not [Turing'37]
numerators+
denominators
Ernst
Ernst Specker Specker (1949): (c) (1949): (c) ⇔ ⇔ Halting Halting problem problem plus (d) plus (d) d) d) There There is is an an algorithm algorithm printing printing ( ( q q
nn) ) ⊆ ⊆ with with q q
nn→ → r r . .
interval arithmetic
⇔ r∈
[q
n±εn]
Call Call r r ∈ ∈ computable computable if if
Martin Ziegler
Exercises: Computable Reals
r r ∈ ∈
computablecomputable iff iff an an algorithm algorithm can can print print , ,
on on input input n n ∈ ∈ , , some some a a
yetyet∈ ∈
naivelynaivelywith with | | r r
computable-
computable- a a /2 /2
n+1n+1| | ≤ ≤ 2 2
-n-n ..a) a) EveryEvery rational has a rational has a computablecomputable binarybinary expansionexpansion b) Everyb) Every dyadicdyadic rational has tworational has two binarybinary expansionsexpansions c) Computablec) Computable binarybinary expansionexpansion ⇔ ⇔ computablecomputable realreal d) d) IfIf
a a , , b b
areare computablecomputable, , thenthen also alsoa+b a+b , , a a · · b b , , 1/ 1/ a a ( ( a a ≠ ≠ 0) 0)
e) Fix
e) Fix
p p ∈ ∈ [ [ X X ] ]
. . ThenThenp p
's's coefficientscoefficients areare computablecomputable⇔ ⇔ p p ( ( x x ) )
isis computablecomputable forfor all all computablecomputablex x
.. f) f) TheThe degreedegree of of everyeveryp p ∈ ∈ [ [ X X ] ]
isis computablecomputable..g) g) EveryEvery algebraicalgebraic numbernumber isis computablecomputable; and so ; and so isis
π π . .
h) h) IfIf
x x
isis computablecomputable, , thenthen so so areareexp( exp( x x ) ) , , sin( sin( x x ) ) , , log( log( x x ) )
j) For
j) For everyevery computablecomputable
x x
, ,sign( sign( x x ) )
isis computablecomputable.. k) k) Specker'sSpecker's sequencesequence( ( ∑ ∑
k>nk>n∈H∈H2 2
-n-n) )
kk isis computablecomputable,,itsits limitlimit isis uncomputableuncomputable
Martin Ziegler
Uniformity, Sequences and Equality Testing
In In numerics numerics , , don't don't test test for for ( ( in in - - )equality )equality ! !
Fact:
Fact: There exists a computable sequence ( There exists a computable sequence ( r r
mm) ) ⊆ ⊆ [0,1] [0,1]
such that {
such that { m m : : r r
mm≠ ≠ 0 } is the Halting problem 0 } is the Halting problem H H . . H := { 〈 B,x 〉 : algorithm B terminates on input x } ⊆
Reminder:
Reminder: For For r r ∈ ∈ , , t t he he following following are are equivalent equivalent : : a) a) ∃ ∃ algorithm algorithm deciding deciding r r 's 's bin. bin. expansion expansion
b) b) ∃ ∃ algorithm algorithm printing printing on on input input n n some some a a ∈ ∈ with with | | r r - - a a /2 /2
n+1n+1| | ≤ ≤ 2 2
--nn. .
c) c) ∃ ∃ algorithm algorithm printing printing ( ( q q
nn),( ),( ε ε
nn) ) ⊆ ⊆ with with | | r r - - q q
nn| | ≤ ≤ ε ε
nn→ → 0 0 Call (r
m) ⊆ computable iff an algorithm can print, on input 〈 n,m 〉 ∈ , some a ∈ with |r
m-a/2
n+1| ≤ 2
-n.
a)a)⇒⇒b)b)⇔c⇔c) ) computablecomputable transformation transformation on on algorithmsalgorithms b)b)⇒⇒aa) ') 'undecidableundecidable' '
casecase splitsplit on ron r∈∈