1 A framework for eager encoding Daniel Kroening ETH, Switzerland Ofer Strichman Technion, Israel (Executive summary) (submitted to: Formal Aspects of.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
On Solving Presburger and Linear Arithmetic with SAT Ofer Strichman Carnegie Mellon University.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Technion 1 Generating minimum transitivity constraints in P-time for deciding Equality Logic Ofer Strichman and Mirron Rozanov Technion, Haifa, Israel.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View SAT.
1/30 SAT Solver Changki PSWLAB SAT Solver Daniel Kroening, Ofer Strichman.
SAT and Model Checking. Bounded Model Checking (BMC) A.I. Planning problems: can we reach a desired state in k steps? Verification of safety properties:
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Gaussian Elimination and Simplex.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Plan for today Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Ofer Strichman, Technion 1 Decision Procedures in First Order Logic Part III – Decision Procedures for Equality Logic and Uninterpreted Functions.
1 Deciding separation formulas with SAT Ofer Strichman Sanjit A. Seshia Randal E. Bryant School of Computer Science, Carnegie Mellon University.
Presented by Ed Clarke Slides borrowed from P. Chauhan and C. Bartzis
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
From Chapter 4 Formal Specification using Z David Lightfoot
Technion 1 Generating minimum transitivity constraints in P-time for deciding Equality Logic Ofer Strichman and Mirron Rozanov Technion, Haifa, Israel.
Technion 1 (Yet another) decision procedure for Equality Logic Ofer Strichman and Orly Meir Technion.
1 A propositional world Ofer Strichman School of Computer Science, Carnegie Mellon University.
Ofer Strichman, Technion 1 Decision Procedures in First Order Logic Part II – Equality Logic and Uninterpreted Functions.
On Solving Presburger and Linear Arithmetic with SAT Ofer Strichman Carnegie Mellon University.
Ofer Strichman, Technion Deciding Combined Theories.
Daniel Kroening and Ofer Strichman 1 Decision Procedures in First Order Logic Decision Procedures for Equality Logic.
Daniel Kroening and Ofer Strichman Decision Procedure
SAT Solver Math Foundations of Computer Science. 2 Boolean Expressions  A Boolean expression is a Boolean function  Any Boolean function can be written.
Deciding a Combination of Theories - Decision Procedure - Changki pswlab Combination of Theories Daniel Kroening, Ofer Strichman Presented by Changki.
Binary Decision Diagrams (BDDs)
On Bridging Simulation and Formal Verification Eugene Goldberg Cadence Research Labs (USA) VMCAI-2008, San Francisco, USA.
Quantified Formulas - Decision Procedure Daniel Kroening, Ofer Strichman Presented by Changki Hong 07 NOV 08.
Daniel Kroening and Ofer Strichman 1 Decision Procedures in First Order Logic Decision Procedures for Equality Logic Range Allocation.
Daniel Kroening and Ofer Strichman 1 Decision Proceduresfoe Equality Logic 4 Range Allocation.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
CS6133 Software Specification and Verification
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Nikolaj Bjørner Microsoft Research DTU Winter course January 2 nd 2012 Organized by Flemming Nielson & Hanne Riis Nielson.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding Combined Theories.
AN INTERPOLATING THEOREM PROVER K.L. McMillan Cadence Berkley Labs.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
1/20 Arrays Changki PSWLAB Arrays Daniel Kroening and Ofer Strichman Decision Procedure.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Deciding Combined Theories Presented by Adi Sosnovich Based on presentation from: Decision Procedures An Algorithmic Point of View Daniel Kroening and.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Daniel Kroening and Ofer Strichman 1 Decision Procedures in First Order Logic Decision Procedures for Equality Logic.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Daniel Kroening and Ofer Strichman 1 Decision Procedures for Equality Logic 1.
Decision Procedures in First Order Logic
Gábor Kusper University of Linz RISC Austria
The Propositional Calculus
A theory-based decision heuristic for DPLL(T)
Logical Inference: Through Proof to Truth
Propositional Equivalences
Decision Procedures An Algorithmic Point of View
Presentation transcript:

1 A framework for eager encoding Daniel Kroening ETH, Switzerland Ofer Strichman Technion, Israel (Executive summary) (submitted to: Formal Aspects of Computing)

2 A generic framework for reducing decidable logics to propositional logic (beyond NP). Instantiating the framework for a specific logic L, requires a deductive system for L that meets several criteria.  Linear arithmetic, EUF, arrays etc all have it.

3 A proof rule: A proof step: (Rule, Antecedent, Proposition) Definition (Proof-step Constraint): let A 1 …A k be the Antecedents and p the Proposition of step. Then: Boolean encoding

4 A proof P =(s 1,…, s n ) is a set of Proof Steps,  …in which the Antecedence relation is acyclic The Proof Constraint c(P) induced by P is the conjunction of the constraints induced by its steps: PC(P)PC(P)

5 Propositional skeleton: Theorem 1: For every formula  and any sound proof P,  is satisfiable )  sk Æ c(P) is satisfiable.

