Implementation of mathematics in set theory

This is an old revision of this page, as edited by Randall Holmes (talk | contribs) at 20:13, 21 December 2005 (Ordinal numbers). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The aim of this article is to examine the implementation of mathematical concepts in set theory. The implementation of a number of basic mathematical concepts is carried out in parallel in ZFC and in NFU, the version of Quine's New Foundations shown to be consistent by R. B. Jensen in 1969 (here understood to include at least axioms of Infinity and Choice). For details of these two systems, consult their main articles.

It is not the primary aim of this article to say anything about the relative merits of these theories as foundations for mathematics. The reason for the use of two different set theories is to illustrate that multiple approaches to the implementation of mathematics are feasible. Precisely because of this approach, this article is not a source of "official" definitions for any mathematical concept.

Empty set, singleton, unordered pairs and tuples

These constructions appear first because they are the simplest constructions in set theory, not because they are the first constructions that come to mind in mathematics (though the notion of finite set is certainly fundamental!)

 

The empty set is the unique set with no members. In NFU, there are also urelements with no members.

 

For each object x, there is a set   with x as its only element.

 

For objects x and y, there is a set   containing x and y as its only elements.

 

The union of two sets is defined in the usual way.

 

This is a recursive definition of unordered n-tuples for any n (finite sets given as lists of their elements).

In NFU, all the set definitions given work by stratified comprehension; in ZFC, the existence of the unordered pair is given by the axiom of Pairing, the existence of the empty set follows by Separation from the existence of any set, and the boolean union of two sets exists by the axioms of Pairing and Union ( ).

Ordered pair

The first substantial mathematical construction we consider is the ordered pair. The reason that this comes first is technical: we will need it to implement notions of relation and function which are needed for implementations of other concepts which may seem to be prior.

The first definition of the ordered pair was the definition   proposed by Norbert Wiener in 1914 in the context of the type theory of Principia Mathematica. Wiener observed that this allowed the elimination of types of n-ary relations for   from the system of that work.

It is more usual now to use the definition  , due to Kuratowski.

Either of these definitions works in either ZFC or NFU. In NFU, the Kuratowski pair has a technical disadvantage: it is two types higher than its projections. It is common to postulate the existence of a type-level ordered pair (a pair   which is the same type as its projections) in NFU. For the moment, we will use the Kuratowski pair in both systems, until we can give a formal justification for the introduction of the type-level pair.

The internal details of these definitions have nothing to do with their actual mathematical function. For any notion   of ordered pair, the things that matter are that it satisfy the defining condition

  •  

and that it be reasonably easy to collect ordered pairs into sets.

Relations

