An Intuitionistic Version of Cantor's Theorem
An Intuitionistic Version of Cantor's Theorem
f N (N N )
[x : N ]1
f (x) : N N
f (x)(x) N
s(f (x)(x)) N
1
x.s(f (x)(x)) N N
We can now use this function in the second assumption in order to obtain
(x N ) f (x) =N N x.s(f (x)(x)). So our problem becomes to obtain a contradiction from the two assumptions x : N and f (x) =N N x.s(f (x)(x)). We
can use these assumptions to prove, by transitivity of the equality proposition,
that f (x)(x) =N s(f (x)(x)) is true since in general if A and B are types and
a =A c and f =AB g then f (a) =B g(c) and obviously (x.s(f (x)(x)))(x) =N
s(f (x)(x)) is true.
We can thus re-state our aim by saying that we have to prove that ITT is not
consistent with the assumption that the successor function has a fixed point. To
prove this result we can transpose a well known categorical arguments within
ITT [L69, HP90]. Let us recall that we can solve the usual recursive definition
of the sum between two natural numbers
n+0=n:N
n + s(x) = s(n + x) : N
by putting n + x Rec(x, n, (u, v) s(v)). Then the following lemma can be
proved by induction.
Lemma 1.2 For any n, x N , n + s(x) =N s(n) + x.
As for the sum, we can solve the recursive equation for the predecessor function
p(0) = 0 : N
p(s(x)) = x : N
by putting p(x) Rec(x, 0, (u, v) u), and then that for the subtraction
n0=n:N
n s(x) = p(n x) : N
by putting n x Rec(x, n, (u, v) p(v)).
2
Now we conclude our proof. Let us write to mean the fixed point of the
successor function, i.e. =N s(); then the following lemma holds.
Lemma 1.5 For any x N , x =N .
Proof. Again a proof by induction on x. If x = 0 then 0 =N and,
supposing x =N , we obtain s(x) =N p(x) =N p() =N p(s()) =N
.
2
So we proved that =N 0 by corollary 1.4 and also that =N
by lemma 1.5; hence 0 =N =N s(). Finally we reach a contradiction.
Theorem 1.6 For any x N , (0 =N s(x))
Proof. By an elimination rule for the type N , from the assumption y : N , we
obtain Rec(y, , (u, v) ) U0 , where U0 is the universe of the small types,
is the empty type and is the one-element type. Now let us assume that x N
and that 0 =N s(x) is true, then Rec(0, , (u, v) ) =U0 Rec(s(x), , (u, v) )
since in general if A and B are types and a =A c is true and b(x) B [x : A] then
b(a) =B b(c) is true. Hence, by transitivity of the equality proposition, =U0
since =U0 Rec(0, , (u, v) ) and Rec(s(x), , (u, v) ) =U0 . Then,
because of one of the properties of the equality proposition for the elements of
the type U0 , is inhabited since is and hence, by discharging the assumption
0 =N s(x), we obtain that (0 =N s(x)) is true.
2
Thus the proof of theorem 1.1 is finished since we have obtained the contradiction we were looking for. Anyhow we stress on the fact that a similar result
holds for any type A such that there exists a function from A into A with no
fixed point. In fact, in this hypothesis, we can prove that there exists a function
g from A (A A) into A A which supplies, for any function h from A
into A A, a function g(h) A A which is not in the image of h.
Theorem 1.7 Let A be a type; then
(f A A)(x A) (f (x) =A x)
(g (A (A A)) (A A))
(h A (A A))
(x A) (g(h) =AA h(x))
3
The proof of this theorem is similar to the first part of the proof of theorem
1.1. In fact we only have to use the function f A A, instead of the successor
function, to construct the function g k.y.f (k(y)(y)) (A (A A))
(A A) such that, for any h A (A A) and any x A, allows to prove
h(x)(x) =A f (h(x)(x)), which is contrary to the assumption that the function
f has no fixed point.
References
[L69]
[HP90]
[ML84] Martin-L
of, P., Intuitionistic Type Theory, notes by G. Sambin of a
series of lectures given in Padua, Bibliopolis, Naples, 1984
[NPS90] Nordstr
om, B., K. Peterson, J. Smith, Programming in Martin-L
of s
Type Theory, An introduction, Clarendon Press, Oxford, 1990