Computation and Turing Machines · v1.0.1
2026-09-07 02:23:35
Problem. MULT
Given two numbers \(x\) and \(y\), what is \(x \times y\)?
Instance. One case of MULT
\(67 \times 4.5 = 301.5\)
An algorithm answers every instance. One instance answers nothing about the problem.
A decision problem restricts the output to True or False.
\[P : \text{instance} \to \{\text{True}, \text{False}\}\]

\[P(x) = (x \in B)\]
Reduces a problem’s definition to defining one set, \(B\).
A decision problem, \(P\), is decidable if it can be implemented in Python.
Reaching a formal definition requires more machinery:
PRIME, formalized in the next section, is decidable under this notion.
Denoted \(L\):
\[\text{DIV}(x, y) = \exists n.\ x = y \times n\]
\(x\) is divisible by \(y\): some integer \(n\) satisfies \(x = y \times n\).
\[\text{PRIME}(x) = \lnot\bigl(\exists y.\ \text{DIV}(x, y) \land \lnot(y = 1) \land \lnot(y = x)\bigr)\]
No \(y\), other than \(1\) or \(x\) itself, divides \(x\).
\[A = \mathbb{Z}, \quad B = \{\, x : \text{PRIME}(x) \,\}\]
The same decision problem stated informally earlier, now precise enough to check against its own definition.
Are all decision problems expressible in \(L\) Python-decidable?
No.
Question 3 exposes the gap directly.
Answering any of the five questions requires:
Basics of a Turing Machine, the next unit in this module.