Questions tagged [halting-problem]
Questions concerning the Halting problem which is to decide whether a given a program halts on a given input.
451
questions
1
vote
1
answer
96
views
set of words w such that M halts on w is decidable
I need to prove that the language following language is not turing-recognizable:
$$\text{dec-haltTM} = \{ \langle M\rangle: \text{$M$ is a TM and the set of words that M halts on is decidable}\}$$
I ...
0
votes
1
answer
28
views
Proving Non-Semi-Decidability of Language L - Seeking Reduction Strategy
I'm working on a problem involving the language
𝐿 =
{
𝑤
∣
time𝑀𝑤
(
𝑥
)
≤
∣
𝑥
∣
+
1
for all words
𝑥
}.
The language consists of words
𝑤 where the Turing machine
𝑀𝑤 halts within
∣
𝑥
∣
+
1
...
2
votes
0
answers
44
views
Undecidability of a language similar to the Halting Problem
I would like to prove the undecidability of the following language $L$, closely related to the Halting problem: $$L:=\{w \mid M_w \text{ accepts a word of size }|w|\}.$$
It is obvious for unary ...
4
votes
3
answers
586
views
Accelerating semidecision of halting problem
There is a naive semidecision algorithm for the halting problem: simply simulate the program and see if it halts. Is there an algorithm that is asymptotically faster? More precisely, suppose the naive ...
1
vote
3
answers
1k
views
Do programs within which a computable function runs a random number of times always halt, as in the halting problem?
I need some clarification regarding if computer scientists say a program like:
...
1
vote
1
answer
61
views
If Halting is not recursive, then why is it that not every set of the form $\{M: \text{M is a Turing machine that does XXX}\}$ is not recursive?
Suppose I wish to find out whether $\{M: \text{M is a Turing machine that does XXX}\}$ is recursive, where $XXX$ can be anything about the Turing machine. I have a bad proof that proves that all such ...
1
vote
2
answers
45
views
Intuitive explanation/overview of non-looping non-termination proofs
Looping non-termination is intuitively easy to understand and demonstrate, by finding/showing a sequence of transformations that cycles back itself. Say, using the rewriting system:
...
-2
votes
1
answer
37
views
confusion with the proof of halting problem
From what I have seen on YouTube such as https://youtu.be/Kzx88YBF7dY?si=5j9tzjMFGCn3aCXW,
We have:
Halt: program x input ---> yes halt/ no halt
and opposite : halt if Halt returns no halt, and, ...
1
vote
1
answer
91
views
What is the role of diagonalization in the proof of undecidability of the halting problem?
I'm trying to understand the proof of undecidability of the halting problem. Some resources give a short proof based on a proof by contradiction. There is no mention of diagonalization. But some ...
0
votes
1
answer
141
views
Mapping Reduction from HALT?
I've been given a task to determine whether L={〈M〉|M is a TM that loops on the input c (a constant)} is decidable. I can prove co-L is recognizable so I figured a reduction from HALT to co-L would ...
0
votes
3
answers
78
views
Is $\{\langle \langle M\rangle, q\rangle\mid M(\varepsilon)$ enters state $q$ infinite times$\}$ not in RE?
I'm trying to use reduction $\overline{HP} \leq L$, but I just can't think of a way to do so.
Any help would be appreciated!
0
votes
0
answers
53
views
How do people working on the Busy Beaver function keep track of all the turing machines?
I'm a CS undergrad so forgive me if this question isn't formulated well. I got curious about the Busy Beaver function recently, and it got me wondering how all the n-state Turing machines are kept ...
0
votes
0
answers
25
views
Effectively universal Turing machines and Turing-completeness?
An effectively universal Turing machine $T$ is a Turing machine for which there exists a recursive reduction $f$ such that $\forall A:U(A)=T(f(A))$, where $A, f(A)$ are finite sequences of symbols (...
0
votes
1
answer
40
views
Undecidability of the exactly-1-in-k halting problem
The problem:
Given $k>1$ Turing machines decide if for every possible input exactly one of them halts.
Is this variant of halting problem undecidable?
Intuitively, it seems that it must be not ...
1
vote
1
answer
49
views
What is wrong with this finite tape attack on the folklore proof of the halting problem?
Crank disclaimer: I don't doubt the undecidability of the halting problem,
but one proof confuses me.
We have seen this folklore proof of the halting problem on several
occasions.
Assume a HALTING ...
1
vote
1
answer
38
views
Decidability terms clarification
I just need some clarification regarding the different terms we use in theoretical computer science, especially regarding decidability.
Decidable:
A language $L$ (a set of strings) is decidable if ...
1
vote
1
answer
47
views
Is the Language of all encodings of Turing Machine that at least halts on one input and outputs 0 semi-decidable?
I need to prove if the following Language is or is not semi-decidable.
A := {w ∈ {0,1}^* | there exists an input x on which M_w produces the output 0}
Where A is the language of all the encoding w ∈ {...
2
votes
1
answer
78
views
Reducing from the complement of the Halting Problem
Consider the halting problem $HALT_{TM} = \{\langle M, w\rangle: M \text{ is a TM that halts on input } w\}$,
and some undecidable Language $L$ of the form $L = \{\langle M\rangle: M \text{ does a ...
-2
votes
1
answer
72
views
Is the "intersection" of the special Halting Problem with a language always undecidable?
I'm exploring the decidability characteristics of a particular language formed by the intersection of two languages, specifically in the context of the Halting Problem. The languages are defined as ...
3
votes
1
answer
129
views
Can I reduce a non semi decidable and undecidable language to a semi decidable and undecidable langauge? many-one reduction
Let's say a Language L is NON-semi decidable and undecidable. Let's also take the Halting problem H, which is a semi decidable and undecidable language.
Is it possible to reduce L to H in a many-one ...
1
vote
1
answer
70
views
How far out can one determine a program is halting?
Suppose we have a finite set of programs, say, something like every Turing machine with 2 states and 7 symbols. After running all of them for a very long time, we've narrowed it down to a small subset ...
-1
votes
4
answers
162
views
Can code "run forever" if it contains no loops?
Is it possible to write a piece of code that will run forever without using a loop?
-2
votes
1
answer
49
views
Does the Halting Problem Explain the Fermi Paradox?
The Fermi Paradox asks why we have not yet encountered other intelligent life given the high chance of intelligent life emerging.
I recently had the following thought:
Evolution shapes the behaviour ...
6
votes
2
answers
2k
views
What does it mean to prove the halting problem is undecidable "using arithmetization"?
In version gamma of the ACM/IEEE/AAAI Computer Science Curricula 2023, on page 50, one of the illustrative learning outcomes for the "Computational Models and Formal Languages" section of ...
0
votes
1
answer
108
views
A program that solves the Halting Problem for programs with N states
My question relates to the conclusions drawn from the Halting Problem. I understand that the Halting Problem proves that no program H(P,i) exists that determines if P(i) halts or not for P in general. ...
3
votes
1
answer
120
views
For which values of $k$ is a $k$-state-bounded version of the halting problem decidable?
This is related to my previous question: Do proofs of $HALT$'s undecidability make it clear that it's practically relevant?
I made a mistake of leaving something implicit when I asked it; namely that ...
0
votes
1
answer
98
views
Do proofs of $HALT$'s undecidability make it clear that it's practically relevant?
The proof of $HALT$'s undecidability usually goes like this: we assume the existence of a halting decider and incorporate it into a machine $D$ that takes a TM as input, runs it on its own encoding ...
-3
votes
1
answer
91
views
Can a decider return "Undecidable" on the Halting Problem? [closed]
So, I know there is no general algorithm for the halting problem, but I was curious if a three output decider could at least give us "an" output {0 if doesn't halt, 1 if halts, U if ...
0
votes
2
answers
58
views
Why there can't be two instances of a "reverse" program in the Halting problem?
So in the halting problem, there is a program that reverses the output of a program that tells if the input program halts or runs forever(I'll call it the main program further). The whole paradox is ...
-5
votes
2
answers
90
views
Halting Problem Question
Let HALT be a program that can decide the halting problem for any program and its input. HALT has two inputs, the program and the program's input.
Let OPPOSITE be a program that accepts a program as ...
1
vote
4
answers
3k
views
Can we ever achieve Turing completeness?
I want to relate Turing completeness to the Halting Problem.
As far as I know we say something is turing complete (eg: a programming language) when it can compute any function and can do any task. But ...
-4
votes
2
answers
65
views
Proof of halting problem
if we change the halts to do_not_halt() function, it works, so how can this be a proof?
def g():
if halts(g):
loop_forever()
if we change the halts to ...
1
vote
2
answers
100
views
Infinite Recursion as the Intuitive Foundation for the Halting Undecidability Proof
all, I was wondering if my intuitive understanding of why the halting problem is undecidable is actually correct?
TLDR: Halting problem is undecidable because it leads to infinite recursion and never ...
-2
votes
4
answers
135
views
Can halting problem solved by soft computation?
As far as I know, the halting problem means we can't create a program that checks whether another program is stuck or halt based on given input. This means, the program expects two inputs and one ...
0
votes
3
answers
125
views
Does exist an algorithm that decides whether a program halts or not as its timeout approaches to infinity?
By an algorithm $A(p, t)$ attempting to decide whether the program $p$ halts or not by running the program for $t$ seconds (the timeout) and trying to prove that it doesn't halt at the same time, can ...
3
votes
0
answers
193
views
Does this paper by Patrick Cousot describe an undecidable method for model checking?
All of the discussion is in the context of this paper.
I think that the whole procedure that the paper describes is not decidable, because if we can have an algorithm for it, then we can solve halting ...
0
votes
1
answer
57
views
Reduction from a language with unknown decidability to HALT
We were taught to use reductions in order to show that a given L is undecidable. My question is, given some definition of a new L, is there a way to find a reduction
$$
L\leq_mHALT
$$
So that I can ...
-2
votes
2
answers
122
views
Can we tell if we can tell if an algorithm halts or not?
We proved that, there exist no algorithm so it can tell us if an algorithm halts or not (a.k.a. the halting problem is undecidable). But it surely can handle some of those; can we tell which of those ...
0
votes
0
answers
89
views
Is game of life an example to halting problem?
I am working on a solution that can say if an initial composition is going to live forever or eventually die without calculating each generation until it reaches a stable or an ever-repeating cycle in ...
1
vote
0
answers
35
views
How much is decidability compromised within this restriction of the fixpoint combinator?
Though purely functional programming languages, such as Haskell, is commonly thought to have no side-effects, there is a caveat: Recursive calls may hang.
I considered this to be undesirable, and ...
1
vote
1
answer
149
views
Is the problem of Proper Subset of decidable languages decidable?
Given 2 recursive - decidable languages $L_1$ and $L_2$ is the problem $L_1 \subset L_2$ solvable - decidable?
Since both $L_1$ and $L_2$ are recursive - decidable there exist Turing Machines say $M_1$...
8
votes
1
answer
2k
views
What is the complexity of theorem proving?
I'm learning some computer science and mathematics by myself. I know that proving theorems in ZFC is undecidable in general, but, is there a formal way to express how complex it is? Is it as complex ...
1
vote
1
answer
36
views
Concrete example of a set with a lower degree of unsolvability
Post's problem, posed in 1944 by Post, was to know if there is a recursively enumerable set, which, being undecidable, was not equivalent to the Halting problem under Turing reducibility. While I've ...
0
votes
1
answer
78
views
How is there a paradox in the halting problem when you can trace it and it's very clearly non-halting?
Here's Alan Turing's halting problem in pseudocode:
...
1
vote
3
answers
162
views
Halting problem unsolvability leads to a contradiction - where's the mistake?
You are all familiar with the halting problem so I won't repeat it.
Suppose $H$ is a Turing machine which takes as input an encoding of another Turing machine $M$, then searches all possible proof ...
0
votes
1
answer
247
views
Modify Turing’s proof of the undecidability of the halting problem
Modify Turing’s proof of the undecidability of the halting problem to show there is no Turing machine P with the following two properties:
For all Turing machines M, if M() accepts then P(⟨M⟩) ...
1
vote
1
answer
61
views
Is there a maximal set of programs that terminate?
It seems useful to characterize terminating programs. While trying to formulate that as a well-defined question I was wondering about the following problem:
Is there a maximal decidable set of ...
0
votes
1
answer
96
views
Using undecidability to prove P != NP
Given the challenge of proving algorithmic bounds on the likes of 3-SAT to resolve P versus NP, I wondered whether it might be possible to use undecidability within an NP problem to ensure that we can ...
0
votes
0
answers
67
views
Reduction from Diophantine Equation Problem to Halting Problem
I want to study the reduction from the Diophantine Equation Problem (Hilbert's tenth problem) to the Halting problem.
Can you either explain it to me or give me a credible source from which I can ...
11
votes
3
answers
3k
views
Detecting if three Turing Machines halt given a magic oracle that is only used twice
We were given a question in class as follows:
You have a "magic oracle" that can decide if a Turing Machine halts. You have three TMs $T_1, T_2, T_3$. Device an algorithm that decides which ...