1 Introduction

A Borel graph \(\mathcal {G}\) is a pair (XE), where X is a Polish space and \(E \subset X^2\setminus \{(x,x):x \in X\}\) is a symmetric Borel set. The elements of X are called vertices, while the pairs in E are called edges.

The study of Borel graphs and generalizations of classical graph theoretic notions to this context is a flourishing field. One of the most natural such notions is the so called Borel chromatic number introduced in [12]. For \(n \in \{1,2,\dots ,\aleph _0\}\) a Borel graph \(\mathcal {G}=(X,E)\) is said to have a Borel chromatic number n, in notation \(\chi _B(\mathcal {G})=n\), if n is minimal such that there exists a Borel n-coloring of \(\mathcal {G}\), that is, there exist a Polish space Y and a Borel map \(c:X \rightarrow Y\) so that xEy implies \(c(x) \not =c(y)\) and the size of the image of c is n. If \(\chi _B(\mathcal {G}) \not \le n\) for every \(n \in \{1,2,\dots ,\aleph _0\}\) then we say that \(\mathcal {G}\) has uncountable Borel chromatic number.

How can the Borel chromatic number of a graph be decided? An obvious lower bound can be given if it contains a copy of a graph with a known Borel chromatic number. More precisely, we say that \(\mathcal {H}\) is Borel below \(\mathcal {G}\), or \(\mathcal {H} \le _B \mathcal {G}\), if there exists a Borel map f from the vertex set of \(\mathcal {H}\) to the vertex set of \(\mathcal {G}\) that takes edges to edges. If moreover, f is a bijection and takes non-edges to non-edges as well, then \(\mathcal {H}\) is said to be Borel isomorphic to \(\mathcal {G}\). It is clear that \(\mathcal {H} \le _B \mathcal {G}\) implies \(\chi _B(\mathcal {H}) \le \chi _B(\mathcal {G})\).

Kechris, Solecki and Todorčević [12] characterized the graphs that have an uncountable Borel chromatic number proving the so called \(\mathbb {G}_0\) dichotomy, that is, showing that there exists a Borel graph, called \(\mathbb {G}_0\), so that a Borel graph \(\mathcal {G}\) has uncountable Borel chromatic number if and only if \(\mathbb {G}_0 \le _B \mathcal {G}\). This dichotomy has plenty of applications, for instance, it implies a large collection of dichotomies in descriptive set theory, see, e.g., [16].

Thus, it is very natural to ask, whether there exists an analogue of this dichotomy for graphs with infinite Borel chromatic number. The simplest nontrivial examples of graphs with countably infinite Borel chromatic number are the graphs defined by functions: let \(f:X \rightarrow X\) be a Borel map, define \(\mathcal {G}_f=(X,E_f)\) by \(xE_fy \iff x \not = y\) and \((f(x)=y\) or \(f(y)=x)\). It is not hard to see that for any f we have \(\chi _B(\mathcal {G}_f) \le \aleph _0\), see [12, Proposition 4.5].

One of the most interesting instances of graphs of this sort is the shift graph, \(\mathcal {G}_\mathcal {S}\), on \([\mathbb {N}]^\mathbb {N}\) (the collection of infinite subsets of the natural numbers with the topology inherited from \(\mathbb {N}^\mathbb {N}\)). Define the shift map by \(\mathcal {S}(x)=x\setminus \{\min x\}\) and let \(\mathcal {G}_\mathcal {S}=([\mathbb {N}]^\mathbb {N}, E_\mathcal {S})\). As mentioned above \(\chi _B(\mathcal {G}_\mathcal {S}) \le \aleph _0\). Typically, giving a lower estimate on a Borel graph’s chromatic number goes through an argument that uses the Baire category theorem (e. g., the graph \(\mathbb {G}_0\)), measure and ergodic theory (see [4]) or the Borel determinacy theorem (see [15]). In our case, the lower estimate uses an infinite dimensional analogue of the Ramsey theorem, namely the Galvin–Prikry theorem. It states that for any finite cover of \([\mathbb {N}]^\mathbb {N}\) by Borel sets \(B_0,\dots ,B_n\) there exists an \(i \le n\) and an \(x \in [\mathbb {N}]^\mathbb {N}\) so that \([x]^\mathbb {N}\subset B_i\), in other words, all infinite subsets of x are contained in \(B_i\). This of course implies \(\chi _B(\mathcal {G}_\mathcal {S})=\aleph _0\). The Galvin-Prikry theorem (in a sense that can be made precise, see [24, 25]) is somewhat weaker than the Borel determinacy theorem and thus the proof of \(\chi _B(\mathcal {G}_\mathcal {S})=\aleph _0\) potentially can be considered as an example of a fourth kind.

Since \(\mathcal {G}_\mathcal {S}\) is in some sense rather small (e.g. it is locally finite) but still has infinite Borel chromatic number and certain universality properties, one might wonder whether a graph \(\mathcal {G}\) has infinite Borel chromatic number if and only if \(\mathcal {G}_\mathcal {S} \le _B \mathcal {G}\). Unfortunately, it is not hard to see that that the answer to this question is negative: the direct sum for \(n \in \mathbb {N}\) of the complete finite graphs on n vertices is a counterexample. Another, much more general example to the failure of this type of basis results has been given by Conley and Miller [5].

After this, there are several natural ways to proceed.

Firstly, we could restrict ourselves to a smaller class of graphs, and hope for a basis result in that class. For instance, Kechris, Solecki and Todorčević asked whether being Borel above \(\mathcal {G}_\mathcal {S}\) characterizes the graphs with infinite Borel chromatic number of the form \(\mathcal {G}_f\)? Or, it is also natural to consider the structure of the Borel/closed subgraphs of the shift graph: for a Borel graph \(\mathcal {G}=(X,E)\) and \(B \subset X\) let us denote by \(\mathcal {G}|_B\) the graph \((X,E \cap B^2)\).

Question 1.1

Let \(C \subset [\mathbb {N}]^\mathbb {N}\) be a closed set.

  1. (1)

    Is it true that \(\chi _B(\mathcal {G}_\mathcal {S}|_C)=\aleph _0\) if and only if there exists an \(x \in [\mathbb {N}]^\mathbb {N}\) with \([x]^\mathbb {N}\subset C\)?

  2. (2)

    Is it true that \(\chi _B(\mathcal {G}_\mathcal {S}|_C)=\aleph _0\) if and only if \(\mathcal {G}_\mathcal {S} \le _B \mathcal {G}_\mathcal {S}|_C\)?

A negative answer to question (1) has been given by Di Prisco and Todorčević [6] (see also [11, 4(E)] for a simple counterexample). Moreover, it has been shown recently by Pequignot [19] that (2) is false as well.

Secondly, one could hope for a different graph, or a countable basis instead of a one element basis:

Question 1.2

(Kechris, Marks [11, Problem 4.23]) Is there a sequence \((\mathcal {G}_n)_{n \in {\mathbb {N}}}\) of Borel graphs with \(\chi _B(\mathcal {G}_n)<\aleph _0\) and \(\chi _B(\mathcal {G}_n)\) unbounded such that for every Borel graph \(\mathcal {H}\) with infinite Borel chromatic number and for every n we have that \(\mathcal {G}_n \le _B \mathcal {H}\)?

It follows from our results that the answer to all of these questions is negative. Roughly speaking, positive basis results typically imply that the complexity of the collection of the Borel graphs with infinite Borel chromatic number (with an appropriate coding) is low and we will show that this is not the case, even for the closed subgraphs of \(\mathcal {G}_\mathcal {S}\). Note that for such graphs having infinite Borel chromatic number is equivalent to having Borel chromatic number \(\ge 4\), see [12, Theorem 5.1]. In [2], Carroy, Miller, Schrittesser and the second author characterized the graphs with Borel chromatic number \(\ge 3\) similarly to the \(\mathbb {G}_0\) dichotomy: it is shown that there exists a Borel graph, called \(\mathbb {G}_{odd}\), having the property that for every Borel graph \(\mathcal {G}\) we have \(\chi _B(\mathcal {G}) \ge 3\) if and only if \(\mathbb {G}_{odd} \le _B \mathcal {G}\). Hence we obtain a complete description of the characterizability of the Borel chromatic numbers of graphs in terms of simple bases. These results reinforce the experience from the classical case of finite graphs, namely, that it is strictly more complicated to decide whether a graph has chromatic number \(\ge n\) than to check whether a given coloring is correct for every n, except if \(n \le 3\).

