Left to Solve
Problems / MathOverflow (not formalized)

Diagonal lemma from recursion theorem?

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

Statement

Does Gödel's diagonal lemma follow from Kleene's recursion theorem? I believe the converse is true, by an argument like the following.

Let e ↦ θe be a bijection between ω and the set of Σ01 formulas in the language of arithmetic having just the variable v0 free.

Let e ↦ We be a numbering of the r.e. subsets of ω such that for all e, We = {n ∈ ω : θe(n) is true}. This is possible because every r.e. set is defined in the standard model of arithmetic by a Σ01 formula.

Let f be any recursive operation on ω. To prove the recursion theorem, we seek a number d such that Wd = Wf(d).

Toward that, let φ(v0, v1) be a Σ01 formula satisfied by a pair (n, e) iff θf(e)(n) is true. For instance, φ might be

Σ01-Tr[ Sub(numeral(v0), 0, f(v1)) ]

so that φ(n, e) says that a true Σ01 sentence results from substituting the numeral for n into the formula with code f(e).

By the diagonal lemma, there is a Σ01 formula θd(v0) such that

∀v0[ θd(v0) ↔ φ(v0, d) ]

is provable in Robinson's arithmetic. Hence

Wd = {n ∈ ω : θd(n) is true} = {n ∈ ω : φ(n,d) is true} = {n ∈ ω : θf(d)(n) is true} = Wf(d)

as desired. The second equality follows by choice of θd.

My question is whether we can prove the …

Posed by Cole Leahy · 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-70461.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-70461.lean

import Mathlib

/-!
# Diagonal lemma from recursion theorem?

Source: https://mathoverflow.net/questions/70461
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_70461

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

theorem main : sorry := by
  sorry

end OMA.S_mo_70461