The Complexity of [1ex] Mathematical Problems

The Complexity of
Mathematical Problems
C. S. Calude (UoA) and E. Calude (Massey U)
In Honour of Eric Goles 60th Birhday
Valparaiso, November 2011
1 / 199
Do the following statements
2 / 199
Do the following statements
I
2 / 199
the four colour theorem,
Do the following statements
2 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
Do the following statements
2 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
Do the following statements
2 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture?
Do the following statements
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture?
share a common mathematical property?
2 / 199
Do the following statements
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture?
share a common mathematical property?
And, if there is such a property, how can we use it for a better
understanding of these statements?
2 / 199
Computability and Complexity
1
Universality theorem. There exists (and can be constructed) a
(Turing) machine U—called universal—such that for every machine
V there exists a constant c = cU,V such that for every program σ
there exists a σ 0 for which the following two conditions hold:
3 / 199
I
U(σ 0 ) = V (σ),
I
|σ 0 | ≤ |σ| + c.
Computability and Complexity
The halting problem for a machine V is the function ΛV defined
by
1, if V (σ) = ∞,
ΛV (σ) =
0, otherwise .
4 / 199
2
Computability and Complexity
The halting problem for a machine V is the function ΛV defined
by
1, if V (σ) = ∞,
ΛV (σ) =
0, otherwise .
Undecidability theorem. If U is universal, then ΛU is
incomputable, i.e. the halting problem for a universal machine is
undecidable.
4 / 199
2
Π1 –problems
A problem π of the form
∀σP(σ),
where P is a computable predicate is called a Π1 –problem.
5 / 199
Π1 –problems
A problem π of the form
∀σP(σ),
where P is a computable predicate is called a Π1 –problem.
I
5 / 199
Any Π1 –problem is finitely refutable.
Π1 –problems
A problem π of the form
∀σP(σ),
where P is a computable predicate is called a Π1 –problem.
I
Any Π1 –problem is finitely refutable.
I
For every Π1 –problem π = ∀σP(σ) we associate the program
σπ = inf{n : P(n) = false}
which satisfies:
π is true iff U(σπ ) = ∞.
5 / 199
Π1 –problems
A problem π of the form
∀σP(σ),
where P is a computable predicate is called a Π1 –problem.
I
Any Π1 –problem is finitely refutable.
I
For every Π1 –problem π = ∀σP(σ) we associate the program
σπ = inf{n : P(n) = false}
which satisfies:
π is true iff U(σπ ) = ∞.
I
5 / 199
Solving the halting problem for U solves all Π1 –problems.
Examples
The problems
I
6 / 199
the four colour theorem,
Examples
The problems
6 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
Examples
The problems
6 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
Examples
The problems
6 / 199
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture
Examples
The problems
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture
are all Π1 –problems.
6 / 199
Examples
The problems
I
the four colour theorem,
I
Fermat’s great theorem,
I
the Riemann hypothesis,
I
the Collatz’s conjecture
are all Π1 –problems.
Of course, not all problems are Π1 –problems. For example, the
twin prime conjecture.
6 / 199
Complexity
Complexity
CU (π) = min{|ΠP | : π = ∀nP(n)}.
7 / 199
Complexity
Complexity
CU (π) = min{|ΠP | : π = ∀nP(n)}.
Invariance theorem. If U, U 0 are universal, then there exists a
constant c = cU,U 0 such that for all π = ∀nP(n), P computable:
|CU (π) − CU 0 (π)| ≤ c.
7 / 199
Complexity
Complexity
CU (π) = min{|ΠP | : π = ∀nP(n)}.
Invariance theorem. If U, U 0 are universal, then there exists a
constant c = cU,U 0 such that for all π = ∀nP(n), P computable:
|CU (π) − CU 0 (π)| ≤ c.
Incomputability theorem. If U is universal, then CU is
incomputable.
7 / 199
Complexity Classes
Because of the incomputability theorem, we work with upper
bounds for CU . As the exact value of CU is not important, we
classify Π1 –problems into the following classes:
CU,n = {π : π is a Π1 –problem, CU (π) ≤ n kbit}.
8 / 199
Some Results
I
9 / 199
CU,1 : Legendre’s conjecture (there is a prime number between
n2 and (n + 1)2 , for every positive integer n), Fermat’s last
theorem (there are no positive integers x, y , z satisfying the
equation x n + y n = z n , for any integer value n > 2) and
Goldbach’s conjecture (every even integer greater than 2 can
be expressed as the sum of two primes)
Some Results
9 / 199
I
CU,1 : Legendre’s conjecture (there is a prime number between
n2 and (n + 1)2 , for every positive integer n), Fermat’s last
theorem (there are no positive integers x, y , z satisfying the
equation x n + y n = z n , for any integer value n > 2) and
Goldbach’s conjecture (every even integer greater than 2 can
be expressed as the sum of two primes)
I
CU,2 : Dyson’s conjecture (the reverse of a power of two is
never a power of five)
Some Results
9 / 199
I
CU,1 : Legendre’s conjecture (there is a prime number between
n2 and (n + 1)2 , for every positive integer n), Fermat’s last
theorem (there are no positive integers x, y , z satisfying the
equation x n + y n = z n , for any integer value n > 2) and
Goldbach’s conjecture (every even integer greater than 2 can
be expressed as the sum of two primes)
I
CU,2 : Dyson’s conjecture (the reverse of a power of two is
never a power of five)
I
CU,3 : the Riemann hypothesis (all non-trivial zeros of the
Riemann zeta function have real part 1/2)
Some Results
9 / 199
I
CU,1 : Legendre’s conjecture (there is a prime number between
n2 and (n + 1)2 , for every positive integer n), Fermat’s last
theorem (there are no positive integers x, y , z satisfying the
equation x n + y n = z n , for any integer value n > 2) and
Goldbach’s conjecture (every even integer greater than 2 can
be expressed as the sum of two primes)
I
CU,2 : Dyson’s conjecture (the reverse of a power of two is
never a power of five)
I
CU,3 : the Riemann hypothesis (all non-trivial zeros of the
Riemann zeta function have real part 1/2)
I
CU,4 the four colour theorem (the vertices of every planar
graph can be coloured with at most four colours so that no
two adjacent vertices receive the same colour)
More Results and Open Questions
I
10 / 199
CU,5 : ?
More Results and Open Questions
10 / 199
I
CU,5 : ?
I
CU,6 : ?
More Results and Open Questions
10 / 199
I
CU,5 : ?
I
CU,6 : ?
I
CU,7 : Euler’s integer partition theorem (the number of
partitions of an integer into odd integers is equal to the
number of partitions into distinct integers).
More Results and Open Questions
10 / 199
I
CU,5 : ?
I
CU,6 : ?
I
CU,7 : Euler’s integer partition theorem (the number of
partitions of an integer into odd integers is equal to the
number of partitions into distinct integers).
I
In which class is the Collatz conjecture? ( given any positive
integer a1 there exists a natural N such that aN = 1, where
an /2,
if an is even,
an+1 =
3an + 1, otherwise .
Inductive Complexity and Complexity Classes of First Order
By transforming each program ΠP for U into a program Πind,1
for
P
U ind (U working in “inductive mode”) we can define the inductive
complexity of first order by
CUind,1 (π) = min{|Πind,1
| : π = ∀nP(n)},
P
11 / 199
Inductive Complexity and Complexity Classes of First Order
By transforming each program ΠP for U into a program Πind,1
for
P
U ind (U working in “inductive mode”) we can define the inductive
complexity of first order by
CUind,1 (π) = min{|Πind,1
| : π = ∀nP(n)},
P
the inductive complexity classes of order one by
ind,1
Cind,1
(π) ≤ n kbit},
U,n = {π : π is a Π1 –statement, CU
11 / 199
Inductive Complexity and Complexity Classes of First Order
By transforming each program ΠP for U into a program Πind,1
for
P
U ind (U working in “inductive mode”) we can define the inductive
complexity of first order by
CUind,1 (π) = min{|Πind,1
| : π = ∀nP(n)},
P
the inductive complexity classes of order one by
ind,1
Cind,1
(π) ≤ n kbit},
U,n = {π : π is a Π1 –statement, CU
and prove that
CU,n = Cind,1
U,n .
11 / 199
Inductive Complexity and Complexity Classes of Higher Orders
By allowing inductive programs of order 1 as routines we get
inductive programs of order 2, so we can define the inductive
complexity of second order (for more complex problems)
CUind,2 (ρ) = min{|MRind,2 | : ρ = ∀n∃iR(n, i)},
12 / 199
Inductive Complexity and Complexity Classes of Higher Orders
By allowing inductive programs of order 1 as routines we get
inductive programs of order 2, so we can define the inductive
complexity of second order (for more complex problems)
CUind,2 (ρ) = min{|MRind,2 | : ρ = ∀n∃iR(n, i)},
and the inductive complexity class of second order:
ind,2
Cind,2
(ρ) ≤ n kbit}.
U,n = {ρ : ρ = ∀n∃iR(n, i), CU
12 / 199
Inductive Complexity and Complexity Classes of Higher Orders
By allowing inductive programs of order 1 as routines we get
inductive programs of order 2, so we can define the inductive
complexity of second order (for more complex problems)
CUind,2 (ρ) = min{|MRind,2 | : ρ = ∀n∃iR(n, i)},
and the inductive complexity class of second order:
ind,2
Cind,2
(ρ) ≤ n kbit}.
U,n = {ρ : ρ = ∀n∃iR(n, i), CU
The Collatz conjecture is in the class Cind,2
U,3 .
12 / 199
Two open problems
What is the complexity of
13 / 199
Two open problems
What is the complexity of
I
13 / 199
P vs NP problem?
Two open problems
What is the complexity of
13 / 199
I
P vs NP problem?
I
Poincaré’s conjecture?
Thank you
14 / 199
Thank you
VIVE ERIC!
14 / 199