Now we formulate the precise statement of our results. A family \(\mathcal {A}\) of Borel graphs is called \(\varvec{\Sigma }^1_1\)-parametrizable if there exist Polish spaces XY and a \(\varvec{\Sigma }^1_1\) set \(E \subset X \times Y^2\) so that for any \(\mathcal {G} \in \mathcal {A}\) there exists an \(x \in X\) with \(\mathcal {G}\) being Borel isomorphic to \((Y,\{(y,z):(x,y,z)\in E\})\) and the set \(\{x:(Y,\{(y,z):(x,y,z)\in E\}) \text { is Borel isomorphic to some graph in }\mathcal {A}\}\) is \(\varvec{\Sigma }^1_1\). Recall that a subset A of a Polish space X is \(\varvec{\Sigma }^1_2\)-hard, if for any Polish space \(X'\) and \(A'\) \(\varvec{\Sigma }^1_2\) subset of \(X'\) there exists a Borel map, called a reduction, \(f:X' \rightarrow X\) with \(x' \in A' \iff f(x') \in A\) for every \(x'\in X'\). A \(\varvec{\Sigma }^1_2\)-hard set that is \(\varvec{\Sigma }^1_2\) is called \(\varvec{\Sigma }^1_2\)-complete. Now we are ready to state our main result.

Theorem 1.3

The collection of closed sets \(C \subset [\mathbb {N}]^\mathbb {N}\) so that \(\chi _B(\mathcal {G}_\mathcal {S}|_C)<\aleph _0\) (or, equivalently, \(\chi _B(\mathcal {G}_\mathcal {S}|_C)\le 3\)) is \(\varvec{\Sigma }^1_2\)-complete. Consequently, there exists no sequence of \(\varvec{\Sigma }^1_1\)-parametrizable collections of graphs \((\mathcal {A}_n)_{n \in \mathbb {N}}\) so that for every \(C \subset [\mathbb {N}]^\mathbb {N}\) closed set \(\chi _B(\mathcal {G}_\mathcal {S}|_C)\ge \aleph _0\) if and only if there exist an increasing sequence \((n_i)_{i\in \mathbb {N}}\) and \(A_{n_i} \in \mathcal {A}_{n_i}\) with \(A_{n_i} \le _B \mathcal {G}_\mathcal {S}|_C\). In particular, there is no one element basis, or countable basis in the sense of Question 1.2.

Let us point out that Pequignot also used complexity to answer (2) of Question 1.1. His argument is built on a result of Marcone [14], who proved that the set of quasi-orders that are better quasi-orders (bqos) is \(\varvec{\Pi }^1_2\)-complete, that is, its complement is \(\varvec{\Sigma }^1_2\)-complete (bqos were defined by Nash-Williams [18], they form a particularly well behaving class of quasi-orders, see also [13, Chapter 9] and [20].) Pequignot’s proof proceeds by showing that there is a reduction from bqos to the family of closed sets \(C \subset [\mathbb {N}]^\mathbb {N}\) for which \(\mathcal {G}_\mathcal {S} \not \le _B \mathcal {G}_\mathcal {S}|_C\) holds. This implies that the collection \(\{C\subset [\mathbb {N}]^\mathbb {N}:C \text { is closed, } \mathcal {G}_\mathcal {S} \le _B \mathcal {G}_\mathcal {S}|_C\}\) is \(\varvec{\Sigma }^1_2\)-complete. As the set \(\{C\subset [\mathbb {N}]^\mathbb {N}:C \text { is closed, } \chi _B(\mathcal {G}_\mathcal {S}|_C)=\aleph _0\}\) is \(\varvec{\Pi }^1_2\) these sets must be distinct, i. e., the answer to (2) of Question 1.1 is negative.

On the positive side, we show that closed subgraphs of the shift with infinite Borel chromatic number form a basis for Borel subgraphs with infinite Borel chromatic number. In a sense, this answers [11, Problem 4.22].

Theorem 1.4

Let \(B \subset [\mathbb {N}]^\mathbb {N}\) be a Borel set. There exists a closed set \(C \subset [\mathbb {N}]^\mathbb {N}\) and a continuous, shift-invariant injection \(\Psi :C \rightarrow B\), so that \(\Psi ^{-1}\) is also shift-invariant and \(\chi _B(\mathcal {G}_\mathcal {S}|_{C})=\chi _B(\mathcal {G}_\mathcal {S}|_{B})\). If B is closed under the shift map, then \(\Psi \) can be taken to be a bijection.

In order to prove the complexity result we isolate a general theorem about the complexity of certain families of sets. Suppose that we are given a family \(\mathcal {F}^\Phi \) of subsets of a Polish space X coming from a map \(\Phi \) that assigns to each set in \(\mathcal {F}^\Phi \) the set of the witnesses of being in \(\mathcal {F}^\Phi \) (e.g. the codes of the possible finite colorings). Suppose moreover that we put sets from \(\mathcal {F}^\Phi \) “next to each other” i. e., consider a Borel set \(B \subset {\mathbb {N}}^{\mathbb {N}}\times X\) and we are interested whether the sections of B are in \(\mathcal {F}^\Phi \) uniformly, that is, whether we can find witnesses of being in \(\mathcal {F}^\Phi \) in a Borel way (we will see later that in the case of graph colorings this is precisely equivalent to the existence of a finite coloring of the graph obtained by putting the graphs \(B_s\) “next to each other”). How hard is it to decide the existence of such a uniform selection? Our general theorem says that if the family \(\mathcal {F}^\Phi \) is complicated enough then it is \(\varvec{\Sigma }^1_2\)-hard. (In our case, this will follow from the observations that non-dominating sets are complicated and that \(\chi _B(G_\mathcal {S}|_B) \le 3\) holds if B is a non-dominating Borel set).

Now we make the above idea precise. Let XY be uncountable Polish spaces, \({\varvec{{\Gamma }}}\) be a class of Borel sets and \(\Phi :{\varvec{{\Gamma }}}(X) \rightarrow {\varvec{{\Pi }}}^1_1(Y)\) be a map. Define \(\mathcal {F}^{\Phi }\subset {\varvec{{\Gamma }}}(X)\) by \(A \in \mathcal {F}^{\Phi } \iff \Phi (A) \not = \emptyset \) and let the uniform family, \(\mathcal {U}^{\Phi }\), be defined as follows: for \(B \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\) let

$$\begin{aligned} {\bar{\Phi }}(B)=\left\{ (s,y) \in \mathbb {N}^\mathbb {N}\times Y:y \in \Phi \left( B_s\right) \right\} , \end{aligned}$$

and

$$\begin{aligned} B \in \mathcal {U}^{\Phi } \iff {\bar{\Phi }}(B) \text { has a full Borel uniformization} \end{aligned}$$

(that is, it contains the graph of a Borel function \(\mathbb {N}^\mathbb {N}\rightarrow Y\)).

A family \(\mathcal {F}\) of subsets of a Polish space X is said to be \({\varvec{{\Sigma }}}^1_1\) (resp. \(\varvec{\Sigma }^1_2\))-hard on \({\varvec{{\Gamma }}}\), if there exists a set \(B \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\) so that the set \(\{s \in \mathbb {N}^\mathbb {N}:B_s \in \mathcal {F}\}\) is \({\varvec{{\Sigma }}}^1_1\) (resp. \(\varvec{\Sigma }^1_2\))-hard. One would be tempted to think that the fact that \(\mathcal {F}^\Phi \) is \({\varvec{{\Sigma }}}^1_1\)-hard on \({\varvec{{\Gamma }}}\) is sufficient for proving the \(\varvec{\Sigma }^1_2\)-hard on \(\varvec{\Gamma }\)-ness of the family \(\mathcal {U}^{\Phi }\). Unfortunately, this is not the case (at least under the axiom of constructibility), see Remark 3.3. On the positive side, the typical way of proving that \(\mathcal {F}^\Phi \) is \({\varvec{{\Sigma }}}^1_1\)-hard is to start with a given \(A \in {\varvec{{\Sigma }}}^1_1(\mathbb {N}^\mathbb {N})\) and find a closed set \(D \subset \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\) with \(A={{\,\mathrm{proj}\,}}_0(D)\). Now, one constructs a set \(B \subset \mathbb {N}^\mathbb {N}\times X\) so that \(B_s \in \mathcal {F}^\Phi \) iff \(s \in A\) and this is witnessed by every element of the set \(D_s\), i. e., \(D_s \subset \Phi (B_s)\). The following definition encompasses this situation.

Definition 1.5

The family \(\mathcal {F}^{\Phi }\) is said to be nicely \({\varvec{{\Sigma }}}^1_1\)-hard on \({\varvec{{\Gamma }}}\) if for every \(A \in {\varvec{{\Sigma }}}^1_1(\mathbb {N}^\mathbb {N})\) there exist sets \(B \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\) and \(D \in {\varvec{{\Sigma }}}^1_1(\mathbb {N}^\mathbb {N}\times Y)\) so that \(D \subset {\bar{\Phi }}(B)\) and for all \(s \in \mathbb {N}^\mathbb {N}\) we have

$$\begin{aligned} s \in A \iff D_s \not = \emptyset \iff \Phi \left( B_s\right) \not = \emptyset \ \left( \ \iff B_s \in \mathcal {F}^\Phi \right) . \end{aligned}$$

We are ready to state our theorem.

Theorem 1.6

Let XY be uncountable Polish spaces, \({\varvec{{\Gamma }}}\) be a class of subsets of Polish spaces which is closed under continuous preimages, finite unions and intersections and \(\varvec{\Pi }^0_1 \cup \varvec{\Sigma }^0_1 \subset {\varvec{{\Gamma }}}\). Suppose that \(\Phi :{\varvec{{\Gamma }}}(X) \rightarrow \varvec{\Pi }^1_1(Y)\) is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\) (see Definition 2.4) and that \(\mathcal {F}^\Phi \) is nicely \({\varvec{{\Sigma }}}^1_1\)-hard on \({\varvec{{\Gamma }}}\). Then the family \(\mathcal {U}^\Phi \) is \(\varvec{\Sigma }^1_2\)-hard on \({\varvec{{\Gamma }}}\).

The paper is organized as follows. First we start with summarizing the most important facts and notations used in the proofs. Then in Section 3 we prove Theorem 1.6. In Section 4 we apply this result to calculate the complexity of the collection of closed subgraphs of the shift graph and also show Theorem 1.4. Finally, in the last section we discuss a counterexample to the \(\Delta ^1_1\) version of Hedetniemi’s conjecture and finish with a couple of open problems.

2 Preliminaries and notations

For the collection of finite, (resp. infinite) sequences of elements of a set A the notations \(A^{<\mathbb {N}},\) (resp. \(A^{\mathbb {N}}\)) will be used, while the family of countably infinite subsets of A is denoted by \([A]^{\mathbb {N}}\). If \(x \in A^{\mathbb {N}}\) and \(n \in \mathbb {N}\) then \(x|_n\) will stand for the sequence \((x(i))_{i<n}\).

Suppose that \(C \subset X_0 \times \dots \times X_n\) for some sets \(X_0,\dots , X_n\). For an \(i \le n\) and \((x_0,\dots ,x_i) \in X_0 \times \dots \times X_i\) as usual \(C_{(x_0,\dots ,x_i)}\) will stand for \(\{(x_{i+1},\dots ,x_n):(x_0,\dots ,x_n)\in C\}\), the vertical section of C determined by \((x_0,\dots ,x_i)\). We also use the analogous notation for mappings defined on product spaces. \({{\,\mathrm{proj}\,}}_i\) stands for the projection map \({{\,\mathrm{proj}\,}}_i: X_0 \times \dots \times X_n \rightarrow X_i\).

The standard notations \(\varvec{\Pi }^0_1(X)\), \({\varvec{{\Delta }}}^1_1(X)\), \({\varvec{{\Sigma }}}^1_1(X), \dots \) will be used for the collection of subsets of X that are closed, Borel, analytic, etc. A coding of the Borel sets with nice properties has to be fixed, let \(\mathbf {BC}(X)\) be a set of Borel codes and sets \(\mathbf {A}(X)\) and \(\mathbf {C}(X)\) with the properties summarized below:

Fact 2.1

(see [17, 3.H])

  • \(\mathbf {BC}(X) \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N})\), \(\mathbf {A}(X) \in {\varvec{{\Sigma }}}^1_1(\mathbb {N}^\mathbb {N}\times X)\), \(\mathbf {C}(X) \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times X)\),

  • for \(c\in \mathbf {BC}(X)\) and \(x \in X\) we have \((c,x) \in \mathbf {A}(X) \iff (c,x) \in \mathbf {C}(X)\),

  • if P is a Polish space and \(B \in {\varvec{{\Delta }}}^1_1(P \times X)\) then there exists a Borel map \(f:P \rightarrow \mathbb {N}^\mathbb {N}\) so that \({{\,\mathrm{ran}\,}}(f) \subset \mathbf {BC}(X)\) and for every \(p \in P\) we have \(\mathbf {A}(X)_{f(p)}=B_p\).

Similarly, there exists a so called good universal closed set for every Polish space as well:

Fact 2.2

( [17, 3.H]) There exists a closed set \(U^{\varvec{\Pi }^0_1} \in \varvec{\Pi }^0_1(\mathbb {N}^\mathbb {N}\times X)\) so that if P is a Polish space and \(C \in \varvec{\Pi }^0_1(P \times X)\) then there exists a Borel map \(f:P \rightarrow \mathbb {N}^\mathbb {N}\) so that for every \(p \in P\) we have \(U^{\varvec{\Pi }^0_1}_{f(p)}=C_p\).

We will identify a set \(x \in [\mathbb {N}]^\mathbb {N}\) with its increasing enumeration. As usually, \(x \le ^* y\) if \(|\{n:x(n) > y(n)\}|<\infty \) and \(x \le y\) holds if for every \(n \in {\mathbb {N}}\) we have \(x(n) \le y(n)\). A set \(S \subset [\mathbb {N}]^\mathbb {N}\) is dominating if for any \(y \in [\mathbb {N}]^\mathbb {N}\) there exists an \(x \in S\) with \(y \le ^*x\). We will use the abbreviation \(y \le ^\infty x\) for \(|\{n:y(n) \le x(n)\}|=\infty \).

Notions and facts from effective descriptive set theory will be applied, however, the proofs can be understood using them as “black boxes”.

If X is a recursively presented Polish space (in our arguments only the spaces \({\mathbb {N}}, \mathbb {N}^\mathbb {N}\) and their finite products will appear in such a role) and \(p \in \mathbb {N}^\mathbb {N}\), \(\Pi ^0_1(X;p)\), \(\Delta ^1_1(X;p)\), \(\Sigma ^1_1(X;p)\) and \(\Pi ^1_1(X;p)\) will stand for the appropriate lightface classes relative to p. In the case \(X=\mathbb {N}\) the “\({\mathbb {N}}\)” sometimes will be omitted, and \(\Delta ^1_1(p)\), etc. will be used. If \(p \in \mathbb {N}^\mathbb {N}\) we will denote the first ordinal non-recursive in p by \(\omega ^p_1\). For an ordinal \(\alpha \) and a set A the \(\alpha \)’s level of the constructible universe relative to A will be denoted by \(L_\alpha [A]\). If \(p,q \in \mathbb {N}^\mathbb {N}\), \(\Pi ^0_1(X;p,q), \omega ^{p,q}_1\) etc. will abbreviate the notions \(\Pi ^0_1(X;\langle p,q \rangle ), \omega ^{\langle p,q \rangle }_1\) etc., where \(\langle \cdot ,\cdot \rangle : \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\rightarrow \mathbb {N}^\mathbb {N}\) is a recursive bijection.

We collect the theorems of the effective theory used in the proof.

Fact 2.3

For any reals \(r,p \in \mathbb {N}^\mathbb {N}\) we have

  1. (1)

    ( [3, Section 3.7]) \(r \in \Delta ^1_1(\mathbb {N};p) \iff \) \(\{r\} \in \Delta ^1_1(\mathbb {N}^\mathbb {N};p) \iff r \in L_{\omega ^p_1}[p]\),

  2. (2)

    (see below) \(\omega ^{r}_1<\omega ^{r,p}_1\) implies that every nonempty \(A \in \Sigma ^1_1(\mathbb {N}^\mathbb {N},r)\) contains an element in \(\Delta ^1_1(r,p)\),

  3. (3)

    ( [3, Theorem 4.1.2]) if S is a nonempty \(\Pi ^1_1(s)\) set then there exists an \(r \in S \cap L_{\omega _1}[s]\).

  4. (4)

    (Kleene, folklore) [17, 4D.3-4]) Suppose that X and Y are recursively presented Polish spaces and \(C \subset X \times Y\) is a \(\Pi ^1_1(p)\) set. Then

    1. (a)

      the set \(\{x:(\exists y \in \Delta ^1_1(x,p))((x,y)\in C)\}\) is \(\Pi ^1_1(p)\),

    2. (b)

      C has a full Borel uniformization if and only if there exists a real q so that for every x we have \(\Delta ^1_1(x,q) \cap C_x \not = \emptyset \).

