Comparing Proof Systems for Linear Real Arithmetic at University of Iowa

university of iowa n.w
1 / 37
Embed
Share

"Explore the research conducted at University of Iowa and New York University on comparing proof systems for linear real arithmetic using LFSC. Discover the motivation behind the work, challenges in proof checking, and the use of LFSC for certification of QF_LRA proofs. Dive into the detailed overview of the experimentations with QF_LRA proof systems and the importance of certifying proofs in academic research."

  • Research
  • Proof Systems
  • Linear Real Arithmetic
  • University of Iowa
  • LFSC

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. University of Iowa New York University Comparing Proof Systems for Linear Real Arithmetic Using LFSC LFSC Andrew Reynolds September 17, 2010 1 MVD 2010

  2. University of Iowa Acknowledgements Acknowledgements New York University University of Iowa Andrew Reynolds, Cesare Tinelli, Aaron Stump New York University Liana Hadarean, Yeting Ge, Clark Barrett 2 MVD 2010

  3. University of Iowa Motivation for this work Motivation for this work New York University SMT solvers are difficult to verify Code may be complex (10k+ loc) Code is subject to change Alternatively, solvers can justify answers with proofs There is need for third party certification Must ensure that proof is valid 3 MVD 2010

  4. University of Iowa Solver sAnswers Answers Certifying SMT Certifying SMTSolver s New York University For satisfiable : Provide a satisfying assignment For unsatisfiable : Provide a proof of unsatisfiability 4 MVD 2010

  5. University of Iowa Architecture Architecture New York University Solver sat unsat Assignment Proof of Unsatisfiability ..... Proof Checker Proof Valid Proof Invalid 5 MVD 2010

  6. University of Iowa Proof Checking: Challenges Proof Checking: Challenges New York University Flexibility Different solvers have different needs Solvers can change over time Many different theories Speed Practical for use with solvers Measured time against solving time 6 MVD 2010

  7. University of Iowa Overview Overview New York University Certification of proofs in QF_LRA Use LFSC for proof checking Experiments with QF_LRA proof systems Examine declarative vs computational Use CVC3 for proof generation 7 MVD 2010

  8. University of Iowa Proof Checking in LFSC Proof Checking in LFSC New York University Edinburgh Logical Framework (LF) [Harper et al 1993] Based on type theory Meta framework for defining logical systems LF with side conditions (LFSC) [Stump et al 2008] Meta-logical proof checker Side Conditions Support for Integer, Rational arithmetic If proof term type-checks, Then proof is considered valid 8 MVD 2010

  9. University of Iowa Example proof rule Example proof rule New York University (declare and_intro (! f1 formula (! f2 formula (! p1 (proof f1) (! p2 (proof f2) (proof (and f1 f2))))))) 9 MVD 2010

  10. University of Iowa Proof rule with side condition Proof rule with side condition New York University (declare ineq_contradiction (! p poly (! p1 (proof (> p 0)) (! s (^ (is_positive (simplify p)) ff) false)))) 10 MVD 2010

  11. University of Iowa Proof rule with side condition Proof rule with side condition New York University Side conditions Written in simply typed functional language Most are concise (less than 10 loc) 11 MVD 2010

  12. University of Iowa Proof rule with side condition Proof rule with side condition New York University (program simplify ((p poly)) real (match p ((poly c' l') (match (is_zero l') (tt c') (ff fail))))) (^ (is_positive (simplify p)) ff) 12 MVD 2010

  13. University of Iowa Why side conditions? Why side conditions? New York University Mirror high-performance solver inferences More Efficient Smaller Proof Size Faster Checking time Amount can be fine tuned Fully Declarative Fully Computational 13 MVD 2010

  14. University of Iowa LFSC Optimizations LFSC Optimizations [Oe et al 2009] New York University [Oe et al 2009] Incremental Checking Proof checking occurs while reading proof Deferred Resolution Efficient to check boolean inferences Compiled Side Condition Code Compiled instead of interpreted code 14 MVD 2010

  15. University of Iowa Contributions of this work Contributions of this work [2010] New York University [2010] Demonstrate capabilities of LFSC Flexibility in: Handling new logic (QF_LRA) Defining multiple proof systems for this logic Developed LFSC signatures for QF_LRA Instrumented CVC3 to produce proofs in system Comparative analysis 15 MVD 2010

  16. University of Iowa CVC3 CVC3 New York University Refutation based prover for SMT Support for many different logics Integer/Real, Arrays, Data types, etc. Support for quantifiers Proof generation Native format 16 MVD 2010

  17. University of Iowa CVC3 to LFSC proofs CVC3 to LFSC proofs New York University CVC3 unsat sat CVC3 Proof of Unsatisfiability .. LFSC Proof of Unsatisfiability LFSC Did not modify CVC3 core Translated CVC3 Proofs to LFSC Opportunity to test different translations .. 17 MVD 2010

  18. University of Iowa Approaches Approaches New York University Literal translation (Lit) Mimics the structure of CVC3 proofs Liberal translation (Lib) Compacts portions of proof to side conditions Limits compaction to QF_LRA theory lemmas Aggressive Liberal translation (Lib-A) Extends compaction to equality reasoning proof fragments Declarative Computational Lit Lib Lib-A 18 MVD 2010

  19. University of Iowa CVC3 Proofs CVC3 Proofs New York University Proof derives false from: Input formulas Theory Lemmas i.e. ( x+1 > x ) Proof Rules Many rules (100+) Rewrite axioms Mostly Declarative 19 MVD 2010

  20. University of Iowa Compaction from CVC3 to LFSC Compaction from CVC3 to LFSC New York University Theory lemmas in QF_LRA Ex: ( 2x>2y ) ( y>x+5 ) Proof of unsatisfiability from assumptions 20 MVD 2010

  21. University of Iowa Compaction from CVC3 to LFSC Compaction from CVC3 to LFSC New York University Theory lemmas in QF_LRA Ex: ( 2x>2y ) ( y>x+5 ) Can be done by finding set of coefficients 2x > 2y y > x + 5 1 * * x + y > y + x + 5 0 > 5 21 MVD 2010

  22. University of Iowa Compaction from CVC3 to LFSC Compaction from CVC3 to LFSC New York University LFSC proofs use polynomial formulas Ex: Instead of 2x > 2y, (2x 2y) > 0 Proof of theory lemmas are always of the form: Intuition: For each CVC3 rule, determine corresponding coefficient to multiply each premise by to obtain contradictory polynomial cp 22 MVD 2010

  23. University of Iowa Compaction from CVC3 to LFSC Compaction from CVC3 to LFSC New York University CVC3 rules mapped to polynomial operations Applies to all proof rules for theory lemmas However, not applicable to boolean portions Compaction occurs because: Condense redundant operations Eliminate trivial subproofs, such as those involving only rewrite axioms 23 MVD 2010

  24. University of Iowa Proof Compaction Example Proof Compaction Example New York University Theory lemma example: * 1 * 2x > 2y y > x + 5 x + y > y + x + 5 0 > 5 24 MVD 2010

  25. University of Iowa Proof Compaction Proof Compactionstep 1 New York University step 1 Map to operations on polynomials 25 MVD 2010

  26. University of Iowa Proof Compaction Proof Compactionstep 2 New York University step 2 Remove redundant operations 26 MVD 2010

  27. University of Iowa Aggressive Liberal Aggressive Liberal translation translation New York University Attempt to compact all theory inferences When conversion gets stuck, Switch to literal translation Compact Translation Literal Translation 27 MVD 2010

  28. University of Iowa Experimental results Experimental results New York University Tested 201 unsatisfiable QF_LRA/QF_RDL benchmarks Each solved 900s by CVC3 Proof generation 900s Configurations CVC3 native proof (CVC3) Literal (Lit) Liberal (Lib) Aggressive Liberal (Lib-A) 28 MVD 2010

  29. University of Iowa Proof size CVC3 Proof size CVC3 vs vs Lit Lit New York University 29 MVD 2010

  30. University of Iowa Proof size Proof size New York University Lit vsLib Lit vs Lib-A 30 MVD 2010

  31. University of Iowa Proof checking time Proof checking time New York University Lit vs Lib Lit vs Lib-A 31 MVD 2010

  32. University of Iowa Proof checking Proof checking vs vs Solving Solving New York University Solving vs Lit Solving vs Lib 32 MVD 2010

  33. University of Iowa Analysis Analysis New York University Theory content 8.3% on average For theory heavy benchmarks Lib compresses proof sizes 32% Lib-A compresses proofs sizes 35% (1% overhead on non-theory benchmarks) Lib is the most effective method overall with an average compression of 17% 33 MVD 2010

  34. University of Iowa Analysis Analysis continued continued New York University When isolated to theory component Lib compresses proof sizes factor of 5.34 Lib improves proof checking factor of 2.33 Overall, Lib proof checking is factor of 9.4 faster than solving time 34 MVD 2010

  35. University of Iowa Conclusions Conclusions New York University LFSC is a pragmatic approach to proof checking Efficient Checking times fast w.r.t. solving Trustworthy Small/not complex side condition code Clear definition of trusted components Flexible Signature is separate from checker Effective for different proof systems 35 MVD 2010

  36. University of Iowa Future work Future work New York University Integration with CVC4 New decision procedures New logics (arrays etc.) Public release of LFSC Tool for signature creation LFSC proof generation library Interpolant generating proofs 36 MVD 2010

  37. University of Iowa New York University Questions? 37 MVD 2010

Related


More Related Content