Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

A version of Rosser's trick in computability

Mathematical logic

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

While thinking about various problems in computability, I have twice encountered the following “trick” which I can illustrate on a simple but amusing proposition:

Proposition: Let h ⁣:N⇢Nh\colon\mathbb{N} \dashrightarrow \mathbb{N}h:N⇢N be a partial computable function such that (for all eee), φe(0)↓\varphi_e(0){\downarrow}φe​(0)↓ implies h(e)↓=φe(0)h(e){\downarrow} = \varphi_e(0)h(e)↓=φe​(0) (but note that when φe(0)↑\varphi_e(0){\uparrow}φe​(0)↑ then h(e)h(e)h(e) is allowed be defined and there are no constraints on it). Then there exists s ⁣:N→Ns\colon\mathbb{N} \to \mathbb{N}s:N→N total computable such that h(s(e))≃φe(0)h(s(e)) \simeq \varphi_e(0)h(s(e))≃φe​(0) for all eee (meaning that the LHS is defined iff the RHS is, and then they are equal).

^([The (0)(0)(0) are just there because it's unconventional to talk about computable functions of 0 arguments, of course.])

Proof. The trick is the following. Given a program eee, define a program e∗e^*e∗ as follows. Run two processes in parallel: one of them (call it ①) attempts to compute φe(0)\varphi_e(0)φe​(0), and one (call it ②) attempts to compute h(e∗)+1h(e^*)+1h(e∗)+1 where the reference to the program e∗e^*e∗ we are defining is legitimate thanks to Kleene's recursion theorem; if either one of ① or ② terminates, return the value computed (by whichever one terminates first). And of course, if neither ① nor ② terminates, then e∗e^*e∗ necessarily fails to terminate.

Now observe that it is impossible for the process ② to terminate first: indeed, if it did, we would have φe∗(0)↓=h(e∗)+1\varphi_{e^*}(0){\downarrow} = h(e^*)+1φe∗​(0)↓=h(e∗)+1 by definition of e∗e^*e∗ (and ②), which implies h(e∗)=h(e∗)+1h(e^*) = h(e^*)+1h(e∗)=h(e∗)+1 by the assumption on hhh, a contradiction. So in fact e∗e^*e∗ terminates iff ① terminates, and then returns the same value: that is, φe∗(0)≃φe(0)\varphi_{e^*}(0) \simeq \varphi_e(0)φe∗​(0)≃φe​(0).

This shows that if φe(0)↓\varphi_e(0){\downarrow}φe​(0)↓ then h(e∗)=φe∗(0)=φe(0)h(e^*) = \varphi_{e^*}(0) = \varphi_e(0)h(e∗)=φe∗​(0)=φe​(0). On the other hand, if h(e∗)↓h(e^*){\downarrow}h(e∗)↓ then process ② would eventually terminate, which guarantees φe∗(0)↓\varphi_{e^*}(0){\downarrow}φe∗​(0)↓, so again h(e∗)=φe∗(0)=φe(0)h(e^*) = \varphi_{e^*}(0) = \varphi_e(0)h(e∗)=φe∗​(0)=φe​(0). So we have shown h(e∗)≃φe(0)h(e^*) \simeq \varphi_e(0)h(e∗)≃φe​(0).

Finally, observe that s ⁣:e↦e∗s\colon e \mapsto e^*s:e↦e∗ is computable (indeed, primitive recursive) as we have constructed e∗e^*e∗ explicitly using eee and the self-referential (or “Quine”) trick, and we have h(s(e))≃φe(0)h(s(e)) \simeq \varphi_e(0)h(s(e))≃φe​(0), as announced. ∎

Another example of the same trick is in the proof the the lemma in this self-answer I wrote, where it is explicitly connected to Rosser's trick regarding Gödel's theorem.

I also recently re-encountered the above trick in order to prove the following:

Proposition: Say that A⊆NN\mathscr{A}\subseteq\mathbb{N}^{\mathbb{N}}A⊆NN is “simulatable”¹ when there is h ⁣:N⇢Nh\colon\mathbb{N}\dashrightarrow\mathbb{N}h:N⇢N partial computable such that whenever e∈Ne\in\mathbb{N}e∈N satisfies φeα(0)↓\varphi_e^\alpha(0){\downarrow}φeα​(0)↓ for all α∈A\alpha\in\mathscr{A}α∈A, then we have h(e)↓h(e){\downarrow}h(e)↓ and h(e)∈{φeα(0):α∈A}h(e) \in \{\varphi_e^\alpha(0) : \alpha\in\mathscr{A}\}h(e)∈{φeα​(0):α∈A}. Then E⊆NE \subseteq \mathbb{N}E⊆N is computably enumerable iff the set A\mathscr{A}A of all maps N→N\mathbb{N}\to\mathbb{N}N→N having image EEE is simulatable.

^(1. In the notations of this other question, this means: A⪯sM{0}\mathscr{A} \mathrel{\preceq_{\mathrm{sM}}} \{0\}A⪯sM​{0}.)

Sketch of proof: The “only if” is easy (any A\mathscr{A}A which contains a computable function is simulatable), and the the key is to “if” is to alter hhh so as to make sure that if h(e)↓h(e){\downarrow}h(e)↓ then it is necessarily one of the φeα(0)\varphi_e^\alpha(0)φeα​(0) for which φeα(0)↓\varphi_e^\alpha(0){\downarrow}φeα​(0)↓ (then we can apply hhh to a program that searches for a given value in the image of α\alphaα). We do this as in the previous proposition, by defining e∗e^*e∗ so that φe∗α\varphi_{e^*}^\alphaφe∗α​ computes φeα(0)\varphi_e^\alpha(0)φeα​(0) and h(e∗)+1h(e^*)+1h(e∗)+1 in parallel and returns the result of whichever one terminates first. Then if h(e∗)↓h(e^*){\downarrow}h(e∗)↓, we have φe∗α(0)↓\varphi_{e^*}^\alpha(0){\downarrow}φe∗α​(0)↓ for all α∈A\alpha\in\mathscr{A}α∈A, so h(e∗)h(e^*)h(e∗) is φe∗α(0)\varphi_{e^*}^\alpha(0)φe∗α​(0) for one such α\alphaα, and it is then also equal to φeα(0)\varphi_e^\alpha(0)φeα​(0) which terminates. ∎

To summarize, the trick consists roughly of running two computations in parallel, one of which (“②” above) is manufactured using the self-referential trick so that a diagonal argument prevents it from return the computation result, so the computation result can only come from the other process. And the point of the trick is essentially to ensure that a computation which in principle might terminate with a bogus value actually does not do this.

I am tentatively calling this “a version of Rosser's trick”, because it seems similar to the proof of the Gödel-Rosser theorem (compare the different answers to this previously linked question for an illustration). But maybe it has a different name or history in the context of computability?

Question: Are there some other instances of the above trick being used in the literature? Have you seen it elsewhere? Does it have a specific name in the context of computability? Does it buy us any other interesting results?

Statement and context adapted from MathOverflow · Gro-Tsen

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : lo.logic · computability-theory

Authors listed by the source : Gro-Tsen

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : February 27, 2026

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni