learning to prove theorems via interacting with proof
play

Learning to Prove Theorems via Interacting with Proof Assistants - PowerPoint PPT Presentation

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. Learning to Prove Theorems via Interacting with Proof Assistants Kaiyu Yang, Jia Deng

  2. Automated Theorem Proving (ATP) 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ โ‡’ ๐‘œ โˆˆ โ„• 2 Assumptions Conclusion

  3. Automated Theorem Proving (ATP) 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ โ‡’ ๐‘œ โˆˆ โ„• 2 Assumptions Conclusion Automated theorem prover

  4. Automated Theorem Proving (ATP) 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ โ‡’ ๐‘œ โˆˆ โ„• 2 Assumptions Conclusion Automated theorem prover Proof

  5. Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math

  6. Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification

  7. Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification Hardware design

  8. Automated Theorem Proving (ATP) is Useful for Computer-aided proofs in math Software verification Cyber-physical systems Hardware design

  9. Drawbacks of State-of-the-art ATP โ€ข Prove by resolution ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ Theorem Conjunctive normal forms (CNFs)

  10. Drawbacks of State-of-the-art ATP โ€ข Prove by resolution ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘žโ‹ยฌ๐‘ โ‹๐‘ก Theorem Conjunctive normal forms (CNFs)

  11. Drawbacks of State-of-the-art ATP โ€ข Prove by resolution ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘žโ‹ยฌ๐‘ โ‹๐‘ก โ€ฆ Theorem Conjunctive normal forms (CNFs)

  12. 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)

  13. Interactive Theorem Proving Human Proof assistant

  14. Interactive Theorem Proving assumptions goal conclusion Human Proof assistant

  15. Interactive Theorem Proving assumptions goal conclusion tactic Human Proof assistant

  16. Interactive Theorem Proving Human Proof assistant

  17. Interactive Theorem Proving Human Proof assistant

  18. Interactive Theorem Proving Human Proof assistant

  19. Interactive Theorem Proving Human Proof assistant Labor-intensive, requires extensive training

  20. Interactive Theorem Proving Human Proof assistant Agent

  21. 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.

  22. 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

  23. ASTactic: Tactic Generation with Deep Learning ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™ Proof goal Tactic

  24. ASTactic: Tactic Generation with Deep Learning ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™ Proof goal Abstract syntax trees (ASTs)

  25. ASTactic: Tactic Generation with Deep Learning TreeLSTM encoder [Tai et al. 2015] ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™ Proof goal Feature vectors Abstract syntax trees (ASTs)

  26. 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

  27. 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.

  28. 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