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

โ–ถ
learning to prove theorems via interacting with proof
SMART_READER_LITE
LIVE PREVIEW

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 +


slide-1
SLIDE 1

Learning to Prove Theorems via Interacting with Proof Assistants

Kaiyu Yang, Jia Deng

slide-2
SLIDE 2

Assumptions Conclusion

๐‘œ โˆˆ โ„• 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 โ‡’

Automated Theorem Proving (ATP)

slide-3
SLIDE 3

Automated theorem prover Assumptions Conclusion

๐‘œ โˆˆ โ„• 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 โ‡’

Automated Theorem Proving (ATP)

slide-4
SLIDE 4

Automated theorem prover Proof Assumptions Conclusion

๐‘œ โˆˆ โ„• 1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 โ‡’

Automated Theorem Proving (ATP)

slide-5
SLIDE 5

Computer-aided proofs in math

Automated Theorem Proving (ATP) is Useful for

slide-6
SLIDE 6

Computer-aided proofs in math Software verification

Automated Theorem Proving (ATP) is Useful for

slide-7
SLIDE 7

Computer-aided proofs in math Hardware design Software verification

Automated Theorem Proving (ATP) is Useful for

slide-8
SLIDE 8

Computer-aided proofs in math Hardware design Software verification Cyber-physical systems

Automated Theorem Proving (ATP) is Useful for

slide-9
SLIDE 9

Drawbacks of State-of-the-art ATP

Conjunctive normal forms (CNFs)

1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ

Theorem

  • Prove by resolution
slide-10
SLIDE 10

Drawbacks of State-of-the-art ATP

Conjunctive normal forms (CNFs)

1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘žโ‹ยฌ๐‘ โ‹๐‘ก

Theorem

  • Prove by resolution
slide-11
SLIDE 11

Drawbacks of State-of-the-art ATP

Conjunctive normal forms (CNFs)

1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘žโ‹ยฌ๐‘ โ‹๐‘ก โ€ฆ

Theorem

  • Prove by resolution
slide-12
SLIDE 12
  • The CNF representation
  • Long and incomprehensible even for simple math equations
  • Unsuitable for human-like high-level reasoning

Drawbacks of State-of-the-art ATP

Conjunctive normal forms (CNFs)

1 + 2 + โ‹ฏ + ๐‘œ = ๐‘œ + 1 ๐‘œ 2 ๐‘žโ‹ยฌ๐‘Ÿโ‹ยฌ๐‘ โ‹๐‘ก ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘Ÿ ยฌ๐‘ฆโ‹๐‘งโ‹๐‘จโ‹๐‘žโ‹ยฌ๐‘ โ‹๐‘ก โ€ฆ

Theorem

slide-13
SLIDE 13

Interactive Theorem Proving

Human Proof assistant

slide-14
SLIDE 14

assumptions conclusion goal

Interactive Theorem Proving

Proof assistant Human

slide-15
SLIDE 15

assumptions conclusion goal tactic

Interactive Theorem Proving

Proof assistant Human

slide-16
SLIDE 16

Interactive Theorem Proving

Proof assistant Human

slide-17
SLIDE 17

Interactive Theorem Proving

Proof assistant Human

slide-18
SLIDE 18

Interactive Theorem Proving

Proof assistant Human

slide-19
SLIDE 19

Interactive Theorem Proving

Proof assistant

Labor-intensive, requires extensive training

Human

slide-20
SLIDE 20

Interactive Theorem Proving

Proof assistant Agent Human

slide-21
SLIDE 21
  • Tool for interacting with the Coq proof assistant
  • 71K human-written proofs, 123 Coq projects
  • Diverse domains
  • math, software, hardware, etc.

[Barras et al. 1997]

CoqGym: Dataset and Learning Environment

slide-22
SLIDE 22
  • Tool for interacting with the Coq proof assistant
  • 71K human-written proofs, 123 Coq projects
  • Diverse domains
  • math, software, hardware, etc.
  • Structured data
  • Proof trees
  • Abstract syntax trees

Proof tree

[Barras et al. 1997]

CoqGym: Dataset and Learning Environment

slide-23
SLIDE 23

Tactic

ASTactic: Tactic Generation with Deep Learning

๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™ Proof goal

slide-24
SLIDE 24

ASTactic: Tactic Generation with Deep Learning

Proof goal Abstract syntax trees (ASTs) ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™

slide-25
SLIDE 25

Proof goal Abstract syntax trees (ASTs) ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™

ASTactic: Tactic Generation with Deep Learning

Feature vectors

TreeLSTM encoder [Tai et al. 2015]

slide-26
SLIDE 26

decoder Tactic AST

ASTactic can augment state-of-the-art ATP systems [Czajka and Kaliszyk, 2018] to prove more theorems

ASTactic: Tactic Generation with Deep Learning

Proof goal Abstract syntax trees (ASTs) ๐‘œ, ๐‘™ โˆˆ โ„• ๐‘œ = 2๐‘™ ๐‘œ โ‰ฅ ๐‘™ Feature vectors

TreeLSTM encoder [Tai et al. 2015]

slide-27
SLIDE 27
  • 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)

Related Work

Main differences:

  • Our dataset is larger covers more diverse domains.
  • Our model is more flexible, generating tactics in the form of ASTs.
slide-28
SLIDE 28

Poster today @ Pacific Ballroom #247 Code: https://github.com/princeton-vl/CoqGym

Learning to Prove Theorems via Interacting with Proof Assistants

Kaiyu Yang, Jia Deng