To see (2), using Spector’s theorem ( [3, Lemma 2.4.9]) we obtain that \(\omega ^{r}_1<\omega ^{r,p}_1\) implies \(\mathcal {O}^{r} \in \Delta ^1_1(r,p)\), where \(\mathcal {O}^{r}\) stands for Kleene’s \(\mathcal {O}\) relative to r. Thus, as every non-empty \(\Sigma ^1_1(r)\) set contains a \(\Delta ^1_1(\mathcal {O}^{r})\) real by Gandy’s basis theorem ( [3, Theorem 2.5.3]), such a set contains a \(\Delta ^1_1(r,p)\) real as well.

Let \(\varvec{\Gamma }\) be a family of subsets of Polish spaces. A subset A of a Polish space X (and similarly for a standard Borel space) is \(\varvec{\Gamma }\)-hard, if for any \(A'\in \varvec{\Gamma }\) subset of a Polish space \(X'\) there exists a Borel map \(f:X' \rightarrow X\) with \(x' \in A' \iff f(x') \in A\) for every \(x'\in X'\). A \(\varvec{\Gamma }\)-hard set that is in \(\varvec{\Gamma }\) is called \(\varvec{\Gamma }\)-complete. For a graph \(G=(X,E)\) the \(\varvec{\Gamma }\)-measurable chromatic number or \(\varvec{\Gamma }\) chromatic number is defined analogously to the Borel chromatic number with requiring the coloring function to be \(\varvec{\Gamma }\)-measurable, and denoted by \(\chi _{\varvec{\Gamma }}(G)\). \(\chi (G)\) stands for the (usual) chromatic number of the graph G. A set \(S \subset X\) will be called independent or E-independent if \(S^2 \cap E=\emptyset \). Note that if \(\varvec{\Gamma }\) is closed under finite unions then for \(n \in {\mathbb {N}}\) the existence of a \(\varvec{\Gamma }\)-measurable n-coloring of the graph (XE) is equivalent to the existence of a partition of X to n-many E-independent sets from \(\varvec{\Gamma }\).

The Effros Borel space of the closed subsets of a Polish space X will be denoted by F(X).

Definition 2.4

Let \({\varvec{{\Gamma }}}\) be a class of subsets of Polish spaces. A map \(\Phi :{\varvec{{\Gamma }}}(X) \rightarrow {\varvec{{\Pi }}}^1_1(Y)\) is said to be \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\), if for every Polish space P and \(A \in {\varvec{{\Gamma }}}(P \times X)\) we have \(\{(s,y)\in P \times Y:y \in \Phi (A_s)\} \in \varvec{\Pi }^1_1(P \times Y).\)

Note that if for some \(\Phi \) the above condition holds for \(P=\mathbb {N}^\mathbb {N}\) and \({\varvec{{\Gamma }}}\) is closed under continuous preimages then \(\Phi \) is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\): indeed, given \(A \in {\varvec{{\Gamma }}}(P \times X)\) one can fix a continuous map \(\phi :\mathbb {N}^\mathbb {N}\rightarrow P\) that is bijective on a closed set \(C \subset \mathbb {N}^\mathbb {N}\), and \(\phi |_C\) is a Borel isomorphism (see [17, Theorem 1G.2]) and pull back A with the map \((\phi , id_X)\) to obtain a set \(A' \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\). Then using the condition for \(\mathbb {N}^\mathbb {N}\) yields that \(\{(s,y)\in \mathbb {N}^\mathbb {N}\times Y:y \in \Phi (A'_s)\} \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times Y)\), so \(\{(s,y)\in C \times Y:y \in \Phi (A'_s)\} \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times Y)\). But then \((\phi |_C, id_Y)(\{(s,y)\in C \times Y:y \in \Phi (A'_s)\} )=\Phi (A) \in {\varvec{{\Pi }}}^1_1(P \times Y)\), as \((\phi |_C, id_Y)\) is a Borel isomorphism.

3 General results

In this section we prove Theorem 1.6 about the complexity of uniform families. So, let \(\Phi \), X, Y, \(\varvec{\Gamma }\) be as in the theorem. Before starting the proof we make two easy observations. First, without loss of generality we can assume that \(Y={\mathbb {N}}^{\mathbb {N}}\): indeed, composing \(\Phi \) with a Borel bijection between Y and \({\mathbb {N}}^{\mathbb {N}}\) neither the families \(\mathcal {F}^\Phi \) and \(\mathcal {U}^\Phi \), nor the fact that \(\Phi \) is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\) changes. So, from now on we assume that \(Y=\mathbb {N}^\mathbb {N}\). Second, if one replaces \({\mathbb {N}}^{\mathbb {N}}\) by its homeomorphic copy in the definition of nicely \({\varvec{{\Sigma }}}^1_1\)-hard on \({\varvec{{\Gamma }}}\) families (Definition 1.5), it yields an equivalent condition on the family \(\mathcal {F}^\Phi \). Throughout the proof we will frequently use this, e.g. saying that “identify the space \(\mathbb {N}^\mathbb {N}\) with \((\mathbb {N}^\mathbb {N})^2\)”.

Let us roughly sketch the ideas of the proof of Theorem 1.6. Firstly, since \(\mathcal {F}^\Phi \) is \({\varvec{{\Sigma }}}^1_1\)-hard for a given \(r \in \mathbb {N}^\mathbb {N}\) a diagonal argument yields a set \(B \in {\varvec{{\Gamma }}}(X)\) such that \(\Phi (B)\) is nonempty, but contains no \(\Delta ^1_1(r)\) elements. Also, one can show that the set \(\{c:{c\, \hbox {codes the} \,{\varvec{{\Sigma }}}^1_1\,\hbox {set} \,A \,\hbox {and} } \,\sup \{\omega ^{r,c}_1: r\in A\}<\omega _1\}\) is \(\varvec{\Sigma }^1_2\)-hard, our strategy is to reduce this set to the codes of the sets in \(\mathcal {U}^\Phi \). So, to a given \(A \in {\varvec{{\Sigma }}}^1_1(\mathbb {N}^\mathbb {N})\) with code c using (a uniform version of) the diagonalization we construct a set \(B \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\) so that for all r we have \(\Phi (B_r) \not = \emptyset \) and \(\Phi (B_r) \cap \Delta ^1_1(r,c) = \emptyset \iff r \in A\). From this and (4) of Fact 2.3, it will easily follow that if \(\sup \{\omega ^{r,c}_1: r\in A\}=\omega _1\) for some A with code c then the corresponding set \(B \not \in \mathcal {U}^{\Phi }\). Finally, the niceness of \(\mathcal {F}^\Phi \) and (2) of Fact 2.3 will yield the converse.

We start with the diagonal argument.

Lemma 3.1

Let \(S\in {\varvec{{\Pi }}}^1_1({\mathbb {N}}^{\mathbb {N}})\) be arbitrary. There exist a real \(q \in {\mathbb {N}}^\mathbb {N}\) and sets \(B \in {\varvec{{\Gamma }}}({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}}\times X)\), \(D \in {\varvec{{\Sigma }}}^1_1({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}})\) such that for every \(s \in {\mathbb {N}}^{\mathbb {N}}\) we have

  1. (1)

    \(s \in S \iff \forall t \in {\mathbb {N}}^{\mathbb {N}}(\Phi (B_{(s,t)}) \cap \Delta ^1_1(q,s,t) \not = \emptyset )\),

  2. (2)

    \(\forall t\in {\mathbb {N}}^{\mathbb {N}}((\Phi (B_{(s,t)}) \cap \Delta ^1_1(q,s,t) = \emptyset ) \implies (D_s\not = \emptyset \wedge D_s \subset \Phi (B_{(s,t)})))\).

Proof

First we construct an auxiliary set A for the sake of the diagonal argument. Take a universal set \(U\in {\varvec{{\Sigma }}}^1_1({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^\mathbb {N}\times {\mathbb {N}}^\mathbb {N})\) so that for any \(R \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times {\mathbb {N}}^\mathbb {N})\) there exists an \(r \in \mathbb {N}^\mathbb {N}\) with \(U_{r}=({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^\mathbb {N}) \setminus R\). Define \((r,s) \in A \iff (r,r,s) \in U\). Then clearly \(A \in {\varvec{{\Sigma }}}^1_1( \mathbb {N}^{\mathbb {N}}\times {\mathbb {N}}^\mathbb {N})\) and if \(R \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times {\mathbb {N}}^\mathbb {N})\) is arbitrary then for some \(r \in {\mathbb {N}}^{\mathbb {N}}\) we have \(({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^\mathbb {N}) \setminus R=U_{r}\), so by definition \(A_{r}=U_{(r,r)}=\mathbb {N}^\mathbb {N}\setminus R_r\).

Using the fact that \(\mathcal {F}^\Phi \) is nicely \({\varvec{{\Sigma }}}^1_1\)-hard (and identifying \({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}}\) with \({\mathbb {N}}^{\mathbb {N}}\) by a homeomorphism) we obtain sets \(B^{0} \in {\varvec{{\Gamma }}}({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}}\times X)\) and \(D^{0} \in {\varvec{{\Sigma }}}^1_1({\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}})\) such that for every (rs) we have

$$\begin{aligned} (r,s) \in A \iff \Phi (B^{0}_{(r,s)}) \not = \emptyset \iff D^{0}_{(r,s)} \not =\emptyset \end{aligned}$$
(3.1)

and \(D^{0}_{(r,s)} \subset \Phi (B^{0}_{(r,s)})\). Pick also an arbitrary pair \((r^*,s^*) \in A\) and let \(q \in \Phi (B^0_{(r^*,s^*)})\). Fix a \(C \in \varvec{\Pi }^0_1(({\mathbb {N}}^{\mathbb {N}})^2)\) so that \(S={\mathbb {N}}^{\mathbb {N}}\setminus {{\,\mathrm{proj}\,}}_0(C)\) and define

$$\begin{aligned}&R=\{(r,s) \in {\mathbb {N}}^{\mathbb {N}}\times {\mathbb {N}}^{\mathbb {N}}:\forall t\\&\in \mathbb {N}^\mathbb {N}((s,t) \not \in C \vee \exists u \in \Delta ^1_1(q,s,t)(u \in \Phi (B^{0}_{(r,s)})))\}. \end{aligned}$$

Since \(\Phi \) is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\), the set \(\Phi (B^{0})\) is \({\varvec{{\Pi }}}^1_1\), and, using (4) of Fact 2.3 we get \(R \in {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N})\). Then by the choice of A there exists an \(r_0 \in \mathbb {N}^\mathbb {N}\) so that \(A_{r_0}=\mathbb {N}^\mathbb {N}\setminus R_{r_0}\).

Define now \((s,t,x) \in B \iff \)

$$\begin{aligned} ((s,t) \in C \text { and } x \in B^{0}_{(r_0,s)})\text { or }((s,t) \not \in C \text { and } x \in B^{0}_{(r^*,s^*)}) \end{aligned}$$

and \(D=D^0_{r_0}\).

We claim that q, B and D satisfy the requirements of the Lemma. Indeed, as \({\varvec{{\Gamma }}}\) is closed under continuous preimages the sets \(\{(s,t,x):x \in B^0_{(r_0,s)} \}\), \(\{(s,t,x):x \in B^0_{(r^*,s^*)} \}\in {\varvec{{\Gamma }}}\), while using the closedness under finite unions and intersections and \(\varvec{\Pi }^0_1 \cup \varvec{\Sigma }^0_1 \subset {\varvec{{\Gamma }}}\) we have \(B \in {\varvec{{\Gamma }}}\). Moreover, \(D \in {\varvec{{\Sigma }}}^1_1\) by definition.

We check now that (1) and (2) hold.

Case 1. \(s \in S\). Then for every t we have \((s,t) \not \in C\) so \(B_{(s,t)}=B^{0}_{(r^*,s^*)}\). Thus, \(q \in \Phi (B_{(s,t)})\), hence \(\Delta ^1_1(q,s,t) \cap \Phi (B_{(s,t)}) \not = \emptyset .\) So both (1) and (2) hold for every such s.

Case 2. \(s \not \in S.\) Observe that \((r_0,s) \not \in R\): indeed, pick an \((s,t) \in C\), then if \((r_0,s) \in R\) was true, then there would exist a \(u \in \Phi (B^0_{(r_0,s)})\). But this is absurd, by (3.1) and the fact that \(A_{r_0}={\mathbb {N}}^{\mathbb {N}}\setminus R_{r_0}\).

