Preprint
Article

This version is not peer-reviewed.

A Non-Recursively Enumerable Subset of N Which Has {a Short} Description in Terms of Arithmetic

Submitted:

25 May 2026

Posted:

27 May 2026

You are already at the latest version

Abstract
Let F(x, n) denote the formula from J. P. Jones’ article published in 1978. From the results of this article, it follows that the set {nN : ¬F(n, n)} is non-recursively enumerable and co-recursively enumerable. We prove that the set W = {n ∈ N : ∃p, q ∈ N ((2n = (p + q)(p + q + 1) + 2q) ∧ ∀(x0, . . . , xp) ∈ Np+1 ∃(y0, . . . , yp) ∈ {0, . . . , q}p+1 ((∀j, k ∈ {0, . . . , p} (xj + 1 = xk ⇒ yj + 1 = yk)) ∧ (∀i, j, k ∈ {0, . . . , p} (xi · xj = xk ⇒ yi · yj = yk))))} is not recursively enumerable. We prove that the set N \W is recursively enumerable. Let β : N3 N denote Gödel’s β function. For x1, x2, x3 N, β(x1, x2, x3) equals the remainder after integer division of x1 by 1 + (x3 + 1) · x2. We prove that the set W consists of all n ∈ N such that ∀u, v ∈ N ∃a, b, p, q ∈ N ((2n = (p + q)(p + q + 1) + 2q) ∧ ∀i, j, k ∈ {0, . . . , p} ((β(a, b, i) ⩽ q) ∧ (β(u, v, j) + 1 = β(u, v, k) ⇒ β(a, b, j) + 1 = β(a, b, k)) ∧ (β(u, v, i) · β(u, v, j) = β(u, v, k) ⇒ β(a, b, i) · β(a, b, j) = β(a, b, k)))) The above formula can be easily translated into a formula in Peano arithmetic.
Keywords: 
;  ;  ;  ;  
Let F ( x , n ) denote the formula
Preprints 215320 g005 from [2] (p. 336). From the results of [2], it follows that the set { n N : ¬ F ( n , n ) } is non-recursively enumerable and co-recursively enumerable. In this article, we define another non-recursively enumerable subsets of N which have a short description in terms of arithmetic. Semi-algorithms differ from algorithms, as they may not terminate.
Definition 1
(cf. [4], pp. 233–235). A computation in the limit of a function f : N N is a semi-algorithm which takes as input a non-negative integer n and for every m N prints a non-negative integer ξ ( n , m ) such that lim m ξ ( n , m ) = f ( n ) .
By Definition 1, a function f : N N is computable in the limit when there exists an infinite computation which takes as input a non-negative integer n and prints a non-negative integer on each iteration and prints f ( n ) on each sufficiently high iteration.
For n N , let
E n = { 1 = x k , x i + x j = x k , x i · x j = x k : i , j , k { 0 , , n } }
For n N , f ( n ) denotes the smallest b N such that if a system of equations S E n has a solution in N n + 1 , then S has a solution in { 0 , , b } n + 1 . The function f : N N is computable in the limit and eventually dominates every computable function g : N N , see [6]. The term "dominated" in the title of [6] means "eventually dominated".
Theorem 1
([6]). Figure 1 shows a semi-algorithm which computes f ( n ) in the limit.
Definition 2.
An approximation of a tuple ( x 0 , , x n ) N n + 1 is a tuple ( y 0 , , y n ) N n + 1 such that
( k { 0 , , n } ( 1 = x k 1 = y k ) )
( i , j , k { 0 , , n } ( x i + x j = x k y i + y j = y k ) )
( i , j , k { 0 , , n } ( x i · x j = x k y i · y j = y k ) )
Figure 2 shows a simpler semi-algorithm which computes f ( n ) in the limit.
Lemma 1.
For every n , m N , the number printed by Figure 2 does not exceed the number printed by Figure 1.
Proof. 
For every ( a 0 , , a n ) { 0 , , m } n + 1 ,
E n { 1 = x k : ( k { 0 , , n } ) ( 1 = a k ) }
{ x i + x j = x k : ( i , j , k { 0 , , n } ) ( a i + a j = a k ) }
{ x i · x j = x k : ( i , j , k { 0 , , n } ) ( a i · a j = a k ) }
Lemma 2.
For every n , m N , the number printed by Figure 1 does not exceed the number printed by Figure 2.
Proof. 
Let n , m N . For every system of equations S E n , if ( a 0 , , a n ) { 0 , , m } n + 1 and ( a 0 , , a n ) solves S, then ( a 0 , , a n ) solves the following system of equations:
{ 1 = x k : ( k { 0 , , n } ) ( 1 = a k ) }
{ x i + x j = x k : ( i , j , k { 0 , , n } ) ( a i + a j = a k ) }
{ x i · x j = x k : ( i , j , k { 0 , , n } ) ( a i · a j = a k ) }
Theorem 2.
For every n , m N , Figure 1 and Figure 2 print the same number.
Proof. 
It follows from Lemmas 1 and 2. □
Corollary 1.
For every n , m N , Figure 1 and Figure 2 print the smallest b { 0 , , m } such that every tuple ( x 0 , , x n ) { 0 , , m } n + 1 possesses an approximation in { 0 , , b } n + 1 .
Theorem 3.
For every n N , f ( n ) is the smallest b N such that every tuple ( x 0 , , x n ) N n + 1 possesses an approximation in { 0 , , b } n + 1 .
Proof. 
It follows from Theorem 1 and Corollary 1. □
Theorem 4.
No algorithm takes as input non-negative integers n and m and decides whether or not
( x 0 , , x n ) N n + 1 ( y 0 , , y n ) { 0 , , m } n + 1
( ( k { 0 , , n } ( 1 = x k 1 = y k ) )
( i , j , k { 0 , , n } ( x i + x j = x k y i + y j = y k ) )
( i , j , k { 0 , , n } ( x i · x j = x k y i · y j = y k ) ) )
Proof. 
Since the function f is not computable, it follows from Theorem 3. □
Lemma 3
([3]). The function
N 2 ( p , q ) 1 2 ( p + q ) ( p + q + 1 ) + q N
is bijective.
Theorem 5.
No algorithm takes as input a non-negative integer n and decides whether or not
p , q N ( ( 2 n = ( p + q ) ( p + q + 1 ) + 2 q ) )
( x 0 , , x p ) N p + 1 ( y 0 , , y p ) { 0 , , q } p + 1
( ( k { 0 , , p } ( 1 = x k 1 = y k ) )
( i , j , k { 0 , , p } ( x i + x j = x k y i + y j = y k ) )
( i , j , k { 0 , , p } ( x i · x j = x k y i · y j = y k ) ) ) )
Proof. 
It follows from Theorem 4 and Lemma 3. □
Let
T = { n N : p , q N ( ( 2 n = ( p + q ) ( p + q + 1 ) + 2 q )
( x 0 , , x p ) N p + 1 ( y 0 , , y p ) { 0 , , q } p + 1
( ( k { 0 , , p } ( 1 = x k 1 = y k ) )
( i , j , k { 0 , , p } ( x i + x j = x k y i + y j = y k ) )
( i , j , k { 0 , , p } ( x i · x j = x k y i · y j = y k ) ) ) ) }
Theorem 6.
The set N T is recursively enumerable.
Proof. 
For i N , let p i denote the i-th prime number. Figure 3 shows a semi-algorithm which takes as input n N and terminates if and only if n N T . □
Theorem 7.
The set T is not recursively enumerable.
Proof. 
It follows from Theorems 5 and 6. □
Lemma 4.
([5], p. 110). For non-negative integers, the equation x + y = z is equivalent to a system which consists of equations of the forms v + 1 = w and u · v = w .
For n N , h ( n ) denotes the smallest b N such that if a system of equations S   { x j + 1 = x k , x i · x j = x k : i , j , k { 0 , , n } } has a solution in N n + 1 , then S has a solution in { 0 , , b } n + 1 . From Lemma 4 and [6], it follows that the function h : N N is computable in the limit and eventually dominates every computable function g : N N .
Theorem 8.
No algorithm takes as input non-negative integers n and m and decides whether or not
( x 0 , , x n ) N n + 1 ( y 0 , , y n ) { 0 , , m } n + 1
( ( j , k { 0 , , n } ( x j + 1 = x k y j + 1 = y k ) )
( i , j , k { 0 , , n } ( x i · x j = x k y i · y j = y k ) ) )
Proof. 
It holds because the function h is not computable, and for every n N , h ( n ) is the smallest b N such that
( x 0 , , x n ) N n + 1 ( y 0 , , y n ) { 0 , , b } n + 1
( ( j , k { 0 , , n } ( x j + 1 = x k y j + 1 = y k ) )
( i , j , k { 0 , , n } ( x i · x j = x k y i · y j = y k ) ) )
Theorem 9.
No algorithm takes as input a non-negative integer n and decides whether or not
p , q N ( ( 2 n = ( p + q ) ( p + q + 1 ) + 2 q )
( x 0 , , x p ) N p + 1 ( y 0 , , y p ) { 0 , , q } p + 1
( ( j , k { 0 , , p } ( x j + 1 = x k y j + 1 = y k ) )
( i , j , k { 0 , , p } ( x i · x j = x k y i · y j = y k ) ) ) )
Proof. 
It follows from Theorem 8 and Lemma 3. □
Let W denote the algorithmically undecidable subset of N considered in Theorem 9. Similarly as in Theorem 6, the set N W is recursively enumerable. Similarly as in Theorem 7, the set W is not recursively enumerable. Let β : N 3 N denote Gödel’s β function, see [1]. For x 1 , x 2 , x 3 N , β ( x 1 , x 2 , x 3 ) equals the remainder after integer division of x 1 by 1 + ( x 3 + 1 ) · x 2 .
Lemma 5
([1]). If ( d 0 , , d p ) N p + 1 , then b , c N l { 0 , , p } β ( b , c , l ) = d l .
Theorem 10.
The formula that defines the set W can be easily translated into a formula in Peano arithmetic.
Proof. 
By Lemma 5, the set W consists of all n N such that
u , v N a , b , p , q N ( ( 2 n = ( p + q ) ( p + q + 1 ) + 2 q ) i , j , k { 0 , , p }
( ( β ( a , b , i ) q ) ( β ( u , v , j ) + 1 = β ( u , v , k ) β ( a , b , j ) + 1 = β ( a , b , k ) )
( β ( u , v , i ) · β ( u , v , j ) = β ( u , v , k ) β ( a , b , i ) · β ( a , b , j ) = β ( a , b , k ) ) ) )
The above formula can be easily translated into a formula in Peano arithmetic. □

