We prove the labelled version of Kruskal's tree theorem, with labels in a well-quasi-ordering ; the unlabelled result is its one-label case. A label-monotone tree embedding is an injective map of finite rooted trees preserving lowest common ancestors and increasing labels. Its root may map below the host root, and an edge may map to a path. These conventions distinguish rooted-tree homeomorphic embedding from the stricter adjacency-preserving relation, which is not well-quasi-ordered.
We will use two elementary consequences of well-quasi-ordering. Every infinite sequence in a well-quasi-ordering has an infinite nondecreasing subsequence: color pairs by whether the earlier element precedes the later one, apply Ramsey's theorem, and exclude an all-bad infinite set. Restricting successively in each coordinate proves finite product closure of well-quasi-orderings.
For completeness, here is the required proof of Higman's lemma. If finite words over admitted a bad sequence, choose one whose next word always has the least length admitting a bad continuation of the fixed prefix. No word is empty. Write , separating the last letter. The set of prefixes is a well-quasi-ordering. Otherwise select a bad sequence of these prefixes with strictly increasing owner indices ; this is possible because every finite initial set of owners supplies only finitely many prefixes, and a bad sequence cannot repeat a word. Then
is bad. An earlier original word embedding into would also embed into , contradicting the original badness; comparisons inside the new tail are excluded by its choice. But is shorter than , contradicting minimality. Since the prefixes and the last letters are well-quasi-ordered, their product gives with embedding into and . Appending the matched last letters embeds into , the final contradiction. Thus finite words over a WQO are WQO.
Now suppose labelled finite rooted trees admit a bad sequence . Choose it minimally in vertex count at each successive position. Let be all immediate child subtrees of its members. This is a well-quasi-ordering: if not, select a bad sequence of child subtrees with increasing owner indices , and splice it after . Every child subtree embeds into its owner, so a comparison from the prefix to the tail would contradict original badness. The splice is bad and its first replacement is strictly smaller, contradicting the minimal bad sequence choice.
For each , list its child subtrees in any order as a finite word over and record its root label . The product is a well-quasi-ordering by Higman's lemma. Hence some has and a subsequence embedding of into . Match the roots and use the chosen subtree embeddings in distinct target branches. Their union preserves lowest common ancestors and labels, and stretches only edge paths. Thus embeds into , a contradiction. We have proved
To deduce Friedman's finite form of Kruskal's theorem, fix . At position permit unlabelled trees of at most vertices. Up to isomorphism only finitely many trees are possible at each position. Form the finite bad-sequence tree whose nodes are finite bad sequences satisfying these bounds, ordered by extension. It is finitely branching. If there were arbitrarily long admissible bad sequences, König infinity lemma would give an infinite branch, contradicting Kruskal's tree theorem. Therefore
One can instead use a fixed finite set of labels, giving a correspondingly parameterized finite statement by exactly the same proof. The crucial feature is a uniform bound for each initial size allowance, not merely termination of one chosen sequence.
For finite rooted trees, use rooted-tree homeomorphic embedding: an injective vertex map preserves ancestors and lowest common ancestors, so edges may become paths and distinct branches remain distinct. The root can map to a vertex below the host root. More generally label vertices in a well-quasi-ordering and require each source label to precede its image label. We prove this stronger labelled version of Kruskal's tree theorem, from which the unlabelled result follows by taking one label.
We first need the finite-word closure, and prove it rather than merely invoking Higman lemma. If finite words over were not a well-quasi-ordering under order-preserving subsequence embedding with increased labels, choose a minimal bad sequence , minimizing the length of among words admitting a bad continuation of the already chosen prefix. No is empty. Write by removing its last letter. The perfect subsequence lemma gives with for .
The sequence is still bad. An earlier embedding into a later would embed into , contradicting the original sequence. An embedding of into extends by the last-letter comparison to an embedding of into . Both possibilities are excluded. This contradicts minimality at position , since is shorter. Thus the finite-word closure holds. The perfect subsequence lemma also proves finite product closure: first pass to a nondecreasing subsequence in one coordinate, then in the next, preserving all previous comparisons.
Suppose now that the labelled trees admit a bad sequence . Choose a minimal bad sequence by vertex number. Let be all the proper descendant-rooted subtrees of these trees. We claim that is a well-quasi-ordering. If it had a bad sequence of subtrees , its parent indices can be made strictly increasing, say comes from . Indeed each finite initial collection of parent trees has only finitely many subtrees, and a bad sequence cannot contain infinitely many terms from a finite collection. Passing to a subsequence therefore makes .
Then is bad. A prefix tree embedding into would embed into its parent , contrary to the original badness, and the tail is bad by construction. But has fewer vertices than , contradicting minimality. This proves the claim.
Give the children of each root any fixed order. Its forest of child subtrees is a finite word in . The word theorem and finite product closure show that the pairs consisting of the root label and the child-subtree word are a well-quasi-ordering. Thus some have comparable root labels and an embedding of the child word of into that of . Map the source root to the target root and use the obtained embeddings inside distinct target child subtrees. The paths from the target root into those distinct branches are disjoint except at the root, so this is a label-monotone tree embedding. It contradicts badness. Hence
For Friedman's finite form of Kruskal's theorem, fix . There is such that any trees with contain with . Use indices starting at zero; shifting them only changes . To prove this uniform finite bound, form the finite bad-sequence tree of finite bad prefixes obeying the size bounds. At position there are only finitely many rooted-tree isomorphism types with at most vertices, so every node has finitely many successors.
If no bound existed, this tree would have nodes of arbitrarily large depth. A node with arbitrarily long extensions has a child with arbitrarily long extensions, since it has only finitely many children. Choosing such a child repeatedly produces an infinite branch, as in the König infinity lemma. The branch is an infinite bad tree sequence, contradicting the theorem just proved. Therefore the required exists. The same proof works with any fixed finite label alphabet and any specified size bound finite at each position.
Use the rooted-tree homeomorphic embedding relation: an injective map of vertices preserves lowest common ancestors, so edges may become paths and the source root may map below the target root. We prove the stronger labelled statement for labels in any well-quasi-ordering , with labels increasing under the embedding. Forgetting labels gives Kruskal's tree theorem.
First every infinite sequence in a well-quasi-ordering has an infinite nondecreasing subsequence. Colour its index pairs according as the earlier term is or is not below the later term. Ramsey's theorem gives an infinite constant-colour subsequence; the bad colour would contradict well-quasi-ordering. Applying this successively in each coordinate proves finite product closure of well-quasi-orderings.
We need Higman lemma with its proof. Order finite words over by subsequence embedding with increased letters. If there were a bad sequence, choose one minimally: at each position choose a shortest word admitting a bad continuation of the fixed prefix. No word is empty. Write , separating the last letter, and choose with . Consider
An earlier prefix word cannot embed in a later , since it would then embed in . Nor can embed in : adding the comparable last letters would embed in . Thus the displayed sequence is bad, contradicting minimality at , since is shorter. Finite words over a well-quasi-order are well-quasi-ordered.
Now suppose labelled rooted trees admit a bad sequence , chosen minimally in vertex count at each position. Let consist of all proper rooted subtrees of these trees, rooted at a descendant and containing all its descendants. We claim is well-quasi-ordered. Otherwise take a bad sequence from . Only finitely many subtrees come from any fixed finite prefix of the 's, and a bad sequence cannot repeat an object. Thin it so that comes from with . The sequence
is bad: would imply , since a rooted subtree embeds in its host; comparisons within the 's are excluded by their choice. But is strictly smaller than , contradicting minimality. This proves the claim.
Choose an arbitrary ordering of the children of each . Record its root label and the finite word of rooted child-subtrees:
By Higman lemma and finite product closure, two records, with indices , are comparable. Map the root of to the root of , and map its selected child-subtrees into the distinct selected branches of . Within a branch the embeddings preserve lowest common ancestors; between different branches both lowest common ancestors are the roots. Labels increase everywhere. This gives , contradicting badness. Finite labelled rooted trees are well-quasi-ordered by label-monotone homeomorphic embedding. In particular, this proves the unlabelled theorem. A root-preserving variant follows by giving the root a special incomparable label unavailable at nonroot vertices; the general labelled theorem then forces root to root. Adjacency-preserving embeddings are a different, more restrictive relation and do not satisfy the same assertion.
For Friedman's finite form of Kruskal's theorem, fix and consider finite bad sequences satisfying , with indices starting at . Their prefixes form a finite bad-sequence tree. At each depth there are only finitely many possible unlabelled tree isomorphism types below the size bound, so this tree is finitely branching. If bad sequences existed at every finite length, König infinity lemma would yield an infinite branch, hence an infinite bad sequence of rooted trees, contrary to what was just proved. Therefore
The same proof works with any fixed finite label set. The finite size bounds are what make the bad-prefix tree finitely branching; the proof does not claim a small effective numerical bound.
Use rooted-tree homeomorphic embedding: edges may be stretched into downward paths, different child branches stay disjoint, and the source root may map to any target vertex. Write for this relation. More generally allow labels in a well-quasi-ordering and require every source label to be at most its image label. We prove this labelled version, which includes the unlabelled case by taking one label.
First, every infinite sequence in a well-quasi-ordering has an infinite nondecreasing subsequence. In every infinite set of indices there is an index with infinitely many later successors above its value. Otherwise repeatedly discard the finitely many successors of each chosen index, obtaining a bad sequence. Applying this observation successively within the infinite successor set produces the required subsequence.
We also need the Higman lemma, and prove it here. If finite words over admitted a bad sequence, choose one with each word of least possible length among choices permitting a bad continuation of its fixed prefix. No word is empty. Write , and extract indices with . The sequence
is bad: an earlier embedding into some would embed into , while together with would give . This contradicts the minimal length of , since is shorter. Hence finite words are well-quasi-ordered under subsequence embedding with increased labels.
Now suppose labelled rooted trees admitted a bad sequence , chosen minimally by number of vertices at each successive position. Let consist of all immediate child subtrees of all the , with the inherited labels. We claim is a well-quasi-ordering. Otherwise take a bad sequence of members of . Only finitely many distinct rooted trees occur among the children of any finite initial list of , so, by discarding terms and selecting a subsequence, we may arrange its members to come from strictly increasing parent indices . Then
is bad. A prefix rooted tree embedding into would embed into its parent ; embeddings between the are excluded by their choice. But has fewer vertices than , contradicting minimality. This proves the claim.
List the child subtrees of each in any order. By the Higman lemma these child lists are well-quasi-ordered. Extract an infinite subsequence with nondecreasing root labels, and then compare two child lists on that subsequence. Their subsequence embedding gives distinct target child branches into which the source child subtrees embed. Map the source root to the target root and join each embedded child root to it by the corresponding downward path. The paths are disjoint except at the root, and labels increase. Thus for some , contradicting badness. This proves Kruskal's tree theorem and its labelled version. If root preservation is required, mark the root with a special label incomparable with all ordinary labels; the same proof then forces root to map to root.
For Friedman's finite form of Kruskal's theorem, fix and suppose there are arbitrarily long bad lists satisfying for . Make a finite bad-sequence tree whose nodes are these lists, using one representative of each finite rooted-rooted tree isomorphism type. At each position only finitely many choices satisfy the size bound, so the rooted tree is finitely branching. An infinite path exists: at every stage choose a child having extensions of arbitrarily large length, which must exist because there are finitely many children. The path is an infinite bad sequence, contradicting Kruskal's tree theorem. Therefore
The identical argument works with finitely many labels and any fixed finite size bound at each position.
Use rooted-tree homeomorphic embedding: an injective map of vertices preserves ancestor order and lowest common ancestors, so edges may be stretched into paths and distinct branches remain distinct. The source root may map below the target root. Kruskal's tree theorem asserts that finite rooted trees are well-quasi-ordered by this embedding: every infinite sequence has with . More generally, labels from any well-quasi-ordering may be required to increase under the embedding. This labelled result implies the unlabelled one by using a one-point label set, and also implies the version for unrooted trees by choosing roots arbitrarily.
We first prove the word lemma needed for the tree argument. In a well-quasi-ordering , every infinite sequence has an infinite nondecreasing subsequence. Indeed, some term must be below infinitely many later terms: if no term were, recursively avoiding the finitely many successors dominated by each previously chosen term would produce a bad sequence. Repeat this observation inside the infinite set of later terms dominating the chosen one.
The Higman lemma says that finite words over are well-quasi-ordered by subsequence embedding with letterwise comparison. Suppose otherwise, and choose a minimal bad sequence of words, minimizing length at each position among words admitting a bad continuation of the chosen prefix. No word is empty. Write , separating its last letter. Choose indices on which is nondecreasing. Then
is bad. A comparison from a prefix word into some would give a comparison into in the old bad sequence. A comparison , , together with would give . Both are impossible. But the new continuation uses a shorter word at position , contradicting minimality. This proves the Higman lemma.
Now suppose there were a bad sequence of labelled finite rooted trees. Choose it minimally by number of vertices at each position. Let be the collection of all proper rooted subtrees occurring at vertices other than the roots in these trees. We claim that is well-quasi-ordered. Otherwise take a bad sequence of such subtrees , with a proper subtree of . The indices cannot remain bounded, because finitely many finite trees have only finitely many rooted subtrees, and repetition is a comparison. Pass to a subsequence with strictly increasing . The sequence
is bad: a comparison from an earlier into would compose with the subtree embedding to contradict the original badness. Its other comparisons were excluded already. Since has fewer vertices than , this contradicts minimality, proving the claim.
List each tree's immediate root subtrees in any chosen order. These are finite words over , hence form a well-quasi-ordering by the word lemma. Combine the lists with the root labels. A product of two well-quasi-orders is well-quasi-ordered: pass to an infinite nondecreasing subsequence in the first coordinate and find a comparable pair in the second. Thus two trees have comparable root labels and a subsequence matching of their child lists. Map the first root to the second root and use the matched subtree embeddings in distinct child branches. The resulting injective map preserves labels and lowest common ancestors, giving , the desired contradiction. This proves the full labelled form of Kruskal's tree theorem.
Friedman's finite form of Kruskal's theorem is a uniform finite consequence. For every fixed natural , there is such that any sequence of finite rooted trees satisfying has a comparable pair . It also holds with labels in any fixed finite label set. To prove it, assume no such exists. Form the finite bad-sequence tree whose nodes are bad finite tree sequences satisfying those size bounds, using one representative of each isomorphism type. Each position has finitely many extensions, since there are finitely many labelled tree types of each bounded size. By assumption this finitely branching tree has nodes at every finite height. The König infinity lemma supplies an infinite branch, which is an infinite bad sequence of trees, contradicting the theorem just proved. Hence
Likewise, using fixed labels with the bound for gives the customary finite labelled tree form. Only existence of its finite bound is claimed here, not a small numerical estimate.
For finite rooted trees write when there is an injective function of vertices preserving greatest common ancestors, equivalently an infimum-preserving rooted-tree homeomorphic embedding. No linear ordering of siblings is imposed. Kruskal's tree theorem says that every infinite sequence has an earlier tree embedding into a later tree: this embedding relation is a well-quasi-ordering.
The finite form uses a parameter to restrict the growth of the trees. It asserts the existence of a length for which
Here is the number of vertices. The parameter is universally quantified; changing the starting index just shifts the parameter. This is Friedman's finite form of Kruskal's theorem.
Fix and suppose there were arbitrarily long sequences violating the conclusion. Form a tree whose nodes are their finite prefixes, including the empty prefix. Choose one representative of each finite rooted-tree isomorphism type. At position there are only finitely many choices, since the tree has at most vertices. Hence this finite bad-sequence tree is finitely branching. It has nodes at arbitrarily large heights by the supposed failure of the finite form. König infinity lemma supplies an infinite branch. The branch is an infinite sequence satisfying the size bounds and with no pair having , contradicting Kruskal's tree theorem. Therefore the finite length exists for every .
The significance is that this is a true statement about finite objects and natural numbers which is not provable in Peano arithmetic; in fact it is not provable in the stronger arithmetical transfinite recursion theory in second-order arithmetic, . It is a natural combinatorial instance of incompleteness. For fixed , the condition can be checked by finite search over trees and injective vertex maps, so its uniform arithmetic form is with a computable, indeed primitive recursive, predicate . Thus its least sufficient length is a total computable function, but its totality cannot be proved in those theories. Each fixed numerical instance can nevertheless be proved in Peano arithmetic by verifying some particular finite witness. The obstruction concerns the uniform statement for all parameters, rather than the decidability of any one finite search.