A version of Rosser's trick in computability
Imported on
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 be a partial computable function such that (for all ), implies (but note that when then is allowed be defined and there are no constraints on it). Then there exists total computable such that for all (meaning that the LHS is defined iff the RHS is, and then they are equal).
^([The 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 , define a program as follows. Run two processes in parallel: one of them (call it ①) attempts to compute , and one (call it ②) attempts to compute where the reference to the program 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 necessarily fails to terminate.
Now observe that it is impossible for the process ② to terminate first: indeed, if it did, we would have by definition of (and ②), which implies by the assumption on , a contradiction. So in fact terminates iff ① terminates, and then returns the same value: that is, .
This shows that if then . On the other hand, if then process ② would eventually terminate, which guarantees , so again . So we have shown .
Finally, observe that is computable (indeed, primitive recursive) as we have constructed explicitly using and the self-referential (or “Quine”) trick, and we have , 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 is “simulatable”¹ when there is partial computable such that whenever satisfies for all , then we have and . Then is computably enumerable iff the set of all maps having image is simulatable.
^(1. In the notations of this other question, this means: .)
Sketch of proof: The “only if” is easy (any which contains a computable function is simulatable), and the the key is to “if” is to alter so as to make sure that if then it is necessarily one of the for which (then we can apply to a program that searches for a given value in the image of ). We do this as in the previous proposition, by defining so that computes and in parallel and returns the result of whichever one terminates first. Then if , we have for all , so is for one such , and it is then also equal to 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
Sources and original status
- MathOverflow Status in source : unanswered at collection
Last activity on the question :
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)