C OMPOSITIO M ATHEMATICA
P ER M ARTIN -L ÖF
Infinite terms and a system of natural deduction
Compositio Mathematica, tome 24, n
o1 (1972), p. 93-103
<http://www.numdam.org/item?id=CM_1972__24_1_93_0>
© Foundation Compositio Mathematica, 1972, tous droits réservés.
L’accès aux archives de la revue « Compositio Mathematica » (http:
//http://www.compositio.nl/) implique l’accord avec les conditions géné- rales d’utilisation (http://www.numdam.org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infrac- tion pénale. Toute copie ou impression de ce fichier doit contenir la présente mention de copyright.
Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques
http://www.numdam.org/
93
INFINITE TERMS AND A SYSTEM OF NATURAL DEDUCTION by
Per Martin-Löf
Wolters-Noordhoff Publishing Printed in the Netherlands
1. Introduction
Tait 1965 shows how the ordinals associated with the terms of Gôdel’s
theory
ofprimitive
recursive functionals of finitetype
can be found ina
perspicuous
wayby expanding
them as infinite terms, the reason for thisbeing that,
once the formation of infinite terms isallowed, primitive
recursion may be reduced to
explicit
definition. In this paper we proposea
simplified
formulation of the infinite terms. Besidesbeing simpler,
thisformulation has the
advantage
ofbringing
out morefully
the relation toinfinitary proof theory
which isimplicit
in Tait’s paper. Infact,
it turnsout that the main
theorem,
which says that an infinite term canalways
be reduced to normal
form,
bears the same relation to the normal form theorem for natural deductions foundby
Prawitz 1965 as does Tait’s 1968 cut elimination theorem for the classicalinfinitary propositional logic
to Gentzen’sHauptsatz.
2. Infinité terms
We start with at least one atomic type. An atomic type is a type. If (1 and i are types, then
is a type,
namely,
the type of a function whose arguments are of type and whose values are oftype
r. If 03C40, 03C41, ···,03C4n, ··· is
a countablesequence of types, then
is a type,
namely,
the type of a function whose arguments are the natural numbers and whose value for the argument n is of type 1:n. We use03C41 ~ ··· ~ 03C4n-1 ~ 03C4n as an abbreviation
of 03C41
~(···
~(03C4n-1 ~ 03C4n)···).
For each
type
we introduce as many variablesof that
type
as weplease.
A variable of type r is a term of type r. If x is a variable of
type
Q andt(x)
is a term of type r, thenis a term of type 03C3 ~ 03C4.
If tn
is a term of type 03C4n for n =0,1,...,
thenis a term of type
ll7:n.
If s and t are termsof type J
and J - r,respectively,
then
is a term of type i. If t is a term of type
Hr,,
and n is a naturalnumber,
then
is a term of type 03C4n. We use t1 t2 ··· tn as an abbreviation of
If x
and y
are variablesof type
To and03A0(03C4n ~ 03C4n+1), respectively,
thenis an
example
of a term of type ro -03A0(03C4n ~ 03C4n+1) ~ 03A003C4n,
whichmight
be called the recursion
operator
of thattype.
The immediate subterms of a term are the terms from which it was
obtained
by
means of one of the four inductive clauses that generate theterms. The subterms of a term are the subterms of its immediate
subterms,
which are called proper
subterms,
and the term itself.An occurrence of a variable x in a term is bound if it occurs in a subterm of the form
Àxt(x).
Otherwise itis free.
We do notdistinguish
betweenterms which
only
differ in thenaming
of their bound variables. A term is closed if it contains no free variables.We can now state the two contraction rules. The first one is the rule of 03BBcontraction
Here
t(s)
denotes the result ofsubstituting s
for all free occurrences of x int(x).
Beforedoing this, however,
one has to see to it that no freeoccurrence of a variable in s becomes bound in
t(s).
This is achievedby
renaming
thetroublemaking
bound variables int(x).
The second con-traction rule is the rule of
projection
The relation s contr t is read s contracts into t.
A term is in
normal form
if it has no contractible subterms.We shall say that s reduces to
t if, loosely speaking,
t can be obtainedfrom s
by repeated
contractions of subterms. Moreprecisely,
the rela-tion s reduces to t, abbreviated s
red t,
is definedinductively
as follows.If x is a
variable,
then x red x. If s contr t, then s red t. Ifs(x)
redt(x),
then
Âxs(x)
redÀxt(x).
If Sn red tn for n =0, 1, ...,
then(so, Sl, ... )
red(t0, t1, ···).
If r red s, then rt red st,and,
if sred t,
then rs red rt. Ifs
red t,
then sn red tn.Finally,
if r red s and sred t,
then r red t.We could
equally
well formulate our system of termsusing
combinators instead of variables and 03BBabstraction. For everypair
of types J and rwe would then have to introduce Schônfinkel’s combinator
and,
for everytriple
of types p, Jand i,
his combinatorMoreover,
for every type03A003C4n
and every n, we need a combinatorand,
for everypair
of types J andll7:n,
a combinatorCombinators and variables are combinator terms. If s and t are combinator terms of type 6 and u -+ r,
respectively,
then ts is a combina-tor term of type r.
If tn
is a combinator term of type in for n =0, 1, ...,
then
(t0, t1, ···, tn, ···)
is a combinator termof type ntn.
There are four rules of
contraction,
one for each of the basic combina- tors,The
isomorphism
between combinator terms and 03BBterms is established in the usual way,only
we have a few more cases to consider. Whenpassing
from combinator terms to
03BBterms,
wereplace Pn
andQ by Àx(xn)
and03BBx03BBy(x0y, x1y, ···), respectively. Conversely,
whendefining
Àabstrac-tion
by
means of thecombinators,
we letÀx(to(x), t1(x), ···)
b; thecombinator term
Q(03BBxt0(x), 03BBxt1(x), ···), assuming
that03BBxtn(x)
hasbeen defined
already
for n =0, 1, ···.
Our main purpose is to show that every term reduces to normal form.
But, before
doing this,
we want to establish the relation between the system of terms and a certaininfinitary propositional logic.
3. Relation to
infinitary proof theory
We shall now reformulate the system of Âterms as a system of natural deduction.
The, f ’ormulae
are built up from at least oneatomic formula by
means ofthe
following
two inductive clauses. If F and G areformulae,
thenis a formula.
If F0, F1, ···, Fn, ··· is a
countable sequenceof formulae,
then
is a formula. We use
F1 ~ ···
~Fn-1 ~ Fn
as an abbreviation ofF1 ~ (··· ~ (Fn-1 ~ Fn) ···).
We start a deduction
by making
someassumptions
from which we drawconclusions
by repeatedly applying
thefollowing
deduction rules.~introduction
- elimination modus ponens
A introduction
A elimination
Here the formula F in the - introduction rule has been enclosed within square brackets in order to indicate that some occurrences of the formula F as
assumptions
of the deduction of G have beendischarged.
This meansthat the
assumptions
of the deduction of F - G are theassumptions
ofthe deduction of G minus the occurrences of F which are
discharged
atthe inference from G to F - G. When an
assumption
isdischarged,
itmust be indicated in some
unambiguous
way at what inference thishappens.
Forexample,
Gentzen 1934 marks theassumptions
that aredischarged by
a number and writes the same number at the inferenceby
which
they
aredischarged.
A formula is
provable
if there is a deduction of it all of whose assump- tions have beendischarged.
If a
logical sign
is introducedonly
to beimmediately eliminated,
we shall say that a cut occurs and call the formula whose outermostlogical
sign
is at the same time introduced and eliminated acut formula.
Suppose
that a deduction contains a cut formula of the form F - G.We can then
simplify,
the deduction in thefollowing
way, theoriginal
deduction
being pictured
to the left and thesimplified
one to theright.
~reduction
Similarly,
if the cut formula is of the form039BFn,
we have thefollowing
method of
simplification.
A reduction
We are now
prepared
to establish theisomorphism
between the system of terms and this system of natural deduction. Thefollowing dictionary
shows the relation.
atomic type atomic formula
type formula
variable
assumption
bound variable
discharged assumption
rule of term formation deduction rule
term deduction
03BBcontraction ~reduction
projection
A reductionnormal term cut free deduction
Curry
andFeys
1958 discovered theanalogy
between their so calledtheory
offunctionality
and thepositive implicational calculus,
and Ho-ward 1969 extended it to
Heyting
arithmetic. I am indebted to William Howard forpointing
out thisanalogy
to me.The combinator formulation of the terms
corresponds
tohaving
aformal system of Hilbert type instead of a system of natural deduction.
There are four axioms,
and
just
two rules ofinference, namely,
modus ponens and A introduc- tion. The theorem which says that 03BBabstraction is definableby
means of the combinatorscorresponds
to the deduction theorem for this system of Hilbert type.Because of the
isomorphism
we haveestablished,
it ismerely
aquestion
of
terminology
and notation whether we formulate our results for termsor for deductions.
4. Ordinals associated with terms
The
degree d(i)
of atype
r isinductively
defined as follows.d(i)
= 0if r is atomic.
d(03C3 ~ 03C4)
= max(d(03C3)+ 1, d(03C4)). d(03A003C4n)
= maxd(03C4n).
Here max is used to denote the least upper bound of a set of ordinals so
that the
degree
of atype
is an ordinal of the first or second number class.It is convenient to carry over some of the
terminology
introduced for deductions to terms. If a term has a convertiblesubterm,
thatis,
a subterm of the form03BBxt(x)s
or(to, t1, ···)n,
then the typeof Âxt(x)
and(t0, t1, ···), respectively,
is said to be a cut type. The cutdegree
of a termis the maximum of the
degrees
of all its cut types.A cut type of
t(s)
is either a cuttype of s,
thetype
of s itself or a cuttype of
t(x). Consequently,
the cutdegree
oft(s)
is at mostequal
to themaximum of the cut
degree of s,
thedegree
of thetype
of s and the cutdegree
oft(x).
The
length let)
of a term t is definedby
thefollowing
inductive clauses.l(x)
= 0 if x is a variable.l(03BBxt(x))
=1(t(x)) +
1.1(ts)
= max(I(s)
+ 1,l(t)). l((t0, t1, ···))
= maxl(tn). l(tn)
=1(t).
Thelength
of a term isalso an ordinal of the first or second number class. For
example,
thelength
of the recursionoperator 03BBx03BBy(x, y0x, y1 (y0x), ···)
is 03C9+2.By
astraightforward
induction ont(x)
it is seen thatThis property will be needed in the
proof
of the normal form theorem.We shall not
only
prove that every term reduces to normal form but also estimate thelength
of the normal termby
means of thelength
andcut
degree
of thegiven
term. To this end we need thehierarchy
of veblen1908 based on the normal function 203B1 over the domain oc Q.
Thus,
we put~0(03B1)
= 203B1 and let Xp enumerate the common fixedpoints
of all ~03B3 with 03B303B2
when 003B2
03A9.Let ~m03B2
denote the mth iterate of the function ~03B2. The functionby
means of which we shall estimate the
length
of the normal form of a term iswhere
is the Cantor normal form
of 03B2
> 0 and~0(03B1)
= 03B1. The functions ~03B2 form a solution to the functionalequation
under the initial conditions
~0(03B1)
= 03B1 and~1(03B1)
= 203B1. To seethis,
let03B2
=03C903B21m1 + ··· + 03C903B2kmk
and 03B3 =03C903B31n1 + ··· + 03C903B31n1
be the Cantor normal forms offi
and y. Thenwhere j
is thebiggest
index i such that03B2i ~
03B31. On the otherhand,
sincethe Veblen functions have the fixed
point
property,we get
as desired.
There are three
properties
of the functions ~03B2 that we need in theproof
of the normal form theorem.
First,
~03B2 isstrictly increasing
for everyfi.
This is obvious since X, is
strictly increasing
for every03B2. Second,
as wehave j* ust proved, ~03B2(~03B3(03B1)) ~ ~03B2+03B3(03B1). Third, ~03B2(03B1) ·
2 ~~03B2(03B1+1)
forall p
> 0. It is to attain thisfor fi
= 1 that we have chosen~1(03B1) =
~0(03B1)
= 203B1. We thenautomatically
getfor
all 03B2
> 0.5. Normal form theorem
As a
preliminary
step we prove thefollowing simple
lemma.All cut types
of
theform 03A003C4n
can beeliminated from
a term withoutincreasing its
length
and cutdegree.
When a cut type is eliminated
by
conversion of asubterm,
thedegrees
of the new cut types that may arise do not exceed the
degree
of the cuttype
we areeliminating. Thus,
when a term isreduced,
its cutdegree
does not increase.
It remains to prove that we can eliminate all cut types of the form
03A003C4n
from agiven
term r withoutincreasing
itslength.
This we doby
induction on r, that
is, assuming
it has beenproved already
for all propersubterms
of r,
we prove it for r itself. Basis. r = x. Then r is normalalready.
Induction step. Case 1. r =AXt(X). By
inductionhypothesis, t(x)
redv(x)
withl(v(x)) ~ 1(t(x»
and no cuttypes
of the form03A003C4n.
But then r red
Âxv(x)
which has the desiredproperties.
Case 2. r =(t0, t1, ···). By
inductionhypothesis, tn red vn
withl(vn) ~ 03BB(tn)
andno undesired cut types. But then r red
(vo, va , ...)
which has the desiredproperties.
Case 3. r = ts.By
inductionhypothesis, s
red u and t red v wherel(u) ~ l(s)
andl(v) ~ l(t)
and u and v have no undesired cuttypes.
But then r red vu which has the desiredproperties.
Note that vumay have become convertible even if ts were not,
but, according
to theremark
above,
thedegree
of the type of v is then no greater than the cutdegree
of r = ts. Case 4. r = tn.By
inductionhypothesis, t
red v withl(v) ~ l(t)
and no undesired cut types. If v =(v0, v1, ···),
then rred vn
which has the desired
properties.
If v is not of the form(vo, vi , ...),
then r red vn which
again
has the desiredproperties.
A term
of length
a and cutdegree 03B2+
03B3 reduces to a termof length
~
~03B3(03B1)
and cutdegree ~ 03B2.
The
proof
isby
induction on 03B3. Since~0(03B1)
= 03B1, the theorem holdstrivially
for y = 0. So suppose that y > 0 and that the theorem has beenproved
for ail (5 y. We prove it for yby
induction on the term r whoselength
is a.By
the lemma we can assume that r has no cut types of the form03A003C4n.
Basis. r = x. Then r is normalalready.
Induction step. As in theproof
of the lemma wedistinguish
four cases.Case 1. r =
Axt(X). By
inductionhypothesis, t(x)
redv(x)
which haslength ~ ~03B3(l(t(x)))
and cutdegree ~ 03B2.
But then r redÂxv(x)
whichhas
length ~ ~03B3(l(t(x)))+1 ~ ~03B3(l(t(x))+ 1)
=~03B3(03B1)
and cutdegree
~ 03B2.
Case 2. r =
(t0, t1, ···). By
inductionhypothesis, tn red vn where vn
has
length ~ qJy(l(tn)
and cutdegree ~ fi.
But then r red(v0, v1, ···)
which has
length
max~03B3(l(tn)) ~ ~03B3(max l(tn)) = ~03B3(03B1)
and cutdegree ~ 03B2.
Case 3. r = ts.
By
inductionhypothesis,
s red u and t red v wherel(u) ~ ~03B3(l(s))
andl(v) ~ ~03B3(l(t))
and the cutdegrees
of u and v are ~03B2.
If v is not of the form
03BBxw(x)
we aredone,
because then r red vu which haslength
max(qJy(/(s)+ 1, ~03B3(l(t))) ~ ~03B3(max (l(s)+ 1, 1(t))) = 9, (a)
and cut
degree ~ 03B2.
In theopposite
case, r must have been of the form03BBxt(x)s1 ··· sn where sn
= s andeach si
is either a term or a naturalnumber. Let the maximum
of fi
and thedegrees
of the typesof the si
thatare terms be
03B2+03B4.
Then 03B4 03B3 and03B3-03B4 ~
03B3.By
inductionhypothesis,
t(x) red v(x)
which haslength ~ ~03B3-03B4(l(t(x)))
and cutdegree ~ 03B2+03B4.
Also,
if si is a term, thensi red ui
which haslength ~03B3-03B4(l(si))
andcut
degree ~ 03B2+03B4. If si
is a naturalnumber,
put ui = si . Then r red03BBxv(x)u1 ···
un and at most n conversions reduce the latter term to aterm w
of length ~ max l(ui)+l(v(x)) ~ ~03B3-03B4(max l(si))+~03B3-03B4(l(t(x)))
~
~03B3-03B4(max (l(t(x)),
max1(si») - 2 ~ ~03B3-03B4(max (l(t(x)),
max1(si»+ 1)
-
~03B3-03B4(03B1)
and cutdegree ~ 03B2+03B4. Finally,
w reduces to a termof length
~
~03B4(~03B3-03B4(03B1))
=~03B3(03B1)
and cutdegree ~ 03B2.
Case 4. r = tn.
By
inductionhypothesis, t
red v which haslength
~
~03B3(l(t))
and cutdegree 03B2. If
v =(vo, v1,···)
thenr red vn
whichhas
length ~ l(v) ~ ~03B3(l(t)) = ~03B3(03B1)
and cutdegree fi.
On the otherhand,
if v is not of the form(vo, v1, ···),
then r red vn which haslength 1(v) ::g ~03B3(l(t)) = ~03B3(03B1)
and cutdegree ~ 03B2.
Theproof
is finished.We can now deduce the
normal form
theorem.A term
of length
a and cutdegree fi
reduces to a normal termof length
~
~03B2(03B1).
By
theprevious theorem,
a term oflength
a and cutdegree p
reducesto a term of
length ~ ~03B2(03B1)
and cutdegree 0, and, furthermore,
thelemma allows us to assume that the latter term has no cut
types
of theform
03A003C4n.
But then it must benormal,
for if it had a cut type of the formJ - r its cut
degree
wouldbe ~ d(03C3 ~ 03C4)
= max(d(03C3)
+1, d(03C4))
> 0.6.
Properties
of cut free deductionsIn this section we carry over some of the
terminology
and results of Prawitz 1965 to the infinite natural deductions we areconsidering.
In an
application
of modus ponensF is called the minor
premise
and F ~ G themajor premise
of the conclu- sion G.Every premise
of anapplication
of any of the other three deduc-tion rules is a
major premise
of its conclusion. A sequenceF1, ···, Fn
of formulae in a deduction form a branch if
F,
is a topformula, Fi
is amajor premise
ofFi+ 1
for every i n andF.
is either a minorpremise
of modus ponens or the end formula. In the latter case the branch is said to be a main branch.
A branch of a cut free deduction falls into two
parts F1, ···, Fm
andFm, ···, Fn
the first of which consistsentirely
of elimination inferences and the second of which consistsentirely
of introductioninferences,
thedividing
formulaFm being
called the minimumformula
of the branch.In case m = 1 or m = n one of the parts is absent. This property of the branches of a cut free deduction makes it very
perspicuous.
As asimple
application
we can prove theconsistency
theorem.No atomic
formula
isprovable.
If an atomic formula were
provable,
there would be a cut free deduc- tion of itaccording
to the normal form theorem. Since the end formula isatomic,
a main branch of the cut free deduction must consistentirely
of elimination inferences. But then the
assumption
in thebeginning
of amain branch cannot have been
discharged, contradicting
thesupposition
that all
assumptions
weredischarged.
The branches of a deduction can be ordered in a natural way as follows.
A main branch is
assigned
the order 0. A branch which ends with a minorpremise
of anapplication
of modus ponens isassigned
the order n + 1provided
the branch to which thecorresponding major premise belongs
was
assigned
the order n. Notethat, although
a deduction may beinfinite,
every branch of it has finite order. It is convenient to use the notion of order of a branch when
proving
thesubformula principle.
Every formula
in acut free
deduction is asubformula of
either the endformula
or an assumption that has not beendischarged.
We prove that the assertion holds for all formulae of a certain branch
F1, ···, Fn assuming
that it has beenproved already
for all branches of lower order. The assertion holds forFn
becauseFn
is either the end formu-la of the deduction or a minor
premise
of anapplication
of modus ponens.In the latter case
Fn
is a subformula of thecorresponding major premise
which occurs on a branch of one lower
order,
so that the inductionhypothesis applies
to it. FromFn
the assertionimmediately carries
overto
Fm, ···, Fn-1
whereFm
is the minimum formula of the branch.F1, ···, Fm
are all subformulae ofF1,
so ifF1
is notdischarged
we aredone. In the
opposite
caseF,
must bedischarged by
an~introduction,
the conclusion of which is of the form
F1 ~
G and eitherequals
one ofFm+1, ···, Fn
or else occurs on a branch of lower order. In either case we reach the desired conclusion.As an
application
of the subformulaprinciple
we prove that the calculuswe are
considering
is a conservative extension of thepositive implicational
calculus.
A cut ,
free
deductionof
apurely implicational formula from purely implicational hypotheses
ispurely implicational.
This
corollary
wassuggested by
William Howard. It is an immediate consequence of the subformulaprinciple.
REFERENCES H. B. CURRY AND R. FEYS
Combinatory logic, vol. I (North-Holland, Amsterdam) 1958.
G. GENTZEN
Untersuchungen über das logische Schliessen, Math. Z. 39 (1934) 176-210, 405-431.
W. A. HOWARD
The formulae-as-types notion of construction, privately circulated notes, 1969.
D. PRAWITZ
Natural deduction (Almqvist & Wiksell, Stockholm) 1965.
W. W. TAIT
Infinitely long terms of transfinite type, Formal Systems and Recursive Functions, edited by J. N. Crossley and M. A. E. Dummet (North-Holland, Amsterdam), (1965) 176-185.
Normal derivability in classical logic, Lecture Notes in Mathematics (Springer- Verlag, Berlin), 72 (1968) 204-236.
O. VEBLEN
Continuous increasing functions of finite and transfinite ordinals, Trans. Amer.
Math. Soc. 9 (1908) 280-292).
(Oblatum 18-111-71) Barnhusgatan 4
111 23 Stockholm Sweden