1. Home
  2. Explore
  3. Mathematics
  4. Gödel's Proof Length Problem

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Gödel's Proof Length Problem

Speaker 1Speaker 2

Gödel's Proof Length Problem

4:40
0:00-4:40
  1. Corey

    So, Michael, did you know that the biggest unsolved problem in computer science started with a letter from Kurt Gödel to John von Neumann back in 1956?

  2. Michael

    I've heard of the P vs NP problem, but I didn't know it went back that far. Gödel was thinking about automated proof systems, right?

  3. Corey

    Exactly. He was aware of Turing's work showing that no program can prove or disprove every mathematical statement. But Gödel wondered about a slightly different question: could a program always find a proof if it exists within a certain length? Say, using at most a hundred characters.

  4. Michael

    And he knew the answer was yes. The brute-force way is to generate all strings up to that length and check if any is a valid proof. It's theoretically correct but ridiculously inefficient. With fifty possible characters and a proof size of n, you'd have to check 50^n strings – exponential growth.

  5. Corey

    Right. For a proof size of just ten characters, that's already a huge number. And if you allow ten thousand characters, the program would essentially generate everything ever written. But here's the key: Gödel then asked von Neumann if there's a faster way. Could the runtime be proportional to n or n² instead of exponential?

  6. Michael

    That's a huge difference. An n² algorithm for a ten-thousand-character proof would need only about 100 million steps – completely doable with modern computers. Gödel realized that if such an efficient prover existed, it would have enormous consequences, like solving the Riemann Hypothesis or even helping with protein folding for medical cures.

  7. Corey

    And von Neumann never replied because he was terminally ill. But Gödel's question essentially became what we now call the P vs NP problem. Stephen Cook formalized it in 1971. The name is confusing, but it's all about whether finding a proof is fundamentally harder than checking one.

  8. Michael

    Let's make it concrete with graph coloring. Suppose we have a graph and we want to color each vertex red or blue so that no two connected vertices share a color. This is called 2-colorability. A brute-force search would try all 2^n colorings, which is exponential.

  9. Corey

    But we can do much better. Start with any vertex, color it arbitrarily, then force all neighbors to the opposite color. Keep alternating. If you ever hit a conflict, the graph isn't 2-colorable. This algorithm runs in time proportional to the number of vertices and edges – polynomial time, specifically linear.

  10. Michael

    That's the hallmark of problems in P: they can be solved in polynomial time. Now, consider 3-colorability – three colors instead of two. Some graphs that aren't 2-colorable become 3-colorable, like a triangle. But there are graphs that aren't 3-colorable either.

  11. Corey

    The brute-force method now checks 3^n possibilities – still exponential. And despite smarter algorithms, the best known for 3-colorability is still exponential, like 1.3289^n. So we have a problem where solutions are easy to verify – just check that neighboring vertices have different colors – but finding a solution seems much harder.

  12. Michael

    That's exactly the distinction between P and NP. P is the class of problems solvable in polynomial time. NP is the class of problems whose solutions can be verified in polynomial time. Every problem in P is also in NP, but whether the reverse holds is the million-dollar question.

  13. Corey

    In other words, if P equals NP, then any problem whose solution you can check quickly can also be solved quickly. That would mean, for instance, that solving a Sudoku puzzle is as easy as checking a solution – which seems counterintuitive.

  14. Michael

    Cook didn't just define these classes; he showed there are certain problems in NP, called NP-complete, that are the hardest. If you find a polynomial-time algorithm for any NP-complete problem, you can solve every NP problem in polynomial time by transforming it into that problem.

  15. Corey

    The first NP-complete problem was Boolean satisfiability, or SAT. Cook and Levin independently proved that. Later, Karp found 20 more, including 3-colorability. So if someone found a fast algorithm for 3-colorability, it would mean P equals NP. Similarly, you could turn any Sudoku puzzle into a 3-coloring problem.

  16. Michael

    But no one has found such an algorithm. Most experts believe P is different from NP. That would mean some problems are inherently hard to solve even though their solutions are easy to check. Creativity and discovery can't be fully automated.

  17. Corey

    Gödel thought it was plausible that finding proofs could be automated. If P equals NP, as he imagined, then a machine could replace the mental work of mathematicians. But if not, there will always be problems where brute force is the only way – and that might be what makes human thought special.

  18. Michael

    It's amazing that a question from 1956 still drives computer science today. The P vs NP problem really is about the nature of thought itself.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent