# Dense order

In mathematics, a partial order or total order < on a set ${\displaystyle X}$ is said to be dense if, for all ${\displaystyle x}$ and ${\displaystyle y}$ in ${\displaystyle X}$ for which ${\displaystyle x, there is a ${\displaystyle z}$ in ${\displaystyle X}$ such that ${\displaystyle x. That is, for any two elements, one less than the other, there is another element between them. For total orders we can say this more simply as "for any two distinct elements, there is another element between them", since totality implies that two distinct elements are related by ${\displaystyle <}$, but this is false in general for partial orders because distinct elements can be incomparable.

## Example

The rational numbers as a linearly ordered set are a densely ordered set in this sense, as are the algebraic numbers, the real numbers, the dyadic rationals and the decimal fractions. In fact, every Archimedean ordered ring extension of the integers ${\displaystyle \mathbb {Z} [x]}$  is a densely ordered set.

Proof —

For the element ${\displaystyle x\in \mathbb {Z} [x]}$ , due to the Archimedean property, if ${\displaystyle x>0}$ , there exists a largest integer ${\displaystyle n  with ${\displaystyle n , and if ${\displaystyle x<0}$ , ${\displaystyle -x>0}$ , and there exists a largest integer ${\displaystyle m=-n-1<-x}$  with ${\displaystyle -n-1<-x<-n}$ . As a result, ${\displaystyle 0 . For any two elements ${\displaystyle y,z\in \mathbb {Z} [x]}$  with ${\displaystyle z , ${\displaystyle 0<(x-n)(y-z)  and ${\displaystyle z<(x-n)(y-z)+z . Therefore ${\displaystyle \mathbb {Z} [x]}$  is dense.

On the other hand, the linear ordering on the integers is not dense.

## Uniqueness for total dense orders without endpoints

Georg Cantor proved that every two non-empty dense totally ordered countable sets without lower or upper bounds are order-isomorphic.[1] This makes the theory of dense linear orders without bounds an example of an ω-categorical theory where ω is the smallest limit ordinal. For example, there exists an order-isomorphism between the rational numbers and other densely ordered countable sets including the dyadic rationals and the algebraic numbers. The proofs of these results use the back-and-forth method.[2]

Minkowski's question mark function can be used to determine the order isomorphisms between the quadratic algebraic numbers and the rational numbers, and between the rationals and the dyadic rationals.

## Generalizations

Any binary relation R is said to be dense if, for all R-related x and y, there is a z such that x and z and also z and y are R-related. Formally:

${\displaystyle \forall x\ \forall y\ xRy\Rightarrow (\exists z\ xRz\land zRy).}$  Alternatively, in terms of composition of R with itself, the dense condition may be expressed as RR°R.[3]

Sufficient conditions for a binary relation R on a set X to be dense are:

None of them are necessary. For instance, there is a relation R that is not reflexive but dense. A non-empty and dense relation cannot be antitransitive.

A strict partial order < is a dense order if and only if < is a dense relation. A dense relation that is also transitive is said to be idempotent.

• Dense-in-itself — a subset ${\displaystyle A}$  of a topological space such that ${\displaystyle A}$  does not contain an isolated point
• Kripke semantics — a dense accessibility relation corresponds to the axiom ${\displaystyle \Box \Box A\rightarrow \Box A}$