Proof assistant
In computer science and mathematical logic, a proof assistant or interactive theorem prover is a software tool to assist with the development of formal proofs by human-machine collaboration. This involves some sort of interactive proof editor, or other interface, with which a human can guide the search for proofs, the details of which are stored in, and some steps provided by, a computer.
A recent effort within this field is making these tools use artificial intelligence to automate the formalization of ordinary mathematics.^{[1]}
System comparison
Name | Latest version | Developer(s) | Implementation language | Features | |||||
---|---|---|---|---|---|---|---|---|---|
Higher-order logic | Dependent types | Small kernel | Proof automation | Proof by reflection | Code generation | ||||
ACL2 | 8.3 | Matt Kaufmann and J Strother Moore | Common Lisp | No | Untyped | No | Yes | Yes^{[2]} | Already executable |
Agda | 2.6.3 | Ulf Norell, Nils Anders Danielsson, and Andreas Abel (Chalmers and Gothenburg) | Haskell | Yes | Yes | Yes | No | Partial | Already executable |
Albatross | 0.4 | Helmut Brandl | OCaml | Yes | No | Yes | Yes | Unknown | Not Yet Implemented |
Coq | 8.17.0 | INRIA | OCaml | Yes | Yes | Yes | Yes | Yes | Yes |
F* | repository | Microsoft Research and INRIA | F* | Yes | Yes | No | Yes | Yes^{[3]} | Yes |
HOL Light | repository | John Harrison | OCaml | Yes | No | Yes | Yes | No | No |
HOL4 | Kananaskis-13 (or repo) | Michael Norrish, Konrad Slind, and others | Standard ML | Yes | No | Yes | Yes | No | Yes |
Idris | 2 0.6.0. | Edwin Brady | Idris | Yes | Yes | Yes | Unknown | Partial | Yes |
Isabelle | Isabelle2021 (February 2021) | Larry Paulson (Cambridge), Tobias Nipkow (München) and Makarius Wenzel | Standard ML, Scala | Yes | No | Yes | Yes | Yes | Yes |
Lean | v4.1.0 (official release) v4.2.0-rc1 (pre-release)^{[4]} | Leonardo de Moura (Microsoft Research) | C++, Lean | Yes | Yes | Yes | Yes | Yes | Yes |
LEGO (not affiliated with Lego) | 1.3.1 | Randy Pollack (Edinburgh) | Standard ML | Yes | Yes | Yes | No | No | No |
Metamath | v0.198^{[5]} | Norman Megill | ANSI C | ||||||
Mizar | 8.1.05 | Białystok University | Free Pascal | Partial | Yes | No | No | No | No |
Nqthm | |||||||||
NuPRL | 5 | Cornell University | Common Lisp | Yes | Yes | Yes | Yes | Unknown | Yes |
PVS | 6.0 | SRI International | Common Lisp | Yes | Yes | No | Yes | No | Unknown |
Twelf | 1.7.1 | Frank Pfenning and Carsten Schürmann | Standard ML | Yes | Yes | Unknown | No | No | Unknown |
- ACL2 – a programming language, a first-order logical theory, and a theorem prover (with both interactive and automatic modes) in the Boyer–Moore tradition.
- Coq – Allows the expression of mathematical assertions, mechanically checks proofs of these assertions, helps to find formal proofs, and extracts a certified program from the constructive proof of its formal specification.
- HOL theorem provers – A family of tools ultimately derived from the LCF theorem prover. In these systems the logical core is a library of their programming language. Theorems represent new elements of the language and can only be introduced via "strategies" which guarantee logical correctness. Strategy composition gives users the ability to produce significant proofs with relatively few interactions with the system. Members of the family include:
- HOL4 – The "primary descendant", still under active development. Support for both Moscow ML and Poly/ML. Has a BSD-style license.
- HOL Light – A thriving "minimalist fork". OCaml based.
- ProofPower – Went proprietary, then returned to open source. Based on Standard ML.
- IMPS, An Interactive Mathematical Proof System.^{[6]}
- Isabelle is an interactive theorem prover, successor of HOL. The main code-base is BSD-licensed, but the Isabelle distribution bundles many add-on tools with different licenses.
- Jape – Java based.
- Lean
- LEGO
- Matita – A light system based on the Calculus of Inductive Constructions.
- MINLOG – A proof assistant based on first-order minimal logic.
- Mizar – A proof assistant based on first-order logic, in a natural deduction style, and Tarski–Grothendieck set theory.
- PhoX – A proof assistant based on higher-order logic which is eXtensible.
- Prototype Verification System (PVS) – a proof language and system based on higher-order logic.
- TPS and ETPS – Interactive theorem provers also based on simply-typed lambda calculus, but based on an independent formulation of the logical theory and independent implementation.
User interfaces
A popular front-end for proof assistants is the Emacs-based Proof General, developed at the University of Edinburgh.
Coq includes CoqIDE, which is based on OCaml/Gtk. Isabelle includes Isabelle/jEdit, which is based on jEdit and the Isabelle/Scala infrastructure for document-oriented proof processing. More recently, Visual Studio Code extensions have been developed for Isabelle by Makarius Wenzel,^{[7]} and for Lean 4 by the leanprover developers.^{[8]}
Formalization extent
Freek Wiedijk has been keeping a ranking of proof assistants by the amount of formalized theorems out of a list of 100 well-known theorems. As of September 2023, only five systems have formalized proofs of more than 70% of the theorems, namely Isabelle, HOL Light, Coq, Lean and Metamath.^{[9]}^{[10]}
Notable formalized proofs
The following is a list of notable proofs that have been formalized within proof assistants.
Theorem | Proof assistant | Year |
---|---|---|
Feit–Thompson theorem^{[11]} | Coq | 2012 |
Fundamental group of the circle^{[12]} | Coq | 2013 |
Polynomial Freiman-Ruzsa conjecture over [math]\displaystyle{ \mathbb F_2 }[/math]^{[13]} | Lean | 2023 |
See also
- Automated theorem proving – Subfield of automated reasoning and mathematical logic
- Computer-assisted proof – Mathematical proof at least partially generated by computer
- Formal verification – Proving or disproving the correctness of certain intended algorithms
- QED manifesto – Proposal for a computer-based database of all mathematical knowledge
- Satisfiability modulo theories – Logical problem studied in computer science
- Prover9 – is an automated theorem prover for first-order and equational logic
Notes
- ↑ Ornes, Stephen (August 27, 2020). "Quanta Magazine – How Close Are Computers to Automating Mathematical Reasoning?". https://www.quantamagazine.org/how-close-are-computers-to-automating-mathematical-reasoning-20200827/.
- ↑ Hunt, Warren; Matt Kaufmann; Robert Bellarmine Krug; J Moore; Eric W. Smith (2005). "Meta Reasoning in ACL2". Theorem Proving in Higher Order Logics. Lecture Notes in Computer Science. 3603. pp. 163–178. doi:10.1007/11541868_11. ISBN 978-3-540-28372-0. http://www.cs.utexas.edu/~moore/publications/meta-05.pdf.
- ↑ Search for "proofs by reflection": arXiv:1803.06547
- ↑ "Lean 4 Releases Page". https://github.com/leanprover/lean4/releases.
- ↑ "Release v0.198 · metamath/Metamath-exe". https://github.com/metamath/metamath-exe/releases/tag/v0.198.
- ↑ Farmer, William M.; Guttman, Joshua D.; Thayer, F. Javier (1993). "IMPS: An interactive mathematical proof system". Journal of Automated Reasoning 11 (2): 213–248. doi:10.1007/BF00881906. https://core.ac.uk/display/23376340. Retrieved 22 January 2020.
- ↑ Wenzel, Makarius. "Isabelle". https://marketplace.visualstudio.com/items?itemName=makarius.isabelle.
- ↑ "VS Code Lean 4". https://github.com/leanprover/vscode-lean4.
- ↑ Wiedijk, Freek (15 September 2023). "Formalizing 100 Theorems". https://www.cs.ru.nl/~freek/100/.
- ↑ Geuvers, Herman (February 2009). "Proof assistants: History, ideas and future". Sādhanā 34 (1): 3–25. doi:10.1007/s12046-009-0001-5. https://www.ias.ac.in/article/fulltext/sadh/034/01/0003-0025.
- ↑ "Feit thomson proved in coq - Microsoft Research Inria Joint Centre". 2016-11-19. http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/.
- ↑ Licata, Daniel R.; Shulman, Michael (2013). "Calculating the Fundamental Group of the Circle in Homotopy Type Theory". 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science. pp. 223–232. doi:10.1109/lics.2013.28. ISBN 978-1-4799-0413-6. https://ieeexplore.ieee.org/document/6571554. Retrieved 2023-12-07.
- ↑ Sloman, Leila (2023-12-06). "'A-Team' of Math Proves a Critical Link Between Addition and Sets" (in en). https://www.quantamagazine.org/a-team-of-math-proves-a-critical-link-between-addition-and-sets-20231206/.
References
- Barendregt, Henk; Geuvers, Herman (2001). "18. Proof-assistants using Dependent Type Systems". in Robinson, Alan J. A.; Voronkov, Andrei. Handbook of Automated Reasoning. 2. Elsevier. pp. 1149–. ISBN 978-0-444-50812-6. http://www.ncc.up.pt/~nam/aulas/0506/t_coq/barendregt01proofassistants.pdf.
- Pfenning, Frank. "17. Logical frameworks". Handbook vol 2 2001. pp. 1065–1148. https://www.cs.cmu.edu/~fp/papers/handbook01.pdf.
- Pfenning, Frank (1996). "The practice of logical frameworks". in Kirchner, H.. Trees in Algebra and Programming – CAAP '96. Lecture Notes in Computer Science. 1059. Springer. pp. 119–134. doi:10.1007/3-540-61064-2_33. ISBN 3-540-61064-2.
- Constable, Robert L. (1998). "X. Types in computer science, philosophy and logic". in Buss, S. R.. Handbook of Proof Theory. Studies in Logic. 137. Elsevier. pp. 683–786. ISBN 978-0-08-053318-6. https://books.google.com/books?id=MfTMDeCq7ukC&pg=PA683.
- Wiedijk, Freek (2005). "The Seventeen Provers of the World". Radboud University Nijmegen. https://www.cs.ru.nl/~freek/comparison/comparison.pdf.
External links
- Theorem Prover Museum
- "Introduction" in Certified Programming with Dependent Types.
- Introduction to the Coq Proof Assistant (with a general introduction to interactive theorem proving)
- Interactive Theorem Proving for Agda Users
- A list of theorem proving tools
- Catalogues
- Digital Math by Category: Tactic Provers
- Automated Deduction Systems and Groups
- Theorem Proving and Automated Reasoning Systems
- Database of Existing Mechanized Reasoning Systems
- NuPRL: Other Systems
- Specific Logical Frameworks and Implementations
- DMOZ: Science: Math: Logic and Foundations: Computational Logic: Logical Frameworks
de:Maschinengestütztes Beweisen
Original source: https://en.wikipedia.org/wiki/Proof assistant.
Read more |