Learning to Prove Theorems via Interacting with Proof Assistants Kaiyu Yang, Jia Deng
Automated Theorem Proving (ATP) 1 + 2 + β― + π = π + 1 π β π β β 2 Assumptions Conclusion
Automated Theorem Proving (ATP) 1 + 2 + β― + π = π + 1 π β π β β 2 Assumptions Conclusion Automated theorem prover
Automated Theorem Proving (ATP) 1 + 2 + β― + π = π + 1 π β π β β 2 Assumptions Conclusion Automated theorem prover Proof
Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math
Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification
Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification Hardware design
Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification Cyber-physical systems Hardware design
Drawbacks of State-of-the-art ATP β’ Prove by resolution πβΒ¬πβΒ¬π βπ‘ 1 + 2 + β― + π = π + 1 π 2 Β¬π¦βπ§βπ¨βπ Theorem Conjunctive normal forms (CNFs)
Drawbacks of State-of-the-art ATP β’ Prove by resolution πβΒ¬πβΒ¬π βπ‘ 1 + 2 + β― + π = π + 1 π 2 Β¬π¦βπ§βπ¨βπ Β¬π¦βπ§βπ¨βπβΒ¬π βπ‘ Theorem Conjunctive normal forms (CNFs)
Drawbacks of State-of-the-art ATP β’ Prove by resolution πβΒ¬πβΒ¬π βπ‘ 1 + 2 + β― + π = π + 1 π 2 Β¬π¦βπ§βπ¨βπ Β¬π¦βπ§βπ¨βπβΒ¬π βπ‘ β¦ Theorem Conjunctive normal forms (CNFs)
Drawbacks of State-of-the-art ATP β’ The CNF representation β’ Long and incomprehensible even for simple math equations β’ Unsuitable for human-like high-level reasoning πβΒ¬πβΒ¬π βπ‘ 1 + 2 + β― + π = π + 1 π 2 Β¬π¦βπ§βπ¨βπ Β¬π¦βπ§βπ¨βπβΒ¬π βπ‘ β¦ Theorem Conjunctive normal forms (CNFs)
Interactive Theorem Proving Human Proof assistant
Interactive Theorem Proving assumptions goal conclusion Human Proof assistant
Interactive Theorem Proving assumptions goal conclusion tactic Human Proof assistant
Interactive Theorem Proving Human Proof assistant
Interactive Theorem Proving Human Proof assistant
Interactive Theorem Proving Human Proof assistant
Interactive Theorem Proving Human Proof assistant Labor-intensive, requires extensive training
Interactive Theorem Proving Human Proof assistant Agent
CoqGym: Dataset and Learning Environment β’ Tool for interacting with the Coq proof assistant [Barras et al. 1997] β’ 71K human-written proofs, 123 Coq projects β’ Diverse domains β’ math, software, hardware, etc.
CoqGym: Dataset and Learning Environment β’ Tool for interacting with the Coq proof assistant [Barras et al. 1997] β’ 71K human-written proofs, 123 Coq projects β’ Diverse domains β’ math, software, hardware, etc. β’ Structured data β’ Proof trees β’ Abstract syntax trees Proof tree
ASTactic: Tactic Generation with Deep Learning π, π β β π = 2π π β₯ π Proof goal Tactic
ASTactic: Tactic Generation with Deep Learning π, π β β π = 2π π β₯ π Proof goal Abstract syntax trees (ASTs)
ASTactic: Tactic Generation with Deep Learning TreeLSTM encoder [Tai et al. 2015] π, π β β π = 2π π β₯ π Proof goal Feature vectors Abstract syntax trees (ASTs)
ASTactic: Tactic Generation with Deep Learning TreeLSTM encoder [Tai et al. 2015] decoder π, π β β π = 2π π β₯ π Proof goal Feature vectors Tactic AST Abstract syntax trees (ASTs) ASTactic can augment state-of-the-art ATP systems [Czajka and Kaliszyk, 2018] to prove more theorems
Related Work β’ CoqHammer [Czajka and Kaliszyk, 2018] β’ SEPIA [Gransden et al. 2015] β’ TacticToe [Gauthier et al. 2018] β’ FastSMT [Balunovic et al. 2018] β’ GamePad [Huang et al. 2019] β’ HOList [Bansal et al. 2019] (concurrent work at ICML19) Main differences: β’ Our dataset is larger covers more diverse domains. β’ Our model is more flexible, generating tactics in the form of ASTs.
Learning to Prove Theorems via Interacting with Proof Assistants Kaiyu Yang, Jia Deng Poster today @ Pacific Ballroom #247 Code: https://github.com/princeton-vl/CoqGym
Recommend
More recommend