How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Diagonalization and the Halting Problem: Examples and Counterexamples
1 · Prerequisites
- Construction of the Natural Numbers
- Countability and Uncountability
- Decidable, Recognizable, and Enumerable Languages
- Diagonalization and the Halting Problem
- Finite Counting, Factorials and Binomial Coefficients
- Formal Languages, Encodings, and Decision Problems
- Linear Recurrences and Rational Generating Functions
- Relations, Functions, and Quotients
- Robust Machine Models and Universal Computation
- The ZFC Axioms and the Basic Set Constructions
- Turing Machines, Configurations, and Computation
2 · Summary
These examples keep the diagonal arguments concrete. One traces the self-application machine on its own recoded description, another spells out the two possible languages in the equivalence reduction, and the counterexample separates undecidability from the much weaker claim that some individual instances are easy to answer.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Building the diagonal machine against a hypothetical acceptance decider
Example
Assume a black-box decider for . The diagonal lemma builds a machine with input alphabet such that on the recoded description of any machine with the same input alphabet, does the opposite of .
Facts & Assumptions
Given: A hypothetical decider for and the resulting machine .
The diagonal construction yields a machine with for every coded machine whose input alphabet contains , by A hypothetical decider for yields a diagonal self-application machine.
The existence of such a machine forces a contradiction and therefore proves undecidable, by The Turing-machine acceptance problem is undecidable.
Verification
Applying [L1] with itself gives . So the special input is the recoded description , not an informal self-reference slogan.
The contradiction in step 1.1 is exactly the obstruction recorded in [L2]. This concrete trace is the diagonal core of the undecidability proof.
Reducing halting to language equivalence by a machine that either accepts everything or loops forever
Example
Fix a coded pair . The standard reduction to machine equivalence builds a machine that ignores its own input, waits to see whether halts on , and then either accepts every input or accepts none.
Facts & Assumptions
Given: A fixed halting instance candidate .
In the reduction proving Language equivalence of Turing machines is undecidable, the machine recognizes when halts on and recognizes when does not halt on .
The halting language is undecidable, by The halting problem is recognizable and undecidable.
Verification
If halts on , then the simulation inside eventually terminates on every input, after which accepts that input. So [L1] gives , the same language recognized by an always-accept machine.
If does not halt on , then the simulation inside never terminates, so accepts no input at all. Again by [L1], , which is not the language of the always-accept machine. This sharp dichotomy is why deciding equivalence would decide halting, contradicting [L2].
An immediate-accept machine gives an easy yes-instance inside an undecidable language
Statement refuted
The claim "undecidable means no individual instance can be answered" is false. An explicit yes-instance already appears inside .
Facts & Assumptions
Given: The machine that immediately accepts every input.
A coded pair lies in exactly when the decoded machine accepts the decoded input, by The Turing-machine acceptance problem .
The false statement being refuted is the one recorded in FALSE: undecidable means no individual instance can be answered.
Counterexample
The machine accepts the one-symbol input word on its first step. Therefore [L1] gives .
This specific membership question has a completely transparent yes-answer, so it contradicts the slogan named in [L2]. Hence the slogan is false.