parallelizing an interactive theorem prover
play

Parallelizing an Interactive Theorem Prover Functional Programming - PowerPoint PPT Presentation

Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points Parallelizing an Interactive Theorem Prover Functional Programming and Proofs with ACL2 David L. Rager ragerdl@gmail.com June 17, 2013 1 /


  1. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points Parallelizing an Interactive Theorem Prover Functional Programming and Proofs with ACL2 David L. Rager ragerdl@gmail.com June 17, 2013 1 / 39

  2. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  3. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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, and Rockwell Collins, perhaps Kestrel, and used at other industrial, academic, and government sites “... verified using Formal Methods techniques as specified by the EAL-7 level of the Common Criteria” 3 / 39

  4. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  5. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  6. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  7. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  8. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  9. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  10. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  11. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points Warmup Example Time: 19.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 / 39

  12. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  13. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  14. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  15. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  16. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  17. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  18. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  19. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  20. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  21. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  22. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

  23. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points 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 / 39

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

  25. Introduction Parallelism Primitives Parallelizing ACL2 Evaluate Approach Conclusion Talking Points Overview Parallelism Primitives and Abstractions Goal: Create Lisp and ACL2 primitives and abstractions necessary to parallelize the proof process Results: Created multi-threading interface for Lisp Created futures library on top of this multi-threading interface Formalized speculative spec-mv-let primitive and implemented with futures Spec-mv-let Futures Level of Low-level multi-threading abstraction interface LispWorks CCL SBCL 7 / 39

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