Now suppose that for all t there exists a \(u \in \Delta ^1_1(q,s,t) \cap \Phi (B_{(s,t)})\). Then, there exists an \((s,t) \in C\) and we have \(\Phi (B_{(s,t)})=\Phi (B^0_{(r_0,s)})\), yielding \((r_0,s) \in R\), a contradiction. This completes the proof of (1).

In order to see (2) note that if for some t we have \((s,t) \not \in C\) then \(B_{(s,t)}=B^0_{(r^*,s^*)}\), hence \(q \in \Phi (B_{(s,t)})\). Thus, it is enough to check (2) for \((s,t) \in C\) with \(\Phi (B_{(s,t)}) \cap \Delta ^1_1(q,s,t) = \emptyset \). But then, \(B_{(s,t)}=B^0_{(r_0,s)}\) and \(D_s=D^0_{(r_0,s)} \subset \Phi (B^0_{(r_0,s)})\). So, what remains to prove is \(D^0_{(r_0,s)}=D_s \not = \emptyset \), or by (3.1) equivalently \((r_0,s) \in A\), that is, \((r_0,s) \not \in R\), which we already have shown. \(\square \)

Now we are ready to prove Theorem 1.6.

Proof of Theorem 1.6

Let A be a \(\varvec{\Sigma }^1_2\)-complete \(\Sigma ^1_2\) subset of \(\mathbb {N}^\mathbb {N}\) and find \(S' \in \Pi ^1_1(\mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N})\) with \(A={{\,\mathrm{proj}\,}}_0(S')\). Define

$$\begin{aligned} S=\{(q,r,s):\exists u \in \Delta ^1_1(q,r,s)((r,u) \in S')\} \end{aligned}$$

and apply Lemma 3.1 to the set S (after identifying \({\mathbb {N}}^{\mathbb {N}}\) with \(({\mathbb {N}}^{\mathbb {N}})^3\)). This yields a real \(q'\) and sets \(B' \in {\varvec{{\Gamma }}}(({\mathbb {N}}^{\mathbb {N}})^3 \times \mathbb {N}^\mathbb {N}\times X)\) and \(D' \in {\varvec{{\Sigma }}}^1_1(({\mathbb {N}}^{\mathbb {N}})^3 \times \mathbb {N}^\mathbb {N})\) satisfying (1) and (2) of Lemma 3.1 for every (qrs) triple.

Using the fact that \(\Phi \) is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\) we can find a real \(q_0\) so that \(\Phi (B') \in \Pi ^1_1(q_0)\) and \(D' \in \Sigma ^1_1(q_0)\), we can also assume that \(q' \in \Delta ^1_1(q_0)\).

Define \(B \in {\varvec{{\Gamma }}}((\mathbb {N}^\mathbb {N})^2 \times X)\) as follows:

$$\begin{aligned} (r,\langle s,t\rangle ,x) \in B \iff (q_0,r,s,t,x) \in B' \end{aligned}$$

(recall that \(\langle \cdot ,\cdot \rangle \) was a recursive homeomorphism between \((\mathbb {N}^\mathbb {N})^2\) and \(\mathbb {N}^\mathbb {N}\).)

By (1) of Lemma 3.1 for every \((q,r,s) \in ({\mathbb {N}}^{\mathbb {N}})^3\) we have that

$$\begin{aligned} (q,r,s) \in S \iff \forall t \in {\mathbb {N}}^{\mathbb {N}}(\Phi (B'_{(q,r,s,t)}) \cap \Delta ^1_1(q',q,r,s,t) \not = \emptyset ), \end{aligned}$$
(3.2)

hence using the definition of \(q_0\) and B we get that

$$\begin{aligned} (q_0,r,s) \in S \iff \forall t \in {\mathbb {N}}^{\mathbb {N}}(\Phi (B_{(r,\langle s,t\rangle )}) \cap \Delta ^1_1(q_0,r,s,t) \not = \emptyset ). \end{aligned}$$
(3.3)

We show that for every r we have \(B_r \in \mathcal {U}^\Phi \) if and only if \(r \in A\), which is clearly sufficient to prove the theorem. Suppose that \(r \not \in A\) and for the contradiction that \(B_r \in \mathcal {U}^\Phi \). By definition this implies that \(\Phi (B_r)\) has a full Borel uniformization. Consequently, by Fact 2.3 there exists a \(p_0 \in {\mathbb {N}}^\mathbb {N}\) such that \(\forall s,t \in {\mathbb {N}}^{\mathbb {N}}(\Delta ^1_1(p_0,s,t) \cap \Phi (B_{(r,\langle s,t\rangle )}) \not = \emptyset ),\) so

$$\begin{aligned} \forall s, t \in {\mathbb {N}}^{\mathbb {N}}(\Delta ^1_1(p_0,s,t) \cap \Phi (B'_{(q_0,r,s,t)})\not = \emptyset ), \end{aligned}$$
(3.4)

moreover, \(q',q_0,r \in \Delta ^1_1(p_0)\) can be also assumed. As \(S'_r=\emptyset \), by definition \(S_{(q_0,r)}\) is also empty. Thus, by (3.2) for every \(s \in {\mathbb {N}}^\mathbb {N}\) there exists a \(t \in {\mathbb {N}}^{\mathbb {N}}\) such that \(\Delta ^1_1(q',q_0,r,s,t) \cap \Phi (B'_{(q_0,r,s,t)})=\emptyset \). Applying this to \(s=p_0\) we get a real \(t_0\) with \(\emptyset =\Delta ^1_1(q',q_0,r,p_0,t_0) \cap \Phi (B'_{(q_0,r,p_0,t_0)})=\Delta ^1_1(p_0,t_0)\cap \Phi (B'_{(q_0,r,p_0,t_0)})\). This yields a contradiction with (3.4) for \(s=p_0, t=t_0\).

Now suppose that \(r \in A\).

Claim. \(\sup \{\omega ^{q_0,r,s}_1: s \not \in S_{(q_0,r)}\}<\omega _1\).

Otherwise, \(\bigcup _{s \not \in S_{(q_0,r)}}L_{\omega ^{q_0,r,s}_1}[q_0,r] = L_{\omega _1}[q_0,r]\). By Fact 2.3 (3), as \(S'_{r}\) is a nonempty \(\Pi ^1_1(r)\) set (because \(r \in A ={{\,\mathrm{proj}\,}}_0(S')\)) we have that there exists a \(u \in S'_{r} \cap L_{\omega _1}[r]\). Then for some \(s \not \in S_{(q_0,r)}\) we would have \(u \in L_{\omega ^{q_0,r,s}_1}[r]\subseteq L_{\omega ^{q_0,r,s}_1}[q_0,r,s]\), so \(u \in \Delta ^1_1(q_0,r,s)\) (by Fact 2.3 (1)), contradicting the definition of S.

Now pick a p with \(\omega ^p_1>\sup \{\omega ^{q_0,r,s}_1: s \not \in S_{(q_0,r)}\}\). We will show that \(\Phi (B_r)\) has a full Borel uniformization. In order to do this, by Fact 2.3 (4) it is enough to show that for every \(s,t \in {\mathbb {N}}^{\mathbb {N}}\) we have that \(\Phi (B_{(r,\langle s,t\rangle )}) \cap \Delta ^1_1(p,q_0,r,s,t) \not = \emptyset \). If \(s \in S_{(q_0,r)}\) then this holds by (3.3).

Now, we can assume that \(s \not \in S_{(q_0,r)}\) and \(\Phi (B_{(r,\langle s,t\rangle )}) \cap \Delta ^1_1(q_0,r,s,t) = \emptyset \), since if the equality is not true then we are already done. Then \(\Phi (B'_{(q_0,r,s,t)}) \cap \Delta ^1_1(q_0,r,s,t) = \emptyset \). Recall the definition of \(D'\): it has been obtained from the application of Lemma 3.1 to the set S. Hence, by (2) of Lemma 3.1 for every \((q_0,r,s)\) we have that for every \(t \in {\mathbb {N}}^{\mathbb {N}}\) the implication

$$\begin{aligned}&(\Phi (B'_{(q_0,r,s,t)}) \cap \Delta ^1_1(q_0,r,s,t) = \emptyset )\\&\quad \implies (D'_{(q_0,r,s)}\not = \emptyset \wedge D'_{(q_0,r,s)}\subset \Phi (B'_{(q_0,r,s,t)})) \end{aligned}$$

holds. Hence, in our case we have \(\emptyset \not =D'_{(q_0,r,s)} \subset \Phi (B'_{(q_0,r,s,t)})=\Phi (B_{(r,\langle s,t \rangle )})\). Then \(D'_{(q_0,r,s)}\) is a nonempty \(\Sigma ^1_1(q_0,r,s)\) set and \(\omega ^{q_0,r,s}_1<\omega ^{p,q_0,r,s}_1\) so by Fact 2.3 (2) it contains a \(\Delta ^1_1(p,q_0,r,s)\) real. Thus, \(\emptyset \not =\Delta ^1_1(p,q_0,r,s,t) \cap D'_{(q_0,r,s)} \subset \Delta ^1_1(p,q_0,r,s,t) \cap \Phi (B_{(r,\langle s,t\rangle )})\) which shows that \(\Phi (B_r)\) has a full Borel uniformization and finishes the proof of the theorem. \(\square \)

In our theorem the reason of the high complexity is the same phenomenon as in the complexity results of Adams and Kechris [1]. In fact, one of their results follows directly from our theorem.

Corollary 3.2

(Adams, Kechris) The set of trees T on \({\mathbb {N}}\times {\mathbb {N}}\) so that [T] (the set of the infinite branches of T) has a full Borel uniformization is \(\varvec{\Sigma }^1_2\)-complete.

Proof

A standard calculation shows that the set in question is \(\varvec{\Sigma }^1_2\), so to show completeness, it is enough to verify that it is \(\varvec{\Sigma }^1_2\)-hard. One can check that Theorem 1.6 can be applied to \(X=Y=\mathbb {N}^\mathbb {N}\), \({\varvec{{\Gamma }}}=\varvec{\Pi }^0_2\) and \(\Phi (A)=A\). This yields a set \(B \in \varvec{\Pi }^0_2(\mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N})\) so that the set \(\{s\in \mathbb {N}^\mathbb {N}: B_s \in \mathcal {U}^\Phi \}\) is \(\varvec{\Sigma }^1_2\)-hard. Now, one can pick a set \(C^0 \in \varvec{\Pi }^0_1((\mathbb {N}^\mathbb {N})^4)\) such that B is the injective projection of \(C^0\) to the first three coordinates (see, [17, 1G.5]). Applying a recursive bijection between \(({\mathbb {N}}^{\mathbb {N}})^2\) and \({\mathbb {N}}^{\mathbb {N}}\) to the last two coordinates, one obtains a set \(C \in \varvec{\Pi }^0_1((\mathbb {N}^\mathbb {N})^3)\). To every \(s \in \mathbb {N}^\mathbb {N}\) one can continuously assign a tree \(T_s\) on \({\mathbb {N}}\times {\mathbb {N}}\) so that \([T_s]=C_s\). It is not hard to see that \([T_s]\) has a full Borel uniformization \(\iff \) \(B_s\) has a full Borel uniformization \(\iff \) \(B_s \in \mathcal {U}^\Phi \), which shows our claim. \(\square \)

Remark 3.3

It has been mentioned earlier that the assumption of niceness cannot be dropped from our theorem. On the other hand, assuming \(\varvec{\Sigma }^1_2\)-determinacy, it can be, in fact Theorem 4.1 has a particularly nice form.

  1. (1)

    (\(V=L\)) There exists a map \(\Phi :\varvec{\Pi }^0_2(\mathbb {N}^\mathbb {N}) \rightarrow {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N})\) that is \(\varvec{\Pi }^1_1\) on \(\varvec{\Pi }^0_2\), the family \(\mathcal {F}^{\Phi }\) is \({\varvec{{\Sigma }}}^1_1\)-hard on \(\varvec{\Pi }^0_2\), but \(\mathcal {U}^{\Phi }\) is not \(\varvec{\Sigma }^1_2\)-hard.

  2. (2)

    (\(\varvec{\Sigma }^1_2\)-determinacy) Let X, Y, and \({\varvec{{\Gamma }}}\) be as in Theorem 4.1 and \(\Phi : {\varvec{{\Gamma }}}(X) \rightarrow {\varvec{{\Pi }}}^1_1(Y)\) be a map that is \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\). Then if \(\mathcal {F}^\Phi \) is not \({\varvec{{\Pi }}}^1_1\) on \({\varvec{{\Gamma }}}\) (that is, there exists a set \(B \in {\varvec{{\Gamma }}}(\mathbb {N}^\mathbb {N}\times X)\) such that \(\{s:B_s \in \mathcal {F}^\Phi \} \not \in {\varvec{{\Pi }}}^1_1\)) then \(\mathcal {U}^\Phi \) is \(\varvec{\Sigma }^1_2\)-hard.

(2) can be shown using similar ideas to the ones used in the proof above utilizing Wadge’s lemma for higher projective classes, while in (1) one can construct a \(\Phi \) so that \(\Phi (A)\) can only be nonempty if \(|A|\le \aleph _0\) and moreover every element of \(\Phi (A)\) lies very high in the constructible hierarchy. This way it can be assured that for a \(B \subset \varvec{\Pi }^0_2((\mathbb {N}^\mathbb {N})^2)\) the set \(\Phi (B)\) can be uniformized only if \({{\,\mathrm{proj}\,}}_1(B)\) is countable. The question whether \(\varvec{\Sigma }^1_2\)-determinacy is optimal will be investigated in an upcoming paper.

4 Consequences on graph colorings

In this section we apply the results of the previous one and prove Theorem 1.3. We start with proving a variant of it, from which the full version will be easy to deduce.

Theorem 4.1

There exists a closed set \(C \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) such that the set \(\{s \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}\) is \(\varvec{\Sigma }^1_2\)-complete.

The next lemma reduces our task to produce a Borel set \(B \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) such that the set \(\{s:\chi _B(\mathcal {G}_\mathcal {S}|_{B_s})<\aleph _0\}\) is \(\varvec{\Sigma }^1_2\)-complete.

Lemma 4.2

Let \(B \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) be a \(\varvec{\Delta }^1_1\) set. There exists a \(\varvec{\Pi }^0_1\) set \(C \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) and an injective, vertical section preserving (that is, for every sx we have \({{\,\mathrm{proj}\,}}_0\Psi (s,x)=s\)) continuous map \(\Psi :C\rightarrow B\) such that for every \(s\in \mathbb {N}^\mathbb {N}\) we have that \(\Psi _s,\Psi ^{-1}_s\) are shift-invariant maps and if \(\chi _B(\mathcal {G}_\mathcal {S}|_{B_s}) \ge 3\) then \(\chi _B(\mathcal {G}_\mathcal {S}|_{B_s})=\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})\). Moreover, \(\Psi _s\) is a bijection if \(B_s\) is closed under the shift.

Note that Theorem 1.4 also follows from the above lemma: the first statement of it is obvious if \(\chi (\mathcal {G}_\mathcal {S}|_{B}) \le 2\), while (a parametrized version of) the rest is Lemma 4.2.

Proof of Lemma 4.2

The idea of the proof is that we express B as an injective projection of a closed set. Then, by applying a homeomorphism (that serves as a coding map) to this closed set we will get another closed set so that the composition of the inverse of the projection and the homeomorphism, and also the inverse of this composition are shift-invariant.

Consider the set \(B'=\{(s,x): (\forall j \in {\mathbb {N}})(\mathcal {S}^{j}(x) \in B_s)\}\). We will build a set C and a map \(\Psi \) as in the lemma, such that \(\Psi \) is a bijection between C and \(B'\).

Let \((\sigma _i)_{i \in \mathbb {N}}\) be an enumeration of the finite increasing sequences of natural numbers and define \(pred:B' \rightarrow [{\mathbb {N}}]^{<\mathbb {N}}\) by \(pred(s,x)=\{i:(s,\sigma _i {}^\frown x) \in B'\}\). Since \(pred\) is a Borel map, its graph can be expressed as an injective projection of a closed set in \(\varvec{\Pi }^0_1(\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\times [{\mathbb {N}}]^{<\mathbb {N}} \times \mathbb {N}^\mathbb {N})\) (here \( [{\mathbb {N}}]^{<\mathbb {N}}\) is endowed with the discrete topology). Let \({\overline{\psi }}\) be the partial Borel map \(\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\times [{\mathbb {N}}]^{<\mathbb {N}}\rightarrow \mathbb {N}^\mathbb {N}\) so that the graph of \(\overline{\psi }\) is this closed set (see, [17, 1G.5]).

Given a pair \((s,x) \in B'\) there are finitely many i’s with \(i \in pred(s,x)\) and so the set \(\{\overline{\psi }(s,\sigma _i {}^\frown x,pred(s,\sigma _i {}^\frown x)):i \in pred(s,x)\}\) is finite. Our strategy is to every (sx) assign a natural number that encodes finite initial segments of the elements of the finite set above. The assigned number to (sx) should be smaller than the one assigned to \((s,\mathcal {S}(x))\) and the latter should encode longer initial segments of the corresponding finite set of values (this length will be determined by the first element of \(\mathcal {S}(x)\)). We construct a map \(\overline{\Psi }:\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\rightarrow \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) by calculating the assigned number to \((s,x), (s,\mathcal {S}(x)), \dots \), hence guaranteeing the shift-invariance of \(\overline{\Psi }_s\). Finally, we will let \(C={\overline{\Psi }}(B')\) and \(\Psi ={\overline{\Psi }}^{-1}\), the encoding of longer and longer initial segments will guarantee that the set C is closed.

