Improving Unsatisfiability-based Algorithms for Boolean Optimization

Size: px
Start display at page:

Download "Improving Unsatisfiability-based Algorithms for Boolean Optimization"

Transcription

1 Improving Unsatisfiability-based Algorithms for Boolean Optimization Vasco Manquinho Ruben Martins Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal SAT 2010, Edinburgh 1 / 27

2 Motivation Increasing interest in generalizations of SAT SAT techniques extended for MaxSAT, PBO and WBO Unsatisfiability-based algorithms have been proposed for Boolean Optimization problems very effective for several classes of instances can perform poorly on instances that are easy for classical approaches Integration of procedures in a unique Boolean optimization framework 2 / 27

3 Outline Background MaxSAT, PBO and WBO Algorithmic Solutions Classical Approaches Unsatisfiability-based approaches Improving Unsatisfiability-based algorithms PBO as preprocessing Constraint Branching Experimental Results Conclusions 3 / 27

4 Maximum Satisfiability (MaxSAT) MaxSAT Problem Given a CNF formula ϕ, find an assignment to problem variables that maximizes the number of satisfied clauses in ϕ (or minimizes the number of unsatisfied clauses). Partial MaxSAT Problem Given a conjunction of two CNF formulas ϕ h and ϕ s, find an assignment to problem variables that satisfies all hard clauses (ϕ h ) and maximizes the number of satisfied soft clauses (ϕ s ). 4 / 27

5 Maximum Satisfiability (MaxSAT) Weighted CNF Formula set of weighted clauses weighted clause: pair (ω, c) where ω is a clause and c N is a positive cost of unsatisfying ω Weighted MaxSAT Problem Given a weighted CNF formula ϕ s,c, find an assignment to problem variables that minimizes the total cost of unsatisfied clauses. Weighted Partial MaxSAT Problem Given a weighted CNF formula ϕ s,c and a classical CNF formula ϕ h, find an assignment to problem variables that satisfies all hard clauses (ϕ h ) and minimizes the total cost of unsatisfied soft clauses in ϕ s,c. 5 / 27

6 Pseudo-Boolean Optimization (PBO) Pseudo-Boolean Optimization n minimize c j x j subject to j=1 n a ij l j b i, j=1 l j {x j, x j }, x j {0, 1}, a ij, b i, c j N / 27

7 Weighted Boolean Optimization (WBO) WBO Formula Weighted Boolean Optimization formula is composed of two pseudo-boolean constraint sets (ϕ h, ϕ s ): ϕ h : set of hard pseudo-boolean constraints ϕ s : set of soft weighted pseudo-boolean constraints Soft pseudo-boolean constraint (ω, c): ω: pseudo-boolean constraint there is an integer weight c representing the cost of not satisfying ω WBO Problem Given a WBO formula, find an assignment to problem variables that satisfies all hard constraints (ϕ h ) and minimizes the total cost of unsatisfied soft constraints (ϕ s ). 7 / 27

8 WBO (Example) Weighted Boolean Optimization instance ϕ h = {x 1 + x 2 + x 3 2, 2x 1 + x 2 + x 3 2} ϕ s = {(x 1 + x 2 1, 2), (x 1 + x 3 1, 3)} Assignments that satisfy all hard constraints: (1) x 1 = x 3 = 1 ; x 2 = 0 ; P c i = 3 (2) x 1 = 0 ; x 2 = x 3 = 1 ; P c i = 2 (solution) 8 / 27

9 Encode MaxSAT as WBO For each hard clause (l 1 l 2 l k ) define a hard PB constraint as l 1 + l l k 1 For each weighted soft clause (ω, c) where ω = (l 1 l 2 l k ) define a soft PB constraint as l 1 + l l k 1 with weight c 9 / 27

10 Encode MaxSAT as WBO (Example) Weighted Partial MaxSAT instance ϕ h = {x 1 x 2 x 3, x 2 x 3, x 1 x 3 } ϕ s = {(x 3, 5), (x 1 x 2, 3), (x 1 x 3, 2)} Corresponding WBO instance ϕ h = {x 1 + x 2 + x 3 1, x 2 + x 3 1, x 1 + x 3 1} ϕ s = {(x 3 1, 5), (x 1 + x 2 1, 3), (x 1 + x 3 1, 2)} 10 / 27

11 Encode PBO as WBO For each pseudo-boolean constraint n a ij l j b i add this PB constraint to the set of hard PB constraints For each term c j x j in the objective function add a weighted soft PB constraint of the form ((x j 1), c j ) j=1 11 / 27

12 Encode PBO as WBO (Example) Pseudo-Boolean Optimization instance Corresponding WBO instance minimize 4x 1 + 2x 2 + x 3 subject to 2x 1 + 3x 2 + 5x 3 5 x 1 + x 2 1 x 1 + x 2 + x 3 2 ϕ h = {2x 1 + 3x 2 + 5x 3 5, x 1 + x 2 1, x 1 + x 2 + x 3 2} ϕ s = {(x 1 1, 4), (x 2 1, 2), (x 3 1, 1)} 12 / 27

