In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a total order or linear order is a
partial order
In mathematics, especially order theory, a partial order on a set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements needs to be comparable ...
in which any two elements are comparable. That is, a total order is a
binary relation
In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
on some
set , which satisfies the following for all
and
in
:
#
(
reflexive).
# If
and
then
(
transitive).
# If
and
then
(
antisymmetric).
#
or
(
strongly connected, formerly called totality).
Requirements 1. to 3. just make up the definition of a partial order.
Reflexivity (1.) already follows from strong connectedness (4.), but is required explicitly by many authors nevertheless, to indicate the kinship to partial orders.
Total orders are sometimes also called simple, connex, or full orders.
A set equipped with a total order is a totally ordered set; the terms simply ordered set, linearly ordered set, toset
and loset are also used. The term ''chain'' is sometimes defined as a synonym of ''totally ordered set'', but generally refers to a totally ordered subset of a given partially ordered set.
An extension of a given partial order to a total order is called a
linear extension of that partial order.
Strict and non-strict total orders
For delimitation purposes, a total order as defined
above is sometimes called ''non-strict'' order.
For each (non-strict) total order
there is an associated relation
, called the ''strict total order'' associated with
that can be defined in two equivalent ways:
*
if
and
(
reflexive reduction).
*
if not
(i.e.,
is the
complement of the
converse of
).
Conversely, the
reflexive closure of a strict total order
is a (non-strict) total order.
Thus, a on a set
is a
strict partial order on
in which any two distinct elements are comparable. That is, a strict total order is a
binary relation
In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
on some
set , which satisfies the following for all
and
in
:
# Not
(
irreflexive).
# If
then not
(
asymmetric).
# If
and
then
(
transitive).
# If
, then
or
(
connected).
Asymmetry follows from transitivity and irreflexivity; moreover, irreflexivity follows from asymmetry.
Examples
* Any
subset
In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
of a totally ordered set is totally ordered for the restriction of the order on .
* The unique order on the empty set, , is a total order.
* Any set of
ordinal number
In set theory, an ordinal number, or ordinal, is a generalization of ordinal numerals (first, second, th, etc.) aimed to extend enumeration to infinite sets.
A finite set can be enumerated by successively labeling each element with the leas ...
s (more strongly, these are
well-order
In mathematics, a well-order (or well-ordering or well-order relation) on a set is a total ordering on with the property that every non-empty subset of has a least element in this ordering. The set together with the ordering is then calle ...
s).
* If is any set and an
injective function from to a totally ordered set then induces a total ordering on by setting if and only if .
* The
lexicographical order
In mathematics, the lexicographic or lexicographical order (also known as lexical order, or dictionary order) is a generalization of the alphabetical order of the dictionaries to sequences of ordered symbols or, more generally, of elements of a ...
on the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is
A\times B = \.
A table c ...
of a family of totally ordered sets,
indexed by a
well ordered set, is itself a total order.
* The set of
real numbers
In mathematics, a real number is a number that can be used to measurement, measure a continuous variable, continuous one-dimensional quantity such as a time, duration or temperature. Here, ''continuous'' means that pairs of values can have arbi ...
ordered by the usual "less than or equal to" (≤) or "greater than or equal to" (≥) relations is totally ordered. Hence each subset of the real numbers is totally ordered, such as the
natural numbers
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
,
integers
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
, and
rational numbers
In mathematics, a rational number is a number that can be expressed as the quotient or fraction (mathematics), fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for examp ...
. Each of these can be shown to be the unique (up to an
order isomorphism
In the mathematical field of order theory, an order isomorphism is a special kind of monotone function that constitutes a suitable notion of isomorphism for partially ordered sets (posets). Whenever two posets are order isomorphic, they can be co ...
) "initial example" of a totally ordered set with a certain property, (here, a total order is ''initial'' for a property, if, whenever has the property, there is an order isomorphism from to a subset of ):
** The natural numbers form an initial non-empty totally ordered set with no
upper bound
In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of .
Dually, a lower bound or minorant of is defined to be an element of that is less ...
.
** The integers form an initial non-empty totally ordered set with neither an upper nor a
lower bound.
** The rational numbers form an initial totally ordered set which is
dense in the real numbers. Moreover, the reflexive reduction < is a
dense order on the rational numbers.
** The real numbers form an initial unbounded totally ordered set that is
connected in the
order topology (defined below).
*
Ordered field
In mathematics, an ordered field is a field together with a total ordering of its elements that is compatible with the field operations. Basic examples of ordered fields are the rational numbers and the real numbers, both with their standard ord ...
s are totally ordered by definition. They include the rational numbers and the real numbers. Every ordered field contains an ordered subfield that is isomorphic to the rational numbers. Any ''
Dedekind-complete'' ordered field is isomorphic to the real numbers.
* The letters of the alphabet ordered by the standard
dictionary order, e.g., etc., is a strict total order.
Chains
The term chain is sometimes defined as a synonym for a totally ordered set, but it is generally used for referring to a
subset
In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
of a
partially ordered set
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
that is totally ordered for the induced order. Typically, the partially ordered set is a set of subsets of a given set that is ordered by inclusion, and the term is used for stating properties of the set of the chains. This high number of nested levels of sets explains the usefulness of the term.
A common example of the use of ''chain'' for referring to totally ordered subsets is
Zorn's lemma
Zorn's lemma, also known as the Kuratowski–Zorn lemma, is a proposition of set theory. It states that a partially ordered set containing upper bounds for every chain (that is, every totally ordered subset) necessarily contains at least on ...
which asserts that, if every chain in a partially ordered set has an upper bound in , then contains at least one maximal element. Zorn's lemma is commonly used with being a set of subsets; in this case, the upper bound is obtained by proving that the union of the elements of a chain in is in . This is the way that is generally used to prove that a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
has
Hamel bases and that a
ring has
maximal ideals.
In some contexts, the chains that are considered are order isomorphic to the natural numbers with their usual order or its
opposite order. In this case, a chain can be identified with a
monotone sequence, and is called an ascending chain or a descending chain, depending whether the sequence is increasing or decreasing.
A partially ordered set has the
descending chain condition
In mathematics, the ascending chain condition (ACC) and descending chain condition (DCC) are finiteness properties satisfied by some algebraic structures, most importantly ideals in certain commutative rings. These conditions played an important r ...
if every descending chain eventually stabilizes. For example, an order is
well founded if it has the descending chain condition. Similarly, the
ascending chain condition
In mathematics, the ascending chain condition (ACC) and descending chain condition (DCC) are finiteness properties satisfied by some algebraic structures, most importantly Ideal (ring theory), ideals in certain commutative rings. These conditions p ...
means that every ascending chain eventually stabilizes. For example, a
Noetherian ring
In mathematics, a Noetherian ring is a ring that satisfies the ascending chain condition on left and right ideals. If the chain condition is satisfied only for left ideals or for right ideals, then the ring is said left-Noetherian or right-Noethe ...
is a ring whose
ideals satisfy the ascending chain condition.
In other contexts, only chains that are
finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
is a finite set with five elements. Th ...
s are considered. In this case, one talks of a ''finite chain'', often shortened as a ''chain''. In this case, the length of a chain is the number of inequalities (or set inclusions) between consecutive elements of the chain; that is, the number minus one of elements in the chain. Thus a
singleton set is a chain of length zero, and an
ordered pair is a chain of length one. The
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
of a space is often defined or characterized as the maximal length of chains of subspaces. For example, the
dimension of a vector space
In mathematics, the dimension of a vector space ''V'' is the cardinality (i.e., the number of vectors) of a basis of ''V'' over its base field. p. 44, §2.36 It is sometimes called Hamel dimension (after Georg Hamel) or algebraic dimension to d ...
is the maximal length of chains of
linear subspace
In mathematics, the term ''linear'' is used in two distinct senses for two different properties:
* linearity of a ''function (mathematics), function'' (or ''mapping (mathematics), mapping'');
* linearity of a ''polynomial''.
An example of a li ...
s, and the
Krull dimension
In commutative algebra, the Krull dimension of a commutative ring ''R'', named after Wolfgang Krull, is the supremum of the lengths of all chains of prime ideals. The Krull dimension need not be finite even for a Noetherian ring. More generally ...
of a
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
is the maximal length of chains of
prime ideals.
"Chain" may also be used for some totally ordered subsets of
structures that are not partially ordered sets. An example is given by
regular chains of polynomials. Another example is the use of "chain" as a synonym for a
walk in a
graph.
Further concepts
Lattice theory
One may define a totally ordered set as a particular kind of
lattice, namely one in which we have
:
for all ''a'', ''b''.
We then write ''a'' ≤ ''b''
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
. Hence a totally ordered set is a
distributive lattice
In mathematics, a distributive lattice is a lattice (order), lattice in which the operations of join and meet distributivity, distribute over each other. The prototypical examples of such structures are collections of sets for which the lattice o ...
.
Finite total orders
A simple
counting
Counting is the process of determining the number of elements of a finite set of objects; that is, determining the size of a set. The traditional way of counting consists of continually increasing a (mental or spoken) counter by a unit for ever ...
argument will verify that any non-empty finite totally ordered set (and hence any non-empty subset thereof) has a least element. Thus every finite total order is in fact a
well order
In mathematics, a well-order (or well-ordering or well-order relation) on a Set (mathematics), set is a total ordering on with the property that every non-empty subset of has a least element in this ordering. The set together with the orderin ...
. Either by direct proof or by observing that every well order is
order isomorphic to an
ordinal one may show that every finite total order is
order isomorphic to an
initial segment of the natural numbers ordered by <. In other words, a total order on a set with ''k'' elements induces a bijection with the first ''k'' natural numbers. Hence it is common to index finite total orders or well orders with
order type ω by natural numbers in a fashion which respects the ordering (either starting with zero or with one).
Category theory
Totally ordered sets form a
full subcategory
In mathematics, specifically category theory, a subcategory of a category ''C'' is a category ''S'' whose objects are objects in ''C'' and whose morphisms are morphisms in ''C'' with the same identities and composition of morphisms. Intuitivel ...
of the
category of
partially ordered set
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
s, with the
morphisms being maps which respect the orders, i.e. maps ''f'' such that if ''a'' ≤ ''b'' then ''f''(''a'') ≤ ''f''(''b'').
A
bijective map between two totally ordered sets that respects the two orders is an
isomorphism
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
in this category.
Order topology
For any totally ordered set we can define the ''
open interval
In mathematics, a real interval is the set (mathematics), set of all real numbers lying between two fixed endpoints with no "gaps". Each endpoint is either a real number or positive or negative infinity, indicating the interval extends without ...
s''
* ,
* ,
* , and
* .
We can use these open intervals to define a
topology
Topology (from the Greek language, Greek words , and ) is the branch of mathematics concerned with the properties of a Mathematical object, geometric object that are preserved under Continuous function, continuous Deformation theory, deformat ...
on any ordered set, the
order topology.
When more than one order is being used on a set one talks about the order topology induced by a particular order. For instance if N is the natural numbers, is less than and greater than we might refer to the order topology on N induced by and the order topology on N induced by (in this case they happen to be identical but will not in general).
The order topology induced by a total order may be shown to be hereditarily
normal.
Completeness
A totally ordered set is said to be
complete if every nonempty subset that has an
upper bound
In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of .
Dually, a lower bound or minorant of is defined to be an element of that is less ...
, has a
least upper bound. For example, the set of
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s R is complete but the set of
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s Q is not. In other words, the various concepts of
completeness (not to be confused with being "total") do not carry over to
restrictions. For example, over the
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s a property of the relation is that every
non-empty subset ''S'' of R with an
upper bound
In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of .
Dually, a lower bound or minorant of is defined to be an element of that is less ...
in R has a
least upper bound (also called supremum) in R. However, for the rational numbers this supremum is not necessarily rational, so the same property does not hold on the restriction of the relation to the rational numbers.
There are a number of results relating properties of the order topology to the completeness of X:
* If the order topology on ''X'' is connected, ''X'' is complete.
* ''X'' is connected under the order topology if and only if it is complete and there is no ''gap'' in ''X'' (a gap is two points ''a'' and ''b'' in ''X'' with ''a'' < ''b'' such that no ''c'' satisfies ''a'' < ''c'' < ''b''.)
* ''X'' is complete if and only if every bounded set that is closed in the order topology is compact.
A totally ordered set (with its order topology) which is a
complete lattice is
compact. Examples are the closed intervals of real numbers, e.g. the
unit interval ,1 and the
affinely extended real number system (extended real number line). There are order-preserving
homeomorphism
In mathematics and more specifically in topology, a homeomorphism ( from Greek roots meaning "similar shape", named by Henri Poincaré), also called topological isomorphism, or bicontinuous function, is a bijective and continuous function ...
s between these examples.
Sums of orders
For any two disjoint total orders
and
, there is a natural order
on the set
, which is called the sum of the two orders or sometimes just
:
: For
,
holds if and only if one of the following holds:
:#
and
:#
and
:#
and
Intuitively, this means that the elements of the second set are added on top of the elements of the first set.
More generally, if
is a totally ordered index set, and for each
the structure
is a linear order, where the sets
are pairwise disjoint, then the natural total order on
is defined by
: For
,
holds if:
:# Either there is some
with
:# or there are some