Top Banner
arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK Abstract. We analyze the Dual Ramsey Theorem for k partitions and col- ors (DRT k ) in the context of reverse math, effective analysis, and strong re- ductions. Over RCA 0 , the Dual Ramsey Theorem stated for Baire colorings Baire-DRT k is equivalent to the statement for clopen colorings ODRT k and to a purely combinatorial theorem CDRT k . When the theorem is stated for Borel colorings and k 3, the resulting principles are essentially relativizations of CDRT k . For each α, there is a computable Borel code for a Δ 0 α coloring such that any partition homogeneous for it computes (α) or (α-1) depending on whether α is infinite or finite. For k = 2, we present partial results giving bounds on the effective content of the principle. A weaker version for Δ 0 n reduced colorings is equivalent to D n 2 over RCA 0 + IΣ 0 n-1 and in the sense of strong Weihrauch reductions. 1. Introduction The Dual Ramsey Theorem states that for every sufficiently nice coloring of the k-block partitions of ω using colors, there is a partition of ω into infinitely many blocks such that every coarsening of it down to exactly k blocks has the same color. The theorem was proved for Borel colorings by Carlson and Simpson [3] (who also show it is not true for arbitrary colorings by a straightforward choice argument) and was extended to colorings with the Baire property by Pr¨ omel and Voigt [10]. Dual Ramsey Theorem ([3], [10]). For all finite k,ℓ 1, if (ω) k = C 0 ∪· · ·∪C 1 , where each C i is Borel (or more generally has the Baire property), then there exist p (ω) ω and i<ℓ such that (p) k C i . In this statement, (ω) k is the set of partitions of ω into k nonempty pieces, (ω) ω is the set of partitions of ω into infinitely many nonempty pieces and (p) k is the set of coarsenings of p down to exactly k many blocks. The partition p in the Dual Ramsey Theorem is said to be homogeneous for the coloring. Typically, we think of the colors C i being disjoint although they do not have to be. Throughout this article, when talking about versions of the Dual Ramsey Theorem with parameters k and , we will assume k,ℓ 2. To study the Dual Ramsey Theorem in computability theory or reverse math- ematics, we must choose a method to code the coloring of k-partitions. Previous work in these areas focused on ODRT k (requiring each color to be open), or avoided coding by considering variants of the Carlson-Simpson Lemma CSL(k,ℓ) (the main Dzhafarov was supported in part by NSF Grant DMS-1400267. The authors thank Jos´ e Mijares and Ludovic Patey for useful comments and discussions during the preparation of this paper. 1
38

arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

Nov 12, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

arX

iv:1

710.

0007

0v1

[m

ath.

LO

] 2

9 Se

p 20

17

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM

DAMIR D. DZHAFAROVSTEPHEN FLOODREED SOLOMON

LINDA BROWN WESTRICK

Abstract. We analyze the Dual Ramsey Theorem for k partitions and ℓ col-ors (DRT

k

ℓ) in the context of reverse math, effective analysis, and strong re-

ductions. Over RCA0, the Dual Ramsey Theorem stated for Baire coloringsBaire-DRT

k

ℓis equivalent to the statement for clopen colorings ODRT

k

ℓand to

a purely combinatorial theorem CDRTk

ℓ.

When the theorem is stated for Borel colorings and k ≥ 3, the resultingprinciples are essentially relativizations of CDRT

k

ℓ. For each α, there is a

computable Borel code for a ∆0α coloring such that any partition homogeneous

for it computes ∅(α) or ∅(α−1) depending on whether α is infinite or finite.For k = 2, we present partial results giving bounds on the effective content

of the principle. A weaker version for ∆0n reduced colorings is equivalent to

Dn2 over RCA0 + IΣ0

n−1 and in the sense of strong Weihrauch reductions.

1. Introduction

The Dual Ramsey Theorem states that for every sufficiently nice coloring of thek-block partitions of ω using ℓ colors, there is a partition of ω into infinitely manyblocks such that every coarsening of it down to exactly k blocks has the same color.The theorem was proved for Borel colorings by Carlson and Simpson [3] (who alsoshow it is not true for arbitrary colorings by a straightforward choice argument)and was extended to colorings with the Baire property by Promel and Voigt [10].

Dual Ramsey Theorem ([3], [10]). For all finite k, ℓ ≥ 1, if (ω)k = C0∪· · ·∪Cℓ−1,where each Ci is Borel (or more generally has the Baire property), then there existp ∈ (ω)ω and i < ℓ such that (p)k ⊆ Ci.

In this statement, (ω)k is the set of partitions of ω into k nonempty pieces, (ω)ω

is the set of partitions of ω into infinitely many nonempty pieces and (p)k is theset of coarsenings of p down to exactly k many blocks. The partition p in the DualRamsey Theorem is said to be homogeneous for the coloring. Typically, we thinkof the colors Ci being disjoint although they do not have to be. Throughout thisarticle, when talking about versions of the Dual Ramsey Theorem with parametersk and ℓ, we will assume k, ℓ ≥ 2.

To study the Dual Ramsey Theorem in computability theory or reverse math-ematics, we must choose a method to code the coloring of k-partitions. Previouswork in these areas focused on ODRT

kℓ (requiring each color to be open), or avoided

coding by considering variants of the Carlson-Simpson Lemma CSL(k, ℓ) (the main

Dzhafarov was supported in part by NSF Grant DMS-1400267. The authors thank Jose Mijaresand Ludovic Patey for useful comments and discussions during the preparation of this paper.

1

Page 2: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

2DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

combinatorial lemma in [3], defined below in Section 3) such as the Variable andOrdered Variable Word principles VW(k, ℓ) and OVW(k, ℓ).

Miller and Solomon [9] defined the principle ODRTkℓ to be the restriction of

the Dual Ramsey Theorem for k partitions and ℓ colors in which each color isrepresented by a code for an open set (and hence each color is clopen). Formalizing

arguments from [3], they showed that ODRTk+1ℓ implies RTk

ℓ over RCA0, and hence

when k ≥ 4, ODRTkℓ implies ACA0.

For the variants of Carlson-Simpson Lemma, Erhard [6] proved that COH does

not imply VW(2, 2) and that SRT22 does not imply OVW(2, 2), while Solomon and

Miller [9] showed that WKL0 does not imply VW(2, 2). However, the methods usedin these proofs do not extend to the more general Carlson-Simpson Lemma and itremains an open question whether CSL(2, 2) is computably true.

In the present paper, we consider a broader range of representations for the col-orings in the Dual Ramsey Theorem. After fixing notation in Section 2, we specifyfour version of the Dual Ramsey Theorem in Section 3. Three of the versions aredirectly related to the formal method of coding the coloring: Borel-DRTk

ℓ uses Borel

codes, ODRTkℓ uses codes for open sets and Baire-DRT

kℓ uses a Baire approximation

to the coloring. The fourth variant, CDRTkℓ is a combinatorial statement similar to

the Carlson-Simpson Lemma (with a slight shift in parameters) but is more closely

tied to the topological versions. In particular, CDRTkℓ implies the Carlson-Simpson

Lemma (with appropriate parameters) and it follows from transfinitely many nestedapplications of the Carlson-Simpson Lemma (again, with appropriate parameters).

In Section 3.1, we show that Baire-DRTkℓ , ODRT

kℓ and CDRT

kℓ are equivalent over

RCA0, and that when k = 2, these principles are provable in RCA0, and hence arecomputably true. The coding issues for Borel-DRTk

ℓ are more subtle. We discuss the

connections between Borel-DRTkℓ , Baire-DRT

kℓ and ATR0 in Section 3.2 but delay

the formal reverse mathematics proofs until Section 6.Simpson noted a connection between CSL(2, ℓ) and Hindman’s Theorem (see [3,

page 268]), and we thank Ludovic Patey for showing us a proof of CSL(2, ℓ) fromHindman’s Theorem. With minor modifications, we adapt this proof in Section 3.4to show that Hindman’s Theorem for ℓ colorings implies CDRT3

ℓ and hence ACA+0

implies CDRT3ℓ by Blass, Hirst and Simpson [2]. We also show that the method

does not generalize for k > 3.The earliest claim we are aware of for a proof of CDRT

kℓ is in [10] where a

generalization of CDRTkℓ labeled Theorem A is attributed to a preprint of Voigt

titled “Parameter words, trees and vector spaces”. However, as far as we can tell,this paper never appeared in print. Another proof of CDRT

kℓ can be found in

[14] where it comes as a corollary of a larger theory. Therefore, in Section 3.5, we

present a self contained classical proof of CDRTkℓ for k ≥ 3 (since CDRT2

ℓ is provablein RCA0) in which the only non-constructive steps are ω ·(k−2) nested applicationsof the Carlson-Simpson Lemma.

In Section 4, we consider Borel-DRTk2 for k ≥ 3 from the perspective of effective

combinatorics rather than reverse mathematics. For each ordinal 0 < α < ωCK1 ,

there is a ∅(α)-computable clopen coloring (ω)k = R∪R for which any homogeneousinfinite partition p computes ∅(α). We pull the ∅(α) description of the open set Rdown to a computable code for R at the expense of describing R as a topologically∆0

α or ∆0α+1 set in the Borel hierarchy depending on whether α is infinite or finite.

Page 3: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 3

Figure 1. Implications over RCA0 between variants of the DualRamsey Theorem considered in this paper and some related prin-ciples. The parameter k ≥ 4 is arbitrary.

Π11-CA0

++❳❳❳❳

❳❳❳❳

❳❳❳❳

❳❳❳❳

tt✐✐✐✐✐✐✐✐✐✐✐✐✐✐

ATR0

��

Borel-DRTk2

��

ACA+0

��

CDRTk2 ↔ Baire-DRTk

2 ↔ ODRTk2

��vv♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠

ss❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣

HT2

**❱❱❱❱

❱❱❱❱

❱❱❱

��

ACA0

��

CDRT32 ↔ Baire-DRT3

2 ↔ ODRT32

tt✐✐✐✐✐✐✐✐✐✐✐✐✐

++❳❳❳❳

❳❳❳❳

❳❳❳❳

❳❳❳

CSL(k − 1, 2)

��

RT22

��

CSL(2, 2)

vv♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥

SRT22 ↔ ∆0

2-rDRT22

**❯❯❯❯

❯❯❯❯

RCA0 ↔ CDRT22 ↔ Baire-DRT2

2 ↔ ODRT22

Therefore, for each 0 < α < ωCK1 , there is a computable Borel code for a set R

as a topologically ∆0α set (although R is classically open) such that every infinite

homogeneous partition for the coloring (ω)k = R ∪ R computes ∅(α−1) or ∅(α)

depending on whether α is finite or infinite.We interpret the results in Sections 3 and 4 as indicating that Baire codes are a

more natural representation than Borel codes for studying computational propertiesof the Dual Ramsey Theorem and that the Borel version of the Dual RamseyTheorem can be thought of as a relativization of the Baire version.

In Section 5, we study Borel-DRT22 and give upper bounds on the complexity

of finding an infinite homogeneous partition for colorings (ω)2 = R ∪ R where Ris coded as a set at a finite level of the Borel hierarchy. If R is a computableopen set, then there is a computable infinite homogeneous partition, although theconstruction of this partition is necessarily non-uniform. If R has a computablecode as a Σ0

n+2 set in the Borel hierarchy, then there is either a ∅(n)-computable

homogeneous partition for R or a ∅(n+1)-computable homogeneous partition for R.Because of the non-uniformity in these results, we end Section 5 by character-

izing a restriction of Borel-DRT22 under strong Weihrauch reducibility. For this

reducibility, we think of Borel-DRT22 as an instance-solution problem. Such a prob-

lem consists of a collection of subsets of ω called the instances of this problem, andfor each instance, a collection of subsets of ω called the solutions to this instance(for this problem). A problem P is strongly Weihrauch reducible to a problem Q

if there are fixed Turing functionals Φ and Ψ such that given any instance A ofP, ΦA is an instance of Q, and given any solution B to ΦA in Q, ΨB is a solution

Page 4: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

4DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

to A in P. There are a number of variations on this reducibility and we refer tothe reader to [5] and [8] for background on these reductions and for connections toreverse mathematics. In this paper, we will only be interested in problems arisingout of Π1

2 statements of second order arithmetic. Any such statement can be putin the form ∀X(ϕ(X) → ∃Y ψ(X,Y )), where φ and ψ are arithmetical. We canthen regard this as a problem, with instances being all X such that ϕ(X), andthe solutions to X being all Y such that ψ(X,Y ). Note that while the choice ofϕ and ψ is not unique, we always have a fixed such choice in mind for a given Π1

2

statement, and so also a fixed assignment of instances and solutions.We formulate a version of Borel-DRT

22, denoted ∆0

n-rDRT22, for which the in-

stances are reduced colorings (ω)2 = R ∪ R where R and R are given by Borelcodes for Σ0

n sets in the Borel hierarchy and the solutions are homogeneous infinitepartitions. (We define a reduced coloring in Section 3.) We show this problemis strong Wiehrauch equivalent (and equivalent over RCA0 + IΣ0

n−1) to Dn2 which

states that every stable coloring c : [ω]n → 2 has an infinite limit-homogeneous

set. In particular, since D22 is equivalent to SRT

22 over RCA0 by Chong, Lempp and

Yang [4], it follows that ∆02-rDRT

22 is equivalent to SRT

22 over RCA0.

In Section 6, we present a number of technical results in reverse mathematicsconnected to Borel and Baire codes. In particular, we show that ATR0 is equivalentto the statement that every Borel code has a Baire approximation and to thestatement that for every Borel code B, there is some point x such that x ∈ B orx 6∈ B. The proofs use a method of effective transfinite recursion, ETR, which isavailable in ACA0 (and possibly in weaker systems). Variations of these results areknown in some branches of effective mathematics. For example, Ash and Knight[1] prove similar results in the context of computable fragments of Lω1,ω ratherthan Borel codes. Greenberg and Montalban [7] use ETR to establish equivalencesof ATR0 and claim that ETR is provable in RCA0. However, their proof of ETRoverlooks an application of Σ0

1 transfinite induction, and in general, transfiniteinduction for Σ0

1 formulas does not hold in RCA0. While the main results in [7]continue to hold because Greenberg and Montalban show the classified theoremsimply ACA0 without reference to ETR (and hence can use ETR in ACA0 to completethe equivalence with ATR0), we have included a proof of ETR to make explicit theuse of transfinite induction.

We end this section with two comments on notation. First, we use ω to denotethe natural numbers, which in subsystems of Z2 is the set {x : x = x}, oftendenoted by N in the literature. Despite this notation, we do not restrict ourselvesto ω-models. Second, when we refer to the parameters k and ℓ in versions of theDual Ramsey Theorem, we assume k and ℓ are arbitrary standard numbers withk, ℓ ≥ 2. By a statement such as “RCA0 proves Borel-DRTk

ℓ implies Baire-DRTkℓ ”,

we mean, for all k, ℓ ≥ 2, RCA0 ⊢ Borel-DRTkℓ → Baire-DRT

kℓ . For many results,

the quantification over k and ℓ can be pulled inside the formal system. However,in some cases, issues of induction arise and we wish to set those aside in this work.

2. Notation

For k ≤ ω, let k<ω denote the set of finite strings over k and let kω denote the setof functions f : ω → k. As noted above, unless explicitly stated otherwise, we willalways assume that k ≥ 2. For σ ∈ k<ω, |σ| denotes the length of σ, and if |σ| > 0,σ(0), . . . , σ(|σ| − 1) denote the entries of σ in order. For p ∈ kω and σ ∈ k<ω, we

Page 5: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 5

write σ ≺ p if σ is an initial segment of p. Similarly, if σ, τ ∈ k<ω, we write σ � τif σ is an initial segment of τ and σ ≺ τ if σ is a proper initial segment of τ . Wewrite p ↾ n to denote the string obtained by restricting the domain of p to n. Thestandard (product) topology on kω is generated by basic clopen sets of the form

[σ] = {p ∈ kω : σ ≺ p}

for σ ∈ k<ω.Informally, for k ≤ ω, a k-partition p of ω is a collection of k many pairwise

disjoint nonempty sets Bpi ⊆ ω (called blocks or p-blocks) such that ∪i<kB

pi = ω.

When the partition is clear from context, we may drop the superscript p. We denotethe least element of Bp

i by µp(i) or simply µ(i). To fix a unique representation foreach k-partition, we assume the blocks are indexed such that µp(i) < µp(i + 1).With this convention, each k-partition is represented by a unique surjective functionp : ω → k with p−1(i) = Bp

i .More formally, we say f ∈ kω is ordered if

∀n ∀i < k(f(n) = i→ ∀j < i ∃m < n (f(m) = j)

)

and we say that σ ∈ k<ω is ordered if it satisfies the analogous condition for alln < |σ|. We let (ω)k ⊆ kω denote the set of ordered surjective functions f ∈ kω. Insecond order arithmetic, we view the notation p ∈ (ω)k as shorthand for the formalstatement that p : ω → k is an ordered surjective function. Similar comments applyto many of the sets defined below. In RCA0, we define a k-partition as follows.

Definition 2.1. Let k ≤ ω. A k-partition of ω is a function p ∈ (ω)k. If k < ω, wesay that p is a finite partition and if k = ω, we say that p is an infinite partition.

For finite k, (ω)kfin denotes the set of ordered σ ∈ k<ω in which all i < k appear.That is, σ ∈ (ω)kfin represents a k-partition of an initial segment of ω. The set (ω)k

inherits the subspace topology from kω with basic open sets of the form [σ] ∩ (ω)k

for σ ∈ k<ω. The space (ω)k is not compact since, for example, the collectionof open sets [0n1] for n ≥ 1 cover (ω)2 but this collection has no finite subcover.However, if σ ∈ (ω)kfin, then [σ] ⊆ (ω)k and [σ] is a compact clopen subset of (ω)k.To generate the topology on (ω)k, it suffices to restrict to the basic clopen sets ofthe form [σ] with σ ∈ (ω)kfin. Although the notation [σ] is ambiguous about whetherthe ambient space is kω or (ω)k (or ℓω or (ω)ℓ for some ℓ > k), the meaning will beclear from context.

Definition 2.2. Let p ∈ (ω)ω and k ≤ ω. We say q is a k-coarsening of p ifq ∈ (ω)k and for all n,m ∈ ω, if p(n) = p(m), then q(n) = q(m). In other words, qis a k-partition and each p-block is contained in a q-block. We let (p)k denote theset of all k-coarsenings of p.

Similarly, for τ ∈ (ω)hfin with h ∈ ω, σ ∈ (ω)kfin is a k-coarsening of τ if k ≤ h,|σ| = |τ | and for all n,m < |τ | such that τ(n) = τ(m), we have σ(n) = σ(m).

As with (ω)k, (p)k inherits the subspace topology from kω. For k < ω, we let(p)kfin denote the set of all σ ∈ (ω)kfin which are coarsenings of p ↾ µp(n) for somen ≥ k. The topology on (p)k is generated by [σ] for σ ∈ (p)kfin.

Coarsenings have a natural composition operation. Let p ∈ (ω)ω, k ∈ ω andr ∈ (ω)k. Viewing p and r as functions, the composition r ◦ p : ω → k is an orderedsurjective map with r ◦ p ∈ (p)k. Intuitively, the partition coded by r ◦ p uses r todescribe how to combine the p-blocks. If r(m) = r(n) = i, then the p-blocks Bp

n

Page 6: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

6DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

and Bpm will be contained in the (r ◦ p)-block Br◦p

i . The map from (ω)k to (p)k

defined by r 7→ r ◦ p gives a canonical homeomorphism between these sets.We can also compose elements of (ω)kfin and (ω)hfin under the right conditions.

Let k < h, σ ∈ (ω)kfin, and τ ∈ (ω)hfin. If |σ| ≥ h, then σ ◦ τ : |τ | → k is ordered.Moreover, if |σ| ≥ h > µσ(k − 1), then σ ◦ τ ∈ (ω)kfin because the least element ofthe last σ-block appears in the range of τ and thus σ ◦ τ is onto k.

We will use this compositional structure in two ways. First, we will use effectiveversions of the following lemma which states that an open coloring ∪i<ℓOi = (p)k

of the k-coarsenings of a fixed partition p ∈ (ω)ω can be turned into a coloring

∪i<ℓOi = (ω)k of the k-coarsenings of ω such that the set of all k-coarsenings of

q ∈ (ω)ω are contained in Oi if and only if the set of all k-coarsenings of q ◦ p arecontained in Oi.

Lemma 2.3. Fix p ∈ (ω)ω and k, ℓ ∈ ω. Let Oi, i < ℓ, be open sets in (p)k such

that (p)k = ∪i<ℓOi. There are open sets Oi, i < ℓ, in (ω)k such that ∪i<ℓOi = (ω)k

and for any q ∈ (ω)ω and i < ℓ, (q)k ⊆ Oi if and only if (q ◦ p)k ⊆ Oi.

Proof. This follows from the continuity of the canonical homeomorphism φ : (ω)k →

(p)k, where φ(r) = r ◦ p. Letting Oi = φ−1(Oi), it is straightforward to check thatthese are as required. �

Later we will need to use the fact that this lemma holds in RCA0. For thatpurpose it is useful to express Oi as a union of basic open sets and describe theinverse image of each. Let Si ⊆ (p)kfin be such that Oi =

⋃σ∈Si

[σ]. For each

σ ∈ (p)kfin, let n be such that σ is a coarsening of p ↾ µp(n) and define τσ ∈ (ω)kfin tobe the string such that |τσ| = n and τσ(i) = σ(µp(i)) for all i < n. This definitionensures that τσ ◦ p = σ. We have for any r ∈ (ω)k, r ∈ [τσ] if and only if r ◦ p ∈ [σ].

Therefore, φ−1([σ]) = [τσ ] and Oi =⋃

σ∈Si[τσ].

Second, we will use the compositional structure to describe the k-coarsenings ofa given τ ∈ (ω)s+1

fin .

Lemma 2.4. Let s ∈ ω and τ ∈ (ω)s+1fin . For k ≤ s+ 1, the k-coarsenings of τ are

exactly the strings σ ◦ τ where σ ∈ (ω)kfin with |σ| = s+ 1.

Proof. Fix s, τ and k ≤ s + 1. Let σ ∈ (ω)kfin be such that |σ| = s + 1. Because

τ ∈ (ω)s+1fin and |σ| = s + 1 > µσ(k − 1), we have σ ◦ τ ∈ (ω)kfin by the comments

preceding Lemma 2.3. Therefore, σ ◦ τ is a k-coarsening of τ .Conversely, let τ ′ be a k-coarsening of τ . Define σ ∈ (ω)kfin with |σ| = s + 1 by

σ(i) = τ ′(µτ (i)) for all i < s + 1. By calculations similar to those in the proof ofLemma 2.3, we have that for all n < |τ | = |τ ′|, σ(τ(n)) = τ ′(n) as required. �

3. The Dual Ramsey Theorem

3.1. Four versions of the Dual Ramsey Theorem. We formulate four versionsof the Dual Ramsey Theorem in second order arithmetic and examine how they arerelated in reverse mathematics.

Definition 3.1 (RCA0). A code for an open set in (ω)k is a set O ⊆ ω × (ω)kfin.We say that a partition p ∈ (ω)k is in the open set coded by O (or just in O andwrite p ∈ O) if there is a pair 〈n, σ〉 ∈ O such that p ∈ [σ].

A code for an closed set in (ω)k is also a set V ⊆ ω× (ω)kfin. In this case, we sayp ∈ (ω)k is in V (and write p ∈ V ) if for all pairs 〈n, σ〉 ∈ V , p 6∈ [σ].

Page 7: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 7

We code a sequence of open sets {Oi}i<ω by O ⊆ ω × ω × (ω)kfin with p ∈ Oi ifthere is a triple 〈i, n, σ〉 ∈ O such that p ∈ [σ]. The codes in Definition 3.1 can begeneralized to Borel sets which we describe in Section 3.2, although we delay theformal definition until Section 6 when we prove the results about Borel codes.

It will be useful to consider not only open colorings of (ω)k but also open coloringsof (p)k for p ∈ (ω)ω. Modifying Definition 3.1, a code for an open set in (p)k isa set O ⊆ ω × (p)kfin and we write x ∈ O if there is a pair 〈n, σ〉 ∈ O such thatσ ≺ x. With these definitions, the proof of Lemma 2.3 goes through in RCA0 with

the modification that O = {〈n, τσ〉 : 〈n, σ〉 ∈ O}.Coding colorings or sets with the Baire property in second order arithmetic is

complicated by the fact that there are 2c (where c = 2ℵ0) many subsets of (ω)k or kω

with the Baire property. Our definition for Baire codes (given below) is motivatedby considering how facts about sets with the Baire property are typically proved.

Definition 3.2 (RCA0). An open set O ⊆ (ω)k is dense if for all τ ∈ (ω)kfin,[τ ] ∩ O 6= ∅. That is, for all τ , there is a pair 〈n, σ〉 ∈ O such that σ and τ arecomparable as strings.

RCA0 suffices to prove the Baire Category Theorem: if {Dn}n<ω is a sequence ofdense open sets, then ∩n<ωDn is dense. Classically, if a coloring ∪i<ℓCi = (ω)k hasthe Baire property, then it has a comeager approximation given by sequences of opensets {Oi}i<ℓ and {Dn}n<ω such that each Dn is dense and for each p ∈ ∩n<ωDn,p ∈ Ci if and only if p ∈ Oi. The fact that ∪i<ℓCi = (ω)k implies that ∪i<ℓOi isdense. Often, a classical proof about colorings or sets with the Baire property willstart by fixing a comeager approximation and will proceed by working exclusivelywith this approximation. This classical observation motivates our definition of acode for a Baire coloring.

Definition 3.3 (RCA0). A code for a Baire ℓ-coloring of (ω)k is a sequence ofdense open sets {Dn}n<ω together with a sequence of open sets {Oi}i<ℓ such that⋃

i<ℓOi is dense in (ω)k.

In Definition 3.3, the code consists of a comeager approximation to the intendedcoloring and thus avoids the difficulties of explicitly describing the coloring in secondorder arithmetic. Note that if we define (classically) Ci = Oi ∩

⋂n<ωDn, then

∪i<ℓCi will differ from (ω)k on a meager set. Thus, a single code for a Bairecoloring will represent many different classical colorings, each of which admits thesame comeager approximation.

We abuse terminology and refer to the Baire code as a Baire ℓ-coloring of (ω)k.Similarly, an open (or Borel) ℓ-coloring is a coloring (ω)k = ∪i<ℓCi in which eachCi is given by an open (or Borel, respectively) code.

Definition 3.4. For each (standard) k, ℓ ≥ 2, we define Borel-DRTkℓ , Baire-DRT

kℓ ,

ODRTkℓ and CDRT

kℓ in RCA0.

(1) Borel-DRTkℓ : For every Borel ℓ-coloring (ω)k = ∪i<ℓCi, there is a partition

p ∈ (ω)ω and a color i < ℓ such that for all x ∈ (p)k, x ∈ Ci.

(2) Baire-DRTkℓ : For every Baire ℓ-coloring {Oi}i<ℓ and {Dn}n<ω of (ω)k, there

is a partition p ∈ (ω)ω and a color i < ℓ such that for all x ∈ (p)k,x ∈ Oi ∩

⋂nDn.

(3) ODRTkℓ : For every open ℓ-coloring (ω)k = ∪i<ℓOi, there is a partition

p ∈ (ω)ω and a color i < ℓ such that for all x ∈ (p)k, x ∈ Oi.

Page 8: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

8DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

(4) CDRTkℓ : For every coloring (ω)k−1

fin = ∪i<ℓCi, there is a partition p ∈ (ω)ω

and a color i < ℓ such that for all x ∈ (p)k, x ↾ µx(k − 1) ∈ Ci.

In the statement of CDRTkℓ , each color Ci ⊆ (ω)k−1

fin is a set of strings in secondorder arithmetic and there is no assumption that the colors are disjoint. However, in

RCA0, given a coloring (ω)k−1fin = ∪i<ℓCi, we can define a partition (ω)k−1

fin = ∪i<ℓCi

where σ ∈ Ci if and only if i is the least index such that σ ∈ Ci. Thus, it is equivalentover RCA0 to state CDRT

kℓ in terms of colorings given as functions c : (ω)kfin → ℓ.

Similarly, in RCA0, we can replace open sets Oi, i < ℓ, by pairwise disjoint open

sets Oi such that Oi ⊆ Oi and ∪i<ℓOi = ∪i<ℓOi. Therefore, in RCA0, we canassume without loss of generality that the individual colors in Baire-DRT

kℓ , ODRT

kℓ

and CDRTkℓ are pairwise disjoint.

Our first goal is to show that the instances of CDRTkℓ are in one-to-one canonical

correspondence with those instances of ODRTkl for which the coloring of (ω)k is

reduced. We define a reduced coloring without considering the coding method andnote that any reduced coloring is classically open. In RCA0, we will use the notionof a reduced coloring only in the context of an open coloring.

Definition 3.5. Let y ∈ (ω)ω and m < k. A coloring of (y)k is m-reduced ifwhenever p, q ∈ (y)k and p ↾ µp(m) = q ↾ µq(m), p and q have the same color. Acoloring of (y)k is reduced if it is (k − 1)-reduced.

Proposition 3.6 (RCA0). The following are equivalent.

(1) CDRTkℓ .

(2) For every y ∈ (ω)ω and open reduced coloring (y)k = ∪i<ℓOi, there arep ∈ (y)ω and i < ℓ such that for all x ∈ (p)k, x ∈ Oi.

Proof. Assume (2) and fix c : (ω)k−1fin → ℓ. Let y ∈ (ω)ω be the trivial partition

with blocks {0}, {1}, . . . and note that (y)k = (ω)k. For each i < ℓ, let

Oi = {〈0, σa(k − 1)〉 : σ ∈ (ω)k−1fin and c(σ) = i}

be an open code for the union of clopen sets [σa(k − 1)] such that c(σ) = i.(ω)k = ∪i<ℓOi is an open reduced coloring of (ω)k such that any p ∈ (ω)ω which ishomogeneous for this coloring is also homogeneous for c.

For the other direction, assume CDRTkℓ . Fix y ∈ (ω)ω and a reduced open

coloring (y)k = ∪i<ℓOi. By Lemma 2.3, let ∪i<ℓOi = (ω)k be an open coloring such

that for any q ∈ (ω)ω, (q)k ⊆ Oi if and only if (q ◦ y)k ⊆ Oi. It is straightforward

to check that the coloring (ω)k = ∪i<ℓOi is also reduced.

We claim that for each σ ∈ (ω)k−1fin , there is a triple 〈n, τ, i〉 ∈ ω× (ω)kfin × ℓ such

that 〈n, τ〉 ∈ Oi and σa(k − 1) � τ . To see why, let p ∈ (ω)k be any partition

extending σa(k − 1). Because (ω)k = ∪i<ℓOi, there is a color i < ℓ and a pair

〈n, τ〉 ∈ Oi such that τ ≺ p. Since τ ∈ (ω)kfin, we have σa(k − 1) � τ , proving the

existence of the triple 〈n, τ, i〉. Because the coloring {Oi}i<ℓ is reduced, for any

x ∈ (ω)k, if x ↾ µx(k − 1) = σ = p ↾ µp(k − 1), then x ∈ Oi as well.

For each σ ∈ (ω)k−1fin , let 〈nσ, τσ, iσ〉 be the least triple satisfying the conditions

in the previous paragraph. Define c : (ω)k−1fin → ℓ by c(σ) = iσ. It follows that for

each x ∈ (ω)k and each i < ℓ, if c(x ↾ µ(k− 1)) = i, then x ∈ Oi. Applying CDRTkℓ

to c, there are i < ℓ and q ∈ (ω)ω such that for all x ∈ (q)k, c(x ↾ µ(k − 1)) = i.

Therefore, (q)k ⊆ Oi. Setting p = q ◦ y ∈ (y)ω, we have (p)k = (q ◦ y)k ⊆ Oi. �

Page 9: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 9

It is now routine to show that the number of colors does not matter.

Proposition 3.7 (RCA0). CDRTkℓ and CDRT

k2 are equivalent.

Proof. Collapse colors and iterate CDRTk2 finitely many times using the canonical

correspondence in Lemma 2.3. �

Lemma 3.8 (RCA0). For any Baire ℓ-coloring of (ω)k given by {O}i<ℓ and{Dn}n∈ω, there is a function f : (ω)kfin × ω → (ω)kfin × ℓ such that for all τ ∈ (ω)kfinand s ∈ ω, f(τ, s) = 〈δ, i〉 where τ ≺ δ and [δ] ⊆ Oi ∩

⋂n<sDn.

Proof. The function f is defined in a straightforward way by primitive recursionand minimization using the density of each Dn and ∪i<ℓOi. �

The next proof is essentially an effective version of an argument in [10].

Theorem 3.9 (RCA0). Baire-DRTkℓ , ODRT

kℓ and CDRT

kℓ are equivalent.

Proof. By settingDn = (ω)k in Baire-DRTkℓ , ODRT

kℓ is a special case of Baire-DRTk

ℓ ,

and by Proposition 3.6, CDRTkℓ is a special case of ODRTk

ℓ . It remains to prove in

RCA0 that CDRTkℓ implies Baire-DRTk

ℓ .Let {Oi}i<ℓ, {Dn}n<ω be a Baire ℓ-coloring of (ω)k for which the open sets Oi

are pairwise disjoint. We construct a partition y ∈ (ω)ω such that (y)k ⊆ ∩nDn

and ∪iOi restricted to (y)k is reduced. By Proposition 3.6 and CDRTkℓ , there is a

homogeneous z ∈ (y)ω for this open reduced coloring. Since (z)k ⊆ (y)k ⊆ ∩nDn,this partition z is homogeneous for the original Baire coloring.

To build y ∈ (ω)ω, we construct a sequence τk−1 ≺ τk ≺ · · · of strings τs ∈ (ω)sfinin stages starting with τk−1 for notational convenience and set y = ∪s≥k−1τs. Wedefine τk−1 by |τk−1| = k − 1 and τk−1(n) = n for n < k − 1, so τk−1 correspondsto the trivial partition {0}, {1}, . . . , {k − 1} of k.

At stage s+1, assume we have defined τs ∈ (ω)sfin with |τs| = ms. We extend τsfinitely many times to obtain τs+1. For the initial extension, let τ

0s = τas s ∈ (ω)s+1

fin

which ensures that µx(s) = ms.For the remaining extensions, consider the ways to coarsen a finite partition with

(s+1) many blocks down to a partition with k many blocks. By Lemma 2.4, thesecoarsenings correspond to composing with strings σ ∈ (ω)kfin of length s + 1. LetMs denote the number of σ ∈ (ω)kfin with |σ| = s + 1 and let σ0

s , . . . , σMs−1s list

these strings. We define extensions τ js for 1 ≤ j ≤Ms (with τ0s defined above) andset τs+1 = τMs

s .Assume τ js has been defined. By Lemma 3.8, let δjs and i

js be such that σj

s◦τjs ≺ δjs

and [δjs] ⊆ Oijs∩⋂

n<s+1Dn. That is, we coarsen τ js by the j-th canonical way to

coarsen the (s+ 1) many blocks to k blocks and then we take an extension of thiscoarsening that lies in Oi

js∩⋂

n<s+1Dn for some ijs < ℓ.

To define τ j+1s , we want to “uncollapse” δjs by reversing the coarsening done to

τ js by σjs. Define τ j+1

s with |τ j+1s | = |δjs| by considering each n < |δjs|. If n < |τ js | set

τ j+1s (n) = τ js (n), guaranteeing that τ js ≺ τ j+1

s . For n ≥ |τ js |, let τj+1s (n) = τ js (m)

where m is least such that δjs(m) = δjs(n). That is, m = µδjs(δjs(n)). (Below weshow that m ≤ ms and σj

s ◦ τj+1s = δjs.) This completes the definition of τs+1 and

hence the construction of y in RCA0 since the initial segments of y are defined byprimitive recursion using the function f from Lemma 3.8.

Claim. In the definition of τ j+1s (n) when n ≥ |τ js |, the number m satisfies m ≤ ms.

Page 10: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

10DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Since τ0s � τ js , if m is the least element of a τ js -block, then m ≤ ms. Becauseσj ◦ τ js is a coarsening of τ js , it follows that if m is the least element of a (σj ◦ τ js )-block, then m ≤ ms. Therefore, since σj

s ◦ τjs ≺ δjs and m is the least element of a

δjs-block, we have m ≤ ms.

Claim. For all s ≥ k and j < Ms, σjs ◦ τ

j+1s = δjs.

We show that for all n < |δjs|, σjs(τ

j+1s (n)) = δjs(n). For n < |τ js |,

σjs(τ

j+1s (n)) = σj

s(τjs (n)) = δjs(n)

where the last equality holds because σjs ◦ τ

js ≺ δjs. For n ≥ |τ js |, τ

j+1s (n) = τ js (m)

for an m ≤ ms such that δjs(m) = δjs(n). Therefore,

σjs(τ

j+1s (n)) = σj

s(τjs (m)) = δjs(m) = δjs(n)

where the second equality holds because m ≤ ms < |τ js | and σjs ◦ τ

js ≺ δjs.

Claim. (y)k ⊆ ∪i<ℓOi and the coloring ∪i<ℓOi restricted to (y)k is reduced.

Let x ∈ (y)k. We need to show that there is an i such that x ∈ Oi. (Since theopen sets Oi are pairwise disjoint, there is at most one such index i.) Furthermore,

for any x′ ∈ (y)k with x′ ↾ µx′

(k−1) = x ↾ µx(k−1), we need to show that x′ ∈ Oi.Let m = µx(k − 1). Since m is the least element of an x-block, it must be the

least element of a y-block. Fix s such that m = µy(s) and note that s ≥ k − 1.In the notation of the construction, m = ms and y(m) = s was first decided atstage s+1. In particular, τ0s = τas s is the initial segment of y ending with the leastelement of By

s . Similarly, x ↾ (µx(k− 1)+1) is the initial segment of x ending withthe least element of Bx

k−1.Since By

s is the least y-block collapsed into Bxk−1, we can fix the index j < Ms

from stage s + 1 such that σjs ∈ (ω)kfin with |σj

s | = s + 1 satisfies σjs ◦ τ0s = x ↾

(µx(k− 1)+1). That is, σjs described how x collapses the first (s+1)-many blocks

of y into the k-many blocks of x. For any initial segment γ of y with τ0s � γ(so γ contains elements from each of the first (s + 1)-many y-blocks) and withγ � τs+1 (so γ only containing elements from the first (s + 1)-many y-blocks),σjs ◦ γ will collapse the (s + 1)-many γ-blocks as x specifies and so will satisfyσjs ◦ γ ≺ x. In particular, since τ0s � τ j+1

s ≺ y and |τ j+1s | ≤ |τs+1| = µy(s + 1),

we have σjs ◦ τ j+1

s = δjs ≺ x. However, [δjs] ⊆ Oijsby construction, so x ∈ O

ijs. If

x′ ∈ (y)k satisfies x′ ↾ µx′

(k−1) = x ↾ µx(k−1), then x′ determines the same stringσjs ∈ (ω)kfin and hence x′ ∈ Oi

jsas well. This completes the proof of the claim.

Finally, we show that if x ∈ (y)k, then x ∈ ∩n<ωDn. Fix x and let m and s beas in the proof of the previous claim. Since δjs ≺ x and [δjs] ⊆ ∩n<s+1Dn, we havex ∈ ∩n<s+1Dn. The following claim will complete the proof that x ∈ ∩n<ωDn.

Claim. For all t > s, by the end of stage t+ 1, it is forced that x ∈ Dt.

The proof of this claim is almost identical to the proof that the coloring ∪i<ℓOi

restricted to (y)k is reduced. Fix a stage t + 1 for t > s. The string τ0t = τat tis the initial segment of y ending with the least element of By

t . Because t > s, x

coarsens τ0t down to k-many blocks. Fix the index j for the string σjt ∈ (ω)kfin with

|σjt | = t + 1 that describes this coarsening, so σj

t ◦ τ0t = x ↾ (mt + 1). As before,

σjt ◦ τ

j+1t = δjt ≺ x. Since [δjt ] ⊆ ∩n<t+1Dn, we have x ∈ Dt completing the proof

of the claim and the fact that x ∈ ∩n<ωDn. Because (y)k ⊆ ∩nDn and ∪i<ℓOi

Page 11: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 11

restricted to (y)k is an open reduced coloring, we have also completed the proof

that CDRTkℓ implies Baire-DRTk

ℓ . �

Since ODRTk+1ℓ implies RTk

ℓ over RCA0, we have the following corollary.

Corollary 3.10 (RCA0). CDRTk+1ℓ implies RT

kℓ .

Proposition 3.11. For any ℓ ≥ 2, RCA0 proves CDRT2ℓ and hence also ODRT

2ℓ .

Proof. Let c : (ω)1fin → ℓ. Since (ω)1fin = {0n : n ≥ 1}, c can be viewed as an

ℓ-coloring of ω. By RT1ℓ , there is a color i and an infinite set X such that for every

n ∈ X , c(0n) = i. Let z be the partition which has a block of the form {n} for eachn ∈ X and puts all the other numbers in Bz

0 . Then z is homogeneous for c. �

3.2. Relationships with Borel-DRTkℓ . We give the formal definition of a Borel

code in Section 6. Informally, a Borel code B for a subset of (ω)k is a well foundedtree in ω<ω in which each leaf codes a clopen set and the interior nodes code eitheran intersection or a union. Given a point x ∈ (ω)k, an evaluation map for B at xis a function f : B → {0, 1} such that f(σ) = 1 for a leaf σ if x is in the clopenset coded by σ and f correctly propagates down the tree respecting unions andintersections. We say x ∈ B if there is an evaluation function with value 1 at theroot, and we say x 6∈ B if there is an evaluation function with value 0 at the root.Therefore, both x ∈ B and x 6∈ B are Σ1

1 statements, and in general, ATR0 isrequired to show that evaluation maps exists. Similarly, (ω)k = B0 ∪ . . . ∪Bℓ−1 isthe Π1

2 statement that for every x ∈ (ω)k and i < ℓ, there is an evaluation map forBi at x and for some i < ℓ, x ∈ Bi.

Proposition 3.12 (RCA0). Borel-DRTkℓ implies Baire-DRT

kℓ .

Proof. In Section 6, we show in RCA0 that if (ω)k = O0 ∪ · · · ∪ Oℓ−1 is an opencoloring, then each Oi has an equivalent Borel code Bi such that (ω)k = B0 ∪ · · · ∪

Bℓ−1. It follows that Borel-DRTkℓ impliesODRTk

ℓ and hence implies Baire-DRTkℓ . �

Definition 3.13 (RCA0). Let B be a Borel (or open or closed) code for subset of(ω)k. A Baire code for B consists of open sets U and V and a sequence 〈Dn : n ∈ ω〉of dense open sets such that U ∪ V is dense and for every x ∈ ∩n∈ωDn, if p ∈ Uthen p ∈ B and if p ∈ V then p 6∈ B.

In Section 6, we will prove the following theorem.

Theorem 3.14 (RCA0). The following are equivalent.

(1) ATR0.(2) For every Borel code B for a subset of (ω)k, there is an x ∈ (ω)k such that

x ∈ B or x 6∈ B.(3) Every Borel code B for a subset of (ω)k has a Baire code.

Definition 3.15 (RCA0). A Baire code for a Borel coloring (ω)k = C0 ∪ · · · ∪Cℓ−1

consists of open sets Oi, i < ℓ, and a sequence 〈Dn : n ∈ ω〉 of dense open sets suchthat ∪i<ℓOi is dense and for every p ∈ ∩n∈ωDn and i < ℓ, if p ∈ Oi then p ∈ Ci.

Proposition 3.16 (ATR0). Every Borel coloring (ω)k = C0∪· · ·∪Cℓ−1 has a Bairecode.

Page 12: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

12DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Proof. By Theorem 3.14, fix Baire codes Ui, Vi and Dn,i for each Ci. We claimthat the open sets Ui for i < ℓ and the sequence of dense open sets Dn,i for i < ℓand n < ω form a Baire code for this coloring. Note that if i < ℓ and x ∈ ∩n,iDn,i,then x ∈ Ui implies x ∈ Ci. Therefore, it suffices to show that ∪i<ℓUi is dense.

Suppose not. Then there is τ such that [τ ] ∩ Ui = ∅ for all i. Because each setUi∪Vi is open and dense, by the Baire Category Theorem there is x ∈ [τ ] such thatx ∈ ∩n∈ω,i<ℓDn,i and x ∈ ∩i<ℓ(Ui∪Vi). Since x is not in any Ui, we have x ∈ Vi foreach i. Therefore, for each i, x 6∈ Ci, contradicting that (ω)k = C0 ∪ · · · ∪Cℓ−1. �

Proposition 3.17 (ATR0). Baire-DRTkℓ implies Borel-DRT

kℓ .

Proof. By Proposition 3.16, each Borel coloring has a Baire code. Baire-DRTkℓ

guarantees a homogeneous partition for the coloring given by this Baire code andthis partition is homogeneous for the Borel coloring. �

3.3. Alternate coding methods for two complementary colors. While webelieve our formal statement of the Borel Dual Ramsey Theorem is the most natural,there is an alternate formal version of this theorem for colorings (classically) of theform (ω)k = B ∪B that avoids explicitly stating that every partition p ∈ (ω)k hasan evaluation map. The material in this subsection is somewhat tangential to ourmain story and nothing from it is used later in the paper.

Theorem 3.18 (RCA0). The statement “for every Borel code B for a subset of(ω)k, there is a partition p ∈ (ω)ω such that either ∀x ∈ (p)k(x ∈ B) or ∀x ∈(p)k(x 6∈ B)” implies ATR0.

Proof. Fix a Borel code B. The given statement implies there is an x ∈ (ω)k suchthat x ∈ B or x 6∈ B. (Let x be any coarsening of p down to k-blocks.) By Theorem3.14, this suffices to prove ATR0. �

Note that this argument does not suffice to prove an implication from Borel-DRTk2

to ATR0 because the hypotheses of Borel-DRTk2 include that (ω)k = C0 ∪C1 which

requires the existence of an evaluation map for every x ∈ (ω)k witnessing x ∈ C0

or x ∈ C1.There is an analogous variant of the Dual Ramsey Theorem for colorings (ω)k =

O ∪ O where O is a code for an open set. Here, O = O as sets but O is viewedas a code for a closed set. That is, for p ∈ (ω)k, p ∈ O if for every 〈s, σ〉 ∈ O,σ 6≺ p. Therefore O is a code for the complement of O. (Note that this version

differs significantly from ODRTk2 because one of the colors is closed.)

For 0 < a < b, let Oa,b = {x ∈ (ω)3 : µx(1) = a ∧ µx(2) = b}. Oa,b is afinite union of basic open sets [σ] with σ ∈ (ω)3fin and |σ| = b + 1. For notationalconvenience, we write σ ∈ Oa,b if |σ| = b+ 1, µσ(1) = a and µσ(2) = b.

The use of exponent (at least) 3 in the following theorem is important. InTheorem 5.1, we will see that RCA0 suffices to prove that for every open set O in(ω)2, there is an infinite homogeneous partition for (ω)2 = O ∪O.

Theorem 3.19 (RCA0). The statement “for every open set O in (ω)3, there is aninfinite homogeneous partition for the coloring (ω)3 = O ∪O” implies ACA0.

Proof. Fix a 1-to-1 function g and we show the range of g exists. Define O by

〈s, σ〉 ∈ O ⇔ ∃ 0 < a < b < s(σ ∈ Oa,b ∧ ∃u ≤ a ∃b < t ≤ s (g(t) = u)

).

Page 13: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 13

Note that for all 0 < a < b, either Oa,b ⊆ O (when ∃u ≤ a ∃t > b(g(t) = u))

or Oa,b ⊆ O (when ∀u ≤ a¬∃t > b(g(t) = u)). Let p ∈ (ω)ω be a homogeneous

partition for (ω)3 = O ∪O. We claim that p is homogeneous for O.We prove the claim by constructing x ∈ (p)3 ∩ O. Let n = g(0), let m1 be such

that n < µp(m1) and let a = µp(m1). Since g is 1-to-1, the set C = {t : g(t) ≤ a}is finite. Let m2 > m1 be such that µp(m2) > max(C) and let b = µp(m2).Define x ∈ (p)3 by Bx

0 = ∪i<m1Bpi , B

x1 = ∪m1≤i<m2B

pi and Bx

2 = ∪i≥m2Bpi . By

definition, µx(1) = a and µx(2) = b, so x ∈ Oa,b. By our choice of a and b,

∀u ≤ a¬∃t ≥ b (g(t) = u) and therefore x ∈ Oa,b ⊆ O as required.Since the function µp is strictly increasing, we can define the function f(n) =

the least m such that µp(m) > n. We claim that n ∈ range(g) if and only if∃t ≤ µp(f(n) + 1) (g(t) = n). Suppose n = g(t) but t > µp(f(n) + 1). In this case,〈t, Oµp(f(n)),µp(f(n)+1)〉 ∈ O. But, collapsing p as above, there is an x ∈ (p)3 suchthat µx(1) = µp(f(n)) and µx(2) = µp(f(n) + 1) and hence x ∈ O contradictingthe fact that p is homogeneous for O. �

We have seen that obtaining Baire codes for Borel colorings codes a significantamount of information. The next theorem shows that even obtaining Baire codesfor open colorings codes a non-trivial amount of information.

Theorem 3.20 (RCA0). The following are equivalent.

(1) ACA0.(2) Every closed subset of (ω)k has a Baire code.(3) Every open subset of (ω)k has a Baire code.

Proof. (2) and (3) are equivalent by trading the roles of U and V in their respectiveBaire codes. To see (1) implies (2), fix a closed set C, so C is a set of pairs 〈s, σ〉 andx ∈ C if for all 〈s, σ〉 ∈ C, σ 6≺ x. To define a Baire code for C, set V = C as sets,but view V as a code for the open set C. That is, x ∈ V if there is 〈s, σ〉 ∈ V = Csuch that σ ≺ x. Let U = {〈0, τ〉 : ¬∃〈s, σ〉 ∈ V (σ � τ∨τ ≺ σ)} and set Dn = (ω)k

for all n ∈ ω. It is straightforward to check that U ∪ V is dense.Suppose x ∈ ∩nDn = (ω)k. If x ∈ V , then by definition, x ∈ C. On the other

hand, suppose x ∈ U and fix 〈0, τ〉 ∈ U with τ ≺ x. For every 〈s, σ〉 ∈ V = C, τ isincomparable with σ and hence σ 6≺ x. Therefore, x ∈ C as required.

We show (3) implies (1) for the case when k = 2. The proof is similar for othervalues of k. Fix a 1-to-1 function g. Let O = {〈n, 0m+11〉 : g(n) = m}. LetU, V, {Dn}n∈ω be a Baire code for O. Then the range of g has a ∆0

1 definition:

∃n[g(n) = m] ⇐⇒ ∃σ[0m+11 ≺ σ and σ ∈ U ] ⇐⇒ ¬(∃σ[0m+11 ≺ σ and σ ∈ V ]).

The complementarity of the above Σ01 formulas does not require any induction. For

each m, either [0m+11] ⊆ O or [0m+11]∩O = ∅. The density of U ∪V implies thereis a σ ∈ U ∪ V with 0m+1 ≺ σ. If [0m+11] ⊆ O then σ ∈ U , and if [0m+11]∩O = ∅,then σ ∈ V . �

3.4. Connections to Hindman’s theorem. In this section, we show that Hind-man’s Theorem for ℓ-colorings implies CDRT3

ℓ .

Definition 3.21 (RCA0). Let Pfin(ω) denote the set of (codes for) all non-emptyfinite subsets of ω. X ⊆ Pfin(ω) is an IP set if X is closed under finite unions andcontains an infinite sequence of pairwise disjoint sets.

Page 14: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

14DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Theorem 3.22 (Hindman’s theorem for ℓ-colorings). For every c : Pfin(ω) → ℓthere is an IP set X and a color i < ℓ such that c(F ) = i for all F ∈ X.

Proposition 3.23 (RCA0). Hindman’s theorem for ℓ-colorings implies CDRT3ℓ . In

particular, CDRT3ℓ is provable in ACA

+0 .

Proof. Fix ℓ ≥ 2 and assume Hindman’s Theorem for ℓ-colorings. Since Hindman’sTheorem for 2-colorings implies ACA0, we reason in ACA0. By Proposition 3.6 andLemma 2.3, it suffices to fix an open reduced coloring (ω)3 = ∪i<ℓOi and producep ∈ (ω)ω and i < ℓ such that for all x ∈ (p)3, x ∈ Oi. We write the coloring asc : (ω)3 → ℓ with the understanding that c(x) = i is shorthand for x ∈ Oi.

For a nonempty finite set F ⊆ ω with 0 /∈ F and a number n > maxF , we letxF,n ∈ (ω)3 be the following partition.

xF,n(k) =

0 if k /∈ F and k 6= n

1 if k ∈ F

2 if k = n

Thus, BxF,n

0 = ω − (F ∪ {n}), BxF,n

1 = F and BxF,n

2 = {n}. Note that we candetermine the color c(xF,n) as a function of F and n and that since c is reduced, ifx ∈ (ω)3 and x ↾ µx(2) = xF,n ↾ n, then c(x) = c(xF,n).

The remainder of the proof is most naturally presented as a forcing construction.After giving a classical description of this construction, we indicate how to carryout the construction in ACA0. The forcing conditions are pairs (F, I) such that

• F is a non-empty finite set such that 0 /∈ F ,• I is an infinite set such that maxF < min I, and• for every nonempty subset U of F there is an i < ℓ such that c(xU,n) = ifor all n ∈ F ∪ I with maxU < n.

Extension of conditions is defined as for Mathias forcing: (F , I) ≤ (F, I) if F ⊆

F ⊆ F ∪ I and I ⊆ I.By the pigeonhole principle, there is an i < l such that c(x{1},n) = i for infinitely

many n > 1. For any such i, the pair ({1}, {n ∈ ω : n > 1 and c(x{1},n) = i}) is

a condition. More generally, given a condition (F, I) there is an infinite set I ⊆ I

such that (F ∪ {min I}, I) is also a condition. To see this, let U0, . . . , Us−1 bethe nonempty subsets of F ∪ {min I} containing min I. By arithmetic induction,for each positive k ≤ s, there exist colors i0, . . . , ik−1 < ℓ such that there areinfinitely many n ∈ I with c(xUj ,n) = ij for all j < k. (If not, fix the least k forwhich the fact fails, and apply the pigeonhole principle to obtain a contradiction.)

Let i0, . . . , is−1 be the colors corresponding to k = s and let I be the infinite set{n ∈ I : ∀j < s (c(xUj ,n) = ij)}.

Fix a sequence of conditions (F1, I1) > (F2, I2) > · · · with |Fk| = k and letG =

⋃k Fk. To complete the proof, we use G to define a coloring d : Pfin(ω) → ℓ

to which we can apply Hindman’s Theorem. However, first we indicate why we canform G in ACA0.

The conditions (F, I) used to form G can be specified by the finite set F , thenumber m = min I and the finite sequence δ ∈ ℓM where M = 2|F | − 1 such thatif F0, . . . , FM−1 is a canonical listing of the nonempty subsets of F , then I = {n ≥m : ∀j < M (c(xFj ,n) = δ(j))}. The extension procedure above can be captured byan arithmetically definable function f(F,m, δ) = 〈F ∪ {m},m′, δ′〉 where F ∪ {m},

Page 15: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 15

m′ and δ′ describe the extension (F ∪ {m}, I). Because the properties of thisextension where verified using arithmetic induction and the pigeonhole principle,both of which are available in ACA0, we can define f in ACA0 and form a sequenceof conditions (F1,m1, δ1) > (F2,m2, δ2) > · · · giving G =

⋃k Fk.

It remains to use G = {g0 < g1 < · · · } to complete the proof. By construction,for each non-empty finite subset U of G, there is color iU < ℓ such that c(xU,n) = iUfor all n ∈ G with n > maxU . Define d : Pfin(ω) → ℓ by d(F ) = i{gm:m∈F}. Weapply Hindman’s theorem to d to obtain an IP set X and a color i < ℓ. Since Xcontains an infinite sequence of pairwise disjoint members, we can find a sequenceE1, E2, . . . of members of X such that maxEk < minEk+1. Define p ∈ (ω)ω to bethe partition whose blocks are Bp

0 = ω −⋃

k{gm : m ∈ Ek} and, for each k ≥ 1,Bp

k = {gm : m ∈ Ek}. Note that for all k ≥ 1,

maxBpk = max{gm : m ∈ Ek} < minBp

k+1 = min{gm : m ∈ Ek+1}.

It remains to verify that p and i have the desired properties. Consider any x ∈(p)3; we must show that c(x) = i. Let U = Bx

1 ↾ µx(2) and let n = µx(2) = minBx2 .

Then n = µxU,n(2) and x ↾ n = xU,n ↾ n, so since c is reduced, c(x) = c(xU,n).Therefore, it suffices to show c(xU,n) = i.

We claim U is a finite union of p-blocks. Because x is a coarsening of p, Bx1 is

a (possibly infinite) union of p-blocks Bpj1

∪ Bpj2

∪ · · · with 0 < j1 < j2 < · · · and

n = µx(2) = minBx2 = minBp

b for some b ≥ 2. Let ja be the largest index such thatja < b. Since the p-blocks are finite and increasing, U = Bx

1 ↾ µx(2) = Bpj1∪· · ·∪Bp

ja.

Note that n ∈ G (because Bpb 6= Bp

0 ) and maxU < n.It follows that U = {gm | m ∈ F} where F = Ej1 ∪ · · · ∪ Eja . Since our fixed

IP set X is closed under finite unions, F ∈ X and therefore d(F ) = i. By thedefinition of d, d(F ) = i{gm|m∈F} = iU , so i = iU . Finally, U is a finite subset ofG, n ∈ G and maxU < n, so c(xU,n) = iU = i as required. �

Observe that this proof of CDRT3ℓ from HT produces a homogeneous p with a

special property: maxBpi < minBp

i+1 for all i > 0. We show that this strengthened

“ordered finite block” version of CDRT3ℓ is equivalent to HT. However, there is no

finite block version of CDRTkℓ for k > 3.

Proposition 3.24 (RCA0). If for every ℓ-coloring of (ω)2fin there is an infinitehomogeneous partition p with maxBi < minBi+1 for all i > 0, then Hindman’sTheorem for ℓ-colorings holds.

Proof. Given c : Pfin(ω) → ℓ, define c : (ω)2fin → ℓ by c(σ) = c({i < |σ| : σ(i) = 1}).Let p be a homogeneous partition for c with maxBp

i < minBpi+1 for all i > 0.

The set of all finite unions of the blocks Bpi for i > 0 satisfies the conclusion of

Hindman’s Theorem. �

Proposition 3.25. There is a 2-coloring of (ω)3fin such that any infinite homoge-

neous partition p has Bpi infinite for all i > 0.

Proof. For σ ∈ (ω)3fin, set c(σ) = 1 if σ contains more 1’s than 2’s and set c(σ) = 0otherwise. Let p be homogeneous for this coloring. Suppose for contradiction thati > 0 is such that Bp

i is finite. Let N = i+ 2+ |Bpi | and let x be the coarsening of

p with nonzero blocks

Bx1 = Bp

i , Bx2 = ∪N

j=i+1Bpj and Bx

3 = BpN+1.

Page 16: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

16DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Since |Bx2 | > |Bx

1 |, c(x ↾ µx(3)) = 0. Now coarsen in a different way: let h ∈[i + 1, N ] be chosen so that the size of Bp

h ∩ [0, µx(3)] is minimized. Let y be thecoarsening of p whose nonzero blocks are

By1 = ∪N

j=iBpi \Bp

h, By2 = Bp

h and By3 = Bp

N+1.

Since at least one p-block has moved from Bx2 to By

1 and since By2 contains only

the smallest p-block from Bx2 , c(y ↾ µy(3)) = 1. So p was not homogeneous. �

3.5. CDRT and the Carlson-Simpson Lemma. The Carlson-Simpson Lemmais the main technical tool in the original proof of the Borel version of the DualRamsey Theorem. The principle is usually stated in the framework of variablewords, but it can also be understood as a special case of the Combinatorial DualRamsey Theorem.

Carlson-Simpson Lemma (CSL(m, ℓ)). For every coloring (ω)mfin = ∪i<ℓCi, thereis a partition p ∈ (ω)ω and a color i such that for all x ∈ (p)m+1, if Bp

j ⊆ Bxj for

each j < m, then x ↾ µx(m) ∈ Ci.

The condition Bpj ⊆ Bx

j for j < m captures those x ∈ (p)k which keep the first m

many blocks of p distinct in x. Therefore, CSL(m, ℓ) is a special case of CDRTm+1ℓ .

Proposition 3.26 (RCA0). CDRTm+1ℓ implies CSL(m, ℓ).

Note that we will use CSL(m, ℓ) to denote this form of the Carlson-Simpson

Lemma, despite its close connection to CDRTm+1ℓ , as this convention is established

in the literature. As with the Combinatorial Dual Ramsey Theorem, we can assumethe coloring in CSL(m, ℓ) is given in the form c : (ω)mfin → ℓ. In Proposition 3.27,we give three equivalent versions of the Carlson-Simpson Lemma. The version inProposition 3.27(2) is (up to minor notational changes which are easily translatedin RCA0) the statement from Carlson and Simpson [3]. After proving Proposition3.27, we will use the statement in Proposition 3.27(3) to give a classical proof of

CDRTkℓ using transfinitely many applications of the Carlson-Simpson Lemma.

Proposition 3.27 (RCA0). The following are equivalent.

(1) CSL(m, ℓ).(2) For each coloring (ω)mfin = ∪i<ℓCi, there is a partition p ∈ (ω)ω and a color

i such that for all a < m, a ∈ Bpa and for all x ∈ (p)m+1, if Bp

j ⊆ Bxj for

each j < m, then x ↾ µx(m) ∈ Ci.(3) For each y ∈ (ω)ω and open reduced coloring (y)m+1 = ∪i<ℓOi, there is a

partition p ∈ (y)ω and a color i such that for all a < m, Bya ⊆ Bp

a and forall x ∈ (p)m+1, if Bp

j ⊆ Bxj for each j < m, then x ∈ Oi.

Proof. (2) implies (1) because CSL(m, ℓ) is a special case of (2). The extra conditionin (2) that a ∈ Bp

a for a < m says that the partition p does not collapse anyof the first m-many blocks of the trivial partition defined by Bn = {n}. Theequivalence between (2) and (3) is proved in a similar way to Proposition 3.6 usingthe transformation in Lemma 2.3.

It remains to prove (1) implies (2). Fix an ℓ-coloring c : (ω)mfin → ℓ. Definec : (ω)mfin → ℓ by c(σ) = c(0a1a · · ·a (m − 1)aσ). Apply CSL(m, ℓ) to c to get

p ∈ (ω)ω and i < ℓ such that for all x ∈ (p)m+1, if Bpj ⊆ Bx

j for all j < m, then

c(x ↾ µx(m)) = i. We treat p as an infinite string 〈p(0), p(1), · · · 〉 with entries in ω.

Page 17: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 17

Let p ∈ (ω)ω be the partition corresponding to the infinite string p =0a1a · · ·a (m−1)ap. We claim that p satisfies the conditions in (2) for the coloringc with the fixed color i. By the definition of p, a ∈ Bp

a for all a < m.Fix x ∈ (p)m+1 such that Bp

j ⊆ Bxj for all j < m. We need to show that

c(x ↾ µx(m)) = i. Since x does not collapse any of the firstm-many p-blocks, a ∈ Bxa

for all a < m and x (as an infinite string) has the form x = 0a1a · · ·a (m − 1)axsuch that the infinite string x is an ordered function from [m,∞) onto m + 1.

Letting x(n) = x(n+m), we obtain a partition x ∈ (p)m+1 such that Bpj ⊆ Bx

j for

all j < m. Therefore, c(x ↾ µx(m)) = i. Translating back through x to x, we haveµx(m) = µx(m) +m and x ↾ µx(m) = 0a1a · · ·a (m − 1)ax ↾ µx(m). Translatingfrom c to c, we have

i = c(x ↾ µx(m)) = c(0a1a · · ·a (m− 1)ax ↾ µx(m)) = c(x ↾ µx(m))

as required to complete the proof that (1) implies (2). �

We will also use a variant of Lemma 2.4. Let p ∈ (ω)ω and s ≥ m. Consider theways to collapse the first s-many blocks Bp

0 , . . . , Bps−1 of p to exactlym-many blocks

while leaving the remaining p-blocks unchanged. Collapsing s-many blocks to m-many blocks is described by a string σ ∈ (ω)mfin with |σ| = s. To leave the remainingp-blocks unchanged, we extend σ to σ∗ ∈ (ω)ω to renumber the blocks Bp

a for a ≥ sstarting with index m. Formally, σ∗(n) = σ(n) for n < s and σ∗(n) = n− (s−m)for n ≥ s. An argument similar to the proof of Lemma 2.4 gives the next lemma.

Lemma 3.28. Fix s ≥ m ≥ 2. Let σs,0, . . . , σs,Ms−1 list the strings σs,j ∈ (ω)mfinwith |σs,j | = s. For any p ∈ (ω)ω, the coarsenings of p which collapse the firsts-many blocks of p to m-many blocks and leave the remaining p-blocks unchangedare σ∗

s,0 ◦ p, . . . , σ∗s,Ms−1 ◦ p.

Let y ∈ (ω)ω and (y)k = ∪i<ℓCi be an m-reduced coloring for some 1 < m < k.

We define the induced coloring (y)m+1 = ∪i<ℓCi as follows. For q ∈ (y)m+1,

q ∈ Ci if and only if q ∈ Ci for some (or equivalently all) q ∈ (y)k such thatq ↾ µq(m) = q ↾ µq(m). This induced coloring is a reduced coloring of (y)m+1 andtherefore we can apply CSL(m, ℓ) to it.

Lemma 3.29. Let 1 < m < k, y ∈ (ω)ω and (y)k = ∪i<ℓCi be an m-reduced

coloring. Let (y)m+1 = ∪i<ℓCi be the induced coloring and let z ∈ (y)ω and i < ℓbe obtained by applying CSL(m, ℓ) as in Proposition 3.27(3) to the induced coloring.If x ∈ (z)k with Bz

a ⊆ Bxa for a < m, then x ∈ Ci.

Proof. Given x ∈ (z)k as in the lemma, let x ∈ (x)m+1 be the coarsening of x withblocks Bx

a = Bxa for a < m and Bx

m = ∪m≤a<kBxa . By definition, x ∈ (z)m+1 with

Bza ⊆ Bx

a for a < m, and therefore x ∈ Ci. Since x ↾ µx(m) = x ↾ µx(m), x ∈ Ci

by the definition of the induced coloring. �

Our proof of CDRTkℓ from the Carlson-Simpson Lemma will use repeated appli-

cations of the following lemma which is proved using ω many nested applicationsof CSL(m, ℓ).

Lemma 3.30. Fix 1 < m < k and y ∈ (ω)ω. Let (y)k = ∪i<ℓCi be an m-reducedcoloring. There is an x ∈ (y)ω such that the coloring restricted to (x)k is (m− 1)-reduced.

Page 18: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

18DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Proof. Fix an m-reduced coloring (y)k = ∪i<ℓCi. We define a sequence of infinitepartitions xm, xm+1, · · · starting with index m such that xm = y and xs+1 is acoarsening of xs for which Bxs

a ⊆ Bxs+1a for all a < s. That is, we do not collapse

any of the first s-many blocks of the partition xs when we coarsen it to xs+1.This property guarantees that the sequence has a well-defined limit x ∈ (ω)ω. Weshow this limiting partition x satisfies the conclusion of the lemma. The process ofpassing from xs to xs+1 will use finitely many nested applications of CSL(m, ℓ).

Assume xs has been defined for a fixed s ≥ m and we construct xs+1. Letσ∗s,0, . . . , σ

∗s,Ms−1 be the infinite partitions from Lemma 3.28. Set x0s = xs. We

define a sequence of coarsenings x1s, . . . , xMss and set xs+1 = xMs

s . The definition ofxj+1s from xjs will use one application of CSL(m, ℓ).Assume that xjs has been defined. Let wj

s = σ∗s,j ◦ x

js be the result of collapsing

the first s-many blocks of xjs into m-many blocks in the j-th possible way andleaving the remaining blocks of xjs unchanged. Since wj

s is a coarsening of y, thecoloring (y)k = ∪i<ℓCi restricts to an m-reduced coloring of (wj

s)k which induces a

reduced coloring of (wjs)

m+1 as described above. Let zjs be the result of applyingCSL(m, l) as stated in Proposition 3.27(3) to this reduced coloring of (wj

s)m+1.

To define xj+1s , we want to “uncollapse” the first m-many blocks of zjs to reverse

the action of σ∗s,j in defining wj

s. Since wjs collapsed the first s-blocks of xjs to

m-many blocks and since zjs is a coarsening of wjs, if x

js(u) < s, then zjs(u) < m.

We define xj+1s by cases as follows.

(1) If xjs(u) < s, then xj+1s (u) = xjs(u).

(2) If xjs(u) ≥ s and zjs(u) = a < m, then xj+1s (u) = xjs(µ

zjs(a)).

(3) If zjs(u) ≥ m, then xj+1s (u) = zjs(u) + (s−m).

Below we verify that xj+1s is an infinite partition coarsening xjs which does not

collapse any of the first s-many blocks of xjs. This completes the construction ofxj+1s and hence of xs+1 and x.

We verify the required properties of xj+1s . By (1), B

xjs

a ⊆ Bxj+1s

a for all a < s, sowe do not collapse any of the first s-many blocks of xjs in xj+1

s . There is no conflictbetween (1) and (3) because xjs(u) < s implies zjs(u) < m. Furthermore, (3)renumbers the zjs-blocks starting with index m to xj+1

s -blocks starting with indexs without changing any of these blocks. Therefore, xj+1

s is an infinite partition.In (2), we handle the case when the xjs-block containing u is not changed by

wjs (except to renumber its index) but is collapsed by zjs into one of the first m-

many zjs-blocks. In this case, µzjs (a) = µxj

s(b) for some b < s and we have setxj+1s (u) = b. It is straightforward to check (as in the proof of Theorem 3.9) thatxj+1s is a coarsening of xjs and that σ∗

s,j ◦ xj+1s = zjs.

To complete the proof, we verify that the restriction of ∪i<ℓCi to (x)k is (m−1)-reduced. Fix p ∈ (x)k and we show the color of p depends only on p ↾ µp(m− 1).

Fix s ∈ ω such that µx(s − 1) = µp(m − 1). The partition p collapses the firsts-many x-blocks into the first m-many p-blocks. The string σ ∈ (ω)mfin with |σ| = sdefined by σ(a) = b if Bx

a ⊆ Bpb describes this collapse. Fix an index j such that

σ = σs,j in our fixed enumeration of such strings in Lemma 3.28. Note that σs,j isdetermined by p ↾ µp(m− 1) and that p is a coarsening of σ∗

s,j ◦ x.

Consider how xj+1s was defined from xjs in the construction. We set wj

s = σ∗s,j ◦x

js

and applied CSL(m, ℓ) to the induced coloring of (wjs)

m+1 to get zjs. Although we

Page 19: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 19

did not use it in the construction, this application of CSL(m, ℓ) also determined ahomogeneous color ijs < ℓ which we will use below.

Since x is a coarsening of xj+1s for which B

xj+1s

a ⊆ Bxa for all a < s, σ∗

s,j ◦ x is a

coarsening of σ∗s,j ◦ x

j+1s = zjs. Because p is a coarsening of σ∗

s,j ◦ x, it follows that

p is a coarsening of zjs.We claim that the first m-many blocks of zjs remain distinct in p. That is, if

zjs(u) < m, then p(u) = zjs(u). To see why, assume zjs(u) < m. It follows thatxj+1s (u) < s and hence that x(u) = xj+1

s (u) < s because x does not collapse any ofthe first s-many blocks of xj+1

s . Therefore, σs,j(x(u)) is defined and we have

p(u) = σs,j(x(u)) = σs,j(xj+1s (u)) = zjs(u)

as required.We obtained zjs and the color ijs < ℓ by applying CSL(m, ℓ) to the induced

coloring of (wjs)

m+1. Since p ∈ (zjs)k satisfies B

zjs

a ⊆ Bpa for a < m, we can apply

Lemma 3.29 to conclude that p ∈ Cijs. This completes the proof that the restriction

of ∪i<ℓCi to (x)k is (m−1)-reduced because the indices s and j in zjs are determined

by p ↾ µp(m − 1) and the color of p is equal to the homogeneous color ijs obtainedwhen we applied CSL(m, ℓ) to obtain zjs. �

We end this section using Lemma 3.30 to prove CDRTkℓ for k ≥ 3. (For k = 2,

CDRTkℓ follows from the pigeonhole principle as in Proposition 3.11.) Consider

CDRTkℓ is the form given in Proposition 3.6. Let y ∈ (ω)ω and (y)k = ∪i<ℓOi

be an open reduced coloring. These satisfy the assumptions of Lemma 3.30 withm = k−1. After k−2 applications of Lemma 3.30, we obtain x ∈ (y)ω such that therestriction of ∪i<ℓOi to (x)k is 1-reduced and hence the color of p ∈ (x)k dependsonly on p ↾ µp(1). Since the numbers n < µp(1) must lie in Bp

0 , the color of p isdetermined by the value of µp(1). By the pigeonhole principle, there is an infiniteset X ⊆ {µx(a) : a ≥ 1} and a color i such that for all p ∈ (x)k, if µp(1) ∈ X ,then p ∈ Ci. It follows that for any z ∈ (x)ω such that µz(a) ∈ X for all a ≥ 1,(z)k ⊆ Ci as required. It is interesting to note that the only non-constructive stepsin this proof are the ω · (k− 2) nested applications of the Carlson-Simpson Lemma.

4. The Borel Dual Ramsey Theorem for k ≥ 3

In the next two sections we consider the Borel Dual Ramsey Theorem from theperspective of effective mathematics. For continuity with Section 3, we define acode for an open set in (ω)k to be a set O ⊆ ω × (ω)kfin. We say O is a ∆0

n codeif O is ∆0

n as a set of natural numbers. Equivalently, a ∆0n code for an open set is

a subset of (ω)kfin which is c.e. relative to ∅(n−1), or by replacing elements of O asthey are enumerated with sets of sufficiently long strings, is a subset of (ω)kfin which

is computable in ∅(n−1). We will shift between these coding methods in Sections 4and 5.

We define Borel codes for topologically Σ0α subsets of (ω)k by induction on the

ordinals below ω1. This definition gives another method of coding an open (topo-logically Σ0

1) set which is easily translated into the codes described above. Let Bn,

n ∈ ω, be an effective listing of the clopen sets ∅, (ω)k and [σ] and [σ] for σ ∈ (ω)kfin.

Definition 4.1. We define a Borel code for a (topologically) Σ0α or Π0

α set.

Page 20: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

20DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

• A Borel code for a Σ00 or a Π0

0 set is a labelled tree T consisting of just aroot λ in which the root is labeled by a clopen set Bnλ

. The code representsthe set Bnλ

.• For α ≥ 1, a Borel code for a Σ0

α set is a labelled tree with a root labelledby ∪ and attached subtrees at level 1, each of which is a Borel code for aΣ0

βnor Π0

βnset An for some βn < α. The code represents the set ∪nAn.

• For α ≥ 1, a Borel code for a Π0α set is the same, except the root is labelled

∩. The code represents the set ∩nAn.

For α ≥ 1, a Borel code for a ∆0α set is a pair of labelled trees which encode the

same set, where one encodes it as a Σ0α set and the other encodes it as a Π0

α set.

The codes are faithful to the Borel hierarchy in the sense that every code for aΣ0

α set represents a Σ0α set and every Σ0

α set is represented by a Borel code for aΣ0

α set. There is a uniform procedure to transform a Borel code B for a Σ0α set A

into a Borel code B for a Π0α set A: leave the underlying tree structure the same,

swap the ∪ and ∩ labels and replace the leaf labels by their complements.If a Borel set A has a computable code (i.e. the labeled subtree of ω<ω is com-

putable), then the Turing machine Φe giving the computable labelled tree is acomputable Borel code for A.

We recall some notation from hyperarithmetic theory. Let O denote Kleene’sset of computable ordinal notations. The ordinal represented by a ∈ O is denoted|a|O, with |1|O = 0, |2a|O = |a|O +1, and |3 · 5e|O = supj |ϕe(j)|O. The H-sets aredefined by effective transfinite recursion on O as follows: H1 = ∅, H2a = H ′

a andH3·5a = {〈i, j〉 | i ∈ Hϕa(j)}. The reader referred to Sacks [11] for more details. As

usual, ωCK1 denotes the least noncomputable ordinal.

It is well-known that an open set of high hyperarithmetic complexity can berepresented by a computable Borel code for a Σ0

α set, where α is an appropriatecomputable ordinal. In the following proposition, we use a standard technique tomake this correspondence explicit. Let

height(a) =

{|a|O if |a|O < ω

|a|O−1 if |a|O ≥ ω.

where α−1 = α if α is a limit and α − 1 otherwise. Note that for |a|O < ω,height(2a) = |a|O + 1 and for |a|O ≥ ω, height(2a) = |a|O. Fix an effective 1-to-1enumeration τn for the strings τ ∈ (ω)kfin.

Proposition 4.2. There is a partial computable function p(x, y) such that p(a, e) isdefined for all a ∈ O and e ∈ ω and such that if a ∈ O and R =

⋃{[τn] : n ∈ WHa

e },then Φp(a,e) is a computable Borel code for R as a Σ0

height(2a) set.

Proof. We define p(a, e) for all e by effective transfinite recursion on a ∈ O. SinceH1 = ∅, let Φp(1,e) be a Borel code for the open set R =

⋃{[τn] : n ∈We}.

For the successor step, consider R =⋃{[τn] : n ∈ WH2a

e }. Each set which is Σ01

in H2a is Σ02 in Ha and for such sets, we can effectively pass from a Σ0,H2a

1 index

to a Σ0,Ha

2 description. Specifically, uniformly in e, we compute an index e′ suchthat for all oracles X , ΦX

e′ (x, y) is a total {0, 1}-valued function and

n ∈ WX′

e if and only if ∃t ∀s ≥ t (ΦXe′ (n, s) = 1).

Page 21: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 21

Let Rt =⋃{[τn] : ∃s ≥ t (ΦHa

e′ (n, s) = 0)}. R0 ⊇ R1 ⊇ · · · is a decreasing sequence

of sets such that x 6∈ R if and only if ∀t (x ∈ Rt). Therefore, R = ∪tRt. Each set Rt

can be represented as Rt =⋃{[τn] : n ∈ WHa

et}, where et is uniformly computable

from e and t. Applying the induction hypothesis, we define p(2a, e) to encode atree whose root is labelled by a union and whose t-th subtree at level 1 is the Borelcode representing the complement of Φp(a,et).

For the limit step, consider R =⋃{[τn] : n ∈ WH3·5a

e }. Uniformly in e, weconstruct a sequence of indices et for t ∈ ω such that for all oracles X , ΦX

et(x)

converges if and only if ΦXe (x) converges and only asks oracle questions about

numbers in the first t many columns of X . Let Rt =⋃{[τn] : n ∈ W

⊕i≤tHϕa(i)et }

and note that R = ∪tRt. We can effectively pass to a sequence of indices e′tsuch that Rt =

⋃{[τn] : n ∈ W

Hϕa(t)

e′t}. By induction, each p(ϕa(t), e

′t) is the

index for a computable Borel code for Rt as a Σ0height(2ϕa(t))

set, so we may define

p(3 · 5a, e) to be the index of a tree which has Φp(ϕa(t),e′t)as its subtrees. Since

height(2ϕa(t)) < |3 · 5a|O = height(23·5a

) for all t, the resulting Borel code has therequired height. �

To force the Dual Ramsey Theorem to output computationally powerful homo-geneous sets, we use the following definition and classical result of Solovay [13].

Definition 4.3. For functions f, g : ω → ω, we say g dominates f , and write g � f ,if f(n) ≤ g(n) for all but finitely many n.

Theorem 4.4 (Solovay). For each a ∈ O, there is a function fa such that fa ≡T Ha

and for every g � fa, we have Ha ≤T g.

In Theorem 4.7, we use these functions fa to show that for every a ∈ O, there isa computable Borel code for a set R ⊆ (ω)3 such that any homogeneous partitionp ∈ (ω)ω for the coloring (ω)3 = R ∪R computes Ha.

Theorem 4.5. Let A be a set and fA be a function such that A ≡T fA and for everyg � fA, we have A ≤T g. There is an A-computable clopen coloring (ω)3 = R ∪ Rfor which every homogeneous partition p satisfies p ≥T A.

Proof. Fix A and fA as in the statement of the theorem. Without loss of generality,we assume that if n < m, then fA(n) < fA(m). For x ∈ (ω)3, let ax = µx(1) andbx = µx(2). As in the proof of Theorem 3.19, letOa,b = {x ∈ (ω)3 : ax = a∧bx = b}.Set R = {x ∈ (ω)3 : fA(ax) ≤ bx}. Since R =

⋃{On,m | fA(n) ≤ m} and

R =⋃{On,m | fA(n) > m} both R and R are A-computable open sets.

Claim. If p ∈ (ω)ω is homogeneous, then (p)3 ⊆ R.

It suffices to show that there is an x ∈ (p)3 with x ∈ R. Let u = µp(1). Becausep has infinitely many blocks, there must be a p-block V 6= Bp

1 with least elementv ≥ f(u). Consider the partition x ∈ (p)3 with Bx

0 = ω \ (Bp1 ∪ V ), Bx

1 = Bp1 and

Bx2 = V . Since ax = u and bx = v, we have x ∈ (p)3 with f(ax) ≤ bx, so x ∈ R.

Claim. If p ∈ (ω)ω is homogeneous, then A ≤T p.

Fix p and let g(n) = µp(n + 2). Since g is p-computable, it suffices to showg � fA. Because n < µp(n+1) and fA is increasing, we have fA(n) < fA(µ

p(n+1)).Therefore, to show g � fA, it suffices to show fA(µ

p(n+ 1)) ≤ µp(n+ 2) = g(n).

Page 22: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

22DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Let xn ∈ (p)3 be the coarsening with blocks ω \ (Bpn+1∪B

pn+2), B

pn+1 and Bp

n+2.Note that axn

= µp(n+1) and bxn= µp(n+2). By the previous claim, xn ∈ R, so

fA(axn) ≤ bxn

. In other words, fA(µp(n+ 1)) ≤ µp(n+ 2) as required. �

Corollary 4.6. For each k ≥ 3 and each a ∈ O, there is an Ha-computable clopenset R ⊆ (ω)k such that if p ∈ (ω)ω is homogeneous for (ω)k = R∪R, then Ha ≤T p.

Proof. For k = 3, this corollary follows from Theorems 4.4 and 4.5. For k > 3, usesimiliar definitions for R and R ignoring what happens after the first three blocksof the partition. �

Theorem 4.7. For every recursive α > 0, and every k ≥ 3, there is a computableBorel code for a ∆0

α set R ⊆ (ω)k such that every p ∈ (ω)ω homogeneous for thecoloring (ω)k = R ∪R computes ∅(α−1) if α < ω and computes ∅(α) if α ≥ ω.

Proof. Given a ∈ O with height(2a) = α, let R,R be Ha-computable clopen setsfrom the previous corollary. By Proposition 4.2, both R and R have computableBorel codes as Σ0

height(2a) subsets of (ω)k. Therefore, R has a computable Borel

code as ∆0α set. By the previous corollary, if p is homogeneous for (ω)k = R ∪ R,

then p ≥T Ha, which corresponds to the indicated number of Turing jumps. �

For α = 2, Theorem 4.7 says there is a classically clopen set R ⊆ (ω)3 suchthat R and R have computable Borel codes as Σ0

2 sets (and hence as ∆02 sets) and

any homogeneous partition for (ω)3 = R ∪ R computes ∅′. Theorem 3.19 givesan analogous result at a slightly better coding level in the sense that the coloring(ω)3 = O ∪O is given in terms of an open code and a closed code.

5. The Borel Dual Ramsey Theorem for k = 2

5.1. Effective Analysis. We consider the complexity of finding infinite homoge-neous partitions for colorings (ω)2 = R∪R when R is a computable code for a set ata finite level of the Borel hierarchy. We begin by showing that if R is a computableopen set, there is a computable homogeneous partition.

Theorem 5.1. Let R be a computable code for an open set in (ω)2. There is acomputable p ∈ (ω)ω such that (p)2 ⊆ R or (p)2 ⊆ R.

Proof. If there is an n ≥ 1 such that [0n] ∩ R = ∅, then the partition x ∈ (ω)ω

with blocks {0, 1, . . . , n}, {n + 1}, {n + 2}, . . . satisfies (x)2 ⊆ R. Otherwise, forarbitrarily large n there are τ ≻ 0n1 with [τ ] ⊆ R, and hence there is a computablesequence τ1, τ2, . . . of such τ with 0i ≺ τi. Computably thin this sequence so thatfor each i, 0|τi| ≺ τi+1. The partition x with blocks Bx

i = {j : τi(j) = 1} for i > 0satisfies (x)2 ⊆ R. �

To extend to sets coded at higher finite levels of the Borel hierarchy, we will needthe following generalization of the previous result.

Theorem 5.2. Let R be a computable code for an open set in (ω)2 such thatR ∩ [0n] 6= ∅ for all n. Let {Di}i<ω be a uniform sequence of computable codes foropen sets such that each Di is dense in R. There is a computable x ∈ (ω)ω suchthat (x)2 ⊆ R ∩ (∩iDi).

Page 23: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 23

Proof. We build x as the limit of an effective sequence τ0 ≺ τ1 ≺ · · · with τs ∈(ω)s+1

fin . We define the strings τs in stages starting with τ0 = 〈0〉 which puts 0 ∈ Bx0 .

For s ≥ 1, we ensure that at the start of stage s + 1, we have [σ ◦ τs] ⊆ R for allσ ∈ (ω)2fin with |σ| = s+ 1. That is, the open sets in (ω)2 determined by each wayof coarsening the s+ 1 many blocks of τs to two blocks is contained in R.

At stage s + 1, assume we have defined τs ∈ (ω)s+1fin . If s ≥ 1, assume that for

all σ ∈ (ω)2fin with |σ| = s + 1, [σ ◦ τs] ⊆ R. Let σ0, . . . , σMs−1 list the stringsσ ∈ (ω)2fin such that |σ| = s + 2. We define a sequence of strings τ0s , . . . , τ

Mss and

set τs+1 = τMss .

We define τ0s to start the block Bxs+1. Since [0|τs|] ∩R 6= ∅, we effectively search

for γs ∈ (ω)2fin such that 0|τs| ≺ γs and [γs] ⊆ R. Since γs ∈ (ω)2fin, there is at least

one m < |γs| such that γs(m) = 1. Define τ0s ∈ (ω)s+2fin with |τ0s | = |γs| by

τ0s (m) =

τs(m) if m < |τs|s+ 1 if γs(m) = 1 (and hence m ≥ |τs|)0 if m ≥ |τs| and γs(m) = 0.

Note that τs ≺ τ0s . Intuitively, τ0s partitions {0, . . . , |τ0s | − 1} into (s + 2) manyblocks as follows. It leaves the blocks Bτs

1 , . . . , Bτss unchanged, starts a new block

Bτ0s

s+1 = Bγs

1 and puts the remaining elements in Bτ0s

0 .

Before proceeding, we claim that if σ ∈ (ω)2fin with |σ| = s+2, then [σ ◦ τ0s ] ⊆ R.First, suppose s = 0. In this case, τ0s ∈ (ω)2fin and τ0s = γs because s + 1 = 1.Therefore, [τ0s ] = [γs] ⊆ R. Furthermore, the only string σ ∈ (ω)2fin with |σ| = 2 isσ = 〈0, 1〉. Therefore, σ◦τ0s = τ0s = γs and the claim follows. Second, suppose s ≥ 1and let j be the least number such that σ(j) = 1. If j = s+1, then σ ◦ τ0s = γs andthe claim follows. If j < s+1, then let σ′ ≺ σ with |σ′| = s+1. Since σ′ ∈ (ω)2fin, wehave by induction that [σ′ ◦ τs] ⊆ R and since σ′ ◦ τs ≺ σ ◦ τ0s , we have [σ ◦ τ

0s ] ⊆ R.

We continue to define the τ js strings by induction. Assume that τ js has beendefined and consider the j-th string σj enumerated above describing how to collapse(s + 1) many blocks into 2 blocks. Since τ0s � τ js , we have σj ◦ τ0s � σj ◦ τ js andhence [σj ◦ τ js ] ⊆ R. Because ∩n<s+1Dn is dense in R, we can effectively search fora string δjs ∈ (ω)2fin such that σj ◦ τ js � δjs and [δjs] ⊆ ∩n<s+1Dn. To define τ j+1

s ,we uncollapse δjs. Let j

∗ be the least number such that σj(j∗) = 1. Define

τ j+1s (m) =

τ js (m) if m < |τ js |j∗ if m ≥ |τ js | and δ

js(m) = 1

0 if m ≥ |τ js | and δjs(m) = 0

It is straightforward to check that τ js � τ j+1s and that σj◦τ j+1

s = δjs. This completesthe construction of the sequence τ0s � · · · � τMs

s and of the computable partitionx. It remains to show that if p ∈ (x)2, then p ∈ R and p ∈ ∩n∈ωDn. Fix p ∈ (x)2

and let s0 be the least number such that Bxs0+1 is not collapsed into Bp

0 .

Claim. p ∈ R.

Let σ ∈ (ω)2fin with |σ| = s0 + 2 be the sequence defined by σ(m) = 0 for allm < s0 + 1 and σ(s0 + 1) = 1. Thus σ describes how the blocks Bx

0 , . . . , Bxs0+1

are collapsed in p. At stage s0 + 1, we defined τ0s0 ≺ x with the property that

[σ ◦ τ0s0 ] ⊆ R. Since σ ◦ τ0s ≺ p, we have p ∈ R.

Claim. p ∈ ∩n<ωDn.

Page 24: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

24DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Fix k ∈ ω and we show p ∈ Dk. Let s = max{k, s0}. Consider the actionduring stage s + 1 of the construction. Let σj ∈ (ω)2fin with |σj | = s + 2 describehow p collapses Bx

0 , . . . , Bxs+1 into Bp

0 and Bp1 . We defined δjs and τ j+1

s such that

σj ◦ τ j+1s = δjs and [δjs ] ⊆ ∩n<s+1Dn, so in particular, [δsj ] ⊆ Dk. Since τ j+1

s ≺ x

contains the least elements of the first (s + 2) many x-blocks, we have δjs = σj ◦τ j+1s ≺ p, so p ∈ Dk as required. �

The next proposition is standard, but we present the proof because some detailswill be relevant to Theorem 5.4. In the proof, we use codes for open sets as inDefinition 3.1 and we equate a partition p ∈ (ω)2 (namely, a surjection p : ω → 2)with the set for which p is the characteristic function.

Proposition 5.3. Let n ∈ ω and let A ⊆ 2ω be defined by a Σ0n+1 predicate. There

is a ∆0n+1 code U for an open set in (ω)2, a ∆0

n+2 code V for an open set in (ω)2

and a uniformly ∆0n+1 sequence 〈Di : i ∈ ω〉 of codes for dense open sets such that

U ∪ V is dense and for all p ∈ ∩i∈ωDi, if p ∈ U , then p ∈ A and if p ∈ V thenp 6∈ A. Furthermore, the ∆0

n+1 and ∆0n+2 indices for U , V and 〈Di : i ∈ ω〉 can be

obtained uniformly from a Σ0n+1 index for A.

Proof. We proceed by induction on n. Throughout this proof, σ, τ , ρ and δ denoteelements of (ω)2fin. In addition to the properties stated in the proposition, we ensurethat if 〈m,σ〉 ∈ U (or V ) and τ � σ, then there is a k such that 〈k, τ〉 ∈ U (or Vrespectively). Thus, if U ∩ [σ] 6= ∅, then there is 〈k, τ〉 ∈ U with σ � τ .

For n = 0, we have X ∈ A⇔ ∃k ∃mP (m,X ↾ k) where P (x, y) is a Π00 predicate.

Without loss of generality, we assume that if P (m,X ↾ k) holds, then P (m′, Y ↾ k′)holds for all k′ ≥ k, m′ ≥ m and Y ∈ 2ω such that Y ↾ k = X ↾ k. LetU = {〈n, σ〉 : P (σ, n)}, V = {〈0, σ〉 : ∀x∀τ � σ (¬P (τ, x))} and Di = (ω)2fin fori ∈ ω. It is straightforward to check these codes have the required properties.

For the induction case, let A ⊆ 2ω be defined by a Σ0n+2 predicate, so X ∈ A⇔

∃kP (X, k) where P is a Π0n+1 predicate. For k ∈ ω, let Ak = {X : ¬P (X, k)}.

Apply the induction hypothesis to Ak to fix indices (uniformly in k) for the ∆0n+1

codes Uk and 〈Di,k : i ∈ ω〉 and for the ∆0n+2 code Vk so that if p ∈ ∩i∈ωDi,k, then

p ∈ Uk implies ¬P (k, p) and p ∈ Vk implies P (k, p). Let

U = {〈〈k,m〉, σ〉 : 〈m,σ〉 ∈ Vk} and

V = {〈0, σ〉 : ∀k ∀τ � σ ∃m ∃ρ � τ 〈m, ρ〉 ∈ Uk}.

U is a ∆0n+2 code for ∪kVk, and V is a ∆0

n+3 code such that 〈m,σ〉 ∈ V if andonly if every Uk is dense in [σ]. We claim that U ∪ V is dense. Fix σ and assumeU ∩ [σ] = ∅, so Vk ∩ [σ] = ∅ for all k. Since Uk ∪ Vk is dense, Uk ∩ [τ ] 6= ∅ for allτ � σ and all k, so 〈0, σ〉 ∈ V .

For i = 〈ai, bi〉, define Di = Dai,bi ∩ (Ui ∪ Vi). Di has a ∆0n+2 code as a dense

open set and the index can be uniformly computed from the indices for Ui, Vi andDai,bi . Furthermore, if p ∈ ∩iDi then p ∈ ∩i,kDi,k and p ∈ ∩k(Uk ∪ Vk).

Assume that p ∈ ∩iDi. First, we show that if p ∈ U , then p ∈ A. Supposep ∈ U = ∪kVk and fix k such that p ∈ Vk. Since p ∈ ∩iDi,k for this fixed k, p 6∈ Ak

by the induction hypothesis. Therefore, P (k, p) holds and hence p ∈ A.Second, we show that if p ∈ V then p 6∈ A. Assume p ∈ V and fix 〈0, σ〉 ∈ V

such that σ ≺ p. It suffices to show ¬P (k, p) holds for an arbitrary k ∈ ω. Sincep ∈ ∩iDi, we have p ∈ Uk ∪ Vk and p ∈ ∩iDi,k. If p ∈ Uk, then ¬P (k, p) holds byinduction and we are done. Therefore, suppose for a contradiction that p ∈ Vk. Fix

Page 25: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 25

〈0, τ〉 ∈ Vk such that σ � τ and τ ≺ p. Since 〈0, σ〉 ∈ V and σ � τ , there are ρ � τand m such that 〈m, ρ〉 ∈ Uk, and therefore [ρ] ⊆ Uk ∩ Vk. This containment is thedesired contradiction because q ∈ [ρ]∩∩iDi,k would satisfy q ∈ Ak and q 6∈ Ak. �

Theorem 5.4. For every coloring (ω)2 = R ∪R such that R is a computable codefor a Σ0

n+2 set, there is either a ∅(n)-computable x ∈ (ω)ω which is homogeneous

for R or a ∅(n+1)-computable x ∈ (ω)ω which is homogeneous for R.

Proof. Fix R and fix a Π0n+1 predicate P (k, y) such that for y ∈ (ω)2, y ∈ R ⇔

∃k P (k, y). Let Uk, Vk and 〈Di,k : i ∈ ω〉 be the codes from Proposition 5.3 forRk = {y : ¬P (y, k)}. Let U = ∪kVk, V = ∪{[σ] : ∀k Uk is dense in [σ]} and Di,i ∈ ω, be the corresponding codes for R. We split non-uniformly into cases.

Case 1: Assume V is dense in [0ℓ] for some fixed ℓ. We make two observations.First, U is disjoint from [0ℓ]. Therefore, each Vk is disjoint from [0ℓ] and hence eachUk is dense in [0ℓ]. Second, suppose y ∈ (

⋂i,kDi,k) ∩ (

⋂k Uk). For each k we have

y ∈ ∩iDi,k and y ∈ Uk, so ∀k ¬P (k, y) holds and hence y ∈ R.

We apply Theorem 5.2 relativized to ∅(n) to the computable open set O = [0ℓ](which has nonempty intersection with [0j ] for every j) and the ∅(n)-computablesequence of codes Di,k and Uk for i, k < ω. By the first observation, each coded

set in this sequence is dense in O. Therefore, there is a ∅(n)-computable x ∈ (ω)ω

such that (x)2 ⊆ [0ℓ] ∩ (⋂

i,kDi,k) ∩ (⋂

k Uk). By the second observation, (x)2 ⊆ Ras required.

Case 2: Assume V is not dense in [0m] for any m. In this case, since U ∪ V isdense, we have U ∩ [0m] 6= ∅ for all m. We apply Theorem 5.2 relativized to ∅(n+1)

to the ∅(n+1)-computable open set U and the ∅(n+1)-computable sequence of densesets Di for i ∈ ω to obtain an ∅(n+1)-computable x with (x)2 ⊆ U ∩ (

⋂iDi) ⊆ R

as required. �

We end this section by showing that the non-uniformity in the proof of Theorem5.1 is necessary.

Theorem 5.5. For every Turing functional ∆, there are computable codes R0

and R1 for complementary open sets in (ω)2 such that ∆R0⊕R1 is not an infinitehomogeneous partition for the reduced coloring (ω)2 = R0 ∪R1.

Proof. Fix ∆. We define R0 and R1 in stages as R0,s and R1,s. Our construction

proceeds in a basic module while we wait for ∆R0,s⊕R1,ss to provide appropriate com-

putations. If these computations appear, we immediately diagonalize and completethe construction.

For the basic module at stage s, put 02s+11 ∈ R0,s and 02s+21 ∈ R1,s. Check

whether there is a 0 < k < s such that ∆R0,s⊕R1,ss (i) = 0 for all i < k and

∆R0,s⊕R1,ss (k) = 1. If there is no such k, then we proceed to stage s + 1 and

continue with the basic module.If there is such a k, then we stop the basic module and fix i < 2 such that

0k1 ∈ Ri,s. (Since k < s, we have already enumerated 0k1 into one of B0,s or B1,s

depending on whether k is even or odd.) We end the construction at this stage anddefine Ri = Ri,s and R1−i = R1−i,s ∪ {0t1 | 2s+ 2 < t}.

This completes the construction. It is clear that R0 and R1 are computablecodes for complementary open sets and (ω)2 = R0∪R1 is a reduced coloring. If theconstruction never finds an appropriate value k, then ∆R0⊕R1 is not an element of

Page 26: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

26DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

(ω)ω and we are done. Therefore, assume we find an appropriate value k at stages in the construction. Fix i such that 0k1 ∈ Ri,s and assume that p = ∆R0⊕R1 isa element of (ω)ω . We show p is not homogeneous by giving elements q0, q1 ∈ (p)2

such that q0 ∈ Ri and q1 ∈ R1−i.By construction, [0, k) ⊆ Bp

0 and k = µp(1) ∈ Bp1 . Let q0 ∈ (p)2 be any

coarsening such that µq0(1) = k. Since [0, k) ⊆ Bq00 and k ∈ Bq0

1 , we have 0k1 ≺ q0and so q0 ∈ [0k1] ⊆ Ri as required.

On the other hand, since p ∈ (ω)ω, there are infinitely many p-blocks. Let Bpn

be the first p-block with µp(n) > 2s + 2. Let q1 ∈ (p)2 be any coarsening forwhich µq1(1) = µp(n) and hence q1 ∈ [0µ

p(n)1]. Since µp(n) > 2s + 2, we put0µ

p(n)1 ∈ R1−i, so q1 ∈ R1−i as required. �

5.2. Strong reductions for reduced colorings. A reduced coloring (ω)2 = R0∪R1 is classically open and the color of p ∈ (ω)2 depends only on µp(1). When R0

and R1 are codes for open sets, there is a homogeneous partition computable inR0 ⊕R1, although by Theorem 5.5, not uniformly. We consider the case when theopen sets R0 and R1 are represented by Borel codes for Σ0

n sets with n ≥ 2.∆0

n-rDRT22 is the statement that for each reduced coloring (ω)2 = R0∪R1 where

R0 and R1 are Borel codes for Σ0n sets, there exists an x ∈ (ω)ω and an i < 2 such

that (x)2 ⊆ Ri. In effective algebra, this statement is clear, but in RCA0, we needto specify how to handle these codes.

A Borel code for a Σ0n set is a labelled subtree of ω<n+1 which, in this section,

we write as (B, ℓ) to specify the labeling function ℓ. The labels come from the setS = {∪,∩}∪L where ∪ is the label for an interior node to denote a union, ∩ is thelabel for an interior node to denote an intersection and L is the set of labels for theleaves, namely our fixed codes for the clopen sets ∅, (ω)2 [τ ] and [τ ] for τ ∈ (ω)2fin.For a leaf σ and a partition p, we write p ∈ ℓ(σ) if p is an element of the clopen setcoded by ℓ(σ). Similarly, we write ℓ(σ) = [τ ] to avoid specifying a coding scheme.Since this code is for a Σ0

n set, we require that ℓ(λ) = ∪.We construct a Σ0

n formula η(B, ℓ, p) such that if (B, ℓ) is a Borel code for a Σ0n

set and p ∈ (ω)2, then η(B, ℓ, p) says p is in the set coded by (B, ℓ). We begin bydefining formulas βk(σ,B, ℓ, p) for 1 ≤ k ≤ n by downward induction on k. Forσ ∈ B with |σ| = k, βk(σ,B, ℓ, p) says that p is in the set coded by the labeledsubtree of (B, ℓ) above σ. Since any σ ∈ B with |σ| = n is a leaf, βn(σ,B, ℓ, p) isthe formula p ∈ ℓ(σ). For 1 ≤ k < n, βk(σ,B, ℓ, p) is the formula

(ℓ(σ) = ∪ → α∪k ) ∧ (ℓ(σ) = ∩ → α∩

k ) ∧ (ℓ(σ) ∈ L→ αLk ), where

α∪k (σ,B, ℓ, p) is ∃τ ∈ B

(σ ≺ τ ∧ |τ | = k + 1 ∧ βk+1(τ, B, ℓ, p)

)

α∩k (σ,B, ℓ, p) is ∀τ ∈ B

((σ ≺ τ ∧ |τ | = k + 1) → βk+1(τ, B, ℓ, p)

)

and αLk (σ,B, ℓ, p) is p ∈ ℓ(σ).

The formula η(B, ℓ, p) is ∃σ ∈ B (|σ| = 1∧ β1(σ,B, ℓ, p)). In RCA0, we write p ∈ Bfor η(B, ℓ, p). The statement ∆0

n-rDRT22now has the obvious translation in RCA0.

A Borel code (B, ℓ) for a Σ0n set is in normal form if B = ω<n+1 and for every

σ with |σ| < n, if |σ| is even, then ℓ(σ) = ∪, and if |σ| is odd, then ℓ(σ) = ∩. In

RCA0, for every (B, ℓ), there is a (B, ℓ) in normal form such that for all p ∈ (ω)2,

p ∈ B if and only if p ∈ B. Moreover, the transformation from (B, ℓ) to (B, ℓ) isuniformly computable in (B, ℓ). We describe the transformation when (B, ℓ) is aBorel code for a Σ0

2 set. The case for a Σ0n set is similar.

Page 27: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 27

Let (B, ℓ) be a Borel code for a Σ02 set. By definition, λ ∈ B with ℓ(λ) = ∪.

Each σ ∈ B with |σ| = 1 is the root of a subtree coding a Σ00 set (if ℓ(σ) ∈ L), a

Σ01 set (if ℓ(σ) = ∪) or a Π0

1 set (if ℓ(σ) = ∩). Consider the following sequence oftransformations.

• To form (B1, ℓ1), for each σ ∈ B with |σ| = 1 and ℓ(σ) = ∪, remove thesubtree of B above σ (including σ). For each τ ∈ B with τ ≻ σ, add a newnode τ ′ to B1 with |τ ′| = 1 and ℓ1(τ

′) = ℓ(τ) ∈ L.• To form (B2, ℓ2), for each leaf σ ∈ B1 with |σ| = 1, relabel σ by ℓ2(σ) = ∩and add a new successor τ to σ with label ℓ2(τ) = ℓ1(σ).

• To form (B3, ℓ3), for each σ ∈ B2 with |σ| = 1, let τσ ∈ B1 be the firstsuccessor of σ. Add infinite many new nodes δ ≻ σ to B3 with ℓ3(δ) =ℓ2(τσ).

• To form (B4, ℓ4), let σ be the first node of B3 at level 1. Add infinitelymany copies of the subtree above σ to B4 with the same labels as in B3.

In (B4, ℓ4), the leaves are at level 2, every interior node is infinitely branchingand ℓ4(σ) = ∩ when |σ| = 1. There is a uniform procedure to define a bijection

f : B4 → ω<3. We define (B, ℓ) by B = ω<3 and ℓ(σ) = ℓ4(f−1(σ)). In RCA0, for

all p ∈ (ω)2, η(B, ℓ, p) holds if and only if η(B, ℓ, p) holds.When (B, ℓ) is a Borel code for a Σ0

n set in normal form, η(B, ℓ, p) is equivalentto ∃x0 ∀x1 · · ·Qn−1xn−1 (p ∈ ℓ(〈x0, x1, . . . , xn−1〉)) where Qn−1 is ∀ or ∃ dependingon whether n− 1 is odd or even. We have analogous definitions for Borel codes forΠ0

n sets in normal form.To define Dn

2 , let [ω]n denote the set of n element subsets of ω. We view theelements of [ω]n as strictly increasing sequences s0 < s1 < · · · < sn−1.

Definition 5.6. A coloring c : [ω]n → 2 is stable if for all k, the limit

lims1

· · · limsn−1

c(k, s1, . . . , sn−1)

exists. L ⊆ ω is limit-homogeneous for a stable coloring c if there is an i < 2 suchthat for each k ∈ L,

lims1

· · · limsn−1

c(k, s1, . . . , sn−1) = i.

Dn2 is the statement that each stable coloring c : [ω]n → 2 has an infinite limit-

homogeneous set.

Below, the proof of Theorem 5.7(2) is a formalization of the proof of Theorem5.7(1), and the additional induction used is a consequence of this formalization.We do not know if its use is necessary; that is, we do now if RCA0 + IΣ0

n−1 can bereplaced simply by RCA0 when n > 2.

Theorem 5.7. Fix n ≥ 2.

(1) ∆0n-rDRT

22 ≡sW Dn

2 .

(2) Over RCA0 + IΣ0n−1, ∆

0n-rDRT

22 is equivalent to Dn

2 .

Corollary 5.8. ∆02-rDRT

22 is equivalent to SRT

22 over RCA0.

Proof. D22 is equivalent to SRT

22 over RCA0 by Chong, Lempp, and Yang [4]. �

Corollary 5.9. ∆02-rDRT

22 <sW SRT

22.

Proof. D22 <sW SRT

22 by Dzhafarov [5, Corollary 3.3]. (It also follows immediately

that ∆02-rDRT

22 ≡W D2

2 <W SRT22.) �

Page 28: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

28DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Proof of Theorem 5.7. We prove the two parts simultaneously, remarking, whereneeded, how to formalize the argument in RCA0 + IΣ0

n−1.

To show that ∆0n-rDRT

22 ≤sW Dn

2 , and that ∆0n-rDRT

22 is implied by Dn

2 over

RCA0 + IΣ0n−1, fix an instance (ω)2 = R0 ∪ R1 of ∆0

n-rDRT22 where each Ri is a

Borel code for a Σ0n set. Without loss of generality, R0 and R1 are in normal form.

For each k ≥ 1, fix the partition pk defined by Bpk

0 = ω − {k} and Bpk

1 = {k}.For m < n, we let Ri(t0, . . . , tm) denote the Borel set coded by the subtree of Ri

above 〈t0, . . . , tm〉. Since 〈t0, . . . , tn−1〉 is a leaf, Ri(t0, . . . , tn−1) is the clopen setℓi(〈t0, . . . , tn−1〉). If m < n− 1, then Ri(t0, . . . , tm) is a code for a Σ0

n−(m+1) set (if

m is odd) or a Π0n−(m+1) set (if m is even) in normal form.

We define a coloring c : [ω]n → 2 as follows. Let c(0, s1, . . . , sn−1) = 0 for alls1 < · · · < sn−1. For m ≤ n, let Qm stand for ∃ or ∀, depending as m is even orodd, respectively. Given 1 ≤ k < s1 < . . . < sn−1, define

c(k, s1, . . . , sn−1) = 1

if and only if there is a t0 ≤ s1 such that

(∀t1 ≤ s1) · · · (Qmtm ≤ sm) · · · (Qn−1tn−1 ≤ sn−1) pk ∈ ℓ0(〈t0, . . . , tn−1〉)

and for which there is no u0 < t0 such that

(∀u1 ≤ s1) · · · (Qmum ≤ sm) · · · (Qn−1un−1 ≤ sn−1) pk ∈ ℓ1(〈u0, . . . un−1〉).

(Note that s1 bounds t0, t1 and u1, whereas the other sm bound only tm and um.)The coloring c is uniformly computable in (R0, ℓ0) and (R1, ℓ1) and is definable inRCA0 as a total function since all the quantification is bounded.

We claim that for each k ≥ 1,

lims1

· · · limsn−1

c(k, s1, . . . , sn−1)

exists. Furthermore, if this limit equals 1, then pk ∈ R0, and if this limit equals 0,then pk ∈ R1. We break this claim into two halves.

First, for 1 ≤ m ≤ n− 1, we claim that for all fixed 1 ≤ k < s1 < . . . < sm,

limsm+1

· · · limsn−1

c(k, s1, . . . , sm, sm+1, . . . , sn−1)

exists, and the limit equals 1 if and only if there is a t0 ≤ s1 such that

(1) (∀t1 ≤ s1) · · · (Qmtm ≤ sm) pk ∈ R0(t0, . . . , tm)

and there is no u0 < t0 such that

(2) (∀u1 ≤ s1) · · · (Qmum ≤ sm) pk ∈ R1(u0, . . . , um).

The proof is by downward induction on m. (In RCA0, the induction is performedexternally, so we do not need to consider its complexity.) For m = n− 1, there areno limits involved and the values of c are correct by definition.

Assume the result is true for m+ 1 and we show it remains true for m. By thedefinition of R0(t0, . . . , tm), t0 satisfies (1) if and only if

(∀t1 ≤ s1) · · · (Qmtm ≤ sm)(Qm+1tm+1) pk ∈ R0(t0, . . . , tm, tm+1),

which in turn holds if and only if there is a bound v such that for all sm+1 ≥ v,

(∀t1 ≤ s1) · · · (Qmtm ≤ sm)(Qm+1tm+1 ≤ sm+1) pk ∈ R0(t0, . . . , tm, tm+1).

If Qm+1 is ∃, then over RCA0, this equivalence requires a bounding principle. Sincepk ∈ R0(t0, . . . , tm+1) is a Π0

n−(m+2) predicate and m + 2 ≥ 3, we need at most

Page 29: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 29

BΠ0n−3 which follows from IΣ0

n−1. An analogous analysis applies to numbers u0satisfying (2). Thus, we can fix a common bound v that works for all t0 ≤ s1 in (1)and all u0 < t0 ≤ s1 in (2).

Suppose there is a t0 ≤ s1 satisfying (1) for which there is no u0 < t0 satisfying(2). Then, for all sm+1 ≥ v, t0 satisfies the version of (1) for m + 1, and there isno u0 < t0 satisfying the version of (2) for m+ 1. Therefore, by induction

∃v∀sm+1 ≥ v(limsm+2

· · · limsn−1

c(k, s1, . . . , sn−1) = 1)

and hence limsm+1 · · · limsn−1 c(k, s1, . . . , sn−1) = 1 as required.On the other hand, suppose that there is no t0 ≤ s1 satisfying (1), or that

for every t0 ≤ s1 satisfying (1), there is a u0 < t0 satsifying (2). Then, for allsm+1 ≥ v, we have the analogous condition for m+1 and the induction hypothesisgives limsm+1 · · · limsn−1 c(k, s1, . . . , sn−1) = 0. This completes the first part of theclaim.

We can now prove the rest of the claim. For each k ≥ 1, we have pk ∈ R0 orpk ∈ R1. Let t0 be least such that pk ∈ R0(t0) or pk ∈ R1(t0). Since pk ∈ Ri(t) isa Π0

n−1 statement, we use IΣ0n−1 to fix this value in RCA0.

Suppose pk ∈ R0(t0), so for all u0 < t0, it is not the case that pk ∈ R1(u0). Bythe first half of the claim with m = 1, we have for every s1 ≥ t0

lims2

· · · limsn−1

c(k, s1, s2, . . . , sn−1) = 1,

and therefore lims1 · · · limsn−1 c(k, s1, . . . , sn−1) = 1.Suppose pk 6∈ R0(t0), and hence pk ∈ R1(t0). Again, by the first half of the

claim with m = 1, we have for every s1 ≥ t0

lims2

· · · limsn−1

c(k, s1, s2, . . . , sn−1) = 0,

so lims1 · · · limsn−1 c(k, s1, . . . , sn−1) = 0. This completes the proof of the claim.Since c is an instance of Dn

2 , fix i < 2 and an infinite limit-homogeneous set Lfor c with color i. By the claim, pk ∈ R1−i for all k ∈ L. List the non-zero elementsof L as k0 < k1 < · · · , and let p ∈ (ω)ω be the partition whose blocks are [0, k0)and [km, km+1) for m ∈ ω. Each x ∈ (p)2 satisfies µx(1) = km for some m. SinceR0 ∪R1 is a reduced coloring, x and pkm

have the same color, which is R1−i. Sincex was arbitrary, (p)2 ⊆ R1−i as required to complete this half of the theorem.

Next, we show that Dn2 ≤sW ∆0

n-rDRT22, and that Dn

2 is implied by ∆0n-rDRT

22

over RCA0. (No extra induction is necessary for this implication.) Fix an instancec : [ω]n → 2 of Dn

2 , and define a partition R0 ∪R1 of (ω)2 as follows. For x ∈ (ω)2

with µx(1) = k, x ∈ Ri for the unique i such that

lims1

· · · limsn−1

c(k, s1, . . . , sn−1) = i.

Since each of the iterated limits is assumed to exist over what follows on the right,we may express these limits by alternating Σ0

2 and Π02 definitions, as

(∃t1∀s1 ≥ t1)(∀t2 ≥ s1∃s2 ≥ t2) · · · c(k, s1, . . . , sn−1) = i.

Thus, R0 and R1 are Σ0n-definable open subsets of (ω)2. By standard techniques,

there are Borel codes for R0 and R1 as Σ0n sets uniformly computable in c and in

RCA0. (Below, we illustrate this process for D32.)

By definition, (ω)2 = R0∪R1 is a reduced coloring and hence is an instance of ∆0n-

rDRT22. Let p ∈ (ω)ω be a solution to this instance, say with color i < 2. Thus, for

Page 30: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

30DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

every x ∈ (p)2, the limit color of k = µx(1) is i. Define L = {µp(m) : m ≥ 1}. Sincefor each k ∈ L, there is an x ∈ (p)2 such that µx(1) = k, L is limit-homogeneousfor c with color i.

We end this proof by illustrating how to define the Borel codes for R0 and R1

as Σ03 sets from a stable coloring c(k, s1, s2). In this case, we have

lims1

lims2c(k, s1, s2) = i⇔ ∃t1(∀s1 ≥ t1 ∀t2 ≥ s1)(∃s2 ≥ t2) c(k, s1, s2) = i.

The nodes in each Ri are the initial segments of the strings 〈〈k, t1〉, 〈s1, t2〉, s2〉 fork ≤ t1 < s1 ≤ t2 < s2 and the labeling functions are ℓi(σ) = ∪ if |σ| ∈ {0, 2},ℓi(σ) = ∩ if |σ| = 1 and ℓi(〈〈k, t1〉, 〈s1, t2〉, s2〉) = [0k1] if c(k, s1, s2) = i and isequal to ∅ if c(k, s1, s2) = 1 − i. It is straightforward to check in RCA0 that Ri

represents the union of clopen sets [0k1] such that the limit color of k is i. �

6. Reverse math and Borel codes

In this section, we define Borel codes in second order arithmetic and prove Theo-rem 3.14. Although we give definitions specific to the setting of (ω)k, we assume thereader is familiar with ATR0 as well as the Turing jump and the hyperarithmetichierarchy in second order arithmetic from Simpson [12] Chapters V and VIII. Webegin by defining a Borel code for a subset of (ω)k in RCA0. Although the treestructure is similar to Definition 4.1, these codes are not defined inductively andthe label for each node is coded by its last numerical entry. Let τ0, τ1, · · · be a fixedenumeration of (ω)kfin and let λ denote the empty string.

Definition 6.1 (RCA0). A Borel code for a subset of (ω)k is a tree B ⊆ ω<ω withno infinite path such that there is exactly one m ∈ ω (denoted mB) with 〈m〉 ∈ B.A Borel code is trivial if σ(|σ| − 1) ∈ {0, 1} for every leaf σ ∈ B.

Definition 6.2 (RCA0). Let B be a Borel code for a subset of (ω)k and p ∈ (ω)k.An evaluation map for B at p is a function f : B → {0, 1} such that for all σ ∈ Band n = |σ| − 1

• if σ is a leaf, then

f(σ) =

σ(n) if σ(n) ∈ {0, 1}1 if σ(n) = 2m+ 2 and τm ≺ p1 if σ(n) = 2m+ 3 and τm 6≺ p0 otherwise

• if σ 6= λ is not a leaf, then

f(σ) =

1 if σ(n) is even and ∃m (σam ∈ B ∧ f(σam) = 1)1 if σ(n) is odd and ∀m (σam ∈ B → f(σam) = 1)0 otherwise

• and f(λ) = f(〈mB〉).

We write p ∈ B if there is an evaluation map for B at p with f(λ) = 1 and p 6∈ Bif there is an evaluation map f for B at p with f(λ) = 0.

The leaf nodes of a Borel code B code the basic clopen sets ∅, (ω)k, [τm] or [τm]depending on the last entry in σ. The interior nodes of B code either a union (ifthe last entry is even) or an intersection (if the last entry is odd). A trivial Borelcode represents a set built from ∅ and (ω)k using unions and intersections. SinceACA0 suffices to prove that the Kleene-Brouwer order on B is a well order and to

Page 31: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 31

prove arithmetic transfinite induction, ACA0 proves that an evaluation map for Bat p is unique, provided it exists.

For a binary string σ, let σ be defined by |σ| = |σ|, σ(n) = 2m if σ(n) = 2m+1,and σ(n) = 2m+ 1 if σ(n) = 2m. For a Borel code B, let B = {σ : σ ∈ B}. RCA0

proves that if B is a Borel code, then B is a Borel code for the complement of Bin the sense that for every p ∈ (ω)k, f is an evaluation map for B at p if and onlyif f(σ) = 1− f(σ) is an evaluation map for B at p. In particular, f(λ) = 1− f(λ).

Lemma 6.3 (RCA0). For every code O for an open set, there is a Borel code Bsuch that (ω)k = B ∪B and for all x ∈ (ω)k, x ∈ B if and only if x ∈ O.

Proof. Fix O. Let B contain λ, 〈0〉 and, for all 〈s, τm〉 ∈ O, both 〈0, 〈s, τm〉〉 and〈0, 〈s, τm〉, 2m+ 2〉. We claim that for every x ∈ (ω)k, there is a unique evaluationmap f for B at x, and f(λ) = 1 if and only if x ∈ O. To prove this claim, we definetwo potential evaluation functions, f0 and f1, and show that one of them is correct.

For each i < 2 and leaf τ = 〈0, 〈s, τm〉, 2m+ 2〉, let fi(〈0, 〈s, τm〉〉) = fi(τ) = 1 ifτm ≺ x and have value 0 otherwise. Note that fi(〈0, 〈s, τm〉〉) is correctly defined be-cause τ is the unique successor of 〈0, 〈s, τm〉〉 and therefore fi(〈0, 〈s, τm〉〉) = fi(τ)regardless of whether 〈s, τm〉 is coded by an even or odd number. Set fi(λ) =fi(〈0〉) = i. If there is a pair 〈s, τm〉 ∈ O with τm ≺ x, then f1 satisfies the condi-tions for an evaluation function and hence x ∈ B. Otherwise, f0 is an evaluationfunction and x 6∈ B. In either case, the corresponding fi is the unique evaluationfunction for B at x and it agrees with whether x ∈ O or x ∈ O. �

If B is a trivial Borel code, then an evaluation map for B at p is independent of p,so we can refer to an evaluation map f for B. Below, we show the statement “everytrivial Borel code has an evaluation map” implies ACA0 over RCA0. We prove aform of effective transfinite recursion in ACA0 and use this recursion method toshow “every trivial Borel code has an evaluation map” implies ATR0. The mainideas in the effective transfinite recursion are similar to those in Section 7.7 of Ashand Knight [1]. Since “for every Borel code B, there is a p such that p ∈ B orp 6∈ B” implies “every trivial Borel code has an evaluation map” these results show(2) implies (1) in Theorem 3.14. Because we work with trivial Borel codes, theunderlying topological space does not matter as long as Borel codes are defined ina manner similar to Definitions 6.1 and 6.2. For example, Theorem 3.14 holds forBorel codes of subsets of 2ω or ωω as defined in Simpson [12].

Proposition 6.4 (RCA0). The statement “every trivial Borel code has an evalua-tion map” implies ACA0.

Proof. Fix g : ω → ω and we show range(g) exists. Let B be the trivial Borel codeconsisting of the initial segments of 〈0, 2n,m, 1〉 for g(m) = n and 〈0, 2n,m, 0〉 forg(m) 6= n. Let f be an evaluation function for B.

Assume g(m) = n and we show f(〈0, 2n〉) = 1. By definition, 〈0, 2n,m, 1〉 ∈ Bis a leaf and f(〈0, 2n,m, 1〉) = 1. Since 〈0, 2n,m〉 has only one successor in B,f(〈0, 2n,m〉) = 1 regardless of whether m is even or odd. Since 2n is even, itfollows that f(〈0, 2n〉) = 1.

Similarly, if n 6∈ range(g), then f(〈0, 2n〉) = 0 because all the leaves extending〈0, 2n〉 have the form 〈0, 2n,m, 0〉 and f(〈0, 2n,m, 0〉) = 0. Therefore, range(g) ={n : f(〈0, 2n〉) = 1}. �

Page 32: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

32DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Let LO(X) and WO(X) be the standard formulas in second order arithmeticsaying X is a linear order and X is a well order. We abuse notation and writex ∈ X in place of x ∈ field(X). For a formula ϕ(n,X), Hϕ(X,Y ) is the formulastating LO(X) and Y = {〈n, j〉 : j ∈ X ∧ ϕ(n, Y j)} where Y j = {〈m, a〉 : a <X

j ∧ 〈m, a〉 ∈ Y }. When ϕ is arithmetic, Hϕ(X,Y ) is arithmetic and ACA0 provesthat if WO(X), then there is at most one Y such that Hϕ(X,Y ). We define ourformal version of effective transfinite recursion.

Definition 6.5. ETR is the axiom scheme

∀X[(WO(X) ∧ ∀Y ∀n (ϕ(n, Y ) ↔ ¬ψ(n, Y ))

)→ ∃Y Hϕ(X,Y )

]

where ϕ and ψ range over Σ01 formulas.

We show that ETR is provable in ACA0. Following Simpson [12], we avoid usingthe recursion theorem and note that the only place the proof goes beyond RCA0

is in the use of transfinite induction for Π02 formulas, which holds is ACA0 and is

equivalent to transfinite induction for Σ01 formulas. Greenberg and Montalban [7]

point out that ETR can also be proved using the recursion theorem, although thisproof also uses Σ0

1 transfinite induction.

Proposition 6.6. ETR is provable in ACA0.

Proof. Fix a well order X and Σ01 formulas ϕ and ψ. Throughout this proof, we

let f , g and h be variables denoting finite partial functions from ω to {0, 1} codedin the canonical way as finite sets of ordered pairs. We write f � g (or f ≺ X)if f ⊆ g (or f ⊆ χX) as sets of ordered pairs. By the usual normal form results(e.g. Theorem II.2.7 in Simpson), we fix a Σ0

0 formula ϕ0 such that

∀Y ∀n(ϕ(n, Y ) ↔ ∃f (f ≺ Y ∧ ϕ0(n, f))

)

and such that if ϕ0(n, f) and f ≺ g, then ϕ0(n, g). We fix a formula ψ0 related toψ in the same manner. Since ϕ(n, Y ) ↔ ¬ψ(n, Y ), we cannot have compatible fand g such that ϕ0(n, f) and ψ0(n, g).

Our goal is to use partial functions f as approximations to a set Y such thatHϕ(X,Y ). Therefore, we view dom(f) as consisting of coded pairs 〈n, a〉. For f tobe a suitable approximation to Y , we need that if 〈n, a〉 ∈ dom(f) and a 6∈ X , thenf(〈n, a〉) = 0. Similarly, if f is an approximation to Y j , we need that f(〈n, a〉) = 0whenever 〈n, a〉 ∈ dom(f) and a ≥X j. These observations motivate the followingdefinitions.

Let f be a finite partial function and let i ∈ X . We define

f i = f ↾ {〈n, a〉 : n ∈ ω ∧ a <X i}.

We say g � f is an i-extension of f if for all 〈n, a〉 ∈ dom(g)−dom(f), g(〈n, a〉) = 0and either a 6∈ X or i ≤X a.

For j ∈ X , f is a j-approximation if the following conditions hold.

• If 〈n, a〉 ∈ dom(f) with a 6∈ X or j ≤X a, then f(〈n, a〉) = 0.• If 〈n, a〉 ∈ dom(f) and a <X j, then

– if f(〈n, a〉) = 1, then there is an a-extension h of fa such that ϕ0(n, h),and

– if f(〈n, a〉) = 0, then there is an a-extension h of fa such that ψ0(n, h).

Note that if f is a j-approximation and i <X j, then f i is an i-approximation. Also,if f is a j-approximation and g is a j-extension of f , then g is a j-approximation.

Page 33: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 33

Claim. For all j ∈ X , there do not exist m ∈ ω and j-approximations f and g suchthat ϕ0(m, f) and ψ0(m, g).

The proof is by transfinite induction on j. Fix the least j ∈ X for which thisproperty fails and fix witnesses m, f and g. To derive a contradiction, it suffices toshow that f and g are compatible. Fix 〈k, a〉 such that both f(〈k, a〉) and g(〈k, a〉)are defined. If a 6∈ X or j ≤X a, then f(〈k, a〉) = g(〈k, a〉) = 0.

Suppose for a contradiction that a <X j and f(〈k, a〉) 6= g(〈k, a〉). Withoutloss of generality, f(〈k, a〉) = 1 and g(〈k, a〉) = 0. Fix a-extensions h and h′ of fa

and ga respectively such that ϕ0(k, h) and ψ0(k, h′). Since f is a j-approximation,

fa is an a-approximation, and since h is an a-extension of fa, h is also an a-approximation. Similarly, h′ is an a-approximation. Therefore, we have k ∈ ω,a <X j and a-approximation h and h′ such that ϕ0(k, h) and ψ0(k, h

′) contradictingthe minimality of j.

Claim. For any j-approximation f and any m ∈ ω, there is a j-approximationg � f such that either ϕ0(m, g) or ψ0(m, g).

The proof is again by transfinite induction on j. Fix the least j for which thisproperty fails and fix witnesses f and m. Let 〈ns, is〉 enumerate the pairs not in thedomain of f . Below, we define a sequence f = f0 � f1 � · · · of j-approximationssuch that fs+1(〈ns, is〉) is defined. Let Y be the set with χY = ∪sfs. Eitherϕ(m,Y ) or ψ(m,Y ) holds, and so there is a g ≺ Y such that ϕ0(m, g) or ψ0(m, g)holds. Fixing s such that g � fs shows that either ϕ0(m, fs) or ψ0(m, fs) holds forthe desired contradiction.

To define fs+1, we need to extend fs to a j-approximation fs+1 with 〈ns, is〉 ∈dom(fs+1). We break into several cases. If fs(〈ns, is〉) is already defined, let fs+1 =fs. Otherwise, if is 6∈ X or j ≤X is, set fs+1(〈ns, is〉) = 0 and leave the remainingvalues as in fs. In both cases, it is clear that fs+1 is a j-approximation.

Finally, if is <X j and fs(〈ns, is〉) is undefined, we apply the induction hypothe-sis to the is-approximation f is

s to get an is-approximation g � f iss such that either

ϕ0(ns, g) holds or ψ0(ns, g) holds. Define fs+1 as follows.

• For 〈m, a〉 ∈ dom(g) with a <X is, set fs+1(〈m, a〉) = g(〈m, a〉).• For 〈m, a〉 ∈ dom(fs) with is ≤X a or a 6∈ X , set fs+1(〈m, a〉) = fs(〈m, a〉).• Set fs+1(〈ns, is〉) = 1 if ϕ0(ns, g) holds and fs+1(〈ns, is〉) = 0 if ψ0(ns, g)holds.

It is straightforward to verify that fs ≺ fs+1, g is an is-extension of f iss+1 and fs+1

is a j-approximation, completing the proof of the claim.We define the set Y for which we will show Hϕ(X,Y ) holds by 〈m, j〉 ∈ Y if

and only if j ∈ X and there is a j-approximation f such that ϕ0(m, f). It followsfrom the claims above that 〈m, j〉 6∈ Y if and only if either j 6∈ X or there is aj-approximation f such that ψ0(m, f). Therefore, Y has a ∆0

1 definition. The nexttwo claims show that Hϕ(X,Y ) holds, completing our proof.

Claim. If f is a j-approximation, then f ≺ Y j .

Consider 〈m, a〉 ∈ dom(f). If a 6∈ X or j ≤X a, then f(〈m, a〉) = Y j(〈m, a〉) = 0.Suppose a <X j. If f(〈m, a〉) = 1, then there is an a-extension g of fa such thatϕ0(m, g). Since fa is an a-approximation and g is an a-extension of fa, g is ana-approximation. Therefore, 〈m, a〉 ∈ Y by definition and hence 〈m, a〉 ∈ Y j . Bysimilar reasoning, if f(〈m, a〉) = 0, then 〈m, a〉 6∈ Y and hence 〈m, a〉 6∈ Y j .

Page 34: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

34DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

Claim. 〈m, j〉 ∈ Y if and only if ϕ(m,Y j).

Assume that 〈m, j〉 ∈ Y and fix a j-approximation f such that ϕ0(m, f). Sincef ≺ Y j , ϕ(m,Y j). For the other direction, assume that ϕ(m,Y j). Fix a j-approximation f such that either ϕ0(m, f) or ψ0(m, f). Since f ≺ Y j and ϕ(m,Y j),we must have ϕ0(m, f) and therefore 〈m, j〉 ∈ Y by definition. �

We recall some notation and facts from Simpson [12] to state the equivalence ofATR0 we will prove. We let TJ(X) denote the Turing jump in ACA0 given by fixinga universal Π0

1 formula. We use the standard recursion theoretic notations ΦXe and

ΦXe,s with the understanding that they are defined by this fixed universal formula.O+(a,X) is the arithmetic statement that a = 〈e, i〉, e is an X-recursive index

of an X-recursive linear order ≤Xe and i ∈ field(≤X

e ). OX+ = {a : O+(a,X)} exists

in ACA0. For a, b ∈ OX+ , we write b <X

O a if a = 〈e, i〉, b = 〈e, j〉 and j <Xe i. For

a ∈ OX+ , the set {b : b <X

O a} exists in ACA0.

O(a,X) is the Π11 statement O+(a,X)∧WO({b : b <X

O a}). Intuitively, O(a,X)says that a = 〈e, i〉 is an X-recursive ordinal notation for the well ordering givenby the restriction of ≤X

e to {j : j <Xe i}. In ATR0, if O(a,X), then the set

HXa = {〈y, 0〉 : y ∈ X} ∪ {〈y, b+ 1〉 : b <X

O a ∧ y ∈ TJ(HXb )}

exists. In ACA0, there is an arithmetic formula H(a,X, Y ) which, under the as-sumption that O(a,X), holds if and only if Y = HX

a .By Theorem VIII.3.15 in Simpson [12], ATR0 is equivalent over ACA0 to

∀X ∀a (O(a,X) → HXa exists).

If O(a,X) with a = 〈e, i〉, then we can assume without loss of generality that thereare a′ and a′′ such that O(a′, X), O(a′′, X) and a <X

O a′ <XO a′′ by adding two new

successors of i in ≤Xe if necessary. Therefore, to prove ATR0, it suffices to fix a and

X such that O(a,X) and prove ∀c <XO b (HX

c exists) for each b <XO a.

Theorem 6.7 (ACA0). The statement “every trivial Borel code has an evaluationfunction” implies ATR0.

Proof. Fix a and X such that O(a,X), so the restriction of <XO to {b : b <X

O a} isa well order. Using ETR, we define trivial Borel codes Bx,b for x ∈ ω by transfiniterecursion on b <X

O a. We explain the intuitive construction before the formaldefinition.

Let b <XO a and x ∈ ω. We want to define a trivial Borel code Bx,b such that if

f is an evaluation map for Bx,b, then f(λ) = 1 if and only if x ∈ TJ(HXb ). We put

〈0〉 ∈ Bx,b, so Bx,b codes a union of sets. For each binary string σ such that Φσx,|σ|(x)

converges, we add a successor 〈0, σ〉 with a unique extension 〈0, σ, 1〉. Therefore,regardless of whether the code for σ is even or odd, we have f(〈0, σ〉) = f(〈0, σ, 1〉).It follows that f(λ) = f(〈0〉) = 1 if and only if there is a σ such that Φσ

x,|σ|(x)

converges and f(〈0, σ, 1〉) = 1. (If Φσx,|σ|(x) always diverges, then 〈0〉 is a leaf. In

this case, f(λ) = f(〈0〉) = 0 and x 6∈ TJ(HXb ) which is what we want.)

Next, we want to ensure f(〈0, σ, 1〉) = 1 if and only if σ ≺ HXb . For each k < |σ|,

we add a successor 〈0, σ, 1, k〉. Since 〈0, σ, 1〉 codes the intersection of the sets codedby 〈0, σ, 1, k〉, we want f(〈0, σ, 1, k〉) = 1 if and only if σ(k) = HX

b (k). We breakinto cases to determine the extensions of 〈0, σ, 1, k〉.

For the first case, suppose k = 〈y, 0〉. We want f(〈0, σ, 1, k〉) = 1 if and onlyif y ∈ X . If σ(k) = X(y), we add 〈0, σ, 1, k, 1〉 to Bx,b as the unique successor of

Page 35: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 35

〈0, σ, 1, k〉, and if σ(k) 6= X(y), we add 〈0, σ, 1, k, 0〉 as the unique successor. Ineither case, the successor nodes will be leaves so we have f(〈0, σ, 1, k〉) = 1 if andonly if k ∈ HX

b .For the second case, suppose k = 〈y, c + 1〉 and c <X

O b. By the inductionhypothesis, we have defined the trivial Borel code By,c already. If σ(k) = 1, thenwe extend 〈0, σ, 1, k〉 by a copy of By,c, treating 〈0, σ, 1, k〉 as the root of this tree.The map f restricted to the subtree above 〈0, σ, 1, k〉 is an evaluation map for By,c

and hence by the inductive hypothesis

f(〈0, σ, 1, k〉) = 1 ⇔ y ∈ TJ(HXc ) ⇔ k ∈ HX

b ⇔ σ(k) = HXb (k).

On the other hand, if σ(k) = 0, then we extend 〈0, σ, 1, k〉 by a copy of By,c. Bythe inductive hypothesis, we have

f(〈0, σ, 1, k〉) = 1 ⇔ y 6∈ TJ(HXc ) ⇔ k 6∈ HX

b ⇔ σ(k) = HXb (k).

For the third case, suppose that k = 〈y, c + 1〉 and c 6<XO b. In this case, we

know HXb (k) = 0. If σ(k) = 0, then we add a unique successor 〈0, σ, 1, k, 1〉 to

〈0, σ, 1, k〉 as a leaf. We have f(〈0, σ, 1, k, 1〉) = 1 (since this node is a leaf) andhence f(〈0, σ, 1, k〉) = 1 which is what we want since σ(k) = HX

b (k) = 0. On theother hand, if σ(k) = 1, then we add a unique successor 〈0, σ, 1, k, 0〉 as a leaf, sof(〈0, σ, 1, k〉) = f(〈0, σ, 1, k, 0〉) = 0. Since 〈0, σ, 1〉 codes an intersection, we getf(〈0, σ, 1〉) = 0 which is what we want since σ(k) 6= HX

b (k) and hence σ 6≺ HXb .

The formal construction follows this outline. To simplify the notation, for atrivial Borel code B, we let B1 = B and B0 = B. Since “Φσ

x,|σ|(x) converges” is

a bounded quantifier statement and c <XO b is a ∆0

1 statement with parameter X ,the following recursion on b <X

O a can be done with ETR. For each x ∈ ω, we putλ and 〈0〉 in Bx,b. For each σ such that Φσ

x,|σ|(x) converges, we put 〈0, σ〉, 〈0, σ, 1〉

and 〈0, σ, 1, k〉 in Bx,b for all k < |σ|. We extend 〈0, σ, 1, k〉 as follows.

• For k = 〈y, 0〉: if σ(k) = X(y), then 〈0, σ, 1, k, 1〉 ∈ Bx,b and if σ(k) 6= X(y),then 〈0, σ, 1, k, 0〉 ∈ Bx,b.

• For k = 〈y, c+ 1〉 with c <XO b, 〈0, σ, 1, k〉aτ ∈ Bx,b for all τ ∈ B

σ(k)y,c .

• For k = 〈y, c+ 1〉 with c 6<XO b, 〈0, σ, 1, k, 1− σ(k)〉 ∈ Bx,b.

This completes the construction of the trivial Borel codes Bx,b for b <XO a by

ETR. To complete the proof, we fix an arbitrary b <XO a and show that ∀c <X

O

b (HXc exists).

Fix an index x and s ∈ ω such that Φ1s

x,s(x) converges. Let N be the least value

of s witnessing this convergence so Φ1s

x,s(x) converges for all s ≥ N . Let f be anevaluation map for Bx,b.

For c <XO b and y ∈ ω, let σ = 1N+k where k = 〈y, c + 1〉. Define fy,c(τ) =

f(〈0, σ, 1, k〉aτ). We claim fy,c is an evaluation map for By,c. By the choice of x,Φσ

x,|σ|(x) converges. Since c <XO b and σ(k) = 1, we have 〈0, σ, 1, k〉aτ ∈ Bx,b if and

only if τ ∈ By,c. Therefore, fy,c is defined on By,c and it satisfies the conditions foran evaluation map because f does.

Recall that H(x,X, Y ) is a fixed arithmetic formula such that if O(x,X), thenH(x,X, Y ) holds if and only if Y = HX

x . Define

Z = {〈y, 0〉 : y ∈ X} ∪ {k : k = 〈y, c+ 1〉 ∧ c <XO b ∧ f(〈0, 1N+k, 1, k〉) = 1}.

For c <XO b, let Zc = {〈y, r〉 ∈ Z : r = 0 ∨ r − 1 <X

O c}. We show the followingproperties by simultaneous arithmetic induction on c <X

O b.

Page 36: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

36DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

(1) H(c,X, Zc) holds. That is, Zc = HXc .

(2) For all y, fy,c(λ) = 1 if and only if y ∈ TJ(Zc) = TJ(HXc ).

These properties imply ∀c <XO b (HX

c exists) completing our proof.Fix c <X

O b and assume (1) and (2) hold for d <XO c. To see (1) holds for c, fix k.

If k = 〈y, 0〉, then k ∈ Zc ⇔ y ∈ X ⇔ k ∈ HXc . Suppose k = 〈y, d+ 1〉. If d 6<X

O c,then k 6∈ HX

c and k 6∈ Zc. If d <XO c, then

k ∈ Zc ⇔ f(〈0, 1N+k, 1, k〉) = 1 ⇔ fy,d(λ) = 1.

By the induction hypothesis, k ∈ Zc if and only if y ∈ TJ(Zd) = TJ(HXd ), which

holds if and only if k ∈ HXc , completing the proof of (1).

To prove (2), fix y and let k = 〈y, c+ 1〉. By definition,

k ∈ Zc ⇔ fy,c(λ) = f(〈0, 1N+k, 1, k〉) = 1,

and y ∈ TJ(Zc) = TJ(HXc ) if and only if there is a σ such that Φσ

y,|σ|(y) converges

and σ ≺ Zc = HXc .

Suppose there are no σ such that Φσy,|σ|(y) converges. In this case, y 6∈ TJ(HX

c )

and (since By,c consists of λ and 〈0〉) fy,c(λ) = 0. Therefore fy,c(λ) = 1 if and onlyif y ∈ TJ(HX

c ) as required.Suppose Φσ

y,|σ|(y) converges for some σ. For any such σ, 〈0, σ, 1, ℓ〉 ∈ By,c for

all ℓ < |σ|. By the induction hypothesis and the case analysis in the intuitiveexplanation of the construction, we have fy,c(〈0, σ〉) = fy,c(〈0, σ, 1〉) = 1 if andonly if σ ≺ HX

c = Zc, and therefore, fy,c(λ) = 1 if and only if there is a σsuch that Φσ

y,|σ|(y) converges and σ ≺ HXc , completing the proof of (2) and of the

theorem. �

Proposition 6.8 (ATR0). Every Borel code for a subset of (ω)k has a Baire code.

Proof. Fix a Borel code B. For σ ∈ B, let Bσ = {τ ∈ B : τ is comparable to σ}.Bσ is a Borel code for the set coded coded by the subtree of B above σ in thefollowing sense. Let f be an evaluation map for B at x. The function g : Bσ → 2defined by g(τ) = f(τ) for τ � σ and g(τ) = f(σ) for τ ≺ σ is an evaluationfunction for Bσ at x which witnesses x ∈ Bσ if and only if f(σ) = 1. We denotethis function g by fσ,x.

Formally, our proof proceeds in two steps. First, by arithmetic transfinite re-cursion on the Kleene-Brouwer order KB(B), we construct open sets Uσ, Vσ andDn,σ, n ∈ ω, which are intended to form a Baire code for Bσ. This constructionis essentially identical to the proof of Proposition 5.3. Second, for any x ∈ (ω)k

and evaluation map f for B at x, we show by arithmetic transfinite induction onKB(B) that if x ∈ ∩n∈ωDn,σ, then x ∈ Uσ implies x ∈ Bσ via fσ,x and x ∈ Vσimplies x 6∈ Bσ via fσ,x. For ease of presentation, we combine these two steps.Since ATR0 suffices to construct evaluation maps, we treat Borel codes as sets in anaive manner and suppress explicit mention of the evaluation maps.

If σ is a leaf coding a basic clopen set [τ ], we set Uσ = [τ ], Vσ = [τ ] and

Dn,σ = (ω)k. Similarly, if σ codes [τ ], we switch the values of Uσ and Vσ. In eithercase, it is clear that these open sets form a Baire code for Bσ.

Suppose σ is an internal node coding a union, so Bσ is the union of Bσak forσak ∈ B. We define Uσ to be the union of Uσak for σak ∈ B and Vσ to be theunion of [τ ] such that Vσak is dense in [τ ] for all σak ∈ B. The sequence Dn,σ is

Page 37: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM 37

the sequence of all open sets of the form Dn,σak ∩ (Uσak ∪ Vσak) for n ∈ ω and

σak ∈ B. As in the proof of Proposition 5.3, Uσ ∪ Vσ and each Dn,σ are dense.Let x ∈ ∩n∈ωDn,σ. Suppose x ∈ Uσ and we show x ∈ Bσ. By the definition of

Uσ, fix σak ∈ B such that x ∈ Uσak. Since x ∈ ∩n∈ωDn,σak, we have by induction

that x ∈ Bσak and hence x ∈ Bσ. On the other hand, suppose x ∈ Vσ and weshow x 6∈ Bσ. Fix τ such that τ ≺ x and [τ ] ⊆ Vσ, and fix k such that σak ∈ B.Since x ∈ ∩n∈ωDn,σ, x ∈ Uσak ∪ Vσak. However, Vσak is dense in [τ ]. Therefore,x 6∈ Uσak (because Uσak and Vσak must be disjoint as in the proof of Proposition5.3), so x ∈ Vσak. Since x ∈ ∩n∈ωDn,σak, we have by induction that x 6∈ Bσak.

Because this holds for every σak ∈ B, it follows that x 6∈ Bσ, completing the casefor unions.

The case for an interior node coding an intersection is similar with the roles ofUσ and Vσ switched. Finally, the Baire codes for the unique 〈m〉 ∈ B satisfy theconditions to be Baire codes for B itself. �

We conclude with a proof of Theorem 3.14.

Proof. Lemma V.3.3 in Simpson [12] shows (1) implies (2) in the space 2ω and theproof translates immediately to (ω)k. By Proposition 6.8, (1) implies (3). It followsfrom Theorem 6.7 that (2) implies (1). We show (3) implies (2). Let B be a Borelcode. Fix a Baire code U , V and Dn for B. Since each Dn and U ∪ V is a denseopen set, there is an x ∈ (U ∪ V ) ∩ ∩n∈ωDn. If x ∈ U , then by the definition ofa Baire code, x ∈ B, and similarly, if x ∈ V , then x 6∈ B. Therefore, we have apartition x such that x ∈ B or x 6∈ B as required. �

References

[1] C. J. Ash and J. F. Knight. Computable structures and the hyperarithmetic hierarchy. Studiesin Logic and the Foundations of Mathematics. Elsevier, Amsterdam, 2000.

[2] Andreas R. Blass, Jeffry L. Hirst, and Stephen G. Simpson. Logical analysis of some theoremsof combinatorics and topological dynamics. In Logic and combinatorics (Arcata, Calif., 1985),volume 65 of Contemp. Math., pages 125–156. Amer. Math. Soc., Providence, RI, 1987.

[3] Timothy J. Carlson and Stephen G. Simpson. A dual form of Ramsey’s theorem. Adv. inMath., 53(3):265–290, 1984.

[4] C. T. Chong, Steffen Lempp, and Yue Yang. On the role of the collection principle for Σ02-

formulas in second-order reverse mathematics. Proc. Amer. Math. Soc., 138(3):1093–1100,2010.

[5] Damir D. Dzhafarov. Strong reductions between combinatorial principles. Journal of SymbolicLogic, 81(4):1405–1431, 2016.

[6] Julia Christina Erhard. The Carlson-Simpson Lemma in Reverse Mathematics. PhD thesis,UC Berkeley: Mathematics, 2013.

[7] Noam Greenberg and Antonio Montalban. Ranked structures and arithmetic transfinite re-cursion. Transactions of the AMS, 360:1265–1307, 2008.

[8] Denis R. Hirschfeldt and Carl G. Jockusch, Jr. On notions of computability theoretic reduc-tion between Π1

2 principles. Journal of Mathematical Logic, 16, 2016.[9] Joseph S. Miller and Reed Solomon. Effectiveness for infinite variable words and the dual

Ramsey theorem. Arch. Math. Logic, 43(4):543–555, 2004.[10] Hans Jurgen Promel and Bernd Voigt. Baire sets of k-parameter words are Ramsey. Trans.

Amer. Math. Soc., 291(1):189–201, 1985.[11] Gerald E. Sacks. Higher recursion theory. Perspectives in Mathematical Logic. Springer-

Verlag, Berlin, 1990.[12] Stephen G. Simpson. Subsystems of second order arithmetic. Perspectives in Logic. Cam-

bridge University Press, Cambridge; Association for Symbolic Logic, Poughkeepsie, NY, sec-ond edition, 2009.

Page 38: arXiv:1710.00070v1 [math.LO] 29 Sep 2017 · 2019. 4. 8. · arXiv:1710.00070v1 [math.LO] 29 Sep 2017 EFFECTIVENESS FOR THE DUAL RAMSEY THEOREM DAMIR D. DZHAFAROV STEPHEN FLOOD REED

38DAMIR D. DZHAFAROV STEPHEN FLOOD REED SOLOMON LINDA BROWN WESTRICK

[13] Robert M. Solovay. Hyperarithmetically encodable sets. Trans. Amer. Math. Soc., 239:99–122, 1978.

[14] Stevo Todorcevic. Introduction to Ramsey spaces, volume 174 of Annals of MathematicsStudies. Princeton University Press, Princeton, NJ, 2010.