# Order type

In mathematics, especially in set theory, two ordered sets X and Y are said to have the same order type if they are order isomorphic, that is, if there exists a bijection (each element pairs with exactly one in the other set) $f\colon X\to Y$ such that both f and its inverse are monotonic (preserving orders of elements).
In the special case when X is totally ordered, monotonicity of f already implies monotonicity of its inverse.
One and the same set may be equipped with different orders. Since order-equivalence is an equivalence relation, it partitions the class of all ordered sets into equivalence classes.

## Notation

If a set $X$ has order type denoted $\sigma$, the order type of the reversed order, the dual of $X$, is denoted $\sigma ^{*}$.
The order type of a well-ordered set X is sometimes expressed as ord(X).

## Examples

The order type of the integers and rationals is usually denoted $\pi$ and $\eta$, respectively. The set of integers and the set of even integers have the same order type, because the mapping $n\mapsto 2n$ is a bijection that preserves the order. But the set of integers and the set of rational numbers (with the standard ordering) do not have the same order type, because even though the sets are of the same size (they are both countably infinite), there is no order-preserving bijective mapping between them. The open interval (0, 1) of rationals is order isomorphic to the rationals, since, for example, $f(x)={\tfrac {2x-1}{1-\vert {2x-1}\vert }}$ is a strictly increasing bijection from the former to the latter. Relevant theorems of this sort are expanded upon below.
More examples can be given now: The set of positive integers (which has a least element), and that of negative integers (which has a greatest element). The natural numbers have order type denoted by ω, as explained below.
The rationals contained in the half-closed intervals [0,1) and (0,1], and the closed interval [0,1], are three additional order type examples.

## Order type of well-orderings

Every well-ordered set is order-equivalent to exactly one ordinal number, by definition. The ordinal numbers are taken to be the canonical representatives of their classes, and so the order type of a well-ordered set is usually identified with the corresponding ordinal. Order types thus often take the form of arithmetic expressions of ordinals.

### Examples

Firstly, the order type of the set of natural numbers is ω. Any other model of Peano arithmetic, that is any non-standard model, starts with a segment isomorphic to ω but then adds extra numbers. For example, any countable such model has order type ω + (ω* + ω) ⋅ η.
Secondly, consider the set V of even ordinals less than ω ⋅ 2 + 7:
    $V=\{0,2,4,\ldots ;\omega ,\omega +2,\omega +4,\ldots ;\omega \cdot 2,\omega \cdot 2+2,\omega \cdot 2+4,\omega \cdot 2+6\}.$
As this comprises two separate counting sequences followed by four elements at the end, the order type is
    $\operatorname {ord} (V)=\omega \cdot 2+4=\{0,1,2,\ldots ;\omega ,\omega +1,\omega +2,\ldots ;\omega \cdot 2,\omega \cdot 2+1,\omega \cdot 2+2,\omega \cdot 2+3\},$

## Rational numbers

With respect to their standard ordering as numbers, the set of rationals is not well-ordered. Neither is the completed set of reals, for that matter.
Any countable totally ordered set can be mapped injectively into the rational numbers in an order-preserving way. When the order is moreover dense and has no highest nor lowest element, there even exist a bijective such mapping.