
In
set theory
Set theory is the branch of that studies , which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory, as a branch of , is mostly concerned with those that are relevant to ...
, an ordinal number, or ordinal, is one generalization of the concept of a
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and total order, ordering (as in "this is the ''third'' largest city in the country"). In common mathematical terminology, w ...
that is used to describe a way to arrange a (possibly infinite) collection of objects in order, one after another.
Any finite collection of objects can be put in order just by the process of counting: labeling the objects with distinct natural numbers. The basic idea of ordinal numbers is to generalize this process to possibly infinite collections and to provide a "label" for each step in the process. Ordinal numbers are thus the "labels" needed to arrange collections of objects in order.
An ordinal number is used to describe the
order type
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
of a
well-ordered
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
set (though this does not work for a well-ordered
proper class
Proper may refer to:
Mathematics
* Proper map
In mathematics
Mathematics (from Greek: ) includes the study of such topics as numbers ( and ), formulas and related structures (), shapes and spaces in which they are contained (), and qu ...
). A well-ordered set is a set with a relation < such that:
*(
Trichotomy) For any elements ''x'' and ''y'', exactly one of these statements is true:
**''x'' < ''y''
**''y'' < ''x''
**''x'' = ''y''
*(
Transitivity) For any elements ''x'', ''y'', ''z'', if ''x'' < ''y'' and ''y'' < ''z'', then ''x'' < ''z.''
*(
Well-foundedness
In mathematics, a binary relation ''R'' is called well-founded (or wellfounded) on a Class (set theory), class ''X'' if every non-empty subset ''S'' ⊆ ''X'' has a minimal element with respect to ''R'', that is, an Element (mathematics), element ...
) Every nonempty subset has a least element, that is, it has an element ''x'' such that there is no other element ''y'' in the subset where ''y'' < ''x''.
Two well-ordered sets have the same order type, if and only if there is a
bijection
In mathematics
Mathematics (from Greek: ) includes the study of such topics as numbers (arithmetic and number theory), formulas and related structures (algebra), shapes and spaces in which they are contained (geometry), and quantities and ...

