Left to Solve
Problems / MathOverflow (not formalized)

A version of Rosser's trick in computability

Open, not yet stated in LeanMathOverflow (not formalized)Logic & Foundationsdifficulty55/100

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 …

Posed by Gro-Tsen · lo.logic, computability-theory

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-508591.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-508591.lean

import Mathlib

/-!
# A version of Rosser's trick in computability

Source: https://mathoverflow.net/questions/508591
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_508591

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_508591