Abstract
Computability Theory investigates what can be solved by algorithms for a finite number of iterations and what can not, helping to estimate the boundaries of computational possibilities. This research analyses the set finiteness problem, which determines whether a problem of determining that a set of words equal to a particular word generated on certain conditions is finite or infinite, decidable or undecidable. The idea of research is to prove the undecidability of the problem that afterward may be used in coming up with a more clear understanding of a decidable version of Word Problem. The method of proof is to step-by-step reduce the investigated problem to other ones, the last one of which is known to be undecidable. The result showed that such a ‘chain’ of valid steps exists, which means that the assumption about undecidability was correct. Furthermore, because we used the method of ‘chain’, many other nontrivial problems appeared to be undecidable, making the research even more productive for understanding the known boundaries of computational possibilities.
Keywords: Computability theory, group theory, undecidability, decidability, halting problem.
1. Definitions and theorems.
First of all, it’s necessary to involve some definitions from computability theory.
Word1
Let’s determine the combination of symbols from the finitely presented semigroup as a word.
Quadruple1
Quadruple is a 4‑tuple of one of the following 3 types:
Turing machine (Formal definition, from)1
Turing machine consists of:
- A finite set
is called the alphabet of the Turing machine whose elements we call symbols. These symbols are possible things that can be written on each tape cell of the Turing machine. The alphabet includes a distinguished blank symbol that we denote
.
- A finite set
of states, one of which is distinguished as the starting state and the other as the halting state.
- A partial function
[]
called the transition map: if we are in state~, the current cell contains the symbol~
, and
(t(a,q)=(a’,q’,X)),
then the machine writesin the current cell, moves to state~
, and shifts the tape one cell in direction~
.
Instantaneous description1
An instantaneous descriptionis a positive word of the form
, where
and
are
‑words
andis not empty.
h-special word
Let be a word on semigroup
, then
is h‑special, if
, where
is an instantaneous description.
Input instantaneous description1
Let’s determine an instantaneous description of a particular Turing machine,
which it starts with as an input instantaneous description.
Halting instantaneous description1
Let’s determine an instantaneous description of a particular Turing machine,
which it ends with as a halting instantaneous description.
Basic move
Let be a Turing machine,
and
are instantaneous descriptions. Then there is a basic move from
to
if one of the following conditions is satisfied:
and
, where
;
and
, where
;
and
, where
;
and
, where
;
and
, where
.
Where and
are
words (possibly empty).
Set J
In other words, J is the set of all such pairs (C,S), where C is a finitely presented semigroup and S is one of its elements, and there are only finitely many other elements of C equal to S.
Set W
In other words, (W) is a set of such pairs (T, R), where (T) is a particular Turing machine and (R) is a particular instantaneous description of (T) and there are finitely many such instantaneous description (B) of (T) that eventually get to (R) and for any (B) there is some input instantaneous description (B’) that eventually gets to (B).
Set V
In other words, (V) is the set of all Turing machines that halt on finitely many inputs.
2. Introduction
Nowadays, computer science develops rapidly, hence it’s crucial to understand the solvability of problems. Computability theory explores the limitations of what problems can be and cannot be solved algorithmically. The Halting problem, which determines whether a given Turing machine will eventually halt or continue running indefinitely for any given input and which was proved to be undecidable by Alan Turing in 1936, is a crucial problem in computability theory, which led to determining the decidability of many other problems in this sphere.
In this paper we will explore the question “if there is given a finitely presented semigroup (), a word (w) on the generators (
), is the problem of determining whether the set of words (w’) (such that (w’) is a word on the generators (
) and (w’=w) in (G)) is finite or infinite, decidable or undecidable?” Let’s say that is the Word Finiteness problem. Let’s proceed with the structure of the proof.
3. Methods
The general idea of the proof is that we will step by step reduce our initial problem to other problems, where the last one in a chain will be the undecidable problem.
Here are the crucial steps of the structure of the research:
Build a list of relations for a computable function (G(T)), which takes as input a particular Turing machine (T) and builds a finitely presented semigroup, which helps us to represent steps of (T) by combinations of symbols in the semigroups.
State an Instantaneous Descriptions problem.
Prove that the undecidability of the Instantaneous Descriptions problem leads to the undecidability of the Word Finiteness problem.
State an Input Finiteness problem.
Prove that the undecidability of the Input Finiteness problem leads to the undecidability of the Instantaneous Descriptions problem.
Prove that the Input Finiteness problem is undecidable by reducing it to the Halting problem.
4. Function G from Turing machines to finitely presented semigroups.
In Rotman, the authors proved that the question of a finitely presented semigroup being trivial is undecidable by encoding Turing machines in terms of semigroups. We will follow a similar technique, but add some extra relations that are necessary for our proof.
List of relations
If (T) is a given Turing machine, then the semigroup (G(T)) has the presentation
where (R(T)) is the following set of relations:
.
This function allows us to operate with Turing machines in the language of semigroups.
5. Instantaneous Descriptions Problem
If we have a pair , is the problem of determining whether (T,R) belongs to (W) or is it not decidable or undecidable?
6. Proof that instantaneous description problem is equal to the Word Finiteness problem
Want to show that if we have a pair where
is a halting instantaneous description with at most one
on either end, and
[ L'(T,R) = (S,w), ]
then the set of instantaneous descriptions of that eventually get to
is finite if and only if the set of words equal to
in
is finite.
Want to show for a halting instantaneous description with at most one
at either end that
is finite if and only if
is finite.
If is an instantaneous description that eventually gets to
, then
is a word on the generator of
which is equal to
, which means that if
is infinite, then
is also infinite.
If we have an element of
, then
is an element of
, this will prove that if the set
is infinite then
is also infinite, satisfying the condition of if and only if.
First, we should note that since our relations preserve –letters, each word
in the chain
is -special. Hence, each
where is an instantaneous description. We know that either
is a basic move of , since
is an elementary operation of one of the first five types (see, Lemma 12.3(ii), p. 427).
Let us prove by induction that in our chain of steps all the arrows go to the right. It will follow that will eventually reach
, which means that
belongs to
. It is clear that the last arrow cannot be left-looking, because
is terminal, so
cannot occur; hence in our chain there is at least one right-looking arrow. This shows that for a chain of two elements all arrows are right-going, proving the base case for
, where
is the number of elements (words
) in the chain. Let’s find a place where
otherwise if there is no such place, all the arrows are going to the right (version of Lemma 12.4 from, pp. 427–428)
Once we find such a place, from which we can determine that (because there is never ambiguity about the next step of a Turing machine, i.e., from
we cannot get two different instantaneous descriptions), we can remove
and
and connect
to
directly. This reduces our chain length by 2, and by the induction hypothesis all shorter chains are right-going, so the original chain is right-going as well.
Therefore, all arrows are on the right, all are instantaneous descriptions with at most one
on either end, and hence
is also such a description, proving that
and completing the if-and-only-if proof.
7. Input Finiteness problem
If we have a T in , is the problem of determining whether
or not decidable or undecidable?
8. Proof that the problem of instantaneous descriptions is equivalent to the Input Finiteness problem
We want
such that if and only if
. The existence of such a function
shows that if the Input Finiteness problem is decidable, then by computing
we can decide membership in~
. In particular,
when
and vice versa.
Let us define a helper function
On input a machine ,
outputs a machine
such that, after
halts, it rewrites the instantaneous description to some otherwise unreachable instantaneous description
. Therefore, the function we are looking for would be take
, modify it with the usage of
and take
as an instantaneous description. Then
and by construction if and only if
. This completes the reduction.
Summarizing, the problem of instantaneous descriptions is equivalent to the Input Finiteness problem, since any Turing machine can be viewed as a pair “machine + instantaneous description” and vice versa.
9. Proof that the Input Finiteness problem is undecidable
Let’s assume that we may determine whether a particular Turing machine has finitely many halting inputs or not.
Now let’s prove that such ability leads to the solution of the Halting problem.
Imagine that we have a Turing machine and input
. We want to determine whether
halts on
or not.
Let’s build a Turing machine with the following rules:
ignores its own input
.
It simulates on input
.
If halts → then
halts.
If does not halt → then
does not halt.
Let’s notice that if halts on
, then
halts on every input, meaning that
halts on infinitely many inputs, so
does not belong to
. Otherwise,
halts on zero inputs, which is finitely many, meaning that
belongs to
.
Knowing this, we may determine when halts on
:
If does not belong to
, then
halts on
.
If belongs to
, then
does not halt on
.
Since we can determine by the finite number of operations whether the Turing machine belongs to or not (our initial assumption), we can determine by the finite number of operations whether a Turing machine halts on a particular input or not, meaning that the Halting Problem is solvable, which is a contradiction2
Hence, the Input Finiteness Problem is undecidable, which leads to undecidability of all previous problems, including the initial one.
10. Conclusion
During the research we analysed a chain, consisting of 3 problems of set finiteness. Eventually, the chain finished with the Halting problem, allowing us to conclude that all of the problems in it are undecidable, as it was initially assumed.
The knowledge of boundaries of solvability may help developers impose limitations on their requests, so that it will be clear that the program cannot get to an infinite cycle and allow them to be sure that the result will be received eventually. In particular, this research will be useful in topology questions, where it’s necessary to determine properties of a finitely presented fundamental group (in fact, finitely presented semigroup). So understanding that 3 problems are not computable helps to put new fundamental limitations to the applied topology.
This chain may be further used for understanding the decidability of more complicated questions, for instance, whether the determination that the semigroup with the same conditions is computable or not, decidable or undecidable.
It also should be considered that the solution is not optimized. The amount of steps may be reduced. For instance, during the research we found out that the Input Finiteness Problem can be reduced directly to the Halting Problem, while initial research used an auxiliary problem for determining that reduction. So it must not be undermined that there might be a way to reduce the initial problem directly to the Halting problem.
One of the interesting limitations which can be added to the initial list of conditions and make it decidable is a limit on the length of the word in the set. This limitation will impose boundaries on other problems in the chain, making it difficult to repeat the same reasoning and reduce it to the Halting problem.
Hence, this problem may and must be further investigated or used as an auxiliary problem for other problems of the same nature.