Finding the set of leaves for an unbounded tree is a nontrivial process in both the Weihrauch and reverse mathematics settings. Despite this, many combinatorial principles for trees are equivalent to their restrictions to trees with leaf sets. For example, let denote the problem of choosing which trees in a sequence are well-founded, and let denote the problem of finding the perfect kernel of a tree. Let and denote the restrictions of these principles to trees with leaf sets. Then , , , and are all equivalent to over , and all strongly Weihrauch equivalent.
The first section of this paper shows that for unbounded trees, finding leaf sets is a nontrivial process. The second section describes an algorithm for transforming trees into trees with leaf sets in such a way that properties related to infinite paths and perfect subtrees are preserved. The main equivalence results are presented in this section. The paper closes with a section containing an application to hypergraphs, where the use of a combinatorial principle restricted to sequences of trees with leaf sets is central to the proof of a Weihrauch equivalence.
All relevant background information on reverse mathematics can be found in Simpson’s text [7]. For background on Weihrauch analysis, see the work of Brattka, Gherardi, and Pauly [3].
Leaf sets
In second order arithmetic settings, a tree is encoded by a set of finite sequences of natural numbers that is closed under initial subsequences. For any finite sequence σ, let denote the length of σ. A leaf in a tree is a sequence that has no extensions in the tree. For a tree T, let denote the set of leaves of T. A function is a bounding function for T if for every and for every , . If a tree T has a bounding function, little set comprehension is required to calculate .
If b is a bounding function for the tree T, thenexists.
Working in , the sequence σ is a leaf of T if and only if and for each we have . Thus, the set is computable using T and b as parameters, and exists by recursive comprehension. □
Let denote the Weihrauch problem that accepts a tree T and a bounding function b as inputs and outputs the set . For a bounded tree, the preceding proof describes a process for computing the leaf set. Consequently, is at the lowest level of the Weihrauch hierarchy, as stated in the following proposition.
and.
Finding leaf sets for trees without bounding functions is nontrivial. The formulation of parallelized in the next proposition is the one preceding Theorem 6.7 of Brattka, Gherardi, and Pauly [3], and the Boolean negation of Definition 2.6 of Brattka and Gherardi [2].
The following are equivalent.
.
For every tree T, the setexists.
: Ifis a sequence of sequences of natural numbers, then there is a functionsuch that for each i,if and only if.
We will work in throughout the proof. To see that (1) implies (2), note that if and only if and . Thus arithmetical comprehension proves the existence of .
To see that (2) implies (3), assume (2) and let be an instance of . Consider the tree T constructed from as follows. Every finite sequence of ones is in T. For each the sequence consisting of ones followed by a zero is in T. The sequence is in T if and only if and . The set of sequences T exists by recursive comprehension and is a tree because it is closed under initial segments. Apply (2) to find . The function defined by if and only if exists by recursive comprehension and is a solution of the instance of .
To complete the proof, by Lemma III.1.3 of Simpson [7], it suffices to use (3) to find the range of an injection. Let be an injection. By recursive comprehension, we can find the sequence defined by if , and otherwise. Apply (3) to find z such that if and only if . Then the set is the range of f, is computable from z, and so exists by recursive comprehension. □
By virtue of our circuitous reverse mathematics treatment, we can easily prove the related Weihrauch reducibility result. Let denote the problem that accepts a tree T as input and outputs the leaf set .
.
The proof that (2) implies (3) for Proposition 3 also shows that . To prove the reverse relation, fix T and let be an enumeration of the sequences in T. For each i, let if and let otherwise. If z is a solution to this instance of , then it is also a characteristic function for . □
Transforming trees
As shown in the previous section, finding the leaf set for an arbitrary tree is a nontrivial process in both the reverse mathematics and Weihrauch settings. However, in many cases it is possible to uniformly transform trees into trees with leaf sets while preserving many Weihrauch equivalences and equivalence theorems of reverse mathematics. The transformation can be defined using the following operations on finite sequences. For every , let denote the sequence with exactly the same length as σ such that for all , . For example, . Similarly, define so that . Our main tree transformation is as defined in the following theorem. Naïvely, is created by adding 1 to every node of T and attaching a leaf labeled 0 to each positive node.
Supposeis a tree. The following are also trees:,, and. Furthermore, given a sequence, we can find the sequence.
Working in , it is easy to use recursive comprehension to prove the existence of the sets , , and . The initial segments of the shifts and are the shifts of initial segments of σ, so and are trees. A proper initial segment of a sequence in the set is an initial segment of an element of , so is also a tree.
To complete the proof, suppose is a sequence of trees. For each i, if and only if every element of σ is positive and , or , every digit of τ is positive, and . Thus recursive comprehension implies that exists. For each i, the sequence if and only if and the last entry of σ is 0. Thus can prove that the sequence of pairs exists. □
The trees T and share many properties. Information about paths and subtrees of one can be uniformly transformed to information about the other. As described in Definition I.6.6 of Simpson [7], a subtree S of T is perfect if every sequence in S has incompatible extensions in S. The perfect kernel of T is the union of all the perfect subtrees of T.
A tree T and the transformsatisfy the following.
T is well-founded if and only ifis well-founded.
T has at most one path if and only ifhas at most one path.
S is a perfect subtree of T if and only ifis a perfect subtree of.
K is the perfect kernel of T if and only ifis the perfect kernel of.
Each part follows from the fact that the map taking σ to is a bijection between the paths of T and those of and also between the perfect subtrees of T and those of . □
The next two theorems list familiar equivalences for tree statements that continue to hold when restricted to trees with leaf sets. For both proofs, the central tool is the transformation from T to . In the following theorem, the labels used for the combinatorial principles are consistent with those used for the associated Weihrauch problems by Kihara, Marcone, and Pauly [6].
The following are equivalent.
.
The separation principle: For anyformulasandcontaining no free occurrences of Z, if, then
: Ifandare sequences of trees such that for each i, at most one ofandhas an infinite path, then there is a set Z such that for all n,has an infinite path impliesandhas an infinite path implies.
: Item (
3
) forand, sequences of trees with leaf sets.
: Ifis a sequence of trees each with at most one infinite path, then there is a set Z such that for all n,if and only ifhas an infinite path.
: Item (
5
) for sequences of trees with leaf sets.
: If T has uncountably many paths then T has a non-empty perfect subtree.
The equivalence of (1) and (2) is Theorem V.5.1 of Simpson [7]. The existence of an infinite path in a tree can be written as a formula, so (2) implies (3). To prove the converse, use a bootstrapping argument, proving from (3) by creating a sequence of pairs of linear trees that compute the range of an injection. Then use and (3) to derive (2) by an application of Lemma 3.14 of Friedman and Hirst [5]. The equivalence of (5) and (1) is Theorem V.5.2 of Simpson [7], and the equivalence of (7) and (1) is Theorem V.5.5 of Simpson [7]. Item (4) is a restriction of (3), so (3) implies (4) trivially. The converse is an immediate consequence of Theorem 6. Similarly, (5) and (6) are equivalent, as are (7) and (8). □
To avoid confusion with the subsystem , in following theorem we use as a label for the combinatorial principle denoted by in the article of Kihara, Marcone, and Pauly [6]. Note that is the infinite parallelization of the principle , that takes a tree as an input and outputs a 1 if the tree is well-founded and a 0 otherwise.
The following are equivalent:
: Ifis aformula, then there is a set Z such that for all n,if and only if.
: Ifis a sequence of trees, then there is a set Z such that for all n,if and only if T has no infinite path.
: Item (
2
) for sequences of trees with leaf sets.
The equivalence of (1) and (2) is Theorem VI.1.1 of Simpson [7]. The equivalence of (1) and (4) is Theorem VI.1.3 of Simpson [7]. The restriction (3) follows trivially from (2), and the converse follows immediately from Theorem 6. By a similar argument, (4) and (5) are equivalent. □
We now turn to the Weihrauch analogs of the preceding results. The main tool is the computability theoretic version of Lemma 5.
There is a uniformly computable map from trees T to, and invertible uniformly computable maps from T toand. Also, there is a computable functional mapping sequences of treesto.
The processes described at the beginning of the section are uniformly computable, and for and , uniformly computably invertible. Leaf sets are uniformly computable for trees of the form . □
The following Weihrauch analog of Theorem 7 is based on the results of Kihara, Marcone, and Pauly [6].
. Also, the following principles are strongly Weihrauch equivalent:,,, and.
The equivalences between the statements and the versions restricted to trees with leaf sets follow from Lemma 9 and Theorem 6. The equivalence of and is included in Theorem 3.11 of Kihara, Marcone, and Pauly [6], while follows from their Corollary 3.7, Theorem 3.11, and Proposition 6.4 [6]. □
We close the section with the Weihrauch analog of Theorem 8.
. Also, the following four principles are strongly Weihrauch equivalent:,,, and.
The equivalences , , and all follow immediately from Lemma 9 and Theorem 6. It suffices to show that .
To see that , let be a sequence of trees, the input for . For sequences σ and τ with , let denote the sequence consisting of alternating entries of σ and τ. Thus for σ and τ of length , . Define the tree T by including the following sequences:
for each , and
if , , and τ is a binary sequence of length n, then and the initial segment of omitting the last element is also in T.
The tree T is uniformly computable from the sequence . If has an infinite path p, then for every binary sequence τ, all initial segments of are in T. In this case, there is a perfect subtree of T above , so is in the perfect kernel of T. If is well-founded, then the subtree of extensions of in T is also well-founded, so no perfect subtree of T contains . Thus, if K is a perfect kernel for T, then is well-founded if and only if . Summarizing, is the desired output for .
To see that , let T be an input tree for . In the following, we freely conflate finite sequences with their natural number codes. For each finite sequence σ, we define the tree . If , then is empty. If , then define as follows:
, and
if , and for each , and are incompatible extensions of in T, then
The sequence (which can be viewed as ) is uniformly computable from T. For each finite sequence σ, has an infinite path if and only if σ is contained in a perfect subtree of T. Let Z be a solution of for . Then , and is the perfect kernel of T. □
An application
This section presents a Weihrauch analysis closely related to Theorem 6 of Davis, Hirst, Pardo, and Ransom [4]. A hypergraph consists of a set of vertices and a set of edges , where each edge in E is a set of vertices. For hypergraphs, an edge can be a set of any cardinality. If every edge of a hypergraph has cardinality exactly 2, then H is a graph. A k-coloring of a hypergraph is a function . A k-coloring is called proper if every edge with at least two vertices contains vertices of different colors. Let be the problem that accepts a hypergraph H as input, outputs 1 if H has a proper k-coloring, and outputs 0 otherwise.
The second part of the proof of the following theorem applies a leaf management result from the preceding section.
For all,.
To see that , let be a hypergraph input for . In the following, we freely conflate vertices and finite collections of vertices with their integer codes. Build a tree T by including sequences satisfying the following conditions for each .
If , then is a set of two vertices in edge , or is a code for ∅ and does not contain a pair of vertices in the list .
If , then . We view this as a color for .
The partial coloring of H given by the odd entries of σ uses distinct colors on the pairs of vertices listed in the even entries.
The odd entries of any infinite path in T encode a proper k-coloring of H. Also, any proper k-coloring of H can be used to define an infinite path through T. (If H has no edges of cardinality less than 2, an infinite path can be uniformly computed from any proper coloring, but this is not necessary for the current argument.) Thus, is 1 for H if and only if is 0 for T.
By Theorem 11, , so to complete the proof it suffices to show that . We will prove this for and indicate how to modify the argument for larger values of k.
Let T be an input for , that is, a tree with a leaf set. Emulating the construction from the proof of Theorem 6 of Davis et al. [4], define a hypergraph H as follows. The vertices of H include the five vertices plus two vertices labeled and for each sequence . The edges of H consist of
, , , and ,
for every nonempty ,
if σ is a leaf of T,
if is not a leaf, and
.
H is uniformly computable from T and its leaf set. Note that the leaf set is used in the third and fourth bullets. H has a proper 2-coloring if and only if T has an infinite path. For details, see the proof of Theorem 6 of [4]. Thus . To prove the reduction for larger values of k, modify the construction by adding a complete subgraph on vertices to H and connecting each of its vertices to every vertex of H with an edge consisting of two vertices. □
Parallelization yields the Weihrauch analog of part of the reverse mathematical Theorem 6 of Davis et al. [4].
For,.
Fix k. By Theorem 12, , so by Proposition 3.6 part (3) of Brattka, Gherardi, and Pauly [3], □
The arguments used in Theorem 6 of [4] can be used to extend Theorem 12 and Corollary 13 to conflict-free colorings.
Footnotes
Acknowledgements
A talk related to this paper was presented at Dagstuhl Seminar 18361, organized by Vasco Brattka, Damir Dzhafarov, Alberto Marcone, and Arno Pauly, and held September 2–7 of 2018 at Schloss Dagstuhl, the Leibniz-Zentrum für Informatik []. The author’s travel to the seminar was supported by a Board of Trustees travel grant from Appalachian State University.
References
1.
V.Brattka, D.Dzhafarov, A.Marcone and A.Pauly, Measuring the complexity of computational content: From combinatorial problems to analysis (Dagstuhl Seminar 18361), Dagstuhl Reports8 (2018), to appear.
2.
V.Brattka and G.Gherardi, Effective choice and boundedness principles in computable analysis, Bull. Symbolic Logic17(1) (2011), 73–117. ISSN 1079-8986. doi:10.2178/bsl/1294186663.
3.
V.Brattka, G.Gherardi and A.Pauly, Weihrauch complexity in computable analysis, 2017, 50+xi pages, arXiv:1707.03202.
4.
C.Davis, J.Hirst, J.Pardo and T.Ransom, Reverse mathematics and colorings of hypergraphs, Arch. Math. Logic (2018). doi:10.1007/s00153-018-0654-z.
5.
H.Friedman and J.Hirst, Weak comparability of well orderings and reverse mathematics, Ann. Pure Appl. Logic47(1) (1990), 11–29. ISSN 0168-0072. doi:10.1016/0168-0072(90)90014-S.
6.
T.Kihara, A.Marcone and A.Pauly, Searching for an analogue of ATR0 in the Weihrauch lattice, 2018, 35 pages, arXiv:1812.01549.
7.
S.G.Simpson, Subsystems of Second Order Arithmetic, Perspectives in Logic, 2nd edn, Cambridge University Press, Cambridge; Association for Symbolic Logic, Poughkeepsie, NY, 2009, p. 444. ISBN 978-0-521-88439-6. doi:10.1017/CBO9780511581007.