More precisely, fix an injection \(cd: [{\mathbb {N}}\times [\mathbb {N}]^{<\mathbb {N}} \times \mathbb {N}^{<\mathbb {N}}]^{<\mathbb {N}} \rightarrow \mathbb {N}\) (the set \([{\mathbb {N}}\times [\mathbb {N}]^{<\mathbb {N}} \times \mathbb {N}^{<\mathbb {N}}]^{<\mathbb {N}}\) is also endowed with the discrete topology). Define \({\overline{\Psi }}^0(s,x)=\)

$$\begin{aligned} \Big \{\Big (i,pred(s,\sigma _i {}^\frown x),{\overline{\psi }}\big (s,\sigma _i {}^\frown x,pred(s,\sigma _i {}^\frown x)\big )|_{x(0)}\Big ): i \in pred(s,x)\Big \}. \end{aligned}$$

Let \(A_n=\{(s,x):(s,x) \in B', x(0)=n\}.\) In order to achieve the property that the natural numbers serving as codes increase as one applies the map \(\mathcal {S}\), we define a map \(\overline{\Psi }^1\) on the sets \(A_n\) inductively. If \(\overline{\Psi }^1\) has been already defined on \(\bigcup _{i<n} A_i\) and \((s,x) \in A_{n}\) let \(\overline{\Psi }^1(s,x)=\)

$$\begin{aligned} 2^{x(0)}\cdot 3^{cd(\overline{\Psi }^0(s,x))}\cdot 5^{\max \{0,\overline{\Psi }^1(s,\sigma _i {}^\frown x): i \in pred(s,x), \sigma _i \not = \emptyset \}} . \end{aligned}$$

Finally, let

$$\begin{aligned} \overline{\Psi }(s,x)=(s,(\overline{\Psi }^1(s,\mathcal {S}^{j}(x)))_{j\in \mathbb {N}}). \end{aligned}$$

Note that for each s the map \(\overline{\Psi }(s,\cdot )\) is a Borel map from \(B'_{s}\) to \([\mathbb {N}]^\mathbb {N}\): by definition \(B'_s\) is closed under the shift, so \(\overline{\Psi }(s,\cdot )\) is defined on \(B'_s\) and from the definition of \(\overline{\Psi }^1\) it follows that for any x we have

$$\begin{aligned} \overline{\Psi }^1(s,x)<5^{\overline{\Psi }^1(s,x)} \le 5^{\max \{\overline{\Psi }^1(s,\sigma _i {}^\frown \mathcal {S}(x)): i \in pred(s,\mathcal {S}(x)), \sigma _i \not = \emptyset \}} \le \overline{\Psi }^1(s,\mathcal {S}(x)). \end{aligned}$$

Observe that an induction on n yields that if \((s,x) \in A_n\) then \(\overline{\Psi }^1(s,x)\) is determined by the values \(\{(i,pred(s,\sigma _i {}^\frown x),\overline{\psi }(s,\sigma _i {}^\frown x,pred(s,\sigma _i {}^\frown x))|_m):m \le x(0), i \in pred(s,x)\}\). In particular, for a given \(k \in {\mathbb {N}}\) the kth coordinate of \(\overline{\Psi }(s,x)\) is determined by s(k) and the set

$$\begin{aligned} \begin{aligned} \{(i,pred(s,\sigma _i {}^\frown \mathcal {S}^k(x)),\overline{\psi }(s,\sigma _i {}^\frown \mathcal {S}^k(x),pred(s,\sigma _i {}^\frown \mathcal {S}^k(x)))|_m):\\ i \in pred(s,\mathcal {S}^k(x)),m \le \mathcal {S}^k(x)(0)\}. \end{aligned} \end{aligned}$$

Claim 4.3

Suppose that \(((s_n,x_n))_{n \in \mathbb {N}}\) is a sequence with elements in \(B'\) such that the sequence \((\overline{\Psi }(s_n,x_n))_{n \in \mathbb {N}}\) is convergent and \(i,j \in {\mathbb {N}}\). Then the sequence \(\Big ( \big (s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n)),\overline{\psi }(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n))\big )\Big )_{n}\) is also convergent in the sense that either for every large enough n we have \(i \not \in pred(s_n, \mathcal {S}^j(x_n))\), in which case the sequence is eventually not defined, or for every large enough n we have \(i \in pred(s_n, \mathcal {S}^j(x_n))\) and then it converges.

Proof

Clearly, the convergence of the sequence \((\overline{\Psi }(s_n,x_n))_{n \in {\mathbb {N}}}\) implies the convergence of \((\overline{\Psi }^0(s_n,\mathcal {S}^{j}(x_n)))_{n \in {\mathbb {N}}}\) and this yields that \(pred(s_n,\mathcal {S}^j(x_n))\) must stabilize to some set I as \(n \rightarrow \infty \). If \(i \not \in I\) then for every large enough n we have \((s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n)) \not \in B'\), hence the sequence is not defined.

Suppose now that \(i \in I\), we check the convergence of the required quadruple. The sequence \((s_n)_{n \in {\mathbb {N}}}\) clearly converges, while the convergence of \((x_n)_{n \in {\mathbb {N}}}\) follows from the definition of \(\overline{\Psi }^1\) and the fact that for any \(j' \in {\mathbb {N}}\) the sequence \((\overline{\Psi }^1(s_n,\mathcal {S}^{j'}(x_n)))_{n \in {\mathbb {N}}}\) is convergent. The convergence of the third coordinate is implied by the convergence of the sequence \((\overline{\Psi }^0(s_n,\mathcal {S}^j(x_n)))_{n \in {\mathbb {N}}}\).

Finally, to show the same for the fourth sequence pick an arbitrary \(k \in {\mathbb {N}}\). We check that the values \(\overline{\psi }(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n)))(k)\) stabilize. Let \(j'\ge \max \{k,j\}\). By the convergence of the sequence \((x_n)_n\) we can pick an \(i' \in {\mathbb {N}}\) such that \(\sigma _i {}^\frown \mathcal {S}^j(x_n)=\sigma _{i'} {}^\frown \mathcal {S}^{j'}(x_n)\) holds for every large enough n. Since \(i \in I\), we have

