Skip to content

Mathematics Just Changed Forever — Kevin Hartnett

Machine Learning Street Talk (MLST)

Hosted by Tim Scarfe

1h 33m
Transcript

Original podcast

Summary

Written by a model from the transcript; not yet reviewed.

This episode explores the intersection of mathematics, interactive theorem provers like Lean, and artificial intelligence, drawing from Kevin Hartnett's book Proof in the Code. The conversation details how Leo de Mora created Lean and Z3, and how mathematicians like Kevin Buzzard, Jeremy Avigad, and Peter Scholze pushed for dependent type theory to formalize complex abstract mathematics. Guests and hosts discuss the friction between human intuition and machine rigor, noting instances where published papers by Fields Medalists contained logical gaps or false statements that formal verification uncovered. The discussion also covers recent milestones in AI, such as AlphaProof achieving a silver medal at the International Mathematical Olympiad, and the challenges of auto-formalization and understanding debt as AI-generated code scales.

  • Formal verification tools like Lean can uncover hidden logical errors and false statements in published mathematics papers written by top experts. 1:11:45
  • Mathematicians often rely on a social process and shared intuition rather than checking every single line of a proof. 7:52
  • Dependent type theory provides the necessary expressive power to model complex modern algebraic structures, unlike simpler type systems. 19:12
  • AI systems can automatically translate natural language mathematics into Lean to verify competition-level problems and research conjectures. 58:25

Chapters

  1. 0:02
    Intro and Advertisements

    The episode opens with brief ads for Anthropic’s Claude and Toyota’s Fortability, setting a light tone before diving into mathematics.

  2. 1:01
    Fields Medalist Peter Scholz’s Frustration

    Peter Scholz explains how he felt his work was skimmed over and the lack of rigorous proof checking in the community.

  3. 3:59
    Kepler’s Conjecture and Hales’s Journey

    The narrative of Kepler’s conjecture, Hales’s massive computational proof, and its publication challenges are recounted.

  4. 13:58
    Lean’s Foundations and the Math Library

    An overview of Lean’s kernel, dependent type theory, and the development of the MathLib library is presented.

  5. 35:04
    Community Building and MathLib Growth

    The collaborative effort to build MathLib, including contributions from students and mathematicians, is described.

  6. 40:30
    Formalizing Modern Mathematics

    Speakers explore the vision of formalizing contemporary research, such as perfectoid spaces, to showcase Lean’s power.

  7. 46:12
    Challenges of Formalization

    The tedious, detailed work required to formalize even simple statements in Lean is highlighted, along with tactics to ease the process.

  8. 48:18
    Peter Scholz’s Paper and Verification

    Kevin Buzzard recounts how Peter Scholz’s paper became a test case for Lean’s proof‑checking capabilities.

  9. 51:08
    Podcast Intro and Host Greeting

    The episode opens with the host introducing the show and the topic of mathematics transformed by AI.

  10. 54:28
    Rapid Proof Validation and Viral Growth

    After simplifying the proof, the team validated it with AI, wrote a second blog post, and the project gained viral attention from major journals and conferences.

  11. 57:36
    AI-Assisted Formalization and Alpha Proof

    The discussion turns to Alpha Proof, an AI system that uses Lean to solve IMO-level problems and demonstrates the power of automated formalization.

  12. 1:08:26
    Formal Verification Gap and AI-Generated Lean Code

    Speakers explore the challenges of AI-generated Lean code, the formalization gap, and the need for human oversight to ensure correctness.

Highlights

  • 1:28

    Checking Proofs With Leaninsight

    When you prove something using a tool like Lean, you get algorithmic certificates that verify whether a mathematical proof is correct.

  • 2:50

    Kepler's Conjecture Originsstory

    Johannes Kepler wondered if pyrimid-stacked oranges formed the densest possible configuration, a problem that took centuries and computers to resolve.

  • 13:58

    The Dual Nature of Leanstrategy

    Lean functions as both a programming language and a proof assistant, allowing users to prove properties about code and state mathematical theorems.

  • 16:38

    Building Automated Theorem Prover Z3story

    Leo de Mora built Z3 at Microsoft to automatically check software pathways for bugs, saving millions of dollars and winning automated theorem competitions.

  • 33:15

    Building MathLib from Scratchstory

    Kevin Buzzard describes starting with just 30,000 lines of basic code and teaching the Lean library undergraduate concepts like complex numbers.

  • 48:18

    Checking a Fields Medalist's Workstory

    Fields Medalist Peter Scholze asked the Lean community to verify a complex six-page pre-print, leading to a successful machine verification.

  • 57:26

    AlphaProof at the Math Olympiaddata

    Google DeepMind's AlphaProof used reinforcement learning and Lean to achieve a silver medal level score on the 2024 International Mathematical Olympiad.

  • 1:11:36

    False Statements by Fields Medalistsinsight

    Checking formal statements from top math journals revealed that four Fields Medalists had published theorems that were strictly speaking false.

