# Well-quasi-ordering

Transitive binary relations vte :
| | Symmetric | Antisymmetric | Connected | Well-founded | Has joins | Has meets | Reflexive | Irreflexive | Asymmetric |
| | | | Total, Semiconnex | | | | | Anti- reflexive | |
| Equivalence relation | Y | ✗ | ✗ | ✗ | ✗ | ✗ | Y | ✗ | ✗ |
| Preorder (Quasiorder) | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | Y | ✗ | ✗ |
| Partial order | ✗ | Y | ✗ | ✗ | ✗ | ✗ | Y | ✗ | ✗ |
| Total preorder | ✗ | ✗ | Y | ✗ | ✗ | ✗ | Y | ✗ | ✗ |
| Total order | ✗ | Y | Y | ✗ | ✗ | ✗ | Y | ✗ | ✗ |
| Prewellordering | ✗ | ✗ | Y | Y | ✗ | ✗ | Y | ✗ | ✗ |
| Well-quasi-ordering | ✗ | ✗ | ✗ | Y | ✗ | ✗ | Y | ✗ | ✗ |
| Well-ordering | ✗ | Y | Y | Y | ✗ | ✗ | Y | ✗ | ✗ |
| Lattice | ✗ | Y | ✗ | ✗ | Y | Y | Y | ✗ | ✗ |
| Join-semilattice | ✗ | Y | ✗ | ✗ | Y | ✗ | Y | ✗ | ✗ |
| Meet-semilattice | ✗ | Y | ✗ | ✗ | ✗ | Y | Y | ✗ | ✗ |
| Strict partial order | ✗ | Y | ✗ | ✗ | ✗ | ✗ | ✗ | Y | Y |
| Strict weak order | ✗ | Y | ✗ | ✗ | ✗ | ✗ | ✗ | Y | Y |
| Strict total order | ✗ | Y | Y | ✗ | ✗ | ✗ | ✗ | Y | Y |
| | Symmetric | Antisymmetric | Connected | Well-founded | Has joins | Has meets | Reflexive | Irreflexive | Asymmetric |
| Definitions, for all $a,b$ and $S\neq \varnothing :$ | ${\begin{aligned}&aRb\\\Rightarrow&bRa\end{aligned}}$ | ${\begin{aligned}aRb{\text{ and }}&bRa\\\Rightarrow a=&b\end{aligned}}$ | ${\begin{aligned}a\neq&b\Rightarrow \\aRb{\text{ or }}&bRa\end{aligned}}$ | ${\begin{aligned}\min S\\{\text{exists}}\end{aligned}}$ | ${\begin{aligned}a\vee b\\{\text{exists}}\end{aligned}}$ | ${\begin{aligned}a\wedge b\\{\text{exists}}\end{aligned}}$ | $aRa$ | ${\text{not }}aRa$ | ${\begin{aligned}aRb\Rightarrow \\{\text{not }}bRa\end{aligned}}$ |
Y indicates that the column's property is always true for the row's term (at the very left), while ✗ indicates that the property is not guaranteed in general (it might, or might not, hold). For example, that every equivalence relation is symmetric, but not necessarily antisymmetric, is indicated by Y in the "Symmetric" column and ✗ in the "Antisymmetric" column, respectively.
All definitions tacitly require the homogeneous relation $R$ be transitive: for all $a,b,c,$ if $aRb$ and $bRc$ then $aRc.$
A term's definition may require additional properties that are not listed in this table. :
In mathematics, specifically order theory, a well-quasi-ordering or wqo on a set $X$ is a quasi-ordering of $X$ for which every infinite sequence of elements $x_{0},x_{1},x_{2},\ldots$ from $X$ contains an increasing pair $x_{i}\leq x_{j}$ with $i<j.$

## Motivation