References

  1. Gödel’s β function, https://en.wikipedia.org/wiki/G%C3%B6del%27s_%CE%B2_function.
  2. J. P. Jones, Three universal representations of recursively enumerable sets, J. Symbolic Logic 43 (1978), no. 2, 335–351. [CrossRef]
  3. Pairing function, https://en.wikipedia.org/wiki/Pairing_function.
  4. R. I. Soare, Interactive computing and relativized computability, in: B. J. Copeland, C. J. Posy, and O. Shagrir (eds.), Computability: Turing, Gödel, Church and beyond, MIT Press, Cambridge, MA, 2013, 203–260.
  5. A. Tyszka, A hypothetical upper bound on the heights of the solutions of a Diophantine equation with a finite number of solutions, Open Comput. Sci. 8 (2018), no. 1, 109–114. [CrossRef]
  6. A. Tyszka, All functions g : N N which have a single-fold Diophantine representation are dominated by a limit-computable function f : N { 0 } N which is implemented inMuPADand whose computability is an open problem, in: Computation, cryptography, and network security (eds. N. J. Daras, M. Th. Rassias), Springer, Cham, 2015, 577–590. [CrossRef]
Figure 1. A semi-algorithm which computes f ( n ) in the limit.
Figure 1. A semi-algorithm which computes f ( n ) in the limit.
Preprints 215320 g001
Figure 2. A simpler semi-algorithm which computes f ( n ) in the limit.
Figure 2. A simpler semi-algorithm which computes f ( n ) in the limit.
Preprints 215320 g002
Figure 3. A semi-algorithm which takes as input n N and terminates if and only if n N T .
Figure 3. A semi-algorithm which takes as input n N and terminates if and only if n N T .
Preprints 215320 g003
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated