Previous LECTURES Next

The Halting Problem

 

 

Theorem 2:

Let M1, M2, ... be a list of all TM using characters 1, #.

The Self-Halting Problem is the problem of finding an effective procedure to compute function s such that s(n) = 1 iff Mn doesn't halt if it begins scanning in n 1s

The Self-Halting Problem is unsolvable.

Proof:

Suppose it is solvable. Then by Church's Thesis there is a machine S that computes s.

Recall function t of Theorem 1: supposedly uncomputable.

We can compute it thus:

To compute t(n) start S and Mn in initial states

1.    If Mn does not halt, then S will eventually halt

        At that time we realise Mn doesn't halt and so fn(n) is undefined.

        So t(n) = 1

2.    If Mn halts then the tape will tell us whether or not fn(n) is defined.

        So we know whether t(n) = 1 or t(n) is undefined

        But this can't be.

So SHP is not solvable.