$$\begin{aligned}&\Big (i',pred(s,\sigma _{i} {}^\frown \mathcal {S}^{j}(x_n)),{\overline{\psi }}\\&\quad \big (s,\sigma _{i} {}^\frown \mathcal {S}^{j}(x_n),pred(s,\sigma _{i} {}^\frown \mathcal {S}^{j}(x_n))\big )|_{\mathcal {S}^{j'}(x_n)(0)}\Big )=\end{aligned}$$
$$\begin{aligned}&\Big (i',pred(s,\sigma _{i'} {}^\frown \mathcal {S}^{j'}(x_n)),{\overline{\psi }}\\&\quad \big (s,\sigma _{i'} {}^\frown \mathcal {S}^{j'}(x_n),pred(s,\sigma _{i'} {}^\frown \mathcal {S}^{j'}(x_n))\big )|_{\mathcal {S}^{j'}(x_n)(0)}\Big )\end{aligned}$$
$$\begin{aligned} \in \overline{\Psi }^0(s_n,\mathcal {S}^{j'}(x_n)), \end{aligned}$$

for every large enough n. But the sequence \((\overline{\Psi }^0(s_n,\mathcal {S}^{j'}(x_n)))_{n \in {\mathbb {N}}}\) converges, so the values \({\overline{\psi }}(s,\sigma _{i} {}^\frown \mathcal {S}^{j}(x_n),pred(s,\sigma _{i} {}^\frown \mathcal {S}^{j}(x_n)))|_{\mathcal {S}^{j'}(x_n)(0)}\) must stabilize as well, and then the fact \(\mathcal {S}^{j'}(x_n)(0) \ge j' \ge k\) yields the convergence of the sequence \(\big (\overline{\psi }(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n)))(k)\big )_{n \in {\mathbb {N}}}\). \(\square \)

Now we check that \(\overline{\Psi }(B')\) is a closed set. In order to see this suppose that \(((s_n,x_n))_{n \in \mathbb {N}}\) is a sequence in \(B'\) so that \((\overline{\Psi }(s_n,x_n))_{n \in {\mathbb {N}}}\) is convergent. By Claim 4.3 the sequence \((s_n,x_n, pred(s_n,x_n),\overline{\psi }(s_n,x_n, pred(s_n,x_n)))_n\) is convergent, and by the fact that the graph of \(\overline{\psi }\) is closed, it converges to some \((s,x,pred(s,x),\overline{\psi }(s,x, pred(s,x)))\). To see that \(\overline{\Psi }(s_n,x_n) \rightarrow \overline{\Psi }(s,x)\) holds, pick an arbitrary \(k \in {\mathbb {N}}\). We show that \(\overline{\Psi }(s_n,x_n)(k) \rightarrow \overline{\Psi }(s,x)(k)\). Using the convergence of \((s_n,\mathcal {S}^j(x_n),pred(s_n,\mathcal {S}^j(x_n)))_{n \in {\mathbb {N}}}\) for every \(j \in {\mathbb {N}}\) (which follows from Claim 4.3) we can assume that for each n and \(j \le k\) we have \(\mathcal {S}^j(x_n)(0)=\mathcal {S}^j(x)(0)\) and \(pred(s_n,\mathcal {S}^j(x_n))=pred(s,\mathcal {S}^j(x))\). By Claim 4.3 for any \(j \le \mathcal {S}^k(x)(0)=\mathcal {S}^k(x_n)(0)\) and \(i \in pred(s,\mathcal {S}^j(x))=pred(s,\mathcal {S}^j(x_n))\) the sequence \(\Big (\big (s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n)),\overline{\psi }(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n),pred(s_n,\sigma _i {}^\frown \mathcal {S}^j(x_n))\big )\Big )_{n}\) is convergent and again by the closedness of the graph of \(\overline{\psi }\) its limit is necessarily \(\big (s,\sigma _i {}^\frown \mathcal {S}^j(x),pred(s,\sigma _i {}^\frown \mathcal {S}^j(x)),\overline{\psi }(s,\sigma _i {}^\frown \mathcal {S}^j(x),pred(s,\sigma _i {}^\frown \mathcal {S}^j(x)))\big )\). Hence, using the observation made before Claim 4.3 for a large enough n all the values determining \(\overline{\Psi }(s_n,x_n)(k)\) and \(\overline{\Psi }(s,x)(k)\) will be the same. Thus \(C=\overline{\Psi }(B')\) is indeed closed.

Note that for any \((s,y)=\overline{\Psi }(s,x)\) and \(j \in {\mathbb {N}}\) the exponent of 2 in y(j) is x(j). Hence, \(\overline{\Psi }\) is invertible and \(\overline{\Psi }^{-1}(s,\mathcal {S}(y))=(s,\mathcal {S}(x))\). Thus, we obtain that \(\Psi :=\overline{\Psi }^{-1}\) is a continuous bijection, so that for each \(s \in \mathbb {N}^\mathbb {N}\) the map \(\Psi _s\) back-and-forth shift-invariant. This implies that \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B'_s})=\chi _B(\mathcal {G}_{\mathcal {S}}|_{C_s})\).

Finally, we turn back to the set B. Of course, if \(B_s\) is closed under the shift then \(B'_s=B_s\), hence the only thing left to check from the lemma is that whenever \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s}) \ge 3\) then \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s})=\chi _B(\mathcal {G}_{\mathcal {S}}|_{B'_s})\). Clearly, \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s}) \ge \chi _B(\mathcal {G}_{\mathcal {S}}|_{B'_s})\). For a given \(c_0:[\mathbb {N}]^\mathbb {N} \rightarrow n\) Borel n-coloring of \(\mathcal {G}_{\mathcal {S}}|_{B'_{s}}\) define

\(c(x)=\)

$$\begin{aligned}{\left\{ \begin{array}{ll} \min \{m:\mathcal {S}^{m}(x) \not \in B_s\} \mod 2, &{} \text {if for all}\, k\,\text { we have}\, \mathcal {S}^k(x) \not \in B'_s,\\ c_0(\mathcal {S}^k(x))+k \mod n, &{} \text {otherwise, where}\, k\, \text {is minimal with}\, \mathcal {S}^k(x) \in B'_s. \end{array}\right. } \end{aligned}$$

It is not hard to check that c is a Borel \(\max \{2,n\}\)-coloring of \(\mathcal {G}_{\mathcal {S}}|_{B_s}\), hence \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s}) \ge 3\) implies \(\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s})=\chi _B(\mathcal {G}_{\mathcal {S}}|_{B'_s})\). \(\square \)

Thus, in order to show Theorem 4.1 it is enough to construct the required Borel set. This will be done in two steps. Let \(\mathcal {H}=(\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N},E_\mathcal {H})\) where \((s,x)E_\mathcal {H}(s',x') \iff s=s'\) and \(xE_\mathcal {S}x'\). First we will notice that \(\mathcal {G}_\mathcal {S}\) contains an isomorphic copy of \(\mathcal {H}\) and then using Theorem 1.6 we will show that the finitely chromatic Borel subsets of the graph \(\mathcal {H}\) are already \(\varvec{\Sigma }^1_2\)-hard.

Lemma 4.4

There exists a continuous injection \(e:\mathbb {N}^\mathbb {N} \times [\mathbb {N}]^\mathbb {N} \rightarrow [\mathbb {N}]^\mathbb {N}\) that is an isomorphism between \(\mathcal {H}\) and \(\mathcal {G}_{\mathcal {S}}|_{{{\,\mathrm{ran}\,}}(e)}\).

Proof

Fix a continuous injection \(e^0:\mathbb {N}^\mathbb {N}\rightarrow \mathcal {A}\) such that \(\mathcal {A} \subset [\mathbb {N}]^\mathbb {N}\) is an almost disjoint family. For \((s,x) \in \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) let \(e(s,x)= e^0(s) \circ x (=(e^0(s)(i))_{i \in x})\). All the required properties of e are clear from the fact that \(\mathcal {A}\) is an almost disjoint family. \(\square \)

We will use an observation of Di Prisco and the first author that says that the restrictions of the shift graph to non-dominating subsets of \([\mathbb {N}]^\mathbb {N}\) have finite Borel chromatic number. In the latter part of the paper a uniform version of this statement is needed, so for the sake of completeness we include a proof of the uniform version. We will use the sets \(\mathbf {BC},\mathbf {A},\mathbf {C}\) from Fact 2.1. Fix also a homeomorphism \(\langle \cdot ,\cdot ,\cdot \rangle : (\mathbb {N}^\mathbb {N})^3 \rightarrow \mathbb {N}^\mathbb {N}\).

Lemma 4.5

(Di Prisco, Todorčević, [6]) There exists a Borel function \(f_{dom}: [\mathbb {N}]^\mathbb {N}\rightarrow \mathbb {N}^\mathbb {N}\) so that for each \(x\in [\mathbb {N}]^\mathbb {N}\) we have \(f_{dom}(x)=\langle c_0,c_1,c_2\rangle \) with \(c_i \in \mathbf {BC}([\mathbb {N}]^\mathbb {N})\), \(\mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i}\) are \(E_{\mathcal {S}}\)-independent subsets of \([\mathbb {N}]^\mathbb {N}\) for every i and \(\{y:y \le ^\infty x\} = \bigcup ^2_{i=0} \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i}\).

Proof

Set \(D=\{(x,y):y \le ^\infty x\}.\) Note that it suffices to construct a Borel map \(c:D \rightarrow 3\) that is a coloring of the graph \(\mathcal {G}_\mathcal {S} |_{D_x}\) for each x: indeed, we can use Fact 2.1 for \(B_i=\{(x,y):c(x,y)=i\}\) to obtain Borel maps \(f_i:[\mathbb {N}]^\mathbb {N}\rightarrow \mathbb {N}^\mathbb {N}\) so that for every \(x \in [\mathbb {N}]^\mathbb {N}\) we have \(\mathbf {A}([\mathbb {N}]^\mathbb {N})_{f_i(x)}=(B_i)_x\) and let \(f_{dom}(x)=\langle f_0(x),f_1(x),f_2(x)\rangle \).

We will construct a Borel set \(U \subset ([\mathbb {N}]^\mathbb {N})^2\) such that whenever \((x,y) \in D\), then there exists a \(i \in \mathbb {N}\) with \((x,\mathcal {S}^i(y)) \in U\) and for each x the set \(\{y:(x,y) \in D \cap U\}\) is \(\mathcal {G}_\mathcal {S}\)-independent. This is enough, as the map

$$\begin{aligned} c(x,y)= {\left\{ \begin{array}{ll} i \mod 2, \text { if } (x,y) \not \in U \text { and}\, i\, \text { is minimal with} \,(x,\mathcal {S}^i(y)) \in U\\ 2, \text { if } (x,y) \in U \end{array}\right. } \end{aligned}$$

is an appropriate coloring.

Now, let \(x(-1)=0\) and define \((x,y)\in U \iff \) for the minimal \(n \in \mathbb {N}\) with \(|[x(2n-1),x(2n+1)) \cap y| \ne 0\) we have that \(|[x(2n-1),x(2n+1)) \cap y|\) is even. Observe that if \(y \le ^\infty x\) then there exist infinitely many n’s such that

$$\begin{aligned} |[x(2n-1),x(2n+1)) \cap y| \ge 2. \end{aligned}$$

From this, one easily checks that U satisfies the requirements. \(\square \)

Lemma 4.6

There exists a \(\varvec{\Pi }^0_2\) set \(B \subset \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) so that the set \(\{s: \chi _B(\mathcal {H}|_{B_s})<\aleph _0\}\) is \(\varvec{\Sigma }^1_2\)-hard.

Proof

We check the applicability of Theorem 1.6, with \(X=[\mathbb {N}]^\mathbb {N}\), \(Y=\mathbb {N}^\mathbb {N}\), \({\varvec{{\Gamma }}}=\varvec{\Pi }^0_2\) and

$$\begin{aligned} \Phi (A)= & {} \{c:(\forall x,y \in A)\Big (c=\langle c_0,c_1,c_2\rangle , c_i \in \mathbf {BC}([\mathbb {N}]^\mathbb {N}), x \in \bigcup _i \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i}\\&\text {and }xE_{\mathcal {S}}y \Rightarrow (\forall i)\big (\lnot (x,y \in \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i})\big )\Big ) \}, \end{aligned}$$

in other words, \(\Phi (A)\) contains the Borel codes of the Borel 3-colorings of A. First we show that \(\Phi \) is \(\varvec{\Pi }^1_1\) on \(\varvec{\Pi }^0_2\). If B is a \(\varvec{\Pi }^0_2\) subset of \(\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\), then

$$\begin{aligned}&{\bar{\Phi }}(B)=\{(s,c):(\forall (x,y) \in [\mathbb {N}]^\mathbb {N}\times [\mathbb {N}]^\mathbb {N})\\&\quad \Big ((s,x)\not \in B \text { or }(s,y) \not \in B \text { or } (c=\langle c_0,c_1,c_2\rangle ,\\&\quad c_i \in \mathbf {BC}([\mathbb {N}]^\mathbb {N}), x \in \bigcup _i \mathbf {C}([\mathbb {N}]^\mathbb {N})_{c_i}\,\\&\quad \text { and } xE_{\mathcal {S}}y \Rightarrow (\forall i)\big (\lnot (x,y \in \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i})\big )\Big ) \}, \end{aligned}$$

which set is \({\varvec{{\Pi }}}^1_1\).

Now, we show that \(\mathcal {F}^\Phi \) is nicely \({\varvec{{\Sigma }}}^1_1\)-hard on \(\varvec{\Pi }^0_2\). Let \(A \subset \mathbb {N}^\mathbb {N}\) be analytic and take a closed set \(F \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) so that \({{\,\mathrm{proj}\,}}_0(F)=A\). Let

$$\begin{aligned} B=\{(s,y):(\forall x \le ^* y)(x \not \in F_s)\}. \end{aligned}$$

