Left to Solve
Problems / MathOverflow (not formalized)

Equivalence of LOOP (primitive recursive functions) and of SRL (reversible transformations) programs

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

Statement

This is a question about the decidability of program equivalence.

Primitive recursive functions correspond exactly to the functions that can be implemented on a specific register machine usually named LOOP, see for instance [1].

It is known that the equivalence of LOOP programs is undecidable. The problem is: are two given LOOP programs P and Q equivalent? (i.e. do they implement the same function?)

The interest in reversible (and total) transformations lead to the development of another LOOP-like register language, named SRL (simple register language) whose programs are bijections Z^k --> Z^k, see [2].

One SRL program (with k=2) is

(a) for x {inc y} inc x

This program implements the bijection

[code]

where x' and y' are the final values of x and y respectively.

(Most LOOP programs are not bijections because of two reasons: - Projection (all registers except one are ignored), say f(x,y)=x - dec x (if x'=0 (after), we can not go backwards; before the execution it could be x=0 or x=1.

Now, the definition of SRL, it is very simple.

Domain: Z={...,-1,0,1,2,...}.

The input and the output are all the (initial and final respectively) values of the registers used by …

Posed by Armando Matos · 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-152248.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-152248.lean

import Mathlib

/-!
# Equivalence of LOOP (primitive recursive functions) and of SRL (reversible transformations) programs

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_152248