A relation is implemented as a set of ordered pairs, in either ZFC or NFU. In ZFC, some relations (such as the general equality relation or subset relation on sets) are too large to be sets, and so cannot be implemented as sets (but may harmlessly be reified as proper classes). In NFU, some relations (such as the membership relation) are not sets because their definitions are not stratified: in   x and y would need to have the same type (because they appear as projections of the same pair, but also with successive types (because x is considered as an element of y).

Where possible, a relation R (understood as a binary predicate) is implemented as   (which may be written as  ). Where R is a set of ordered pairs, we read   as  . In ZFC, any relation which has ___domain a subset of a set A and range a subset of a set B will be a set, since the cartesian product   is a set (being a subclass of  ) and Separation provides for the existence of  . In NFU, some relations with global scope (such as equality and subset) are implemented as sets. In NFU, we need to bear in mind that x and y are three types lower than R in   (this will drop to one type when a type-level ordered pair is used).

Notice that here we do not support the distinction between range and codomain of a relation: this could be done by representing a relation R with codomain B as (R,B), but we do not find this necessary in our development. Note also that for the moment we do not consider relations of arity greater than 2: all our relations are binary.

Operations on relations

All relations are here understood to be sets.

The converse of a relation R is the relation  .

The ___domain of a relation R is the set  .

The range of a relation R is the ___domain of the converse of R.

The field of a relation R is the union of the ___domain and range of R.

The preimage of an element x of the field of R is the set   (used in the definition of "well-founded" below).

The relative product   is the relation  .

In ZFC, all of these are sets by application of Union, Separation, and Power Set. In NFU, it is easy to see that these are stratified definitions.

Special kinds of relation

Some properties of relations:

  • A relation R is reflexive if   holds for all x in the ___domain of R.
  • A relation R is symmetric if   for all x and y.
  • A relation R is transitive if   for all x,y,z.
  • A relation R is antisymmetric if   for all x,y.
  • A relation R is well-founded if for every set S which meets the field of R, there is x in S whose preimage under R does not meet S.
  • A relation R is extensional if for every x,y in the field of R, x=y iff x and y have the same preimage under R.

Some kinds of relations:

  • A relation R is an equivalence relation iff it is reflexive, symmetric, and transitive.
  • A relation R is a partial order iff it is reflexive, antisymmetric, and transitive.
  • A relation R is a linear order iff it is a partial order and for every x,y in the field of R, either   or  .
  • A relation R is a well-ordering iff it is a linear order and it is well-founded.
  • A relation R is a set picture iff it is well-founded and extensional.

Functions

A functional relation (where relation means binary predicate) is a binary predicate F such that  . Such a relation (predicate) is implemented as a relation (set) exactly as in the previous section. So the predicate F is implemented by the set  . We say that a set of ordered pairs F is a function just in case  .

We define F(x) as the unique object y such that   (if there is one) or as the unique object y such that  . The presence in both theories of functional predicates which are not sets makes it useful to allow the notation F(x) both for sets F and for important functional predicates. As long as one does not quantify over functions in the latter sense, all such uses are in principle eliminable. In NFU, notice that in  , x has the same type as the expression  , and F is three types higher than   (one type higher if a type-level pair is used). For any set A, we define   as  , more conveniently written as  . If A is a set and F is any functional relation,   is a set in ZFC by Replacement. In NFU, notice that in  , A has the same type as the expression  , and F is two types higher than   (the same type if a type-level pair is used).

The function I defined by I(x) = x does not exist as a set in ZFC because it is "too large" to be a set. It is a set in NFU. The function   is not a function in either theory (in ZFC because it is too large; in NFU because its definition is unstratified and further it can be proved that there is no such function: see the resolution of Cantor's paradox in the New Foundations article).

Operations on functions

The composition   of functions f and g is defined as the relative product  , if this is a function: we have   a function with   if the range of f is a subset of the ___domain of g. The inverse   is the converse of f (if this is a function). The identity function   is the set   for any set A: this is a set in both theories for different reasons.

Special kinds of function

A function is an injection and is said to be one-to-one if its converse is also a function.

If A and B are sets,

  • an injection from A to B is an injection whose ___domain is A and whose range is a subset of B.
  • a surjection from A to B is a function whose ___domain is A and whose range is B.
  • a bijection from A to B is an injection whose ___domain is A and whose range is B.

Notice that our terminology here adjusts for the fact that functions as we have defined them do not determine their codomains.

Size of sets

In both ZFC and NFU, we say that two sets A and B are the same size (or are equinumerous) if and only if there is a bijection f from A to B. We can write this   as long as we note that for the moment this expresses a relation between A and B rather than a relation between objects   and   which have not yet been defined. We also provide notation   for this relation to be used in contexts such as the actual definition of the cardinals where even the appearance of presupposing abstract cardinals should be avoided.

Similarly, we can define   as holding iff there is an injection from A to B.

It is straightforward to show that the relation of equinumerousness is an equivalence relation: equinumerousness of A with A is witnessed by  ; if f witnesses   then   witnesses  ; if f witnesses   and g witnesses  , then   witnesses  .

We can show that   is a linear order -- on abstract cardinals, but not on sets. Reflexivity is obvious and transitivity is proven just as for equinumerousness. The Schroder-Bernstein theorem, provable in either ZFC or NFU in an entirely standard way, establishes that

  •  

(this establishes that we have antisymmetry on cardinals (not yet defined), but we are now considering a relation on sets), and

  •  

follows in a standard way in either theory from the Axiom of Choice.

Finite sets and natural numbers

Natural numbers can be considered either as finite ordinals or finite cardinals. Here we consider them as finite cardinal numbers. This is the first place where a major difference between the implementations in ZFC and NFU becomes evident.

The Axiom of Infinity of ZFC tells us that there is a set A which contains   and contains   for each  . This set A is not uniquely determined (it can be made larger while preserving this closure property): the set N of natural numbers is

  •  

which is the intersection of all sets which contain the empty set and are closed under the "successor" operation  .

In ZFC, we say that a set   is finite iff there is   such that  : further, we define   as this n for finite A. (It can be proved that no two distinct natural numbers are the same size).

The usual operations of arithmetic can be defined recursively and in a style very similar to that in which the set of natural numbers itself is defined. For example, + (the addition operation on natural numbers) can be defined as the smallest set which contains   and contains   whenever it contains  .

In NFU, it is not obvious that this approach can be used, since the successor operation   is unstratified and so the set N as defined above cannot be shown to exist in NFU (it is interesting to note that it is consistent for the set of finite von Neumann ordinals to exist in NFU, but this strengthens the theory, as the existence of this set implies the Axiom of Counting (for which see the New Foundations article).

The standard definition of the natural numbers, which is actually the oldest set-theoretic definition of natural numbers, is as equivalence classes of finite sets under equinumerousness. We here present the definition of N appropriate to NFU in exactly this way (this is not the usual way to do it, but the results are the same): define Fin, the set of finite sets, as

  •  

For any set  , define   as  . Define N as the set  .

The Axiom of Infinity of NFU can be expressed as  : this is enough to establish that each natural number has a nonempty successor (the successor of   being   for any  ) which is the hard part of showing that the Peano axioms of arithmetic are satisfied.

The operations of arithmetic can be defined in a style similar to the style given above (using the definition of successor just given). They can also be defined in a natural set theoretical way: if A and B are disjoint finite sets, we can define |A|+|B| as  . More formally, define m+n for m and n in N as

  •  

(But note that this style of definition is feasible for the ZFC numerals as well, but more circuitous: the form of the NFU definition facilitates set manipulations while the form of the ZFC definition facilitates recursive definitions, but either theory supports either style of definition).

The two implementations are quite different. In ZFC, we choose a representative of each finite cardinality to represent that cardinality (the equivalence classes themselves are too large to be sets); in NFU the equivalence classes themselves are sets, and are thus an obvious choice for objects to stand in for the cardinalities. However, the arithmetic of the two theories is identical: the same abstraction is implemented by these two superficially different approaches.

Equivalence relations and partitions

A general technique for implementing abstractions in set theory is the use of equivalence classes. If an equivalence relation R tells us that elements of its field A are alike in some particular respect, then for any set x we can regard the set   as representing an abstraction from the set x respecting just those features (we identify elements of A up to R).

For any set A, we say that a set   is a partition of A if all elements of P are nonempty, any two distinct elements of P are disjoint, and  .

For every equivalence relation R with field A,   is a partition of A. Moreover, each partition P of A determines an equivalence relation  .

This technique has limitations in both ZFC and NFU. In ZFC, since the universe is not a set, it is seems possible to abstract features only from elements of small domains. This can be circumvented using a trick due to Dana Scott: if R is an equivalence relation on the universe, define   as the set of all y such that   and the rank of y is less than or equal to the rank of any  . This works because the ranks are sets. Of course, there still may be a proper class of  's. In NFU, the main difficulty is that   is one type higher than x, so for example the "map"   is not in general a (set) function (though   is a set). This can be circumvented by the use of the Axiom of Choice to select a representative from each equivalence class to replace  , which will be at the same type as x, or by choosing a canonical representative if there is a way to do this without invoking Choice (the use of representatives is hardly unknown in ZFC, either). In NFU, the use of equivalence class constructions to abstract properties of general sets is more common, as for example in the definitions of cardinal and ordinal number below.

Ordinal numbers

We say that two well-orderings   and   are similar and write   just in case there is a bijection f from the field of   to the field of   such that   for all x and y.

Similarity is shown to be an equivalence relation in much the same way that equinumerousness was shown to be an equivalence relation above.

In NFU we define the order type of a well-ordering W as the set of all well-orderings which are similar to W. We define the set of ordinal numbers as the set of all order types of well-orderings.

In ZFC we cannot do this, because the equivalence classes are too large. It would be formally possible to use Scott's trick to define the ordinals in essentially this way nonetheless, but instead we use a device of von Neumann.

For any partial order  , the corresponding strict partial order   is defined as  . Strict linear orders and strict well-orderings are defined similarly.

A set A is said to be transitive if  : each element of an element of A is also an element of A. A (von Neumann) ordinal is a transitive set on which membership is a strict well-ordering.

In ZFC, the order type of a well-ordering W is then defined as the unique von Neumann ordinal which is equinumerous with the field of W and membership on which is isomorphic to the strict well-ordering associated with W. (the equinumerousness condition distinguishes between well-orderings with fields of size 0 and 1, whose associated strict well-orderings are indistinguishable).