a parallelized theorem prover for interactive theorem
play

A Parallelized Theorem Prover for Interactive Theorem Proving David - PowerPoint PPT Presentation

Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion A Parallelized Theorem Prover for Interactive Theorem Proving David L. Rager, Warren A. Hunt Jr., and Matt Kaufmann ragerdl@defthm.com, hunt@cs.utexas.edu,


  1. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion A Parallelized Theorem Prover for Interactive Theorem Proving David L. Rager, Warren A. Hunt Jr., and Matt Kaufmann ragerdl@defthm.com, hunt@cs.utexas.edu, kaufmann@cs.utexas.edu July 26, 2013 1 / 26

  2. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Project Goals Add parallelism primitives to formal language Parallelize main ACL2 proof process Provide proof debugging feedback more quickly Reduce time required to replay proofs 2 / 26

  3. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Introduction to ACL2 Functional programming language Theorem Prover is written in this programming language Automated theorem prover for first-order logic with induction Used by AMD, Centaur Technologies, IBM, Intel, Kestrel Institute, Rockwell Collins and other industrial, academic, and government sites “... verified using Formal Methods techniques as specified by the EAL-7 level of the Common Criteria” 3 / 26

  4. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Subgoal 1'' (2 sec) 4 / 26

  5. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 0.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  6. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 2.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  7. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 9.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  8. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 0.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  9. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 13.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  10. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 4.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  11. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 9.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  12. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 2 1.0 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished 4 / 26

  13. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 0.0 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  14. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 0.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  15. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 2.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  16. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 3.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  17. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 8.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  18. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 9.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  19. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 0.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  20. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 2.0 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? 5 / 26

  21. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 1 2.0 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? Can first subgoal failure provide feedback sooner with parallel execution? 5 / 26

  22. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 13.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? Can first subgoal failure provide feedback sooner with parallel execution? 5 / 26

  23. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Warmup Example Time: 2.1 sec Goal (2 sec) Subgoal 2 (7 sec) Subgoal 1 (1 sec) Subgoal 2.2 (1 sec) Subgoal 2.1 (3 sec) Subgoal 1' (5 sec) Legend pending Subgoal 1'' (2 sec) unstarted active finished Can we make this proof go faster with parallel execution? Can first subgoal failure provide feedback sooner with parallel execution? 5 / 26

  24. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Key Results Integrated parallelism primitives into the logic (and programming language) Many single-threaded features now thread-safe Use primitives to run theorem prover in parallel Created a robust implementation 99.9% of the 80,000 theorem regression suite passes 5.1x avg. speedup for 200 longest running theorems (32 cores) Some theorems obtain a ∼ 25.7x speedup At least a couple of users using subgoal-level parallelism on a daily basis 6 / 26

  25. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Related Work Many prior multi-threading primitives for Lisp Multi-lisp, Parallel Lisp, Queue-based Multi-processing Lisp Not embedded in logic of a theorem prover Process-level parallelism: ACL2, SiCoTHEO, Isabelle/HOL Theorem-level parallelism: Nqthm and Isabelle/HOL Proof-checking parallelism: Isabelle/HOL We provide a stack of primitives embedded in the logic for an industrial-grade theorem prover, and we use these primitives to improve the interactive user’s experience by automatically attempting the proofs of subgoals in parallel. 7 / 26

  26. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Outline Introduction 1 Parallelism Primitives 2 Parallelizing ACL2 3 Evaluate Approach 4 Conclusion 5 8 / 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend