arXiv:2611.08319math.LONov 2026

Manuscript Offprint

arXiv:2611.08319

An order-reversing embedding of Turing degrees into Arthur-Nimue-Merlin degrees (short version)

Jean Abou Samra, David A. Madore

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Arthur–Nimue–Merlin degrees are a generalization of the Turing degrees introduced by Kihara as a tangible description of the partially ordered set of Lawvere–Tierney topologies on the effective topos (equivalently, subtoposes of the effective topos). They are defined in terms of a three-player game that introduces both angelic and demonic non-determinism into oracle queries. We construct an order embedding of the Turing degrees with their order reversed into the Arthur–Nimue–Merlin degrees, whose image we call the “co-Turing degrees”; we then study the order relationship of these co-Turing degrees with the (naturally embedded) Turing degrees within the Arthur–Nimue–Merlin degrees.

2012 ACM Subject Classification Theory of computation → Computability

Keywords and phrases Turing degree, Arthur–Nimue–Merlin degree, oracle, realizability, effective topos, Lawvere–Tierney topology, modality

Related Version Full version: https://arxiv.org/abs/2603.19946

Funding Jean Abou Samra: Funded by the European Union (ERC, HOTT, 101170308). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

Acknowledgements We thank Andrej Bauer, Laurent Bienvenu, Joel David Hamkins, James E. Hanson, Takayuki Kihara, Ulysse Léchine, Mabel Najdovski, the pseudonymous MathOverflow user “Pastebee”, Arno Pauly, Andrei Romashchenko, Will Sawin, Sasha Shen, and anonymous reviewers for helpful discussions and comments. No AI tool was used in this research or in the writing of this paper.

1 Introduction

We begin with a riddle. King Arthur is desperate to know whether the Grail is in a particular French castle. He can ask arbitrary questions to the all-knowing mage Merlin, who promises to answer truthfully, but with a twist. Instead of merely answering “yes” or “no” in plain English, the mischievous Merlin provides a Turing machine, which halts if and only if the answer is “yes”. Can Arthur, a mere mortal limited by the Church–Turing thesis, find the Grail’s location before the end of days?

Indeed he can, with a simple trick: first ask Merlin whether the Grail is in the castle, then ask whether it is not in the castle. Exactly one of the two resulting Turing machines halts, and he can run them in parallel to know which one, revealing the answer.

Let us spice up the rules. Each of Merlin’s replies now consists of two Turing machines; for a “yes” answer, both or none halt, whereas for a “no” answer, exactly one halts. 1^{1} It

1^{1} We are indebted to Will Sawin for suggesting this particularly elegant variant of the riddle.

An order-reversing embedding of Turing degrees into Arthur–Nimue–Merlin degrees

2

turns out that, under these rules, no strategy can ensure that Arthur learns the answer to an arbitrary boolean question in finite time. A proof of this fact (which we give in Remark 3.7) seems to require the main technical result of this paper (Theorem 3.6), which shows that asking the question then its negation is essentially the only useful trick in a precise sense.

Context Our object of study is an extension of Turing degrees where the oracles can feature certain forms of non-determinism, as in this riddle. We call these generalized degrees the Arthur–Nimue–Merlin degrees, owing to their explicit description by Kihara using a three-player game whose players are conventionally named Arthur, Nimue and Merlin [7].² Whereas Turing degrees are defined as a quotient of oracles which are functions N→N\mathbb{N} \to \mathbb{N}, Arthur–Nimue–Merlin degrees are a quotient of a richer set of oracles, namely functions N→P(P(N))\mathbb{N} \to \mathcal{P}(\mathcal{P}(\mathbb{N})). Informally, when a program that uses g:N→P(P(N))g : \mathbb{N} \to \mathcal{P}(\mathcal{P}(\mathbb{N})) as an oracle makes a query n∈Nn \in \mathbb{N} to the oracle, a set P∈g(n)P \in g(n) is chosen in a benevolent way (“angelic non-determinism”), then a value v∈Pv \in P is chosen in an adversarial way (“demonic non-determinism”), and the program receives the answer vv. The mathematical meaning to “benevolent” and “adversarial” is made precise by introducing a game where Arthur, a player restricted to computable strategies, is allied to Nimue, the player choosing PP, and both play against Merlin, the player choosing vv. (The details of the game are recalled in Section 2.)

While Arthur–Nimue–Merlin games were introduced recently by Kihara, they are a concrete description of objects that arose much earlier, in a different guise, in the study of realizability. To reassure the reader unfamiliar with realizability from the outset, this paper is meant to be accessible with only a background in basic computability theory, except for Section 5 where we explain how the proof of our main result can be understood from the point of view of realizability. Nevertheless, let us recall the historical link.