Well-founded induction can be used on any set with a well-founded relation, thus one is interested in when a quasi-order is well-founded. (Here, by abuse of terminology, a quasiorder $\leq$ is said to be well-founded if the corresponding strict order $x\leq y\land y\nleq x$ is a well-founded relation.) However the class of well-founded quasiorders is not closed under certain operations—that is, when a quasi-order is used to obtain a new quasi-order on a set of structures derived from our original set, this quasiorder is found to be not well-founded. By placing stronger restrictions on the original well-founded quasiordering one can hope to ensure that our derived quasiorderings are still well-founded.
An example of this is the power set operation. Given a quasiordering $\leq$ for a set $X$ one can define a quasiorder $\leq ^{+}$ on $X$'s power set $P(X)$ by setting $A\leq ^{+}B$ if and only if for each element of $A$ one can find some element of $B$ that is larger than it with respect to $\leq$. One can show that this quasiordering on $P(X)$ needn't be well-founded, but if one takes the original quasi-ordering to be a well-quasi-ordering, then it is.

## Formal definition

A well-quasi-ordering on a set $X$ is a quasi-ordering (i.e., a reflexive, transitive binary relation) such that any infinite sequence of elements $x_{0},x_{1},x_{2},\ldots$ from $X$ contains an increasing pair $x_{i}\leq x_{j}$ with $i<j$. The set $X$ is said to be well-quasi-ordered, or shortly wqo.
A well partial order, or a wpo, is a wqo that is a proper ordering relation, i.e., it is antisymmetric.
Among other ways of defining wqo's, one is to say that they are quasi-orderings which do not contain infinite strictly decreasing sequences (of the form $x_{0}>x_{1}>x_{2}>\cdots$) nor infinite sequences of pairwise incomparable elements. Hence a quasi-order (X, ≤) is wqo if and only if (X, <) is well-founded and has no infinite antichains.

## Ordinal type

Let $X$ be well partially ordered. A (necessarily finite) sequence $(x_{1},x_{2},\ldots ,x_{n})$ of elements of $X$ that contains no pair $x_{i}\leq x_{j}$ with $i<j$ is usually called a bad sequence. The tree of bad sequences $T_{X}$ is the tree that contains a vertex for each bad sequence, and an edge joining each nonempty bad sequence $(x_{1},\ldots ,x_{n-1},x_{n})$ to its parent $(x_{1},\ldots ,x_{n-1})$. The root of $T_{X}$ corresponds to the empty sequence. Since $X$ contains no infinite bad sequence, the tree $T_{X}$ contains no infinite path starting at the root. Therefore, each vertex $v$ of $T_{X}$ has an ordinal height $o(v)$, which is defined by transfinite induction as $o(v)=\lim _{w\mathrm {\ child\ of\ } v}(o(w)+1)$. The ordinal type of $X$, denoted $o(X)$, is the ordinal height of the root of $T_{X}$.
A linearization of $X$ is an extension of the partial order into a total order. It is easy to verify that $o(X)$ is an upper bound on the ordinal type of every linearization of $X$. De Jongh and Parikh proved that in fact there always exists a linearization of $X$ that achieves the maximal ordinal type $o(X)$.

## Examples