We show that the complement of B is \(\varvec{\Sigma }^0_2\), hence \(B \in \varvec{\Pi }^0_2\). For every \(\sigma \in \mathbb {N}^\mathbb {N}\) that is eventually zero define \(B'_{\sigma }=\{(s,y):(\exists x \le y+\sigma )(x \in F_s)\}\). Clearly, \((\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}) \setminus B=\bigcup _{\sigma } B'_{\sigma }\), so it is enough to show that each \(B'_{\sigma }\) is closed. Let \(((s_m,y_m))_{m \in \mathbb {N}}\subset B'_{\sigma }\) and suppose that \((s_m,y_m) \rightarrow (s,y)\). Then for each m there exists an \(x_m \le y_m+\sigma \) so that \((s_m,x_m) \in F\). For every fixed n we have that the set \(\{m:(\exists k \le n)(x_m(k) > y(k)+\sigma (k))\}\) is finite. Thus, applying König’s Lemma to the tree formed by \(\{x_m|_k:k,m\in \mathbb {N}, x_m|_k \le (y+\sigma )|_k\}\) we get that \((x_m)_{m \in \mathbb {N}}\) contains a convergent subsequence, and its limit witnesses \((s,y)\in B'_{\sigma }\). Let

$$\begin{aligned} D=\{(s,c):s \in A \text { and }(\exists x \in F_s) (f_{dom} (x)=c)\}, \end{aligned}$$

where \(f_{dom}\) is the function from Lemma 4.5. We will show that B and D witness that \(\mathcal {F}^\Phi \) is nicely \(\varvec{\Sigma }^1_1\)-hard. We have already seen that \(B\in \varvec{\Pi }^0_2\) and by definition D is analytic.

Suppose that \(s \in A\). Then for each \(x' \in F_s\) we have \(B_s(= \{y:(\forall x \le ^* y)(x \not \in F_s)\}) \subset \{y:y \le ^\infty x'\}\). Thus, by Lemma 4.5\(B_s \in \mathcal {F}^\Phi \) and \(D_s \not = \emptyset \). Moreover, if \(c \in D_s\) then for some \(x \in F_s\) we have \(f_{dom}(x)=c\) with \(c=\langle c_0,c_1,c_2\rangle \), again by Lemma 4.5 we have \(B_s \subset \{y:y \le ^\infty x\} = \bigcup ^2_{i=0} \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i}\) and the sets \(\mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i}\) are \(E_\mathcal {S}\)-independent, thus, \(D_{s} \subset \Phi (B_s)\). Now, if \(s \not \in A\) then \(F_s=D_s=\emptyset \) and \(B_s=[\mathbb {N}]^\mathbb {N}\).

So, Theorem 1.6 is applicable and it yields a Borel set \(B \subset \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) so that \(\{s:B_s \in \mathcal {U}^\Phi \}\) is \(\varvec{\Sigma }^1_2\)-hard.

Now we claim that \(B_s \in \mathcal {U}^\Phi \) is equivalent to \(\chi _B(\mathcal {H}|_{B_s})<\aleph _0\). Suppose first that for some \(s\in \mathbb {N}^\mathbb {N}\) we have \(\chi _B(\mathcal {H}|_{B_s})<\aleph _0\). Then, by Lemma 4.4\(\mathcal {H}|_{B_s}\) is Borel isomorphic to a subgraph of \(\mathcal {G}_\mathcal {S}\), so if it has finite Borel chromatic number then it has one \(\le 3\) by [12]. Let \(S_0,S_1,S_2\) witness this fact. Using Fact 2.1 there are Borel maps \(f_0,f_1,f_2\) so that for any \(t \in \mathbb {N}^\mathbb {N}\) we have that \(f_i(t) \in \mathbf {BC}([\mathbb {N}]^\mathbb {N})\) and \(\mathbf {A}([\mathbb {N}]^\mathbb {N})_{f_i(t)}=(S_i)_{t}\). Clearly, \(f=\langle f_0,f_1,f_2 \rangle \) is a Borel uniformization of \(\Phi (B_{s})\). For the converse suppose that \(\Phi (B_s)\) has a Borel uniformization, f. Define \(S_i=\{(t,x):x \in \mathbf {A}([\mathbb {N}]^\mathbb {N})_{f(t)(i)}\} (=\{(t,x):x \in \mathbf {C}([\mathbb {N}]^\mathbb {N})_{f(t)(i)}\})\). The sets \(S_i\) are Borel, and for each t the sets \((S_i)_{t}\) form a 3-coloring of \(\mathcal {H}|_{B_{(s,t)}}\), so by the definition of \(\mathcal {H}\) the sets \(S_i\) form a Borel 3-coloring of \(\mathcal {H}|_{B_s}\). \(\square \)

Proof of Theorem 4.1

Consider e from Lemma 4.4 and apply \((id_{\mathbb {N}^\mathbb {N}},e)\) to the Borel set given by Lemma 4.6. This yields a Borel set \(B \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) so that \(\{s:\chi _B(\mathcal {G}_{\mathcal {S}}|_{B_s})<\aleph _0\}\) is \(\varvec{\Sigma }^1_2\)-hard. Applying Lemma 4.2 to this set we get a closed set \(C \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) so that the set \(\{s:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}\) is \(\varvec{\Sigma }^1_2\)-hard. In order to see that this set is \(\varvec{\Sigma }^1_2\), similarly to the proof of Lemma 4.6 just notice that \(\{s:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}=\)

$$\begin{aligned} \{s:(\exists c_0, c_1, c_2)(c_i \in \mathbf {BC}([\mathbb {N}]^\mathbb {N}),( \forall x,y \in C_s)( x \in \bigcup _i \mathbf {C}([\mathbb {N}]^\mathbb {N})_{c_i} \end{aligned}$$
(*)
$$\begin{aligned} \text {and }xE_{\mathcal {S}}y \Rightarrow (\forall i)(\lnot (x,y \in \mathbf {A}([\mathbb {N}]^\mathbb {N})_{c_i} ))) \}. \end{aligned}$$

\(\square \)

Remark 4.7

In the proof of Lemma 4.6 we actually show that the collection of non-dominating \(\varvec{\Pi }^0_2\) sets is \(\varvec{\Sigma }^1_1\)-hard in the codes. The proof presented here is an alternate non-effective version of an unpublished result of Hjorth [9]. A similar argument has been also used by Solovay [26]. We would like to mention here that more is true: even the collection of non-dominating closed sets is \(\varvec{\Sigma }^1_1\)-hard in the codes.

We conclude this section with proving our main result, Theorem 1.3. In order to formulate the precise statement we use the set \(U^{\varvec{\Pi }^0_1}\) for \(X=[\mathbb {N}]^\mathbb {N}\) from Fact 2.2.

Theorem 4.8

(Theorem 1.3) The collection of closed subsets of \([\mathbb {N}]^\mathbb {N}\) so that \(\chi _B(\mathcal {G}_\mathcal {S}|_C)<\aleph _0\) (or, equivalently, \(\chi _B(\mathcal {G}_\mathcal {S}|_C)\le 3\)) is \(\varvec{\Sigma }^1_2\)-complete, more precisely, the sets

  1. (1)

    \(\{x \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{U^{\varvec{\Pi }^0_1}_x})<\aleph _0\}\)

  2. (2)

    \(\{C \subset [\mathbb {N}]^\mathbb {N}: C \text { is closed, } \chi _B(\mathcal {G}_\mathcal {S}|_{C})<\aleph _0\}\) as a subset of the Effros Borel space,

are \(\varvec{\Sigma }^1_2\)-complete.

  1. (3)

    Consequently, there is no sequence of \(\varvec{\Sigma }^1_1\)-parametrizable collections of graphs \((\mathcal {A}_n)_{n \in \mathbb {N}}\) so that for every \(C \subset [\mathbb {N}]^\mathbb {N}\) closed \(\chi _B(\mathcal {G}_\mathcal {S}|_C)\ge \aleph _0\) if and only if \(\exists (n_i)_{i\in \mathbb {N}}\) and \(A_{n_i} \in \mathcal {A}_{n_i}\) so that \(A_{n_i} \le _B \mathcal {G}_\mathcal {S}|_C\). In particular, there is no one element basis, or countable basis in the sense of Question 1.2.

In order to show the statement that talks about the closed sets with the Effros Borel structure we state a general lemma which essentially follows from the work of Sabok [21].

Lemma 4.9

Suppose that P is a property of closed subsets of \(\mathbb {N}^\mathbb {N}\) and there exists a closed set \(C \subset \mathbb {N}^\mathbb {N}\times \mathbb {N}^\mathbb {N}\) so that \(\{x \in \mathbb {N}^\mathbb {N}:C_x \text { has } P \}\) is \(\varvec{\Sigma }^1_2\)-hard. Then \(\{F \subset \mathbb {N}^\mathbb {N}:F \text { has } P\}\) is also \(\varvec{\Sigma }^1_2\)-hard as a subset of the Effros Borel space.

Proof

Consider the map \(f:\mathbb {N}^\mathbb {N}\rightarrow F(\mathbb {N}^\mathbb {N})\) given by \(f(x)=C_x\). As usual, we can identify \(F(\mathbb {N}^\mathbb {N})\) with the collection of pruned trees on \(\mathbb {N}^{<\mathbb {N}}\), hence it becomes a Borel subset of \(2^{\mathbb {N}^{<\mathbb {N}}}\), let us endow \(F(\mathbb {N}^\mathbb {N})\) with the inherited topology. By [21, Theorem 2] it is enough to show that f is \(\varvec{\Sigma }^1_1 \cup {\varvec{{\Pi }}}^1_1\)-submeasurable, that is, there exists a subbase \(\mathcal {B}\) of \(F(\mathbb {N}^\mathbb {N})\) so that for any \(U \in \mathcal {B}\) we have that \(f^{-1}(U) \in \varvec{\Sigma }^1_1(\mathbb {N}^\mathbb {N}) \cup {\varvec{{\Pi }}}^1_1(\mathbb {N}^\mathbb {N})\). A subbase for this space can be given in the form \(\{F \in F(\mathbb {N}^\mathbb {N}):F \cap [\sigma ]\not = \emptyset \}\) and \(\{F \in F(\mathbb {N}^\mathbb {N}):F \cap [\sigma ] = \emptyset \}\), where \(\sigma \in {\mathbb {N}}^{n}\) and \([\sigma ]=\{r \in {\mathbb {N}}^{\mathbb {N}}: \sigma =r|_n\}\) for some \(n \in {\mathbb {N}}\). Clearly, for each \(\sigma \) the set \(f^{-1}(\{F:F \cap [\sigma ]= \emptyset \})\) is \({\varvec{{\Pi }}}^1_1\), hence, it is enough to show the set \(f^{-1}(\{F:F \cap [\sigma ]\not = \emptyset \})=\{x:C_x \cap [\sigma ]\not = \emptyset \}=\{x:(\exists y)((x,y)\in C, y \in [\sigma ])\}\) is \(\varvec{\Sigma }^1_1\), which is obvious. \(\square \)

Proof of Theorem 1.3

In (1) and (2) the fact that the sets are \(\varvec{\Sigma }^1_2\) can be easily seen directly, similarly to (*). Moreover, Lemma 4.9 and the fact that \(\mathbb {N}^\mathbb {N}\) is homeomorphic to \([\mathbb {N}]^\mathbb {N}\) shows that (1) implies (2).

Take the set C from Theorem 4.1. For (1) notice that by Fact 2.2 there exists a Borel map \(f:\mathbb {N}^\mathbb {N}\rightarrow \mathbb {N}^\mathbb {N}\) so that for any s we have \(U^{\varvec{\Pi }^0_1}_{f(s)}=C_s\). Then \(\{s \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}=f^{-1}(\{s \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{U^{\varvec{\Pi }^0_1}_s})<\aleph _0\}),\) which shows that the latter set is \(\varvec{\Sigma }^1_2\)-complete.