The effective topos, defined by Hyland, is a model of constructive mathematics — more precisely, an elementary topos with natural numbers object and thus a model of intuitionistic higher-order logic — which can be viewed as the “world of computable mathematics”. This topos contains the topos of sets, namely the “world of classical mathematics”, as a smallest non-degenerate subtopos, and in between them is an array of subtoposes, which are therefore intermediate worlds between computable and classical mathematics.

In his seminal work introducing the effective topos, Hyland associated to each Turing degree d\mathbf{d} a subtopos of “d\mathbf{d}-computable mathematics”. This subtopos admits a description similar to the effective topos with plain computability replaced by computability relative to d\mathbf{d} (this was checked by Phoa [14]). Hyland proved that this defines an embedding of Turing degrees into subtoposes of the effective topos [4, Theorem 17.2]. However, there are many subtoposes which do not arise in this way.

As a general fact of topos theory, the subtoposes of an elementary topos are described by the so-called Lawvere–Tierney topologies (also known as modalities, local operators, or nuclei) on the topos. This characterization is already much more concrete: Lawvere–Tierney topologies on the effective topos can be defined in a simple way without reference to the effective topos, as maps P(N)→P(N)\mathcal{P}(\mathbb{N}) \to \mathcal{P}(\mathbb{N}) satisfying a few reasonable properties to expect of an oracle (see the beginning of Section 5). Nevertheless, it remains somewhat mysterious. A first step towards a more explicit description was undertaken by Lee and van Oosten [11], who introduced the subclass of basic Lawvere–Tierney topologies on the effective topos, and described them using certain well-founded trees called sights. However, the main advance

² In [6], Kihara uses the term “extended Turing–Weihrauch degrees”. We prefer to eschew the association with Weihrauch’s name since we never deal with oracles that can only be queried once.

was made by Kihara [7], who proposed Arthur–Nimue–Merlin degrees as a considerably simpler description which encompasses all Lawvere–Tierney topologies on the effective topos. This description also sheds light on Hyland’s embedding of Turing degrees into Arthur–Nimue–Merlin degrees: it is obtained by identifying a Turing oracle g:N→Ng: \mathbb{N} \to \mathbb{N} with the Arthur–Nimue–Merlin oracle g^:N→P(P(N))\hat{g}: \mathbb{N} \to \mathcal{P}(\mathcal{P}(\mathbb{N})), n↦{{g(n)}}n \mapsto \{\{g(n)\}\} (the choices of Nimue and Merlin are forced, so that Arthur is in essence using an ordinary, deterministic Turing oracle). Lee and van Oosten’s basic degrees, on the other hand, are those represented by oracles which are constant functions N→P(P(N))\mathbb{N} \to \mathcal{P}(\mathcal{P}(\mathbb{N})).

This provides a first motivation for studying Arthur–Nimue–Merlin degrees, among the many kinds of degrees that appeared in computability theory in the last 70 years (such as enumeration degrees, Medvedev degrees, Muchnik degrees, etc.): although the details of the Arthur–Nimue–Merlin game may at first appear arbitrary, in fact it arises as a more explicit description of all “reasonable” oracles, which are also all “intermediate worlds between computable and classical mathematics”.

Another motivation is that Arthur–Nimue–Merlin degrees seem to be a natural completion of Turing degrees in the sense that several notions studied in classical computability theory find a natural home in the Arthur–Nimue–Merlin degrees. For example, define g(e):={{0}}g(e) := \{\{0\}\} if the ee-th program with no input and boolean output terminates and returns false, g(e):={{1}}g(e) := \{\{1\}\} if it terminates and returns true, and g(e):={{0,1}}g(e) := \{\{0,1\}\} if it does not terminate. This corresponds informally to having an oracle that will give Arthur the return value of a boolean-valued program that terminates, but may return either boolean for one that does not terminate.³ The Turing degrees above gg are exactly the so-called “PA degrees”, a classical object of study in computability (see [2, Definition 15.3.11] and [17, Theorem 10.3.3]). Furthermore, gg is an intermediate degree between the computable degree 0\mathbf{0} and the degree of the halting problem 0′\mathbf{0}', while, famously, no natural such degree is known in the Turing degrees.

