Skip to content

E-book from Atlas Kits Press

Lean 4: Proofs a Machine Can Check

Mathlib and AI-assisted mathematics

Learn to state and check proofs in Lean 4 with Mathlib, and to work with AI provers without trusting them blindly. Every example compiles against a pinned toolchain.

Free sample to keep: EPUB (4 MB) PDF (0.9 MB)

Contents

  1. 0 Before you start Free
  2. 1 Your first machine-checked proof Free
  3. 2 Goals, hypotheses and the logic tactics
  4. 3 Tactic cards
  5. 4 Induction, recursion and computation
  6. 5 Finding what you need in Mathlib
  7. 6 Algebra and inequalities
  8. 7 Number theory
  9. 8 Sets, functions and structures
  10. 9 Analysis, and reading a real statement
  11. 10 Projects, pinning and CI
  12. 11 Style, maintenance and performance
  13. 12 Working with an AI prover
  14. 13 Autoformalization and how it goes wrong
  15. 14 Checking a proof you did not write
  16. 15 What was checked in the Riemann Hypothesis proof Free
  17. 16 Case studies: AI-found results, formalized
  18. 17 Where to go next
  19. A Appendix A: Tactic cheat-sheet
  20. B Appendix B: Error message decoder

Editions

One payment. Updates to this edition are included.

Reader

One reader

$39

Not on sale yet

Practitioner

One reader, plus exercises and solutions

$79

Not on sale yet

Team

Up to 10 readers

$199

Not on sale yet

Written with AI assistance (Claude, by Anthropic) and checked: every Lean example compiles against a pinned Lean and Mathlib version, and every factual claim links to a dated source. Payment is handled by Paddle, our merchant of record.