P versus NP
Whether every problem whose solution can be checked quickly can also be solved quickly.
No general algorithm can decide whether an arbitrary program will terminate.
Is there an algorithm that decides, for every program and input, whether the program eventually halts?
No program can inspect another program and always tell whether it will finish. Turing proved this by building a program that contradicts any such inspector.
The record begins in 1936. Turing proves that no general algorithm can decide whether an arbitrary program halts. It is associated with Alan Turing.
A solution has been accepted by the relevant expert community.
Assume a program H decides whether any program P halts on input I. Build a program D that asks H about its own behaviour and then does the opposite. If H says D halts, D loops forever. If H says D loops, D halts. The contradiction rules out H.
Mechanised proof: Halting problem in mathlib4 (Lean) ↗
Proved undecidable by Alan Turing in 1936, a foundational result in computability theory.
Found an error or a missing source? Open a public correction thread ↗
Comments are public and need a GitHub account. A comment does not change the editorial status of this entry. For a claimed proof, link the manuscript, its date and the step you believe is new.
If the thread does not load, open it on GitHub ↗
Whether every problem whose solution can be checked quickly can also be solved quickly.
Whether problems with efficiently verifiable "yes" answers also have efficiently verifiable "no" answers.
Whether polynomial time and polynomial space define the same class of problems.