The axiom of foundation, combined with extensionality, pair set and sum set, tells us there is a definable operation of sets, , called the successor operation which is 1-1 and does not contain (i.e. ) in its range.
Definition.
A set is inductive if and .
An inductive set is therefore infinite.
Axiom of infinity: there is an inductive set, .
The axiom says there is one such inductive set, but in fact we can find a very special one, the least such.
Proposition.
If are inductive then so is .
Proof.
Easy exercise.
Definition.
If is a non-empty set, denotes . This is easily seen to be a set by separation as for any we have .
Definition.
Let be inductive. The set is the set . This is a set by power set and separation, and is independent of the choice of by the previous proposition. We also see that is definable by a formula of , holds if and only if .
Proposition.
is inductive.
Proof.
Easy exercise.
The simplicity of the results her bely their power. What we have done is to define a set and prove it is the least inductive set. (Be careful, as the is not precise and sets cannot be defined in this way except through special means such as those above.) What this is is in fact an induction principle, and is a copy of the natural numbers. To ephasise this we shall write for , for , for , and so on.
Principle of induction on : If is a first order formula, possibly with parameters, and suppose holds and also . Then .
Proof.
The set exists by separation and is inductive by hypothesis. Hence it equals .
Proposition.
Every nonempty set contains .
Proof.
Induction on .
Definition.
A set is transitive if for all sets we have implies .
Proposition.
Every set is transitive.
Proof.
Induction on .
Going hand-in-hand with induction is recursion, also sometimes
called inductive definitions
. We need to explain and justify these.
Set theory has many notions of function. One is function as a definable first order formula. A formula behaves like a function if . (This is usually abbreviated to .) Sometimes this is true when restricted to from a particular set or satisfying a partucular formula. Functions defined by formulas are called class functions.
The other kind of function is a function as a set.
Definition.
is the set .
This exists by the pair set axiom.
Proposition.
If then and .
Proof.
Easy case-by-case argument.
Definition.
A set function is a set such that every element of is for some sets and . For such an we write for and for the unique such that when .
Theorem.
Suppose and are first order formulas such that and . Then there is a formula such that and
This shows that we can define a function by and . In the statement of this theorem we have used class functions, but set functions take part in the proof.
Proof.
We say a set-function is an attempt if is for some such that
Our formula is the formula stating there is an attempt with and .
The rest is an exercise. You need to prove by induction on that for all attempts exist with and that any two attempts agree on the values they give for .