13 Algorithmic Solutions (Classical Approaches) Branch and bound: e.g. MaxSatz, MiniMaxSAT Iteration of the upper bound: e.g. Pueblo, minisat+ Conversions from one Boolean formalism to another: e.g. minisat+, SAT4J MS 13 / 27

14 Unsatisfiability-based MaxSAT Original algorithm proposed by Fu&Malik [SAT 2006]: (1) Identify unsatisfiable sub-formula of an UNSAT formula SAT solver able to generate an UNSAT core (2) For each unsatisfiable sub-formula ϕ C : Relax all soft clauses in ϕ C by adding a new relaxation variable to each clause Add a new constraint such that at most 1 relaxation variable is assigned value 1 (3) When the resulting CNF formula is SAT, the solver terminates (4) Otherwise, go back to 1 14 / 27

15 Unsatisfiability-based MaxSAT 1 ϕ W ϕ 2 while (ϕ W is UNSAT) 3 do Let ϕ C be an unsatisfiable sub-formula of ϕ W 4 V R 5 for each soft clause ω ϕ C 6 do ω R ω {r} 7 ϕ W ϕ W {ω} {ω R } 8 V R V R {r} 9 ϕ R CNF( r V R r = 1) Equals1 constraint 10 ϕ W ϕ W ϕ R Clauses in ϕ R are declared hard 11 return ϕ number of relaxation variables assigned to 1 15 / 27

16 Unsatisfiability-based Weighted MaxSAT 1 ϕ W ϕ 2 cost lb 0 3 while (ϕ W is UNSAT) 4 do Let ϕ C be an unsatisfiable sub-formula of ϕ W 5 min c min ω ϕc hard(ω) cost(ω) 6 cost lb cost lb + min c 7 V R 8 for each soft clause ω ϕ C 9 do ω R ω {r} 10 cost(ω R ) min c 11 if cost(ω) > min c 12 then ϕ W ϕ W {ω R } 13 cost(ω) cost(ω) min c 14 else ϕ W ϕ W {ω} {ω R } 15 V R V R {r} 16 ϕ W ϕ W CNF( r V R r = 1) 17 return cost lb 16 / 27

17 Unsatisfiability-based Weighted MaxSAT Weighted MaxSAT instance ϕ h = {x 1 x 2 x 3, x 2 x 3, x 1 x 3 } ϕ s = {(x 3, 5), (x 1 x 2, 3), (x 1 x 3, 2)} Unsatisfiable sub-formula: min C = 3 ϕ C = { x 2 x 3, x 1 x 3, (x 3, 5), (x 1 x 2, 3)} Relax (x 1 x 2, 3) to (r 1 x 1 x 2, 3) Split (x 3, 5) into (x 3, 2) and (r 2 x 3, 3) Add CNF(r 1 + r 2 = 1) to ϕ h 17 / 27

18 Unsatisfiability-based Weighted MaxSAT Weighted MaxSAT instance ϕ h = {x 1 x 2 x 3, x 2 x 3, x 1 x 3 } ϕ s = {(x 3, 5), (x 1 x 2, 3), (x 1 x 3, 2)} Results in a new formula: ϕ h = {x 1 x 2 x 3, x 2 x 3, x 1 x 3, CNF(r 1 + r 2 = 1)} ϕ s = {(x 3, 2), (r 2 x 3, 3), (r 1 x 1 x 2, 3), (x 1 x 3, 2)} 17 / 27

19 Algorithm for Weighted Boolean Optimization Follows the same approach as Unsatisfiability-Based Weighted MaxSAT algorithm Instead of SAT solver, uses Pseudo-Boolean solver enhanced with unsatisfiable sub-formula extraction Relaxation of pseudo-boolean constraints a j l j b b r + P a j l j b No need to encode constraint r V R r = 1 into CNF 18 / 27

20 Improving Unsatisfiability-based Algorithms Unsatisfiability-based algorithms search on the lower bound. Sometimes is better to search on the upper bound: (1) PBO as Preprocessing The number of relaxation variables grows significantly at each step: (2) Constraint Branching 19 / 27

21 Encode WBO as PBO For each hard PB constraint n a ij l j b i j=1 add this PB constraint to the set of constraints n For each weighted soft PB constraint a ij l j b i with cost c j j=1 define a PB constraint with a new relaxation variable r P b i r + n a ij l j b i j=1 add c j r to the objective function 20 / 27

22 Encode WBO as PBO (Example) Weighted Boolean Optimization instance ϕ h = {x 1 + x 2 + x 3 2, 2x 1 + x 2 + x 3 2, x 1 + x 4 1} ϕ s = {(x 1 + x 2 1, 2), (x 1 + x 3 1, 3), (x 4 1, 4)} Corresponding PBO instance minimize 2r 1 + 3r 2 + 4r 3 subject to x 1 + x 2 + x 3 2 2x 1 + x 2 + x 3 2 x 1 + x 4 1 r 1 + x 1 + x 2 1 r 2 + x 1 + x 3 1 r 3 + x / 27

