Professional Documents
Culture Documents
, we can
come up with a set D
(L
.
Important Method: Diagnolization (How to construct D
(L) i n , S
n
. (Note: D
(L) is innite.)
(Example) 1, c, 1,2, c 2, 1,3, . . .
S
1
, S
2
, S
3
, S
4
, S
5
, . . .
Then, D
(L) = 3, 5, . . . (since 1 S
1
, 2 S
2
, 3 , S
3
, 4 S
4
, 5 , S
5
, . . . )
Show that D
(L).
Then, by the denition of D
(L) i m , S
m
.
Since S
m
and D
(L) i m , D
(L).
This is a plain contradiction!
Lets look at this important diagonalization method from a slightly dierent point of view:
3
Characteristic function
For a given set A, the characteristic function (
A
is a function that outputs 1 if its argument is in
the set A and 0 if it is not. That is,
(
A
(x) = 1 if x A
0 if x , A.
We can set up the characteristic function (
Sn
for each set of natural numbers, S
n
, in the following
way:
(
Sn
(x) = 1 if x S
n
0 if x , S
n
.
(Note: In B & J, the characteristic functions s
n
is the same as (
Sn
in the above.)
Then, we can draw the following array for the given list L: (Figure 2-1 on p.12)
1 2 3 4 . . .
(
S
1
(
S
1
(1) (
S
1
(2) (
S
1
(3) (
S
1
(4) . . .
(
S
2
(
S
2
(1) (
S
2
(2) (
S
2
(3) (
S
2
(4) . . .
(
S
3
(
S
3
(1) (
S
3
(2) (
S
3
(3) (
S
3
(4) . . .
(
S
4
(
S
4
(1) (
S
4
(2) (
S
4
(3) (
S
4
(4) . . .
.
.
.
Lets go back to our example to see how the array looks like:
(Example) 1, c, 1,2, c 2, 1,3, . . .
S
1
, S
2
, S
3
, S
4
, S
5
, . . .
1 2 3 4 . . .
(
S
1
1 0 0 0 . . .
(
S
2
0 1 0 1 . . .
(
S
3
1 1 0 0 . . .
(
S
4
0 0 0 1 . . .
(
S
5
1 0 1 0 . . .
.
.
.
(Note: From this array, we can tell what the original list is. For example, by looking at the
rst row, we know that S
1
= 1, . . . , by the fth row, S
5
= 1, 3. etc.
Lets go back to our array, and draw a diagonal sequence like the following:
d = (
S
1
(1), (
S
2
(2), (
S
3
(3), (
S
4
(4), . . .
This diagonal sequence might be on the list. So, we need one more trick to make sure that we
create a sequence which does not appear on the list. We know that each element of sequence d is
either 1 or 0. So, we reverse each element of d by changing 1 to 0 and 0 to 1. So,
d
= 1 (
S
1
(1), 1 (
S
2
(2), 1 (
S
3
(3), 1 (
S
4
(4), . . .
4
Back to our example:
d = 1, 1, 0, 1, . . .
d
= 0, 0, 1, 0, . . .
We claim that d
= 1(
S
1
(1), 1(
S
2
(2), 1(
S
3
(3), 1(
S
4
(4), . . . , 1(
Sm
(m), . . . , we get the following
equations:
(
Sm
(1) = 1 (
S
1
(1),
(
Sm
(2) = 1 (
S
2
(2),
(
Sm
(3) = 1 (
S
3
(3),
(
Sm
(4) = 1 (
S
4
(4),
.
.
.
(
Sm
(m) = 1 (
Sm
(m),
.
.
.
That is,
1 2 3 4 . . . m . . .
(
S
1
1 0 0 0 . . .
(
S
2
0 1 0 1 . . .
(
S
3
1 1 0 0 . . .
(
S
4
0 0 0 1 . . .
(
S
5
1 0 1 0 . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
(
Sm
1 (
S1
(1) 1 (
S
2
(2) 1 (
S
3
(3) 1 (
S
4
(4) . . . 1 (
Sm
(m)
.
.
.
But, (
Sm
(m) = 1 (
Sm
(m) is a plain contradiction, which leads to 0=1! So, sequence d
cannot
appear on the list. 2
5