Another example is the oracle gg where g(n)g(n) does not depend on nn and consists of the cofinite subsets of N\mathbb{N}. Informally, this means that Nimue chooses a natural number, then Merlin can replace it by any larger number before Arthur can see it. This example is due to Pitts [15, Example 5.8], and van Oosten proved [19, Theorem 2.2] that the functions N→N\mathbb{N} \to \mathbb{N} computable from this oracle exactly coincide with the hyperarithmetical functions. These can be defined in many other ways (e.g., as the Δ11\Delta_1^1 functions in the analytical hierarchy, or as the functions belonging to the ωCK\omega_{\mathrm{CK}}-th level of the constructible hierarchy), and have been intensely studied in effective descriptive set theory, where they are the analogue of Borel functions in classical descriptive set theory.

Recently, Kihara and (Ming) Ng studied the preorder on basic Arthur–Nimue–Merlin degrees defined by a≤∘b\mathbf{a} \leq^\circ \mathbf{b} when a≤b∨t\mathbf{a} \leq \mathbf{b} \lor \mathbf{t} for some Turing degree t\mathbf{t}, exhibiting a connection with the Katétov order in set theory [9, 10], while Ahman and Bauer explained how to understand the characterization of Lawvere–Tierney topologies on the effective topos in terms of Arthur–Nimue–Merlin games in a more conceptual way via “oracle modalities” [1], which we use in Section 5.

Contribution We make a further advance in the understanding of Arthur–Nimue–Merlin degrees by exhibiting an embedding of the Turing degrees with the opposite of their standard order into the Arthur–Nimue–Merlin degrees — in fact into the basic ones. Explicitly, this means that we define for each Turing degree a\mathbf{a} a basic Arthur–Nimue–Merlin degree

³ This degree is called LLP0 by Kihara [7, Example 2.8 in published version, 2.5 in arXiv version] due to its connection with the lesser limited principle of omniscience in constructive mathematics.

An order-reversing embedding of Turing degrees into Arthur–Nimue–Merlin degrees

4

coT(a), called its co-Turing degree, so that the map coT is an order-reversing embedding, i.e., a≤b⇔coT(a)≥coT(b)\mathbf{a} \leq \mathbf{b} \Leftrightarrow \text{coT}(\mathbf{a}) \geq \text{coT}(\mathbf{b}) for all Turing degrees a,b\mathbf{a}, \mathbf{b}. Furthermore, we show that a non-zero Turing degree is never comparable with the co-Turing degree of a non-zero Turing degree.

Our “co-Turing degree” construction provides one answer to [7, section 6, Question 1] which asked for other “interesting” basic Arthur–Nimue–Merlin degrees.

Outline Section 2 precisely describes the Arthur–Nimue–Merlin game and recalls their basic properties. This is essentially a summary of some parts of [7] but with a few inessential differences in notation and terminology. In Section 3 we define the decoding degree and coding degree associated with a promise problem and we prove our main technical result, Theorem 3.6. In Section 4, we define co-Turing degrees as a particular case of coding degrees and prove our main theorem, Corollary 4.3, according to which the mapping from Turing degrees to co-Turing degrees is an order-reversing embedding, as well as Theorem 4.5 on the incomparability of Turing and co-Turing degrees. Section 5 is devoted to reinterpreting the construction of co-Turing degrees in terms of Lawvere–Tierney topologies on the effective topos and is the only section which requires familiarity with the effective topos (after an initial recapitulation on Lawvere–Tierney topologies on the effective topos, which is self-contained).

Notations We work in classical logic unless otherwise specified. However, we still adopt the convention from constructive mathematics to call inhabited a set which has an element (this is classically equivalent to being non-empty). We write f:A→Bf: A \to B for a total function and f:A⇢Bf: A \dashrightarrow B for a partial function. In the latter case, we write f(x)↓f(x) \downarrow to mean that ff is defined at xx, and f(x)↓=yf(x) \downarrow = y to mean that furthermore the value equals yy. The powerset of XX is denoted by P(X)\mathcal{P}(X). We fix a computable Gödel coding of tuples by natural numbers, denoted (m0,…,mk−1)↦⟨m0,…,mk−1⟩(m_0, \ldots, m_{k-1}) \mapsto \langle m_0, \ldots, m_{k-1} \rangle. The ee-th partial computable function is φe:N⇢N\varphi_e: \mathbb{N} \dashrightarrow \mathbb{N} and the ee-th partial computable function with oracle f:N→Nf: \mathbb{N} \to \mathbb{N} is φef\varphi_e^f. (The numbering of programs is independent of the oracles, e.g., there exists ee such that φef=f\varphi_e^f = f for all ff.)