# Tree (set theory)

In set theory, a tree is a partially ordered set (T, <) such that for each t ∈ T, the set {s ∈ T : s < t} is well-ordered by the relation <. Frequently trees are assumed to have only one root (i.e. minimal element), as the typical questions investigated in this field are easily reduced to questions about single-rooted trees.

## Definition

A tree is a partially ordered set (poset) (T, <) such that for each t ∈ T, the set {s ∈ T : s < t} is well-ordered by the relation <. In particular, each well-ordered set (T, <) is a tree. For each t ∈ T, the order type of {s ∈ T : s < t} is called the height of t, denoted ht(t, T). The height of T itself is the least ordinal greater than the height of each element of T. A root of a tree T is an element of height 0. Frequently trees are assumed to have only one root. Trees in set theory are often defined to grow downward making the root the greatest node.
Trees with a single root may be viewed as rooted trees in the sense of graph theory in one of two ways: either as a tree (graph theory) or as a trivially perfect graph. In the first case, the graph is the undirected Hasse diagram of the partially ordered set, and in the second case, the graph is simply the underlying (undirected) graph of the partially ordered set. However, if T is a tree of height > ω, then the Hasse diagram definition does not work. For example, the partially ordered set $\omega +1=\left\{0,1,2,\dots ,\omega \right\}$ does not have a Hasse Diagram, as there is no predecessor to ω. Hence a height of at most ω is required in this case.
A branch of a tree is a maximal chain in the tree (that is, any two elements of the branch are comparable, and any element of the tree not in the branch is incomparable with at least one element of the branch). The length of a branch is the ordinal that is order isomorphic to the branch. For each ordinal α, the α-th level of T is the set of all elements of T of height α. A tree is a κ-tree, for an ordinal number κ, if and only if it has height κ and every level has cardinality less than the cardinality of κ. The width of a tree is the supremum of the cardinalities of its levels.
Any single-rooted tree of height $\leq \omega$ forms a meet-semilattice, where meet (common ancestor) is given by maximal element of intersection of ancestors, which exists as the set of ancestors is non-empty and finite well-ordered, hence has a maximal element. Without a single root, the intersection of parents can be empty (two elements need not have common ancestors), for example $\left\{a,b\right\}$ where the elements are not comparable; while if there are an infinite number of ancestors there need not be a maximal element – for example, $\left\{0,1,2,\dots ,\omega _{0},\omega _{0}'\right\}$ where $\omega _{0},\omega _{0}'$ are not comparable.
A subtree of a tree $(T,<)$ is a tree $(T',<)$ where $T'\subseteq T$ and $T'$ is downward closed under $<$, i.e., if $s,t\in T$ and $s<t$ then $t\in T'\implies s\in T'$.

## Set-theoretic properties

There are some fairly simply stated yet hard problems in infinite tree theory. Examples of this are the Kurepa conjecture and the Suslin conjecture. Both of these problems are known to be independent of Zermelo–Fraenkel set theory. By Kőnig's lemma, every ω-tree has an infinite branch. On the other hand, it is a theorem of ZFC that there are uncountable trees with no uncountable branches and no uncountable levels; such trees are known as Aronszajn trees. Given a cardinal number κ, a κ-Suslin tree is a tree of height κ which has no chains or antichains of size κ. In particular, if κ is singular then there exists a κ-Aronszajn tree and a κ-Suslin tree. In fact, for any infinite cardinal κ, every κ-Suslin tree is a κ-Aronszajn tree (the converse does not hold).
The Suslin conjecture was originally stated as a question about certain total orderings but it is equivalent to the statement: Every tree of height ω$_1$ has an antichain of cardinality ω$_1$ or a branch of length ω$_1$.
If (T,<) is a tree, then the reflexive closure ≤ of < is a prefix order on T. The converse does not hold: for example, the usual order ≤ on the set Z of integers is a total and hence a prefix order, but (Z,<) is not a set-theoretic tree since e.g. the set {n ∈Z: n < 0} has no least element.

## Examples of infinite trees

* Let $\kappa$ be an ordinal number, and let $X$ be a set. Let $T$ be set of all functions $f:\alpha \mapsto X$ where $\alpha <\kappa$. Define $f<g$ if the domain of $f$ is a proper subset of the domain of $g$ and the two functions agree on the domain of $f$. Then $(T,<)$ is a set-theoretic tree. Its root is the unique function on the empty set, and its height is $\kappa$. The union of all functions along a branch yields a function from $\kappa$ to $X$, that is, a generalized sequence of members of $X$. If $\kappa$ is a limit ordinal, none of the branches has a maximal element ("leaf"). The picture shows an example for $\kappa =\omega \cdot 2$ and $X=\{0,1\}$.
* Each tree data structure in computer science is a set-theoretic tree: for two nodes $m,n$, define $m<n$ if $n$ is a proper descendant of $m$. The notions of root, node height, and branch length coincide, while the notions of tree height differ by one.
* Infinite trees considered in automata theory (see e.g. tree (automata theory)) are also set-theoretic trees, with a tree height of up to $\omega$.
* A graph-theoretic tree can be turned into a set-theoretic one by choosing a root node $r$ and defining $m<n$ if $m\neq n$ and $m$ lies on the (unique) undirected path from $r$ to $n$.
* Each Cantor tree, each Kurepa tree, and each Laver tree is a set-theoretic tree.