<aside>
📖
Reading: Sipser, Introduction to the Theory of Computation, Chapter 4 (Section 4.1 "Decidable Languages" and Section 4.2 "Undecidability", subsection on the diagonalization method).
</aside>
Small summary of what we know so far
- You should be familiar with the following notions:
- Functions (injective, surjective, bijective), relations, set and graph theory
- Formal definitions of FSA, RE, NFA, CFL, PDA, LBA, CSL, and TM
- Turing-recognisable and Turing-decidable languages
A bit of history
- In 1900, David Hilbert proposed 23 problems at the International Congress of Mathematicians in Paris. Parts of those problems were about the following question:
Is every statement in mathematics decidable? (Entscheidungsproblem)
- I.e., "Is there a definite procedure that can be applied to every statement and that will tell us in finite time whether the statement is true or false?"
- To formalise what "definite procedure" means, Turing introduced the notion of Turing machine.
- In the following lectures, we will see how Turing showed that the answer to this question is NO.
Decision problems
Let us first introduce some useful definitions.
<aside>
⚠️
DEFINITION: Decision problem
A decision problem is a "yes-or-no question" on a set of inputs.
</aside>

A decision problem
- Examples of decision problems are:
- "Given two numbers $x$ and $y$, does $x$ evenly divide $y$?"
- "Given a polynomial, does it have integral roots?"
- "Given a string $s$ on $\Sigma = \{a,\dots,z\}$, is $aa$ a substring of $s$?"
- "Given a finite undirected graph, is there, for every pair of vertices $(u,v)$ in the graph, a path from $u$ to $v$?"
- The set of inputs is often infinite. An input of a decision problem is also called an instance.
- Given a decision problem, we call the set of all yes-instances a formal language.
Decision procedure
<aside>
⚠️
DEFINITION: Decision procedure / decidability
A decision procedure is an algorithm that halts and correctly returns yes/no for every instance of a decision problem.
- We say that a decision problem is decidable if there exists a decision procedure for it.
</aside>
A less constrained notion is semi-decidability.
<aside>
⚠️
DEFINITION: Semi-decidability
A problem is semi-decidable if there is an algorithm that outputs "yes" if and only if the correct answer is "yes" (on "no"-instances, it may output "no" or run forever).
</aside>
Note that every decidable decision problem is also semi-decidable.