Appendix
Characterization of terms and relations
Metamathematics, when it goes beyond the very elementary level of the present chapter, makes considerable use of the results of mathematics, as we remarked in the Introduction. The purpose of this Appendix is to give a simple example of this type of reasoning [^1]. We shall begin by establishing certain results which belong to the mathematical theory of free semigroups; we shall then use these results in a metamathematical " application " to obtain a characterization of the terms and relations in a theory.
1. Signs and words
\* Let S be a non-empty set, whose elements will be called signs (this terminology being appropriate to the metamathematical application we have in mind). Let be the free semigroup generated by S; the elements of are called words and are identified with finite sequences of elements of S. The law of composition in will be written multiplicatively, so that is the sequence obtained by juxtaposition of and . The empty word is the identity element of . We recall that the length of a word is the number of elements in the sequence ; thus , and the words of length 1 are the signs. Let denote the set of non-empty words in . ¶ Suppose, moreover, that we are given a mapping of S into the set of integers . For each non-empty word of L(S), we put
and . is called the weight of . Clearly . ¶ If , the word is said to be a segment of (a proper segment if also ). If (resp. ) is empty, is said to be an initial (resp. final) segment of . If , then is said to begin at the th place.
¶ If (where the words , , , , may be empty) the segments and of are said to be disjoint.
2. Significant words
A significant sequence is any sequence of words of with the following property : for each word of the sequence, one of the following two conditions is satisfied :
(1) is a sign of weight 0.
(2) There exist words , , ..., in the sequence, with indices less than , and a sign of weight such that
Words which appear in significant sequences are called significant words. Then we have :
Proposition 1 03P6
If , , ..., are significant words and if is a sign of weight , then the word is significant.
3. Characterization of significant words
A word is said to be balanced if it has the following two properties :
(1) (which implies that is not empty).
(2) For every proper initial segment of , .
Proposition 2 03P7
A word is significant if and only if it is balanced.
Let be a significant word belonging to a significant sequence
We shall show by induction on that each is balanced. Suppose that this has been established for the with index , and let us show that it is true for . If is a sign of weight 0 (which is the only possibility when ), is balanced because
If is not a sign of weight 0, then , where is a sign of weight , and the are of the form , where , and are therefore balanced words by the inductive hypothesis. We have
Let be a proper initial segment of , and let be the largest of the integers such that is a segment of , so that
where is a proper initial segment of . Then
Hence is balanced.
¶ To prove that, conversely, every balanced word is significant, we need the following two lemmas :
Lemma 1 03P8
Let A be a balanced word. Then for each integer k such that there exists exactly one balanced segment S of A which begins at the th place.
The uniqueness of is an immediate consequence of the following remark : if is a balanced word, then by definition no proper initial segment of is balanced. Let us prove the existence of . Write where . For each such that , let be the initial segment of of length . Since is a proper initial segment of , we have
On the other hand, we have . Let be the largest of the integers such that for ; then we have and . We show that is balanced: the condition relating to proper initial segments is satisfied by reason of the definition of ; on the other hand, we have
so that , and the proof of Lemma 1 is complete.
Let be the initial sign of . By Lemma 1, can be written as
where the are balanced : we need only define inductively as the balanced segment of which begins at the th place, where
Moreover, we have
from which it follows that .
¶ Now that the two lemmas have been proved, it is obvious by induction on the length of that every balanced word is significant, by reason of Lemma 2 and Proposition 1.
Corollary 1 03GU
Let be a significant word. For each integer such that there is exactly one significant segment of which begins at the th place.
Corollary 2 03GV
Every significant word may be written in exactly one way in the form , where the are significant and
4. Application to assemblies in a mathematical theory
Suppose that the set S is the set of signs of a mathematical theory . We put , , , for every letter ;
and finally, for every specific sign of , is the weight of , which is fixed when is given.
¶ Let be an assembly in . We denote by the word obtained by deleting the links in , and we shall say that is balanced if is balanced [in ]. A segment of is any assembly obtained by replacing, in a segment of , the links which, in , join pairs of signs in .
CRITERION 1. If is a term or a relation in , then is balanced.
Let , , , be a formative construction in , in which appears. Let us argue by induction and suppose that we have proved that the of indices are balanced; then we have to prove that is balanced. The proof goes just as in the first part of the proof of Proposition 2, except when is of the form with and . In this case, let be the assembly obtained by replacing , wherever it occurs in , by . The word is then identical with ; now is balanced, and therefore is balanced (because ). Consequently is balanced.
¶ We have thus obtained a necessary condition for an assembly in to be a term or a relation. But this condition is not sufficient, as we shall see.
¶ Let be a balanced assembly in . If begins with a letter or a , then must consist of this sign alone (Proposition 2, Corollary 2). For all other cases, we shall now define the assembly or assemblies antecedent to .
(1) If begins with a , or a , or a specific sign, then can be put in exactly one way in the form , where is a sign of weight and the are balanced (Proposition 2, Corollary 2). The segments , , , of which correspond to the segments , , , of are called the assemblies antecedent to . Moreover, we shall say that is perfectly balanced if is identical with
in other words if no link in joins to one of the , or joins two distinct .
(2) If begins with a , then is of the form , where is balanced (Proposition 2, Corollary 2). In this case an assembly antecedent to is any of the assemblies defined as follows : replace the signs in which are linked in to the initial by a letter distinct from the other letters which appear in , and replace the links which join two signs of in . (If, instead of , we substitute a letter which also does not appear in , we obtain an assembly which is just .) Moreover, we shall say that is perfectly balanced if is identical with , in other words if no link joins the initial to any sign of other than a .
¶ We can now state the following criterion :
C2. Let be a balanced assembly in .
¶ For to be a term it is necessary and sufficient that one of the following conditions be satisfied : (1) consists of a single letter; (2) begins with a , is perfectly balanced, and its antecedent assemblies are relations (by CF8, it is enough to verify that one antecedent assembly is a relation); (3) begins with a substantific sign, is perfectly balanced, and its antecedent assemblies are terms. ¶ For to be a relation it is necessary and sufficient that one of the following conditions be satisfied : (1) begins with a or a , is perfectly balanced, and its antecedent assemblies are relations; (2) begins with a relational sign, is perfectly balanced, and its antecedent assemblies are terms.
The criteria CF1 to CF4 (§ 1, no. 4) show that the conditions are sufficient. Let us show that they are necessary. We have already seen (§ 1, no. 3) that if is a relation, then begins with a , or a , or a relational sign. The reasoning is similar in each of the three cases. If, for example, begins with a , then is of the form , where and are relations, so that and are the assemblies antecedent to ; hence is perfectly balanced. If is a term, then there are two cases : it consists of a single letter, or it begins with either a substantific sign or a . In the second case, we argue as above. If begins with a , the definition of a formative construction shows that is of the form , where is a relation and a letter, so that we may take as assembly antecedent to , and is perfectly balanced.
When we wish to test whether a given assembly (not consisting of a single letter) is a relation (resp. a term) in , we first verify that is balanced and that it begins with a , a , or a relational sign (resp. with a or a substantific sign). Then we form the antecedent assembly or assemblies, and verify (if appropriate) that is perfectly balanced. Having done this, we are left with an analogous problem relating to shorter assemblies. Thus, step by step, we come down to assemblies each of which consists of a single sign, for which the solution is immediate.
Remark 03GW
Except in certain mathematical theories which are particularly weak in axioms (cf. Exercise 7) we have no general procedure of this type to enable us to test whether or not a given relation in a theory is a theorem in .
Exercises
See the exercises for Appendix 0.
[^1]: The results established in this Appendix will not be used anywhere else in this series.