A tale of four theorem provers, or: A (reasonably) opinionated comparison of Isabelle/HOL, Lean, HOL4, and Agda
Web page · https://blueberrywren.dev/blog/primes
First seen by Oriel on .
AI summary
The article compares Isabelle/HOL, Lean, HOL4, and Agda by formalizing Euclid’s proof that there are infinitely many primes, emphasizing differences in automation, interaction, foundations, and proof-writing experience.
- The four systems divide into LCF-style provers (Isabelle/HOL and HOL4) and dependent-type systems (Lean and Agda), with differing levels of interactivity and automation.
- Isabelle/HOL and HOL4 offer strong automated methods; Lean’s automation is more mixed, while Agda requires substantially more manual proof work.
- The comparison reports proof sizes of 117 lines for Isabelle/HOL, 155 for Lean, 190 for HOL4, and 264 for Agda, though the author cautions that these are not directly comparable.
- The Agda proof is constructive and can generate a prime larger than a given number, but reported runtimes rise to 40 seconds for input 8.
- The author prefers LCF-style systems for their automation and argues that proof discovery and manipulation differ notably across the tools.
#theorem proving #isabelle/hol #lean #agda
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | 4dwrz0 | https://blueberrywren.dev/blog/primes/ Read discussion |