Turing and Decision Problem
- 14Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary goal of the 'decision problem' in logic?
14 questions
- 1
What is the primary goal of the 'decision problem' in logic?
Model answer
The decision problem aims to determine if there is an automatic test that can definitively establish whether a given set of premises entails a particular conclusion.
Explanation
In logic, an argument consists of premises (initial known facts or assumptions) and a conclusion (the statement to be reasoned to). The decision problem asks if there's an algorithmic way to check the logical validity of such an argument, i.e., if the truth of the premises guarantees the truth of the conclusion.
- 2
What kind of logic was primarily considered when mathematicians posed the decision problem at the beginning of the 20th century?
Model answer
Mathematicians primarily considered first-order logic when posing the decision problem.
Explanation
First-order logic is a formal system used in mathematics, philosophy, linguistics, and computer science. It allows for quantification over individuals, making it suitable for expressing complex statements and reasoning. The question was whether its entailment relation could be automatically decided.
- 3
What was Alan Turing's significant discovery regarding the decidability of first-order logic?
Model answer
Alan Turing was one of the first to prove that first-order logic is not decidable.
Explanation
Turing demonstrated that there is no general algorithm or program that can, for any given set of premises and a conclusion in first-order logic, determine in a finite amount of time whether the premises entail the conclusion. This was a profound negative result in mathematics.
- 4
What conceptual difficulty arises when trying to prove that something, like first-order logic, is not decidable?
Model answer
The conceptual difficulty lies in proving that no possible program can ever provide the answer, which requires a way to reason about 'every possible program' without individually checking them.
Explanation
To show something is undecidable, one must prove the non-existence of an algorithm for it. This is harder than proving existence (which would involve just demonstrating one such algorithm). Turing's genius was devising a method to universally reason about all possible computational procedures.
- 5
How did Alan Turing's solution to the undecidability proof address the problem of reasoning about 'every possible program'?
Model answer
Turing's solution involved connecting the logical decision problem to a more fundamental problem about program behavior, the Halting Problem, which he then proved to be unsolvable.
Explanation
Instead of directly tackling every logical program, Turing abstracted the concept of a program into a theoretical 'machine' and posed a universal problem about these machines—the Halting Problem. By showing this universal problem was unsolvable, he could then deduce that the related logical problem was also unsolvable.
- 6
Define the 'Halting Problem' in the context of a program and its input.
Model answer
The Halting Problem asks whether a given program, when provided with a specific input, will eventually halt (produce an answer) or run forever in a loop.
Explanation
When a computer runs a program, it ideally produces an output. However, some programs can enter infinite loops, never terminating. The Halting Problem is the question of creating a universal algorithm that can predict, for any arbitrary program and its input, if it will ever stop or run indefinitely.
- 7
Why is 'halting' considered a desirable outcome for a computer program?
Model answer
Halting is desirable because it means the program provides an answer, even if incorrect, which is preferable to running indefinitely without any resolution.
Explanation
A program that halts gives some output, allowing for evaluation. A non-halting program provides no information, leaving the user in an indefinite wait, unable to determine if it's still computing or stuck.
- 8
What is the relationship between the Halting Problem and the logical problem 'Do these premises entail this conclusion?'
Model answer
The logical problem 'Do these premises entail this conclusion?' is analogous to the Halting Problem; if one could solve the logical problem, one could also solve the Halting Problem.
Explanation
Turing demonstrated that these two problems are computationally equivalent in terms of solvability. This means that if an algorithm existed to solve the logical entailment problem, that same algorithm (or a slight modification) could be used to solve the Halting Problem.
- 9
Describe the core idea behind Turing's proof that the Halting Problem is unsolvable.
Model answer
Turing's proof demonstrates unsolvability by constructing a paradoxical machine, H+, which uses a hypothetical Halting Problem solver, H. If H+ halts, then H would predict it wouldn't, and if H+ doesn't halt, then H would predict it would, leading to a contradiction.
Explanation
Turing assumes, for contradiction, that a program 'H' exists that can solve the Halting Problem. He then creates a new program, 'H+', which takes 'H' and modifies its behavior: if 'H' says the input program halts, 'H+' loops forever; if 'H' says it doesn't halt, 'H+' halts. The paradox arises when 'H+' is fed its own description as input, creating a situation where it halts if and only if it doesn't halt.
- 10
What is the function of the 'extra bits' added to the hypothetical Halting Problem solver 'h' to create 'h+' in Turing's proof?
Model answer
The 'extra bits' transform the output of 'h': if 'h' says 'yes' (it will halt), 'h+' is made to loop forever; if 'h' says 'no' (it won't halt), 'h+' is made to halt immediately.
Explanation
This modification is crucial for creating the self-referential paradox. It inverts the behavior predicted by the hypothetical halting machine 'h', specifically designed to expose the contradiction when 'h+' analyzes itself.
- 11
What is the contradiction that arises when the machine H+ is fed into itself as an input?
Model answer
If H+ halts when fed itself, the hypothetical solver H would have predicted it wouldn't, causing H+ to loop forever (not halt). Conversely, if H+ doesn't halt, H would predict it would, causing H+ to halt. This creates a logical paradox.
Explanation
The machine H+ is designed to do the opposite of what the halting oracle H predicts. When H+ is given itself as input, its behavior becomes self-contradictory: its halting state directly implies its non-halting state, and vice-versa, demonstrating that the initial assumption of a universal halting solver (H) must be false.
- 12
What is the implication of the paradox derived from feeding H+ into itself?
Model answer
The implication is that the initial assumption—that a machine capable of solving the Halting Problem exists—must be false, thus proving the Halting Problem is unsolvable by any machine.
Explanation
A paradox indicates a flaw in the initial assumptions. Since the construction of H+ from H is logically sound, the only way to avoid the paradox is to conclude that the hypothetical machine H (the Halting Problem solver) cannot exist. This is a fundamental limit on computation.
- 13
Why does it not matter what kind of program or machine is considered in Turing's proof of unsolvability for the Halting Problem?
Model answer
Turing's proof is abstract and applies to any conceivable computational model, whether an abstract algorithm or a physical computer, demonstrating a universal limitation of computation.
Explanation
The strength of Turing's argument is its universality. By defining a 'machine' in an abstract way (later formalized as a Turing machine), the proof doesn't rely on the specifics of any particular programming language or hardware. It proves that no matter how clever a computer or program, it cannot solve the Halting Problem.
- 14
In the context of Turing's proof, what abstract component might be represented by 'black boxes' or 'cards' containing instructions?
Model answer
These represent the abstract instructions or algorithm that define the behavior of a Turing machine or a program.
Explanation
Turing's conceptualization of a 'machine' involved a set of instructions that could be encoded and processed. These instructions, whether seen as lines of code in a program or discrete steps on a 'tape', are what dictate the machine's behavior and are the essence of what is being analyzed in the Halting Problem.

Ask anything
We've read this whole study set, so questions about it get the best answers.