23 PBO as Preprocessing (1) Simplification techniques are used in the PBO formula: a generalization of Hypre for PB formulas is used (2) The PBO formula is solved using tight limits: PB solver is used for 10% of the time limit If optimality is not proved, the formula is translated back to WBO Small learnt clauses are kept in the WBO formula as hard clauses 22 / 27

24 Using Constraint Branching Consider the following Equals1 constraint: k r i = 1: i=1 If r i is assigned to 1, all other variables r j r i must be 0 However, if r i is assigned to 0, no propagation occurs Assigning value 1 to any of these variables produces very different search trees 23 / 27

25 Using Constraint Branching Constraint Branching: Instead of assigning one variables, half of the variables are assigned: k/2 P ω c1 : r i = 0 i=1 If ϕ {ω c1} is unsatisfiable then: i r i = 1, with 1 i k 2 kp we can infer ω c2 : r i = 0 i=k/ / 27

26 Computing Cores with Constraint Branching compute core(ϕ) 1 if (no large Equals1 constraint exist in ϕ) 2 then (st, ϕ C ) PB(ϕ) 3 return (st, ϕ C ) 4 else Select a large Equals1 constraint ω from ϕ 5 k = size(ω) 6 ω c1 : k/2 i=1 r i = 0 7 (st, ϕ C1 ) compute core(ϕ {ω c1 }) 8 if (st = SAT ω c1 / ϕ C1 ) 9 then return (st, ϕ C1 ) 10 else ω c2 : k i=k/2+1 r i = 0 11 (st, ϕ C2 ) compute core(ϕ {ω c2 }) 12 if (st = SAT ω c2 / ϕ C2 ) 13 then return (st, ϕ C2 ) 14 else return (st, ϕ C1 ϕ C2 ) 24 / 27

27 Experimental Results Industrial benchmark sets of the partial MaxSAT problem The most effective MaxSAT solvers from the MaxSAT evaluation of 2009 were considered: MSUncore, SAT4J (MS), pm2 Timeout: 1800 seconds Intel Xeon 5160 server with 3GB RAM 25 / 27

28 Experimental Results Solved Instances for Industrial Partial MaxSAT: Benchmark set #I MSUncore SAT4J (MS) pm2 wbo1.0 wbo1.2 bcp-fir bcp-hipp-yra bcp-msp bcp-mtg bcp-syn CircuitTraceCompaction HaplotypeAssembly pbo-mqc pbo-routing PROTEIN INS Total / 27

29 Conclusions PBO solvers can be used as a preprocessing step such that: 1) inference preprocessing techniques are used; 2a) some problems are easily solved with a search on the upper bound; 2b) restrict the search space by learning hard constraints. Constraint branching can improve the effectiveness of the solver Experimental results show that these techniques significantly improve the performance of wbo These results provide a strong stimulus for further integration of other Boolean optimization techniques 27 / 27

MiniMaxSat: : A new Weighted Solver. Federico Heras Javier Larrosa Albert Oliveras