* $(\mathbb {N} ,\leq )$, the set of natural numbers with standard ordering, is a well partial order (in fact, a well-order). However, $(\mathbb {Z} ,\leq )$, the set of positive and negative integers, is not a well-quasi-order, because it is not well-founded (see Pic.1).
* $(\mathbb {N} ,|)$, the set of natural numbers ordered by divisibility, is not a well-quasi-order: the prime numbers are an infinite antichain (see Pic.2).
* $(\mathbb {N} ^{k},\leq )$, the set of vectors of $k$ natural numbers (where $k$ is finite) with component-wise ordering, is a well partial order (Dickson's lemma; see Pic.3). More generally, if $(X,\leq )$ is well-quasi-order, then $(X^{k},\leq ^{k})$ is also a well-quasi-order for all $k$.
* Let $X$ be an arbitrary finite set with at least two elements. The set $X^{*}$ of words over $X$ ordered lexicographically (as in a dictionary) is not a well-quasi-order because it contains the infinite decreasing sequence $b,ab,aab,aaab,\ldots$. Similarly, $X^{*}$ ordered by the prefix relation is not a well-quasi-order, because the previous sequence is an infinite antichain of this partial order. However, $X^{*}$ ordered by the subsequence relation is a well partial order. (If $X$ has only one element, these three partial orders are identical.)
* More generally, $(X^{*},\leq )$, the set of finite $X$-sequences ordered by embedding is a well-quasi-order if and only if $(X,\leq )$ is a well-quasi-order (Higman's lemma). Recall that one embeds a sequence $u$ into a sequence $v$ by finding a subsequence of $v$ that has the same length as $u$ and that dominates it term by term. When $(X,=)$ is an unordered set, $u\leq v$ if and only if $u$ is a subsequence of $v$.
* $(X^{\omega },\leq )$, the set of infinite sequences over a well-quasi-order $(X,\leq )$, ordered by embedding, is not a well-quasi-order in general. That is, Higman's lemma does not carry over to infinite sequences. Better-quasi-orderings have been introduced to generalize Higman's lemma to sequences of arbitrary lengths.
* Embedding between finite trees with nodes labeled by elements of a wqo $(X,\leq )$ is a wqo (Kruskal's tree theorem).
* Embedding between infinite trees with nodes labeled by elements of a wqo $(X,\leq )$ is a wqo (Nash-Williams' theorem).
* Embedding between countable scattered linear order types is a well-quasi-order (Laver's theorem).
* Embedding between countable boolean algebras is a well-quasi-order. This follows from Laver's theorem and a theorem of Ketonen.
* Finite graphs ordered by a notion of embedding called "graph minor" is a well-quasi-order (Robertson–Seymour theorem).
* Graphs of finite tree-depth ordered by the induced subgraph relation form a well-quasi-order, as do the cographs ordered by induced subgraphs.

## Constructing new wpo's from given ones

Let $X_{1}$ and $X_{2}$ be two disjoint wpo sets. Let $Y=X_{1}\cup X_{2}$, and define a partial order on $Y$ by letting $y_{1}\leq _{Y}y_{2}$ if and only if $y_{1},y_{2}\in X_{i}$ for the same $i\in \{1,2\}$ and $y_{1}\leq _{X_{i}}y_{2}$. Then $Y$ is wpo, and $o(Y)=o(X_{1})\oplus o(X_{2})$, where $\oplus$ denotes natural sum of ordinals.
Given wpo sets $X_{1}$ and $X_{2}$, define a partial order on the Cartesian product $Y=X_{1}\times X_{2}$, by letting $(a_{1},a_{2})\leq _{Y}(b_{1},b_{2})$ if and only if $a_{1}\leq _{X_{1}}b_{1}$ and $a_{2}\leq _{X_{2}}b_{2}$. Then $Y$ is wpo (this is a generalization of Dickson's lemma), and $o(Y)=o(X_{1})\otimes o(X_{2})$, where $\otimes$ denotes natural product of ordinals.
Given a wpo set $X$, let $X^{*}$ be the set of finite sequences of elements of $X$, partially ordered by the subsequence relation. Meaning, let $(x_{1},\ldots ,x_{n})\leq _{X^{*}}(y_{1},\ldots ,y_{m})$ if and only if there exist indices $1\leq i_{1}<\cdots <i_{n}\leq m$ such that $x_{j}\leq _{X}y_{i_{j}}$ for each $1\leq j\leq n$. By Higman's lemma, $X^{*}$ is wpo. The ordinal type of $X^{*}$ is $o(X^{*})={\begin{cases}\omega ^{\omega ^{o(X)-1}},&o(X){\text{ finite}};\\\omega ^{\omega ^{o(X)+1}},&o(X)=\varepsilon _{\alpha }+n{\text{ for some }}\alpha {\text{ and some finite }}n;\\\omega ^{\omega ^{o(X)}},&{\text{otherwise}}.\end{cases}}$
Given a wpo set $X$, let $T(X)$ be the set of all finite rooted trees whose vertices are labeled by elements of $X$. Partially order $T(X)$ by the tree embedding relation. By Kruskal's tree theorem, $T(X)$ is wpo. This result is nontrivial even for the case $|X|=1$ (which corresponds to unlabeled trees), in which case $o(T(X))$ equals the small Veblen ordinal. In general, for $o(X)$ countable, we have the upper bound $o(T(X))\leq \vartheta (\Omega ^{\omega }o(X))$ in terms of the $\vartheta$ ordinal collapsing function. (The small Veblen ordinal equals $\vartheta (\Omega ^{\omega })$ in this ordinal notation.)

## Wqo's versus well partial orders

In practice, the wqo's one manipulates are quite often not orderings (see examples above), and the theory is technically smoother if we do not require antisymmetry, so it is built with wqo's as the basic notion. On the other hand, according to Milner 1985, no real gain in generality is obtained by considering quasi-orders rather than partial orders... it is simply more convenient to do so.
Observe that a wpo is a wqo, and that a wqo gives rise to a wpo between equivalence classes induced by the kernel of the wqo. For example, if we order $\mathbb {Z}$ by divisibility, we end up with $n\equiv m$ if and only if $n=\pm m$, so that $(\mathbb {Z} ,|)\approx (\mathbb {N} ,|)$.

## Infinite increasing subsequences

If $(X,\leq )$ is wqo then every infinite sequence $x_{0},x_{1},x_{2},\ldots ,$ contains an infinite increasing subsequence $x_{n_{0}}\leq x_{n_{1}}\leq x_{n_{2}}\leq \cdots$ (with $n_{0}<n_{1}<n_{2}<\cdots$). Such a subsequence is sometimes called perfect. This can be proved by a Ramsey argument: given some sequence $(x_{i})_{i}$, consider the set $I$ of indexes $i$ such that $x_{i}$ has no larger or equal $x_{j}$ to its right, i.e., with $i<j$. If $I$ is infinite, then the $I$-extracted subsequence contradicts the assumption that $X$ is wqo. So $I$ is finite, and any $x_{n}$ with $n$ larger than any index in $I$ can be used as the starting point of an infinite increasing subsequence.
The existence of such infinite increasing subsequences is sometimes taken as a definition for well-quasi-ordering, leading to an equivalent notion.

## Properties of wqos

* Given a quasiordering $(X,\leq )$ the quasiordering $(P(X),\leq ^{+})$ defined by $A\leq ^{+}B\iff \forall a\in A,\exists b\in B,a\leq b$ is well-founded if and only if $(X,\leq )$ is a wqo.
* A quasiordering is a wqo if and only if the corresponding partial order (obtained by quotienting by $x\sim y\iff x\leq y\land y\leq x$) has no infinite descending sequences or antichains. (This can be proved using a Ramsey argument as above.)
* Given a well-quasi-ordering $(X,\leq )$, any sequence of upward-closed subsets $S_{0}\subseteq S_{1}\subseteq \cdots \subseteq X$ eventually stabilises (meaning there exists $n\in \mathbb {N}$ such that $S_{n}=S_{n+1}=\cdots$; a subset $S\subseteq X$ is called upward-closed if $\forall x,y\in X,x\leq y\wedge x\in S\Rightarrow y\in S$): assuming the contrary $\forall i\in \mathbb {N} ,\exists j\in \mathbb {N} ,j>i,\exists x\in S_{j}\setminus S_{i}$, a contradiction is reached by extracting an infinite non-ascending subsequence.
* Given a well-quasi-ordering $(X,\leq )$, any subset $S$ of $X$ has a finite number of minimal elements with respect to $\leq$, for otherwise the minimal elements of $S$ would constitute an infinite antichain.