Quotes

  • “AI is coming from mathematics.”
    Unnamed speaker · 1:44
  • “The kernel answers the first question anyone asks when they learn about an ITP, which is that if the ITP says a proof is correct, how do I know it hasn't made a mistake?”
    Tim Scarfe · 14:45
  • “Formalizing a proof or writing math in this formal language is very kind of tedious. You have to spell out every little detail.”
    Unnamed speaker · 46:12
  • “The library wants to take sort of fully formed, well thought out, you know, beautiful conceptual ideas, which sort of know their place.”
    Unnamed speaker · 37:16
  • “You know, in, people are beginning to notice that the software was able to do more complex material.”
    Unnamed speaker · 51:08
  • “And we started going through it with a fine tooth comb and we found a simplification.”
    Unnamed speaker · 52:12
  • “When you have a mathematical proof in Lean, fully spelled out, you can kind of click into elements of it,”
    Unnamed speaker · 54:04
  • “DeepMind eventually auto-formalized about 80% of questions in those areas nearly perfectly.”
    Tim Scarfe · 59:10
  • “The machines will say, 'Well, this theorem which you've written, it isn't actually true, is it?'”
    Unnamed speaker · 1:12:26
  • Anthropic 0:02–0:25
  • Toyota 0:30–0:59
  • Cyber Fund 13:18–13:55
  • Anthropic 1:34:34–1:34:57

About this episode

Kevin Hartnett is the author of *The Proof in the Code*. SPONSOR:---Cyber Fund built the Monastery to help founders ship products that were impossible a year ago. Applications for Batch 1 are now open. Apply now: https://cyber.fund---In 1998 Thomas Hales finished a proof of the Kepler conjecture that leaned so heavily on computer code that the Annals of Mathematics could not say whether it was true. That impasse opens Kevin Hartnett's book *The Proof in the Code*, and this documentary. Built around Tim's conversation with Hartnett, the film follows Lean from a side project at Microsoft Research to the system mathematicians now use to check their own field. Leonardo de Moura, Lean's creator, explains why everything rests on a small trusted kernel. Jeremy Avigad recalls the argument over foundations that changed Lean. Kevin Buzzard describes his fear that his corner of mathematics was becoming a house of cards, and Paul Lessard separates a correct proof from a useful one. Mathlib, Peter Scholze's Liquid Tensor challenge and Terence Tao's Equational Theories project all pass through. The second half turns to AI. AlphaProof, natural-language olympiad proofs and autoformalisation sharpen the question the book keeps asking: when a machine produces a proof nobody can read, what has actually been checked? The answer lies in the formalisation gap, the distance between the mathematics people mean and the statement a checker certifies. The film closes on the human story behind the software.---TIMESTAMPS:0:00 Cold open: proof, code and the wrong problem1:50 Kepler's oranges and the proof nobody could check6:54 How mathematicians decide a proof is true9:04 Correct is not the same as useful12:17 Sponsor: Cyber Fund12:53 What Lean is, and the small kernel it trusts15:23 From Microsoft's Z3 to Lean18:22 The argument over Lean's foundations24:52 One researcher versus a growing user base26:16 Kevin Buzzard's house of cards30:43 Mathlib as a barn raising37:16 The perfectoid-spaces stunt47:12 Scholze's proof nobody had read: Liquid Tensor53:20 Can AI learn to find proofs? AlphaProof58:43 AI mathematics in 2026 and Tao's experiment1:01:36 Lean's place in AI mathematics1:02:17 AI brute force versus the right abstraction1:05:19 Autoformalisation's Trojan horse1:07:25 The formalisation gap1:11:45 A proof is not understanding1:16:58 Integration hell and the zlib specification1:21:14 Verification in the AI software lifecycle1:22:38 The human story behind Lean1:31:09 The birthday walk1:33:05 Farewell---REFERENCES:[2:12] Thomas Hales, A proof of the Kepler conjecture (Annals of Mathematics, 2005)https://annals.math.princeton.edu/2005/162-3/p01[2:12] The Flyspeck project (the formal proof of the Kepler conjecture)https://github.com/flyspeck/flyspeck[12:53] Leanhttps://lean-lang.org/[30:43] Mathlibhttps://github.com/leanprover-community/mathlib4[30:43] Kevin Hartnett, "Building the Mathematical Library of the Future" (Quanta Magazine, 2020)https://www.quantamagazine.org/building-the-mathematical-library-of-the-future-20201001/[47:12] The Liquid Tensor Experimenthttps://github.com/leanprover-community/lean-liquid[53:20] AlphaProof (Google DeepMind): AI achieves silver-medal standard solving International Mathematical Olympiad problemshttps://deepmind.google/blog/ai-solves-imo-problems-at-silver-medal-level/[59:23] The Equational Theories Project (Terence Tao)https://github.com/teorth/equational_theories[1:18:30] lean-zip (the zlib proof)https://github.com/kim-em/lean-zipFrontierMath Erdős (Epoch AI, 2026)https://epoch.ai/benchmarks/frontiermath-erdosBook: Kevin Hartnett, *The Proof in the Code* (Quanta Books, 2026)https://www.quantabooks.org/books/the-proof-in-the-code/---RESCRIPT: https://app.rescript.info/share/8604a0cd6ea4604a368028a05f4e6be4Support MLST on Patreon: https://www.patreon.com/mlstDiscord: https://discord.gg/HNnAwSduud

Transcript

0:00
1:33:33

16,694 words · 7 speakers

Speaker names marked are inferred from speaking time and the show’s known hosts — they are not voice-verified.

Topics

  • Lean
  • MATLAB
  • Microsoft
  • Alpha proof
  • OpenAI
  • The Annals of Mathematics
  • Google DeepMind
  • Z Lib
  • COVID
  • International Math Olympiad

Page updated · transcript and summary are machine-generated