MiniMaxSat: : A new Weighted Solver. Federico Heras Javier Larrosa Albert Oliveras MiniMaxSat: : A new Weighted Max-SAT Solver Federico Heras Javier Larrosa Albert Oliveras SAT (x v y), ( y v z), ( z v w) SAT (x v y), ( y v z), ( z v w) x=y=z=w=true Satisfiable SAT (x), ( x v y), ( x

More information

Solving (Weighted) Partial MaxSAT with ILP

Solving (Weighted) Partial MaxSAT with ILP Solving (Weighted) Partial MaxSAT with ILP Carlos Ansótegui 1 and Joel Gabàs 1 DIEI, Univ. de Lleida carlos@diei.udl.cat joel.gabas@diei.udl.cat Abstract. Several combinatorial optimization problems can

More information

Improvements to Core-Guided Binary Search for MaxSAT

Improvements to Core-Guided Binary Search for MaxSAT Improvements to Core-Guided Binary Search for MaxSAT A.Morgado F.Heras J.Marques-Silva CASL/CSI, University College Dublin Dublin, Ireland SAT, June 2012 Outline Motivation Previous Algorithms - Overview

More information

Breaking Local Symmetries in Quasigroup Completion Problems

Breaking Local Symmetries in Quasigroup Completion Problems Breaking Local Symmetries in Quasigroup Completion Problems Ruben Martins and Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal {ruben,ines}@sat.inesc-id.pt Abstract. Symmetry breaking

More information

SAT in Bioinformatics: Making the Case with Haplotype Inference

SAT in Bioinformatics: Making the Case with Haplotype Inference SAT in Bioinformatics: Making the Case with Haplotype Inference Inês Lynce 1 and João Marques-Silva 2 1 IST/INESC-ID, Technical University of Lisbon, Portugal ines@sat.inesc-id.pt 2 School of Electronics

More information

Solving MaxSAT by Successive Calls to a SAT Solver

Solving MaxSAT by Successive Calls to a SAT Solver Solving MaxSAT by Successive Calls to a SAT Solver Mohamed El Halaby Department of Mathematics Faculty of Science Cairo University Giza, 12613, Egypt halaby@sci.cu.edu.eg arxiv:1603.03814v1 [cs.ai] 11

More information

On Computing Backbones of Propositional Theories

On Computing Backbones of Propositional Theories On Computing Backbones of Propositional Theories Joao Marques-Silva 1 Mikoláš Janota 2 Inês Lynce 3 1 CASL/CSI, University College Dublin, Ireland 2 INESC-ID, Lisbon, Portugal 3 INESC-ID/IST, Lisbon, Portugal

More information

Efficient Haplotype Inference with Boolean Satisfiability

Efficient Haplotype Inference with Boolean Satisfiability Efficient Haplotype Inference with Boolean Satisfiability Joao Marques-Silva 1 and Ines Lynce 2 1 School of Electronics and Computer Science University of Southampton 2 INESC-ID/IST Technical University

More information

Algorithms for Satisfiability beyond Resolution.

Algorithms for Satisfiability beyond Resolution. Algorithms for Satisfiability beyond Resolution. Maria Luisa Bonet UPC, Barcelona, Spain Oaxaca, August, 2018 Co-Authors: Sam Buss, Alexey Ignatiev, Joao Marques-Silva, Antonio Morgado. Motivation. Satisfiability

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

More information

ahmaxsat: Description and Evaluation of a Branch and Bound Max-SAT Solver

ahmaxsat: Description and Evaluation of a Branch and Bound Max-SAT Solver Journal on Satisfiability, Boolean Modeling and Computation 9 (2015) 89-128 ahmaxsat: Description and Evaluation of a Branch and Bound Max-SAT Solver André Abramé Djamal Habet Aix Marseille Université,

More information

Solving Max SAT and #SAT on structured CNF formulas

Solving Max SAT and #SAT on structured CNF formulas Solving Max SAT and #SAT on structured CNF formulas Sigve Hortemo Sæther, Jan Arne Telle, Martin Vatshelle University of Bergen July 14, 2014 Sæther, Telle, Vatshelle (UiB) Max SAT on structured formulas

More information

SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments. Lintao Zhang

SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments. Lintao Zhang SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments Requirements for SAT solvers in the Real World Fast & Robust Given a problem instance, we want to solve it quickly Reliable

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Divide and Conquer: Towards Faster Pseudo-Boolean Solving

Divide and Conquer: Towards Faster Pseudo-Boolean Solving Divide and Conquer: Towards Faster Pseudo-Boolean Solving Jan Elffers and Jakob Nordström KTH Royal Institute of Technology {elffers,jakobn}@kth.se Abstract The last 20 years have seen dramatic improvements

More information

A New Look at BDDs for Pseudo-Boolean Constraints

A New Look at BDDs for Pseudo-Boolean Constraints Journal of Artificial Intelligence Research 45 (22) 443-48 Submitted 3/2; published /2 A New Look at BDDs for Pseudo-Boolean Constraints Ignasi Abío Robert Nieuwenhuis Albert Oliveras Enric Rodríguez-Carbonell

More information

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber 15-414 Aug 31, 2011 Why study SAT solvers? Many problems reduce to SAT. Formal verification CAD, VLSI Optimization AI, planning, automated

More information

Algebraic Methods. Motivation: Systems like this: v 1 v 2 v 3 v 4 = 1 v 1 v 2 v 3 v 4 = 0 v 2 v 4 = 0

Algebraic Methods. Motivation: Systems like this: v 1 v 2 v 3 v 4 = 1 v 1 v 2 v 3 v 4 = 0 v 2 v 4 = 0 Motivation: Systems like this: v v 2 v 3 v 4 = v v 2 v 3 v 4 = 0 v 2 v 4 = 0 are very difficult for CNF SAT solvers although they can be solved using simple algebraic manipulations Let c 0, c,...,c 2 n

More information

Quantified Boolean Formulas Part 1

Quantified Boolean Formulas Part 1 Quantified Boolean Formulas Part 1 Uwe Egly Knowledge-Based Systems Group Institute of Information Systems Vienna University of Technology Results of the SAT 2009 application benchmarks for leading solvers

More information

SATisfiability Solving: How to solve problems with SAT?

SATisfiability Solving: How to solve problems with SAT? SATisfiability Solving: How to solve problems with SAT? Ruben Martins University of Oxford February 13, 2014 How to encode a problem into SAT? c famous problem (in CNF) p cnf 6 9 1 4 0 2 5 0 3 6 0-1 -2

More information

An instance of SAT is defined as (X, S)

An instance of SAT is defined as (X, S) SAT: Propositional Satisfiability 22c:45 Artificial Intelligence Russell & Norvig, Ch. 7.6 Validity vs. Satisfiability Validity: A sentence is valid if it is true in every interpretation (every interpretation

More information

Satisfiability and SAT Solvers. CS 270 Math Foundations of CS Jeremy Johnson

Satisfiability and SAT Solvers. CS 270 Math Foundations of CS Jeremy Johnson Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson Conjunctive Normal Form Conjunctive normal form (products of sums) Conjunction of clauses (disjunction of literals) For each

More information

Cardinality Networks: a Theoretical and Empirical Study

Cardinality Networks: a Theoretical and Empirical Study Constraints manuscript No. (will be inserted by the editor) Cardinality Networks: a Theoretical and Empirical Study Roberto Asín, Robert Nieuwenhuis, Albert Oliveras, Enric Rodríguez-Carbonell Received:

More information

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT 1 Algebraic Methods In an algebraic system Boolean constraints are expressed as a system of algebraic equations or inequalities which has a solution if and only if the constraints are satisfiable. Equations

More information

An Introduction to SAT Solving

An Introduction to SAT Solving An Introduction to SAT Solving Applied Logic for Computer Science UWO December 3, 2017 Applied Logic for Computer Science An Introduction to SAT Solving UWO December 3, 2017 1 / 46 Plan 1 The Boolean satisfiability

More information

SAT/SMT/AR Introduction and Applications

SAT/SMT/AR Introduction and Applications SAT/SMT/AR Introduction and Applications Ákos Hajdu Budapest University of Technology and Economics Department of Measurement and Information Systems 1 Ákos Hajdu About me o PhD student at BME MIT (2016

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

More information

A brief introduction to practical SAT solving

A brief introduction to practical SAT solving A brief introduction to practical SAT solving What can I expect from SAT today? Daniel Le Berre Joint work with Anne Parrain, Pascal Rapicault, Olivier Roussel, Laurent Simon, and others CRIL-CNRS UMR

More information

Inference Rules in Local Search for Max-SAT

Inference Rules in Local Search for Max-SAT Inference Rules in Local Search for Max-SAT André Abramé and Djamal Habet Aix Marseille University, LSIS UMR 7296 Av. Escadrille Normandie Niemen 13397 Marseille Cedex 2 (France) {andre.abrame, djamal.habet@lsis.org

More information

Grid-Based SAT Solving with Iterative Partitioning and Clause Learning

Grid-Based SAT Solving with Iterative Partitioning and Clause Learning Grid-Based SAT Solving with Iterative Partitioning and Clause Learning Antti E. J. Hyvärinen, Tommi Junttila, and Ilkka Niemelä Department of Information and Computer Science Aalto niversity, School of

More information

From SAT To SMT: Part 1. Vijay Ganesh MIT

From SAT To SMT: Part 1. Vijay Ganesh MIT From SAT To SMT: Part 1 Vijay Ganesh MIT Software Engineering & SMT Solvers An Indispensable Tactic for Any Strategy Formal Methods Program Analysis SE Goal: Reliable/Secure Software Automatic Testing

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:

More information

arxiv: v1 [cs.lo] 8 Jun 2018

arxiv: v1 [cs.lo] 8 Jun 2018 Maximizing the Number of Satisfied L-clauses Mohamed El Halaby halaby@sci.cu.edu.eg Areeg Abdalla areeg@sci.cu.edu.eg Department of Mathematics, Faculty of Science, Cairo University Giza, Egypt arxiv:1806.02930v1

More information

Integrating a SAT Solver with an LCF-style Theorem Prover

Integrating a SAT Solver with an LCF-style Theorem Prover Integrating a SAT Solver with an LCF-style Theorem Prover A Fast Decision Procedure for Propositional Logic for the System Tjark Weber webertj@in.tum.de PDPAR 05, July 12, 2005 Integrating a SAT Solver

More information

SAT, CSP, and proofs. Ofer Strichman Technion, Haifa. Tutorial HVC 13

SAT, CSP, and proofs. Ofer Strichman Technion, Haifa. Tutorial HVC 13 SAT, CSP, and proofs Ofer Strichman Technion, Haifa Tutorial HVC 13 1 The grand plan for today Intro: the role of SAT, CSP and proofs in verification SAT how it works, and how it produces proofs CSP -

More information

A Collection of Problems in Propositional Logic

A Collection of Problems in Propositional Logic A Collection of Problems in Propositional Logic Hans Kleine Büning SS 2016 Problem 1: SAT (respectively SAT) Instance: A propositional formula α (for SAT in CNF). Question: Is α satisfiable? The problems

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Internals of SMT Solvers. Leonardo de Moura Microsoft Research

Internals of SMT Solvers. Leonardo de Moura Microsoft Research Internals of SMT Solvers Leonardo de Moura Microsoft Research Acknowledgements Dejan Jovanovic (SRI International, NYU) Grant Passmore (Univ. Edinburgh) Herbrand Award 2013 Greg Nelson What is a SMT Solver?

More information

Practical SAT Solving

Practical SAT Solving Practical SAT Solving Lecture 10 Carsten Sinz, Tomáš Balyo June 27, 2016 INSTITUTE FOR THEORETICAL COMPUTER SCIENCE KIT University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz

More information

Modern Sat Solving CDCL Tutorial Singapore Winter School Fahiem Bacchus, University of Toronto

Modern Sat Solving CDCL Tutorial Singapore Winter School Fahiem Bacchus, University of Toronto Modern Sat Solving CDCL Tutorial Singapore Winter School 2019 Why Sat solving? Practical Problem A that lies in NP Encoding to SAT Well engineered SAT Solver Solution to A without having to build a special

More information

VLSI CAD: Lecture 4.1. Logic to Layout. Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1

VLSI CAD: Lecture 4.1. Logic to Layout. Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1 VLSI CAD: Logic to Layout Rob A. Rutenbar University of Illinois Lecture 4.1 Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1 Some Terminology Satisfiability (called SAT for

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

Tracing Data Errors Using View-Conditioned Causality

Tracing Data Errors Using View-Conditioned Causality Tracing Data Errors Using View-Conditioned Causality Alexandra Meliou * with Wolfgang Gatterbauer *, Suman Nath, and Dan Suciu * * University of Washington, Microsoft Research University of Washington

More information

Preprocessing QBF: Failed Literals and Quantified Blocked Clause Elimination

Preprocessing QBF: Failed Literals and Quantified Blocked Clause Elimination Preprocessing QBF: Failed Literals and Quantified Blocked Clause Elimination Florian Lonsing (joint work with Armin Biere and Martina Seidl) Institute for Formal Models and Verification (FMV) Johannes

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation Propositional

More information

On the Relative Efficiency of DPLL and OBDDs with Axiom and Join

On the Relative Efficiency of DPLL and OBDDs with Axiom and Join On the Relative Efficiency of DPLL and OBDDs with Axiom and Join Matti Järvisalo University of Helsinki, Finland September 16, 2011 @ CP M. Järvisalo (U. Helsinki) DPLL and OBDDs September 16, 2011 @ CP

More information

Using Graph-Based Representation to Derive Hard SAT instances

Using Graph-Based Representation to Derive Hard SAT instances Using Graph-Based Representation to Derive Hard SAT instances Gilles Audemard, Saïd Jabbour, and Lakhdar Saïs CRIL - Université d Artois - Lens, France {audemard,jabbour,sais}@cril.fr Abstract. In this

More information

A Clause Tableau Calculus for MinSAT

A Clause Tableau Calculus for MinSAT A Clause Tableau Calculus for MinSAT Chu Min LI, a Felip MANYÀ b and Joan Ramon SOLER b a Université de Picardie, Amiens, France b IIIA-CSIC, Bellaterra, Spain Abstract. We define a clause tableau calculus

More information

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving III & Binary Decision Diagrams. Sanjit A. Seshia EECS, UC Berkeley

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving III & Binary Decision Diagrams. Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving III & Binary Decision Diagrams Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: Lintao Zhang Announcement Project proposals due

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

arxiv: v1 [cs.ai] 8 Jun 2015

arxiv: v1 [cs.ai] 8 Jun 2015 On SAT Models Enumeration in Itemset Mining Said Jabbour and Lakhdar Sais and Yakoub Salhi CRIL-CNRS Univ. Artois F-6237, Lens France {jabbour, sais, salhi}@univ-orleans.fr arxiv:156.2561v1 [cs.ai] 8 Jun

More information

SMT Unsat Core Minimization

SMT Unsat Core Minimization SMT Unsat Core Minimization O F E R G U T H M A N N, O F E R S T R I C H M A N, A N N A T R O S TA N E T S K I F M C A D 2 0 1 6 1 Satisfiability Modulo Theories Satisfiability Modulo Theories (SMT): decides

More information

Polynomial-time reductions. We have seen several reductions:

Polynomial-time reductions. We have seen several reductions: Polynomial-time reductions We have seen several reductions: Polynomial-time reductions Informal explanation of reductions: We have two problems, X and Y. Suppose we have a black-box solving problem X in

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Bruno Dutertre SRI International Leonardo de Moura Microsoft Research Satisfiability a > b + 2, a = 2c + 10, c + b 1000 SAT a = 0, b = 3, c = 5 Model 0 > 3 + 2, 0 = 2 5 +

More information

arxiv: v2 [cs.lo] 5 Jul 2017

arxiv: v2 [cs.lo] 5 Jul 2017 On Tackling the Limits of Resolution in SAT Solving Alexey Ignatiev 1,2, Antonio Morgado 1, and Joao Marques-Silva 1 1 LASIGE, Faculty of Science, University of Lisbon, Portugal {aignatiev,ajmorgado,jpms}@ciencias.ulisboa.pt

More information

EagleUP: Solving Random 3-SAT using SLS with Unit Propagation

EagleUP: Solving Random 3-SAT using SLS with Unit Propagation EagleUP: Solving Random 3-SAT using SLS with Unit Propagation Oliver Gableske 1 1 oliver.gableske@uni-ulm.de Institute of Theoretical Computer Science Ulm University Germany This is a joint work with Marijn

More information

Generating SAT Instances with Community Structure

Generating SAT Instances with Community Structure Generating SAT Instances with Community Structure Jesús Giráldez-Cru Artificial Intelligence Research Institute (IIIA-CSIC), Campus UAB, Bellaterra, Spain Jordi Levy Artificial Intelligence Research Institute

More information

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson SAT Solving 1 / 36 Review: Propositional

More information

Reasoning with Quantified Boolean Formulas

Reasoning with Quantified Boolean Formulas Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional

More information

Lecture 20: conp and Friends, Oracles in Complexity Theory

Lecture 20: conp and Friends, Oracles in Complexity Theory 6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:

More information

Decision Procedures An Algorithmic Point of View

Decision Procedures An Algorithmic Point of View An Algorithmic Point of View ILP References: Integer Programming / Laurence Wolsey Deciding ILPs with Branch & Bound Intro. To mathematical programming / Hillier, Lieberman Daniel Kroening and Ofer Strichman

More information

Solving SAT Modulo Theories

Solving SAT Modulo Theories Solving SAT Modulo Theories R. Nieuwenhuis, A. Oliveras, and C.Tinelli. Solving SAT and SAT Modulo Theories: from an Abstract Davis-Putnam-Logemann-Loveland Procedure to DPLL(T) Mooly Sagiv Motivation

More information

Introduction Algorithms Applications MINISAT. Niklas Sörensson Chalmers University of Technology and Göteborg University

Introduction Algorithms Applications MINISAT. Niklas Sörensson Chalmers University of Technology and Göteborg University SAT ALGORITHMS AND APPLICATIONS nik@cschalmersse Chalmers University of Technology and Göteborg University Empirically Successful Classical Automated Reasoning a CADE-20 Workshop 22nd - 23th July, 2005

More information

Verification using Satisfiability Checking, Predicate Abstraction, and Craig Interpolation. Himanshu Jain THESIS ORAL TALK

Verification using Satisfiability Checking, Predicate Abstraction, and Craig Interpolation. Himanshu Jain THESIS ORAL TALK Verification using Satisfiability Checking, Predicate Abstraction, and Craig Interpolation Himanshu Jain THESIS ORAL TALK 1 Computer Systems are Pervasive Computer Systems = Software + Hardware Software/Hardware

More information

NP-Complete Reductions 2

NP-Complete Reductions 2 x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 12 22 32 CS 447 11 13 21 23 31 33 Algorithms NP-Complete Reductions 2 Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline NP-Complete

More information

InKreSAT: Modal Reasoning via Incremental Reduction to SAT

InKreSAT: Modal Reasoning via Incremental Reduction to SAT : Modal Reasoning via Incremental Reduction to SAT Mark Kaminski 1 and Tobias Tebbi 2 1 Department of Computer Science, University of Oxford, UK 2 Saarland University, Saarbrücken, Germany Abstract. is

More information

Lecture Notes on SAT Solvers & DPLL

Lecture Notes on SAT Solvers & DPLL 15-414: Bug Catching: Automated Program Verification Lecture Notes on SAT Solvers & DPLL Matt Fredrikson André Platzer Carnegie Mellon University Lecture 10 1 Introduction In this lecture we will switch

More information

Introduction to SAT (constraint) solving. Justyna Petke

Introduction to SAT (constraint) solving. Justyna Petke Introduction to SAT (constraint) solving Justyna Petke SAT, SMT and CSP solvers are used for solving problems involving constraints. The term constraint solver, however, usually refers to a CSP solver.

More information

Planning as Satisfiability

Planning as Satisfiability Planning as Satisfiability Alan Fern * Review of propositional logic (see chapter 7) Planning as propositional satisfiability Satisfiability techniques (see chapter 7) Combining satisfiability techniques

More information

Introduction. In this talk

Introduction. In this talk Introduction Scarab Constraint Model Advanced Solving System Architecture and Implementation of a Prototyping Tool for SAT-based Constraint Programming Systems Takehide Soh 1, Naoyuki Tamura 1, Mutsunori

More information

Integer vs. constraint programming. IP vs. CP: Language

Integer vs. constraint programming. IP vs. CP: Language Discrete Math for Bioinformatics WS 0/, by A. Bockmayr/K. Reinert,. Januar 0, 0:6 00 Integer vs. constraint programming Practical Problem Solving Model building: Language Model solving: Algorithms IP vs.

More information

Integrating Simplex with DPLL(T )

Integrating Simplex with DPLL(T ) CSL Technical Report SRI-CSL-06-01 May 23, 2006 Integrating Simplex with DPLL(T ) Bruno Dutertre and Leonardo de Moura This report is based upon work supported by the Defense Advanced Research Projects

More information

Solving and Verifying Hard Problems using SAT

Solving and Verifying Hard Problems using SAT Solving and Verifying Hard Problems using SAT Marijn J.H. Heule 1/22 SAT Solving and Verification Solving Framework for Hard Problems The Future: Verified SAT via Proofs 2/22 SAT Solving and Verification

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Decision Procedures for Satisfiability and Validity in Propositional Logic

Decision Procedures for Satisfiability and Validity in Propositional Logic Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm

More information

Propositional and First Order Reasoning

Propositional and First Order Reasoning Propositional and First Order Reasoning Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p p Clause: disjunction of literals q \/ p \/ r given by

More information

A Pseudo-Boolean Set Covering Machine

A Pseudo-Boolean Set Covering Machine A Pseudo-Boolean Set Covering Machine Pascal Germain, Sébastien Giguère, Jean-Francis Roy, Brice Zirakiza, François Laviolette, and Claude-Guy Quimper Département d informatique et de génie logiciel, Université

More information

MaxSAT Resolution with the Dual Rail Encoding

MaxSAT Resolution with the Dual Rail Encoding MaxSAT Resolution with the Dual Rail Encoding Maria Luisa Bonet 1, Sam Buss 2, Alexey Ignatiev 3,4, Joao Marques-Silva 3, Antonio Morgado 3 1 Computer Science Department, Universidad Politécnica de Cataluña,

More information

Symmetry Breaking for Relational Weighted Model Finding

Symmetry Breaking for Relational Weighted Model Finding Symmetry Breaking for Relational Weighted Model Finding Tim Kopp Parag Singla Henry Kautz WL4AI July 27, 2015 Outline Weighted logics. Symmetry-breaking in SAT. Symmetry-breaking for weighted logics. Weighted

More information

Low-ranksemidefiniteprogrammingforthe. MAX2SAT problem. Bosch Center for Artificial Intelligence

Low-ranksemidefiniteprogrammingforthe. MAX2SAT problem. Bosch Center for Artificial Intelligence Low-ranksemidefiniteprogrammingforthe MAX2SAT problem Po-Wei Wang J. Zico Kolter Machine Learning Department Carnegie Mellon University School of Computer Science, Carnegie Mellon University, and Bosch

More information

The Promise of Polynomialbased Local Search to Boost. Boolean MAX-CSP Solvers

The Promise of Polynomialbased Local Search to Boost. Boolean MAX-CSP Solvers The Promise of Polynomialbased Local Search to Boost Boolean MAX-CSP Solvers Christine D. Hang Northeastern University Boston, MA Joint work with Ahmed Abdelmeged, Daniel Rinehart and Karl J. Lieberherr

More information

Interpolation. Seminar Slides. Betim Musa. 27 th June Albert-Ludwigs-Universität Freiburg

Interpolation. Seminar Slides. Betim Musa. 27 th June Albert-Ludwigs-Universität Freiburg Interpolation Seminar Slides Albert-Ludwigs-Universität Freiburg Betim Musa 27 th June 2015 Motivation program add(int a, int b) { var x,i : int; l 0 assume(b 0); l 1 x := a; l 2 i := 0; while(i < b) {

More information

via Tandem Mass Spectrometry and Propositional Satisfiability De Novo Peptide Sequencing Renato Bruni University of Perugia

via Tandem Mass Spectrometry and Propositional Satisfiability De Novo Peptide Sequencing Renato Bruni University of Perugia De Novo Peptide Sequencing via Tandem Mass Spectrometry and Propositional Satisfiability Renato Bruni bruni@diei.unipg.it or bruni@dis.uniroma1.it University of Perugia I FIMA International Conference

More information

The Eager Approach to SMT. Eager Approach to SMT

The Eager Approach to SMT. Eager Approach to SMT The Eager Approach to SMT Sanjit A. Seshia UC Berkeley Slides based on ICCAD 09 Tutorial Eager Approach to SMT Input Formula Satisfiability-preserving Boolean Encoder Boolean Formula SAT Solver SAT Solver

More information

Attacking AES via SAT

Attacking AES via SAT Computer Science Department Swansea University BCTCS Warwick, April 7, 2009 Introduction In the following talk, a general translation framework, based around SAT, is considered, with the aim of providing

More information

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem. 1 More on NP In this set of lecture notes, we examine the class NP in more detail. We give a characterization of NP which justifies the guess and verify paradigm, and study the complexity of solving search

More information

Lifted Symmetry Detection and Breaking for MAP Inference

Lifted Symmetry Detection and Breaking for MAP Inference Lifted Symmetry Detection and Breaking for MAP Inference Tim Kopp University of Rochester Rochester, NY tkopp@cs.rochester.edu Parag Singla I.I.T. Delhi Hauz Khas, New Delhi parags@cse.iitd.ac.in Henry

More information

Translating a Satallax Refutation to a Tableau Refutation Encoded in Coq

Translating a Satallax Refutation to a Tableau Refutation Encoded in Coq Translating a Satallax Refutation to a Tableau Refutation Encoded in Coq Bachelor Seminar - first talk Advisor: Chad Brown Supervisor: Gert Smolka Department of Computer Science Saarland University October

More information

New Inference Rules for Max-SAT

New Inference Rules for Max-SAT Journal of Artificial Intelligence Research 30 (2007) 321 359 Submitted 11/06; published 10/07 New Inference Rules for Max-SAT Chu Min Li LaRIA, Université de Picardie Jules Verne 33 Rue St. Leu, 80039

More information

Critical Reading of Optimization Methods for Logical Inference [1]

Critical Reading of Optimization Methods for Logical Inference [1] Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh

More information

The Potential and Challenges of CAD with Equational Constraints for SC-Square

The Potential and Challenges of CAD with Equational Constraints for SC-Square The Potential and Challenges of with Equational Constraints for SC-Square Matthew England (Coventry University) Joint work with: James H. Davenport (University of Bath) 7th International Conference on

More information

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Frédéric Lardeux 3, Eric Monfroy 1,2, and Frédéric Saubion 3 1 Universidad Técnica Federico Santa María, Valparaíso, Chile 2 LINA, Université

More information