Jump to content

Archive:Proof assistant: Difference between revisions

From IdeaWazaWiki
Amend hatnote (WP:HATNOTE)
Coq -> Rocq
Line 8: Line 8:
{{more footnotes|date=November 2018}}
{{more footnotes|date=November 2018}}


[[Image:CoqProofOfDecidablityOfEqualityOnNaturalNumbers.png|thumb|upright=1.7|An interactive proof session in CoqIDE, showing the proof script on the left and the proof state on the right]]
[[Image:CoqProofOfDecidablityOfEqualityOnNaturalNumbers.png|thumb|upright=1.7|An interactive proof session in RocqIDE, showing the proof script on the left and the proof state on the right]]
In [[computer science]] and [[mathematical logic]], a '''proof assistant''' or '''interactive theorem prover''' is a software tool to assist with the development of [[formal proof]]s by human–machine collaboration. This involves some sort of interactive proof editor, or other [[User interface|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]].
In [[computer science]] and [[mathematical logic]], a '''proof assistant''' or '''interactive theorem prover''' is a software tool to assist with the development of [[formal proof]]s by human–machine collaboration. This involves some sort of interactive proof editor, or other [[User interface|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]].


Line 87: Line 87:
A popular front-end for proof assistants is the [[Emacs]]-based Proof General, developed at the [[University of Edinburgh]].
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 (programming language)|Scala]] infrastructure for document-oriented proof processing. More recently, [[Visual Studio Code]] extensions have been developed for Coq,<ref>{{Cite web|url=https://github.com/coq-community/vscoq|title=coq-community/vscoq|date=July 29, 2024|via=GitHub}}</ref> Isabelle by Makarius Wenzel,<ref>{{cite web |last1=Wenzel |first1=Makarius |title=Isabelle |url=https://marketplace.visualstudio.com/items?itemName=makarius.isabelle |access-date=2 November 2019}}</ref> and for Lean 4 by the leanprover developers.<ref>{{cite web |title=VS Code Lean 4 |url=https://github.com/leanprover/vscode-lean4 |website=GitHub |access-date=15 October 2023}}</ref>
Rocq includes RocqIDE, which is based on OCaml/[[Gtk]]. Isabelle includes Isabelle/jEdit, which is based on [[jEdit]] and the Isabelle/[[Scala (programming language)|Scala]] infrastructure for document-oriented proof processing. More recently, [[Visual Studio Code]] extensions have been developed for Rocq,<ref>{{Cite web|url=https://github.com/coq-community/vscoq|title=coq-community/vscoq|date=July 29, 2024|via=GitHub}}</ref> Isabelle by Makarius Wenzel,<ref>{{cite web |last1=Wenzel |first1=Makarius |title=Isabelle |url=https://marketplace.visualstudio.com/items?itemName=makarius.isabelle |access-date=2 November 2019}}</ref> and for Lean 4 by the leanprover developers.<ref>{{cite web |title=VS Code Lean 4 |url=https://github.com/leanprover/vscode-lean4 |website=GitHub |access-date=15 October 2023}}</ref>


== Formalization extent ==
== Formalization extent ==
Line 103: Line 103:
! scope="col" | Year
! scope="col" | Year
|-
|-
| [[Four color theorem]]<ref>{{Citation |last=Gonthier |first=Georges |author-link=Georges Gonthier |title=Formal Proof—The Four-Color Theorem |journal=[[Notices of the American Mathematical Society]] |volume=55 |year=2008 |url=https://www.ams.org/notices/200811/tx081101382p.pdf |archive-url=https://web.archive.org/web/20110805094909/http://www.ams.org/notices/200811/tx081101382p.pdf |archive-date=2011-08-05 |url-status=live |issue=11 |pages=1382–1393 |mr=2463991 }}</ref> || Coq || 2005
| [[Four color theorem]]<ref>{{Citation |last=Gonthier |first=Georges |author-link=Georges Gonthier |title=Formal Proof—The Four-Color Theorem |journal=[[Notices of the American Mathematical Society]] |volume=55 |year=2008 |url=https://www.ams.org/notices/200811/tx081101382p.pdf |archive-url=https://web.archive.org/web/20110805094909/http://www.ams.org/notices/200811/tx081101382p.pdf |archive-date=2011-08-05 |url-status=live |issue=11 |pages=1382–1393 |mr=2463991 }}</ref> || Rocq || 2005
|-
|-
| [[Feit–Thompson theorem]]<ref>{{Cite web |date=2016-11-19 |title=Feit thomson proved in coq - Microsoft Research Inria Joint Centre |url=http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/ |access-date=2023-12-07 |archive-url=https://web.archive.org/web/20161119094854/http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/ |archive-date=2016-11-19 }}</ref> || Coq || 2012
| [[Feit–Thompson theorem]]<ref>{{Cite web |date=2016-11-19 |title=Feit thomson proved in coq - Microsoft Research Inria Joint Centre |url=http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/ |access-date=2023-12-07 |archive-url=https://web.archive.org/web/20161119094854/http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/ |archive-date=2016-11-19 }}</ref> || Rocq || 2012
|-
|-
| [[Fundamental group]] of the [[circle]]<ref>{{Cite book |title=2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science |doi=10.1109/lics.2013.28 |date=2013 |last1=Licata |first1=Daniel R. |last2=Shulman |first2=Michael |chapter=Calculating the Fundamental Group of the Circle in Homotopy Type Theory |pages=223–232 |arxiv=1301.3443 |isbn=978-1-4799-0413-6 |s2cid=5661377 }}</ref> || Coq || 2013
| [[Fundamental group]] of the [[circle]]<ref>{{Cite book |title=2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science |doi=10.1109/lics.2013.28 |date=2013 |last1=Licata |first1=Daniel R. |last2=Shulman |first2=Michael |chapter=Calculating the Fundamental Group of the Circle in Homotopy Type Theory |pages=223–232 |arxiv=1301.3443 |isbn=978-1-4799-0413-6 |s2cid=5661377 }}</ref> || Rocq || 2013
|-
|-
|[[Erdős–Graham problem]]<ref>{{Cite web |date=2022-03-11 |title=Math Problem 3,500 Years In The Making Finally Gets A Solution |url=https://www.iflscience.com/math-problem-3500-years-in-the-making-finally-gets-a-solution-62925 |access-date=2024-02-09 |website=IFLScience |language=en}}</ref><ref>{{Cite arXiv |last=Avigad |first=Jeremy |date=2023 |class=math.HO |title=Mathematics and the formal turn |eprint=2311.00007 }}</ref>
|[[Erdős–Graham problem]]<ref>{{Cite web |date=2022-03-11 |title=Math Problem 3,500 Years In The Making Finally Gets A Solution |url=https://www.iflscience.com/math-problem-3500-years-in-the-making-finally-gets-a-solution-62925 |access-date=2024-02-09 |website=IFLScience |language=en}}</ref><ref>{{Cite arXiv |last=Avigad |first=Jeremy |date=2023 |class=math.HO |title=Mathematics and the formal turn |eprint=2311.00007 }}</ref>
Line 116: Line 116:
|-
|-
|[[Busy Beaver|BB(5)]] = 47,176,870<ref>{{Cite web |date=2024-07-02 |title=We have proved "BB(5) = 47,176,870" |url=https://discuss.bbchallenge.org/t/july-2nd-2024-we-have-proved-bb-5-47-176-870/237 |access-date=2024-07-09 |website=The Busy Beaver Challenge |language=en}}</ref>
|[[Busy Beaver|BB(5)]] = 47,176,870<ref>{{Cite web |date=2024-07-02 |title=We have proved "BB(5) = 47,176,870" |url=https://discuss.bbchallenge.org/t/july-2nd-2024-we-have-proved-bb-5-47-176-870/237 |access-date=2024-07-09 |website=The Busy Beaver Challenge |language=en}}</ref>
|Coq
|Rocq
|2024
|2024
|}
|}

Revision as of 12:08, 17 September 2025

Template:Short description Template:Hatnote group Template:Distinguish Template:Missing information Template:More footnotes

An interactive proof session in RocqIDE, showing the proof script on the left and the proof state on the right

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]

Template:AnchorSystem comparison

Template:See also

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, J Strother Moore Common Lisp No Template:N/a No Yes Yes[2] Template:N/a
Agda 2.6.4.3[3] Ulf Norell, Nils Anders Danielsson, and Andreas Abel (Chalmers and Gothenburg)[3] Haskell[3] Yes
Template:Cn
Yes
[4]
Yes
Template:Cn
No
Template:Cn
Partial
Template:Cn
Template:N/a
Template:Cn
Albatross 0.4 Helmut Brandl OCaml Yes No Yes Yes Template:Unknown Template:Not yet implemented
F* repository Microsoft Research and INRIA F* Yes Yes No Yes Yes[5] 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 Template:Unknown Partial Yes
Isabelle Isabelle2024 (May 2024) Larry Paulson (Cambridge), Tobias Nipkow (München) and Makarius Wenzel Standard ML, Scala Yes No Yes Yes Yes Yes
Lean v4.7.0[6] Leonardo de Moura (Microsoft Research) C++, Lean Yes Yes Yes Yes Yes Yes
LEGO 1.3.1 Randy Pollack (Edinburgh) Standard ML Yes Yes Yes No No No
Metamath v0.198[7] Norman Megill ANSI C
Mizar 8.1.11 Białystok University Free Pascal Partial Yes No No No No
Nqthm
NuPRL 5 Cornell University Common Lisp Yes Yes Yes Yes Template:Unknown Yes
PVS 6.0 SRI International Common Lisp Yes Yes No Yes No Template:Unknown
Rocq 9.0 INRIA OCaml Yes Yes Yes Yes Yes Yes
Twelf 1.7.1 Frank Pfenning, Carsten Schürmann Standard ML Yes Yes Template:Unknown No No Template: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.
  • Rocq (former name: 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:
  • IMPS, An Interactive Mathematical Proof System.[8]
  • 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.
  • Theorem Proving System (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.

Rocq includes RocqIDE, 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 Rocq,[9] Isabelle by Makarius Wenzel,[10] and for Lean 4 by the leanprover developers.[11]

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, Rocq, Lean, and Metamath.[12][13]

Notable formalized proofs

Template:See also

The following is a list of notable proofs that have been formalized within proof assistants.

Theorem Proof assistant Year
Four color theorem[14] Rocq 2005
Feit–Thompson theorem[15] Rocq 2012
Fundamental group of the circle[16] Rocq 2013
Erdős–Graham problem[17][18] Lean 2022
Polynomial Freiman-Ruzsa conjecture over <math>\mathbb F_2</math>[19] Lean 2023
BB(5) = 47,176,870[20] Rocq 2024

See also

Notes

  1. ↑ 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/. 
  2. ↑ Hunt, Warren; Kaufmann, Matt; Krug, Robert Bellarmine; Moore, J.; Smith, Eric W. (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. 
  3. ↑ 3.0 3.1 3.2 "agda/agda: Agda is a dependently typed programming language / interactive theorem prover.". https://github.com/agda/agda. 
  4. ↑ "The Agda Wiki". https://wiki.portal.chalmers.se/agda/pmwiki.php. 
  5. ↑ Search for "proofs by reflection": Template:ArXiv
  6. ↑ "Lean 4 Releases Page". https://github.com/leanprover/lean4/releases. 
  7. ↑ "Release v0.198 metamath/Metamath-exe". https://github.com/metamath/metamath-exe/releases/tag/v0.198. 
  8. ↑ 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 on 22 January 2020. 
  9. ↑ "coq-community/vscoq". July 29, 2024. https://github.com/coq-community/vscoq. 
  10. ↑ Wenzel, Makarius. "Isabelle". https://marketplace.visualstudio.com/items?itemName=makarius.isabelle. 
  11. ↑ "VS Code Lean 4". https://github.com/leanprover/vscode-lean4. 
  12. ↑ Wiedijk, Freek (15 September 2023). "Formalizing 100 Theorems". https://www.cs.ru.nl/~freek/100/. 
  13. ↑ 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. 
  14. ↑ Gonthier, Georges (2008), "Formal Proof—The Four-Color Theorem", Notices of the American Mathematical Society 55 (11), https://www.ams.org/notices/200811/tx081101382p.pdf 
  15. ↑ "Feit thomson proved in coq - Microsoft Research Inria Joint Centre". 2016-11-19. http://www.msr-inria.fr/news/feit-thomson-proved-in-coq/. 
  16. ↑ 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. 
  17. ↑ "Math Problem 3,500 Years In The Making Finally Gets A Solution" (in en). 2022-03-11. https://www.iflscience.com/math-problem-3500-years-in-the-making-finally-gets-a-solution-62925. 
  18. ↑ Template:Cite arXiv
  19. ↑ 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/. 
  20. ↑ "We have proved "BB(5) = 47,176,870"" (in en). 2024-07-02. https://discuss.bbchallenge.org/t/july-2nd-2024-we-have-proved-bb-5-47-176-870/237. 

References

Template:External links

Catalogues

de:Maschinengestütztes Beweisen