6 Complete proofs Definition (Complete proofs): A proof P is called complete with respect to  if

7 Notation: A – assumption, B – a proposition. denotes: P proves B from A. Let  be an unsatisfiable formula Theorem 2: A proof P is complete with respect to  if for every full assignment  TL(  ): Theory Literals corresponding to  Sufficient condition for completeness #1 Not constructive!

8 Projection of a variable x: a set of proof steps that eliminate x and maintains satisfiability. Strong projection of a variable x: a projection of x that maintains : The projected consequences from each minimal unsatisfiable core of literals is unsatisfiable.

9 Consider the formula Example – strong projection Both sub-formulas are unsatisfiable and do not contain x 1. Now strongly project x 1 : U1U1 U2U2

10 Let  C be a conjunction of  ’s literals. A proof construction procedure: eliminate all variables in  C through strong projection. Theorem 3: The constructed proof is ‘complete’ for .

11 Goal: for a given logic L,  Find a strong projection procedure.  Construct P  Generate c(P)  Check  sk Æ c(P)

12  C : x 1 - x 2 < 0, x 1 - x 3 < 0, -x 1 + 2x 3 + x 2 < 0, -x 3 < -1 Example: Disjunctive Linear Arithmetic [S02] A proof P by (Strong) projection: e 1 e 2 e 3 e 4 e 1  e 3  e 5 4. Solve  ’ =  sk Æ c(P) x1:x1: e 2  e 3  e 6 2 x 3 < 0, e5 e5 x 3 + x 2 < 0 e6 e6 e 4  e 5  false x3:x3:

13 What now ? It is left to show a strong projection method for each logic we are interested in integrating. Current eager procedures are far too wasteful. Need to find better ones.

14 Optimizations Optimizations that were previously published in the ‘eager encoding’ series can all be interpreted in this framework.  Conjunction Matrices  Simplifications and early detection Cross-theory learning

15 Cross-theory learning  C (T1):  C (T2): From T1 we learn z 1 = z 2 which we propagate to T2 In T2 we get a contradiction on: z 1 > 2, z 2 =1, z 1 = z 2 This results in a conflict clause: Which represents cross-theory learning

16 Projection (by example) (Starting from a conjunction of literals) Indeed,  x 1  var ( x 4 > x 4 )   ’ = (x 2 > x 3 ) Æ (x 4 > x 4 ) is equisatisfiable to 

17  : ( x 1 - x 2 < 0)  (x 1 - x 3 < 0)  ((-x 1 + 2x 3 + x 2 < 0)  (-x 3 < -1))  c : ( x 1 - x 2 < 0)  (x 1 - x 3 < 0)  (-x 1 + 2x 3 + x 2 < 0) Æ (-x 3 < -1)  : ( x 1, x 2, x 3 ) Choose x 1  : ( x 2, x 3 ) Strong-project: P ’={(R, (2 x 3 · 0), { ( x 1 - x 2 < 0), (-x 1 + 2x 3 + x 2 < 0)}, (R, (x 2 + x 3 · 0), { ( x 1 - x 2 < 0), (-x 1 + 2x 3 + x 2 < 0)}}  c : (2 x 3 · 0)  (x 2 + x 3 · 0)  (-x 3 < -1)

18 Example c(step):= e(x=5) Æ e(:x¸ 0) ! e(:5 ¸ 0) A new variable

19 Prove validity of x  5 Ç x ¸ 0 by using atoms only Example

20 Example (cont’d) :  sk Æ c(P’) is unsatisfiable hence  is valid

21  - an unsatisfiable formula. A - the set of minimal assignments that satisfy  sk. A proof P is complete with respect to  if 8  2 A, TL(  ): Theory Literals corresponding to  For a partial assignment  s.t.  ² ,  is minimal if 8v.  nv 2  Sufficient condition for completeness #2

22  - an unsatisfiable formula A - the set of minimal assignments that satisfy  sk. A proof P is complete with respect to  if 8  2 A, for some unsatisfiable core TL uc (  ) µ TL(  ) Sufficient condition for completeness #3

23 Proof-graph of P A A B P proves B using A: A,B: sets of propositions

24