from one set to the other that converts the relation in the first set, to the relation in the second set.
Whereas ordinals are useful for ''ordering'' the objects in a collection, they are distinct from
cardinal number
150px, Aleph null, the smallest infinite cardinal
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and ca ...
s, which are useful for quantifying the number of objects in a collection. Although the distinction between ordinals and cardinals is not always apparent in finite sets (one can go from one to the other just by counting labels), different
infinite
Infinite may refer to:
Mathematics
*Infinite set, a set that is not a finite set
*Infinity, an abstract concept describing something without any limit
Music
*Infinite (band), a South Korean boy band
*''Infinite'' (EP), debut EP of American musi ...
ordinals can correspond to the same cardinal. Moreover, there may be sets which cannot be well ordered, and their cardinal numbers do not correspond to ordinal numbers. (For example, the existence of such sets follows from
Zermelo–Fraenkel set theory
In set theory
illustrating the intersection (set theory), intersection of two set (mathematics), sets.
Set theory is a branch of mathematical logic that studies Set (mathematics), sets, which informally are collections of objects. Although any t ...
with the negation of the axiom of choice.) Like other kinds of numbers, ordinals can be
added, multiplied, and exponentiated, although none of these operations is commutative.
Ordinals were introduced by
Georg Cantor
Georg Ferdinand Ludwig Philipp Cantor ( , ; – January 6, 1918) was a German mathematician. He created set theory, which has become a fundamental theory in mathematics. Cantor established the importance of one-to-one correspondence be ...
in 1883 in order to accommodate infinite sequences and classify
derived sets, which he had previously introduced in 1872—while studying the uniqueness of
trigonometric series
In mathematics, a trigonometric series is a series of the form:
: \frac+\displaystyle\sum_^(A_ \cos + B_ \sin).
It is called a Fourier series if the terms A_ and B_ have the form:
:A_=\frac\displaystyle\int^_0\! f(x) \cos \,dx\qquad (n=0,1,2, ...
.
Ordinals extend the natural numbers
A
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and total order, ordering (as in "this is the ''third'' largest city in the country"). In common mathematical terminology, w ...
(which, in this context, includes the number
) can be used for two purposes: to describe the ''size'' of a
set, or to describe the ''position'' of an element in a sequence. When restricted to finite sets, these two concepts coincide, and there is only one way to put a finite set into a linear sequence (
up to Two mathematical
Mathematics (from Greek
Greek may refer to:
Greece
Anything of, from, or related to Greece
Greece ( el, Ελλάδα, , ), officially the Hellenic Republic, is a country located in Southeast Europe. Its population is a ...
isomorphism
In mathematics
Mathematics (from Greek: ) includes the study of such topics as numbers (arithmetic and number theory), formulas and related structures (algebra), shapes and spaces in which they are contained (geometry), and quantities and ...

). When dealing with infinite sets, however, one has to distinguish between the notion of size, which leads to
cardinal number
150px, Aleph null, the smallest infinite cardinal
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and ca ...
s, and the notion of position, which leads to the ordinal numbers described here. This is because while any set has only one size (its
cardinality
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
), there are many nonisomorphic
well-ordering
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
s of any infinite set, as explained below.
Whereas the notion of cardinal number is associated with a set with no particular structure on it, the ordinals are intimately linked with the special kind of sets that are called
well-order
In mathematics, a well-order (or well-ordering or well-order relation) on a Set (mathematics), set ''S'' is a total order on ''S'' with the property that every non-empty subset of ''S'' has a least element in this ordering. The set ''S'' together ...
ed (so intimately linked, in fact, that some mathematicians make no distinction between the two concepts). A well-ordered set is a
totally ordered
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). I ...
set (given any two elements one defines a smaller and a larger one in a coherent way), in which every non-empty subset of the set has a least element. In particular, there is no infinite ''decreasing'' sequence. (However, there may be infinite increasing sequences.) Ordinals may be used to label the elements of any given well-ordered set (the smallest element being labelled 0, the one after that 1, the next one 2, "and so on"), and to measure the "length" of the whole set by the least ordinal that is not a label for an element of the set. This "length" is called the ''order type'' of the set.
Any ordinal is defined by the set of ordinals that precede it. In fact, the most common definition of ordinals ''identifies'' each ordinal ''as'' the set of ordinals that precede it. For example, the ordinal 42 is the order type of the ordinals less than it, that is, the ordinals from 0 (the smallest of all ordinals) to 41 (the immediate predecessor of 42), and it is generally identified as the set . Conversely, any set ''S'' of ordinals that is downward-closed — meaning that for any ordinal α in ''S'' and any ordinal β < α, β is also in ''S'' — is (or can be identified with) an ordinal.
There are infinite ordinals as well: the smallest infinite ordinal is
, which is the order type of the natural numbers (finite ordinals) and that can even be identified with the ''set'' of natural numbers. Indeed, the set of natural numbers is well-ordered—as is any set of ordinals—and since it is downward closed, it can be identified with the ordinal associated with it (which is exactly how
is defined).

Perhaps a clearer intuition of ordinals can be formed by examining a first few of them: as mentioned above, they start with the natural numbers, 0, 1, 2, 3, 4, 5, … After ''all'' natural numbers comes the first infinite ordinal, ω, and after that come ω+1, ω+2, ω+3, and so on. (Exactly what addition means will be defined later on: just consider them as names.) After all of these come ω·2 (which is ω+ω), ω·2+1, ω·2+2, and so on, then ω·3, and then later on ω·4. Now the set of ordinals formed in this way (the ω·''m''+''n'', where ''m'' and ''n'' are natural numbers) must itself have an ordinal associated with it: and that is ω
2. Further on, there will be ω
3, then ω
4, and so on, and ω
ω, then ω
ωω, then later ω
ωωω, and even later ε
0 (
epsilon nought) (to give a few examples of relatively small—countable—ordinals). This can be continued indefinitely (as every time one says "and so on" when enumerating ordinals, it defines a larger ordinal). The smallest
uncountable
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
ordinal is the set of all countable ordinals, expressed as
ω1 or
.
Definitions
Well-ordered sets
In a
well-order
In mathematics, a well-order (or well-ordering or well-order relation) on a Set (mathematics), set ''S'' is a total order on ''S'' with the property that every non-empty subset of ''S'' has a least element in this ordering. The set ''S'' together ...
ed set, every non-empty subset contains a distinct smallest element. Given the
axiom of dependent choiceIn mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ha ...
, this is equivalent to saying that the set is
totally ordered
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). I ...
and there is no infinite decreasing sequence (the latter being easier to visualize). In practice, the importance of well-ordering is justified by the possibility of applying
transfinite induction
Transfinite induction is an extension of mathematical induction
Image:Dominoeffect.png, Mathematical induction can be informally illustrated by reference to the sequential effect of falling Domino effect, dominoes.
Mathematical induction is a m ...
, which says, essentially, that any property that passes on from the predecessors of an element to that element itself must be true of all elements (of the given well-ordered set). If the states of a computation (computer program or game) can be well-ordered—in such a way that each step is followed by a "lower" step—then the computation will terminate.
It is inappropriate to distinguish between two well-ordered sets if they only differ in the "labeling of their elements", or more formally: if the elements of the first set can be paired off with the elements of the second set such that if one element is smaller than another in the first set, then the partner of the first element is smaller than the partner of the second element in the second set, and vice versa. Such a one-to-one correspondence is called an
order isomorphismIn the mathematical field of order theory
Order theory is a branch of mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (g ...
, and the two well-ordered sets are said to be order-isomorphic or ''similar'' (with the understanding that this is an
equivalence relation
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). ...
).
Formally, if a
partial order
upright=1.15, Fig.1 The set of all subsets of a three-element set \, ordered by set inclusion">inclusion
Inclusion or Include may refer to:
Sociology
* Social inclusion, affirmative action to change the circumstances and habits that leads to s ...
≤ is defined on the set ''S'', and a partial order ≤' is defined on the set ''S' '', then the
poset
250px, The set of all subsets of a three-element set , ordered by inclusion. Distinct sets on the same horizontal level are incomparable with each other. Some other pairs, such as and , are also incomparable.
In mathematics, especially order the ...
s (''S'',≤) and (''S' '',≤') are
order isomorphicIn the mathematical field of order theory
Order theory is a branch of mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (g ...
if there is a
bijection
In mathematics
Mathematics (from Greek: ) includes the study of such topics as numbers (arithmetic and number theory), formulas and related structures (algebra), shapes and spaces in which they are contained (geometry), and quantities and ...

''f'' that preserves the ordering. That is, ''f''(''a'') ≤' ''f''(''b'') if and only if ''a'' ≤ ''b''. Provided there exists an order isomorphism between two well-ordered sets, the order isomorphism is unique: this makes it quite justifiable to consider the two sets as essentially identical, and to seek a
"canonical" representative of the isomorphism type (class). This is exactly what the ordinals provide, and it also provides a canonical labeling of the elements of any well-ordered set. Every ''well-ordered'' set (''S'',<) is order-isomorphic to the set of ordinals less than one specific ordinal number under their natural ordering. This canonical set is the ''order type'' of (''S'',<).
Essentially, an ordinal is intended to be defined as an
isomorphism class
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
of well-ordered sets: that is, as an
equivalence class
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). ...
for the
equivalence relation
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). ...
of "being order-isomorphic". There is a technical difficulty involved, however, in the fact that the equivalence class is too large to be a set in the usual
Zermelo–Fraenkel (ZF) formalization of set theory. But this is not a serious difficulty. The ordinal can be said to be the ''
order type
In mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (geometry), and calculus, change (mathematical analysis, analysis). It ...
'' of any set in the class.
Definition of an ordinal as an equivalence class
The original definition of ordinal numbers, found for example in the ''
Principia Mathematica
Image:Principia Mathematica 54-43.png, 500px, ✸54.43:
"From this proposition it will follow, when arithmetical addition has been defined, that 1 + 1 = 2." – Volume I, 1st editionp. 379(p. 362 in 2nd edition; p. 360 in abridged v ...
'', defines the order type of a well-ordering as the set of all well-orderings similar (order-isomorphic) to that well-ordering: in other words, an ordinal number is genuinely an equivalence class of well-ordered sets. This definition must be abandoned in
ZF and related systems of
axiomatic set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory, as a branch of mathematics, i ...
because these equivalence classes are too large to form a set. However, this definition still can be used in
type theory
In mathematics
Mathematics (from Greek: ) includes the study of such topics as numbers ( and ), formulas and related structures (), shapes and spaces in which they are contained (), and quantities and their changes ( and ). There is no gene ...
and in Quine's axiomatic set theory
New FoundationsIn mathematical logic
Mathematical logic, also called formal logic, is a subfield of mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algeb ...
and related systems (where it affords a rather surprising alternative solution to the
Burali-Forti paradox
In set theory
illustrating the intersection (set theory), intersection of two set (mathematics), sets.
Set theory is a branch of mathematical logic that studies Set (mathematics), sets, which informally are collections of objects. Although any ty ...
of the largest ordinal).
Von Neumann definition of ordinals
Rather than defining an ordinal as an ''equivalence class'' of well-ordered sets, it will be defined as a particular well-ordered set that (canonically) represents the class. Thus, an ordinal number will be a well-ordered set; and every well-ordered set will be order-isomorphic to exactly one ordinal number.
For each well-ordered set
,
defines an
order isomorphismIn the mathematical field of order theory
Order theory is a branch of mathematics
Mathematics (from Ancient Greek, Greek: ) includes the study of such topics as quantity (number theory), mathematical structure, structure (algebra), space (g ...
between
and the set of all subsets of
having the form
ordered by inclusion. This motivates the standard definition, suggested by
John von Neumann
John von Neumann (; hu, Neumann János Lajos, ; December 28, 1903 – February 8, 1957) was a Hungarian Americans, Hungarian-American mathematician, physicist, computer scientist, engineer and polymath. Von Neumann was generally rega ...

at the age of 19, now called definition of von Neumann ordinals: "each ordinal is the well-ordered set of all smaller ordinals." In symbols,