CSCD 420 Nov 17 2026
Overview
Chris Cain connects Gödel’s incompleteness theorems to Alan Turing’s halting problem, showing how self-reference establishes limits on what formal mathematical systems and algorithms can decide. The lecture then develops undecidability proofs by reduction, including a state-entry problem example, and applies the ideas to recursively enumerable languages and properties such as grammar emptiness and language finiteness.
Key takeaways
- Gödel numbering encodes logical symbols and entire statements as integers, allowing arithmetic to express claims about proofs, including a statement that refers to its own unprovability.
- Gödel’s first incompleteness theorem rules out completeness for sufficiently expressive consistent formal systems, while his second theorem prevents such a system from proving its own consistency.
- Turing’s diagonal construction shows that any proposed universal halting predictor can be forced to give the wrong answer when a program is run on its own description.
- To prove a problem undecidable, reduce a known undecidable problem such as halting to it: a decider for the target problem would imply an impossible halting decider.
- Recursively enumerable languages allow eventual confirmation of membership, but may provide no terminating answer for non-membership; this makes properties such as unrestricted-grammar emptiness undecidable.
- Turing-complete systems can simulate general computation, but that expressive power brings undecidable questions, from program termination to whether a system tiles the plane or has a quantum spectral gap.
Chapters
- Chris Cain says the study guide should arrive before the Monday and Tuesday exam review sessions.
- The class recalls the halting problem: deciding whether a Turing machine halts on a particular input.
- The lecture resumes a discussion of mathematical and computational limits, then turns to ways of proving that problems are unsolvable.
- A formal proof system encodes axioms and rules of inference as precise symbolic manipulations.
- Bertrand Russell and Alfred North Whitehead’s Principia Mathematica took 762 pages to prove that 1 + 1 = 2.
- David Hilbert asked whether mathematics is complete, consistent, and decidable, and expected all three questions to have positive answers.
- Kurt Gödel assigned numbers to logical symbols, then encoded symbol sequences as unique integers using prime powers.
- Prime factorization lets a Gödel number be decoded into the original sequence of symbols.
- Gödel constructed a statement that effectively says it has no proof: if it were provable, the system would contradict itself; if true, it would be an unprovable truth.
- Gödel’s first incompleteness theorem says sufficiently expressive mathematical systems have true statements that cannot be proved within the system.
- Gödel’s second incompleteness theorem says a consistent formal system cannot prove its own consistency.
- Alan Turing modeled computation with a tape, read-write head, and finite instructions, then connected deciding mathematical derivability to predicting whether a machine halts.
- Assume a machine H always predicts whether any program halts on a given input, then construct H-plus to loop when H predicts halting and halt when H predicts looping.
- Running H-plus on its own code makes either prediction wrong, so no general halting decider can exist.
- Turing completeness appears in systems such as the Game of Life, programming languages, Excel, and Magic: The Gathering, each carrying undecidable questions of its own.
- The class discussion connects formal-system incompleteness to open problems such as whether P equals NP.
- Cain emphasizes that computer scientists should understand the boundaries of the tools and assumptions they rely on, even when those tools remain useful.
- If the halting problem were decidable, recursively enumerable languages could be decided in finite time, collapsing the distinction between recursively enumerable and recursive languages.
- An undecidability proof starts from a known undecidable problem, such as halting, and reduces it to a new problem.
- If a decider for the new problem would also decide the halting problem, the new problem must be undecidable.
- Unlike NP-completeness reductions, which connect problems to show that solving one efficiently solves others, undecidability reductions transfer impossibility from a known hard problem.
- The state-entry problem asks whether a Turing machine ever enters a specified state, such as Q3.
- A simulation can confirm entry when it happens, but failure to see the state after any finite run cannot prove that it will never occur.
- Construct a machine that enters a target state exactly when the original machine halts; a state-entry decider would then decide halting, proving state entry undecidable.
- A recursively enumerable language can be recognized by an enumeration procedure that eventually confirms yes-instances, but may run forever on no-instances.
- For an unrestricted grammar, generating strings from the start symbol can confirm that its language is nonempty, but no finite search bound proves emptiness for every grammar.
- The emptiness problem for unrestricted grammars is undecidable because deciding it would resolve a known undecidable problem.
- Whether a Turing machine accepts a finite or infinite language is undecidable, even though a DFA’s language is infinite exactly when its graph has a cycle on a path to acceptance.
- The lecture raises further questions about pairs of accepted strings with equal lengths and relates such language properties to halting-problem reductions.
- Cain closes by noting that reductions are not daily programming tools, but recognizing NP-complete or undecidable requirements can set realistic expectations for projects such as university-wide scheduling.
Transcript excerpt
0:02 All right. We have an assignment due in a couple of days. I am got a question on Zoom about when the study guide will come out. The latest I could get it to you would be Monday so that you would have a week before the exam with it. But since we're reviewing Monday and Tuesday, I should probably Hello.
0:54 More posts with the audio weird? I'll get the study guide to you in the near future because I should talk. It should be close to a week before we actually review the material. So I will put that on my list to do today. If it's not out by the end of the day today, that means I've forgotten about it and got a place where I can take an easy note about it. So just send me an angry email that will prioritize it without Questions about the schedule, assignments, exam on the horizon, study guide in the near future? >> Uh exam is the next Monday, right? >> It's going to be the Monday that we get back.
1:40 >> Right, yeah. >> Yeah. So study guide in the near future because we're going to have to review next Monday and Tuesday. So I want to give people a chance. I don't want to reveal the study guide the day we start reviewing and then people would have any questions ready or have done any of the work to know what they don't know. So I'll get it to you today. If I don't it to you today. Somebody get it to you today. All right. Last time we went over the halting problem. We introduced this concept of a problem that Turing machines can't solve. Which is to take as input a machine and a string and then simulate whether that
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Cain.