For the last statement, suppose that such collection of \(\mathcal {A}_i\)’s exists with the appropriate parametrizations \(E_i \subset X_i \times Y^2_i\). Then, \(\{s \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}=\{s \in \mathbb {N}^\mathbb {N}: (\forall (n_i)_{i \in {\mathbb {N}}} \text { sequence of naturals})(\exists i \in {\mathbb {N}})(\forall c \in \mathbb {N}^\mathbb {N})(\forall x \in X_{n_i})\)

  1. (a)

    \((Y_{n_i},(E_{n_i})_x)\) is not Borel isomorphic to a graph in \(\mathcal {A}_{n_i}\) or

  2. (b)

    \(c \not \in \mathbf {BC}(Y_{n_i} \times [\mathbb {N}]^\mathbb {N})\) or

  3. (c)

    \(\exists y \in Y_{n_i}\) so that \(\lnot ((\exists ! z)((y,z)\in \mathbf {A}(Y_{n_i} \times [\mathbb {N}]^\mathbb {N})_c))\) or

  4. (d)

    \(\exists (y,y')\in (E_{n_i})_x,\exists z,z' \in [\mathbb {N}]^\mathbb {N}\) so that (yz), \((y',z') \in \mathbf {A}(Y_{n_i} \times [\mathbb {N}]^\mathbb {N})_c\) and \((z,z') \in C^2_s \setminus E_\mathcal {S}\}\).

Note that (c) and (d) express that c does not code a total function and that the function coded is not a homomorphism from \((Y_{n_i},(E_{n_i})_x)\) to \(\mathcal {G}_\mathcal {S}|_{C_s}\). Clearly, the formula (a) is \({\varvec{{\Pi }}}^1_1\) and the formulas (b) and (d) are \(\varvec{\Sigma }^1_1\). It follows from the (uniform version of) Luzin’s unicity theorem [10, Theorem 18.11] that (c) is \({\varvec{{\Sigma }}}^1_1\) (an alternative proof can be given using (4) of Fact 2.3).

Consequently, the existence of the families \((\mathcal {A}_n)_{n \in {\mathbb {N}}}\) would imply that the set \(\{s \in \mathbb {N}^\mathbb {N}:\chi _B(\mathcal {G}_\mathcal {S}|_{C_s})<\aleph _0\}\) is \(\varvec{\Pi }^1_2\), contradicting Theorem 4.1. \(\square \)

5 Relation to Hedetniemi’s conjecture and open problems

In this section we collect several open problems and discuss the relation of our results to Hedetniemi’s conjecture.

Let \(\mathcal {G}=(X,E)\) and \(\mathcal {G'}=(X',E')\) be Borel graphs. The product of the graphs \(\mathcal {G}\) and \(\mathcal {G}'\), \(\mathcal {G} \times \mathcal {G'}\), is the graph \((X\times X', E_{\mathcal {G} \times \mathcal {G'}})\), where \((x,x') E_{\mathcal {G} \times \mathcal {G'}} (y,y') \iff (xEy\text { and } x'E'y')\). It is clear that \(\mathcal {G} \times \mathcal {G'}\) is a Borel graph and note also that \(\chi _B(\mathcal {G} \times \mathcal {G'}) \le \min \{\chi _B(\mathcal {G}),\chi _B(\mathcal {G}')\}\). (The Borel version of) Hedetniemi’s conjecture is the statement

$$\begin{aligned} \chi _B(\mathcal {G} \times \mathcal {G'}) = \min \{\chi _B(\mathcal {G}),\chi _B(\mathcal {G}')\}. \end{aligned}$$

The classical Hedetniemi’s conjecture is the above statement for finite graphs (and thus with usual chromatic numbers). Clearly, the Borel version of the conjecture for graphs with finite Borel chromatic numbers implies the classical one. However, there are substantial differences between the Borel and classical cases for infinite chromatic numbers.

On the one hand, note that if for some graph \(\mathcal {G}''\) we have \(\mathcal {G}'' \le _B \mathcal {G}, \mathcal {G'}\) then \(\mathcal {G}'' \le _B \mathcal {G} \times \mathcal {G'}\), thus, in such a situation \(\chi _B(\mathcal {G}'')\) gives a lower bound for the value \(\chi _B(\mathcal {G} \times \mathcal {G'})\). For instance, the \(\mathbb {G}_0\) dichotomy implies Hedetniemi’s conjecture for analytic graphs of Borel chromatic number \(>\aleph _0\).

On the other hand, it has been proved by Hajnal [8] that there exist graphs G and \(G'\) so that \(\chi (G)=\chi (G')=\aleph _1\), but \(\chi (G \times G')<\aleph _1\). Moreover, it has been shown in [12] that it is consistent that there exist graphs \(\mathcal {G},\mathcal {G}'\) with coanalytic edge relation such that \(\chi _B(\mathcal {G}),\chi _B(\mathcal {G}')>\aleph _0\), but \(\chi _B(\mathcal {G}\times \mathcal {G}') \le \aleph _0\).

Note also that a compactness argument implies that if \(\chi (G)=\aleph _0\) and \(\chi (G')=n\) then the conjecture holds.

Concerning the conjecture for finite graphsFootnote 1 it is known that for any \(n>2\) there are graphs with chromatic number n and arbitrarily high odd girth, thus, there is no finite graph H with \(\chi (H)=n\) that would admit a homomorphism to each finite G with \(\chi (G) \ge n\). So, Hedetniemi’s conjecture cannot be solved by a basis result in the collection of finite graphs (see e. g. [22]). However, we would like to remark that the finite conjecture is in fact equivalent to a basis result if we are allowed to consider infinite graphs and the right notion of chromatic number:

Remark 5.1

Let \((G_i)_{i \in \mathbb {N}}=((V_i,E_i))_{i \in \mathbb {N}}\) be an enumeration of all the finite graphs with chromatic number n. Let \(\mathcal {G}_\infty \) be their infinite product, that is, \(\mathcal {G}_\infty =(\prod _i V_i, E_{\prod _i G_i})\), where \((v_0,v_1,\dots )E_{\prod _i G_i} (v'_0,v'_1,\dots )\) if and only if for every \(i \in \mathbb {N}\) we have \(v_iE_iv'_i\). \(\mathcal {G}_\infty \) is a Borel graph with a closed edge relation and it is not hard to see that Hedetniemi’s conjecture for n implies that \(\mathcal {G}_\infty \) has clopen chromatic number n. Conversely, since \(\mathcal {G}_\infty \) admits a continuous homomorphism into each \(G_i\), if the clopen chromatic number of \(\mathcal {G}_\infty \) is n, then Hedetniemi’s conjecture holds for n.

Unfortunately, it is not clear whether it is possible to turn antibasis results to counterexamples to the Borel version of Hedetniemi’s conjecture. But, if one considers \(\Delta ^1_1\)-measurable colorings instead of Borel ones our construction yields an example, which works for a rather simple reason: there exist \(\Delta ^1_1\) sets B and C so that \(\mathcal {G}_\mathcal {S}|_B\) has a finite Borel chromatic number but has no finite \(\Delta ^1_1\) coloring and C contains reals which code finite Borel colorings of B, hence the \(\Delta ^1_1\) chromatic number of the product graph will be finite.

Proposition 5.2

There exist sets \(B,C \in \Delta ^1_1([\mathbb {N}]^\mathbb {N})\) so that \(\chi _B(\mathcal {G}_\mathcal {S}|_C)=\aleph _0\), \(\mathcal {G}_\mathcal {S}|_B\) has no \(\Delta ^1_1\) finite coloring, but the product \(\mathcal {G}_\mathcal {S}|_B \times \mathcal {G}_\mathcal {S}|_C\) has a \(\Delta ^1_1\) 3-coloring.

Proof sketch

Instead of constructing a set \(C \subset [\mathbb {N}]^\mathbb {N}\) we construct a set \(C \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) and prove that \(\mathcal {H}|_{C}\) and \(\mathcal {G}_\mathcal {S}|_B\) has the required properties, from this it is easy to deduce the proposition using Lemma 4.4.

Pick a set \(A \in \Sigma ^1_1(\mathbb {N}) \setminus \Pi ^1_1(\mathbb {N})\) and a set \(C'' \in \Pi ^0_1(\mathbb {N}\times [\mathbb {N}]^\mathbb {N})\) so that \({{\,\mathrm{proj}\,}}_{0}(C'')=A\). Let

$$\begin{aligned} B''=\{(n,y):(\forall x \le ^* y)(x \not \in C''_n)\}. \end{aligned}$$

It is not hard to check (similarly to the proof of Lemma 4.6) that \(B'' \in \Delta ^1_1(\mathbb {N}\times [\mathbb {N}]^\mathbb {N})\), the set \(\{n: \mathcal {G}_\mathcal {S}|_{B''_n} \text { has a finite}\) \({ \Delta ^1_1 \hbox {coloring}}\} \) is \(\Pi ^1_1\) and A contains this set. Consequently, for some \(n \in A\) we have that \(B''_n\) has no \(\Delta ^1_1\) finite coloring, let \(C=\{(x,r):x \in C''_n, r\in [\mathbb {N}]^\mathbb {N}\}\) and \(B=B''_n\). Then clearly \(C \in \Delta ^1_1(\mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N})\) and as \(C''_n\) is nonempty, \(\chi _B(\mathcal {H}|_C)=\aleph _0\). Note now that for every \((x,r) \in C\) clearly \(B \subset \{y:y \le ^\infty x\}\). Thus, by (the lightface version of) Lemma 4.5 for each \((x,r) \in C\) the graph \(\mathcal {G}|_B\) has a \(\Delta ^1_1(x,r)\) 3-coloring. Using 4 of Fact 2.3, the graph \(\mathcal {H}|_{C} \times \mathcal {G}_\mathcal {S}|_{B}\) has a \(\Delta ^1_1\) 3-coloring: we can construct a coloring from the \(\Delta ^1_1(x,r)\)-colorings uniformly. \(\square \)

As we have seen, Theorem 1.3 excludes the possibility of a simple Borel/analytic basis. However, the following is still possible:

Question 5.3

Does there exist a graph \(\mathcal {G}=(X,E)\) where X is a Polish space and E is a \(\varvec{\Pi }^1_1\) edge relation so that for any Borel graph \(\mathcal {G}'\) we have \(\chi _B(\mathcal {G}') \ge \aleph _0\) if and only if \(\mathcal {G} \le _B \mathcal {G}'\)?

Note that the above question makes sense even with some finite number instead of \(\aleph _0\). A possibility of a positive answer is even more intriguing in the light of Remark 5.1: it would be very interesting if in both cases the large chromatic number of a certain class of graphs was witnessed by a graph outside of this class.

On the other hand we don’t know whether the idea of Proposition 5.2 can be turned to a counterexample to the Borel version Hedetniemi’s conjecture.

Question 5.4

Do there exist Borel graphs \(\mathcal {G}, \mathcal {G}'\) so that \(\chi _B(\mathcal {G}\times \mathcal {G}')<\min \{\chi _B(\mathcal {G}),\chi _B(\mathcal {G}')\}\)? What if \(\mathcal {G}\) and \(\mathcal {G}'\) are subgraphs of \(\mathcal {G}_\mathcal {S}\)?

A fundamental tool for the investigation of Hedetniemi’s conjecture is the n-coloring graph \(C_n(G)\) of a graph G defined by El-Zahar and Sauer [7]. It is not clear, however, whether there exist analogous well-behaving objects for Borel graphs.

Problem 5.5

Let \(\mathcal {G}\) be a Borel graph. Define a graph \(C_n(\mathcal {G})\) of n-colorings of \(\mathcal {G}\) for which the results of El-Zahar and Sauer [7] can be generalized.

One could hope for a positive result after excluding the sort of examples constructed in this paper. More precisely, our example can be viewed as follows: a smooth equivalence relation E has been constructed so that there are no \(E_\mathcal {S}\) edges between the classes (in other words E is a smooth super-equivalence relation of a restriction of \(E_0\) to some Borel set) and each E class has finite Borel chromatic number, but the union of E classes has infinite Borel chromatic number. Note also that such a graph still has a \(\varvec{\Sigma }^1_2\)-measurable finite coloring. Hence, the following questions are natural:

Question 5.6

Let \(B \subset [\mathbb {N}]^\mathbb {N}\) be an \(E_0\)-invariant Borel set (that is, it is the union of \(E_\mathcal {S}\) connected components).

  1. (1)

    Suppose that there is no smooth super-equivalence relation E of \(E_0|_B\) so that for every \(x \in B\) we have \(\chi _B(\mathcal {G}_\mathcal {S}|_{[x]_E})<\aleph _0\). Does \(\mathcal {G}_\mathcal {S} \le _B \mathcal {G}_\mathcal {S}|_B\) hold?

  2. (2)

    (PD) Can we formulate basis results for graphs without finite “definable” colorings? For instance, suppose that the graph \(\mathcal {G}_\mathcal {S}|_B\) has no projective finite coloring. Does \(\mathcal {G}_\mathcal {S} \le _B \mathcal {G}_\mathcal {S}|_B\) hold?

Finally, from an affirmative answer to the following question one could give a different proof of Theorem 4.1, inferring it directly from Corollary 3.2.

Question 5.7

Let \(B \subset \mathbb {N}^\mathbb {N}\times [\mathbb {N}]^\mathbb {N}\) be a Borel set such that for all \(x \in \mathbb {N}^\mathbb {N}\) the graph \(\mathcal {G}_\mathcal {S}|_{B_x}\) has finite Borel chromatic number. Does \(B^c\) have a full Borel uniformization?