Gábor Kusper  Research Institute for Symbolic Computation (RISC-Linz)

Slides:



Advertisements
Similar presentations
Exploiting SAT solvers in unbounded model checking
Advertisements

Completeness and Expressiveness
Three Special Functions
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Multi-Domain Logic and its Applications to SAT Implementation Issues Tudor Jebelean, Johannes Kepler Unversity Linz Gábor Kusper, Eszterházy Károly College.
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:
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Methods of Proof Chapter 7, second half.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Deciding a Combination of Theories - Decision Procedure - Changki pswlab Combination of Theories Daniel Kroening, Ofer Strichman Presented by Changki.
Binary Decision Diagrams (BDDs)
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
On Bridging Simulation and Formal Verification Eugene Goldberg Cadence Research Labs (USA) VMCAI-2008, San Francisco, USA.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
SAT-Based Model Checking Without Unrolling Aaron R. Bradley.
Young CS 331 D&A of Algo. NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
More NP-Complete and NP-hard Problems
Data Structures and Algorithm Analysis Lecture 24
P & NP.
Chapter 10 NP-Complete Problems.
Gábor Kusper University of Linz RISC Austria
Computability and Complexity
Busch Complexity Lectures: Reductions
Automata, Grammars and Languages
Recovering and Exploiting Structural Knowledge from CNF Formulas
(xy)(yz)(xz)(zy)
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21
On the Complexity of Buffer Allocation in Message Passing Systems
Propositional Calculus: Boolean Algebra and Simplification
Elementary Metamathematics
CS 416 Artificial Intelligence
Complexity 6-1 The Class P Complexity Andrei Bulatov.
Artificial Intelligence: Agents and Propositional Logic.
1. for (i=0; i < n; i+=2) if (A[i] > A[i+1]) swap(A[i], A[i+1])
Resolution Proofs for Combinational Equivalence
Logics for Data and Knowledge Representation
Automated Reasoning in Propositional Logic
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Methods of Proof Chapter 7, second half.
Encoding Knowledge with First Order Predicate Logic
Encoding Knowledge with First Order Predicate Logic
Canonical Computation without Canonical Data Structure
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
CSE 589 Applied Algorithms Spring 1999
Encoding Knowledge with First Order Predicate Logic
Instructor: Aaron Roth
Propositional Satisfiability
Presentation transcript:

Solving the Resolution-Free SAT Problem by Hyper-Unit Propagation in Linear Time Gábor Kusper gkusper@risc.uni-linz.ac.at  Research Institute for Symbolic Computation (RISC-Linz) Johannes Kepler University, Linz, Austria http://www.risc.uni-linz.ac.at/

Outline Motivation Hyper-Unit Propagation Resolution-Free SAT Problem Unicorn-SAT Algorithm Example General-Unicorn-SAT Algorithm Conclusion

Motivation Theorema, Prof. Buchberger http://www.theorema.org/ A1, ..., An G A1, ..., An, G is unsatisfiable

Unit Propagation a  b  c a  b a  c a  b  c a  b  c by a

Hyper-Unit Propagation a  b  c a  b a  c a  b  c a  b  c a  b a  c a  b  c HUP by a  b Hyper-Unit Prop. (HUP) by assignment A on S is denoted by S[A].

Resolution Resolution (tautologies are not allowed): a  b a  b a  c Examples Resolution OK: b  c a b  b  c a  b a  c a  b  c a  b  c Examples Resolution-Free: a  a  c a  b  c a  b  c a  b  c a  b  c Tautologies! Example Resolution-Free Clause Set:

Definition A clause set is resolution-free iff resolution cannot be performed on any two clauses of the clause set.

L(C): Negation of a Resolution-Mate a  b  c Let C be: negate a literal A Resolution-Mate of C: a  b  c a  b  c a  b  c These are clauses! L(C): negate all but one literal negate A Sub-Model generated from C: a  b  c a  b  c a  b  c These are assignments!

Definition We obtain a resolution-mate of a clause by negating one literal of it. A sub-model generated from clause C is the negation of a resolution-mate of C. It is denoted by L(C). By definition L() = . L(C) is an assignment, L(C) is a clause. L(C) is a resolution-mate of clause C.

Res.-Mate is not in S If S is resolution-free, S, CS and B is a resolution-mate of C. Then BS. Proof: C resolves with B! a  b  c a  b  c a  b  c a  b  c a  b  c a  b  c

 is not in S after Sub-Model Propagation If S is resolution-free, S, CS and C is minimal (B = L(C) ,i.e., B is a resolution-mate of C). Then S[L(C)]. Proof: Since C is minimal it suffices to show that B  S. It is known from the previous slide. a resolution- mate: S is resolution-free: a sub-model: a  b a  b  c a  b  c minimal: subsumed: not subsumed: a  b a  b a  b  c a  b  c a  b  c a  b  c

In Picture START input: S S[A] S[A] HUP S is L[C] = A := a  b by A resolution-free and S HUP by A L[C] = A := a  b Let A negation of B B := a  b a  b if S[A] =  then M := A Let B a res.-mate of C Let C be a min. clause from S C:= a  b END

HUP Preserves Resolution-Free-ness If S is resolution-free and A is an assignment. Then S[A] is resolution-free. Proof: Assume S[A] is not resolution-free. We show that this contradict with S is resolution-free. S: S[A]: ... y ... x ... ... ... y ... x ...

Unicorn-SAT Algorithm START input: S i := 1 S[Ai] is res.-free S[Ai] S := S[Ai], i := i+1 S is resolution-free and S HUP by Ai Ai := a  b Let Ai negation of B B := a  b a  b if S[Ai] =  then M := A1A2...Ai Let B a res.-mate of C Let C be a min. clause from S C:= a  b END

Termination If S  , S and CS. Then S[L(C)] has fewer clauses than S and contains fewer variables than S. Proof: Hyper-Unit propagation inherits this property from unit propagation.

Example sub-model a  b  c a  b  c a  b  d  e a  b  c  d a  d  e a  b  c  d  e a  b  c  d  e a  b  c  d  e b  c  d  e sub-model a  b  c HUP sub-mo. d  e d  e d  e HUP a  b  c  d  e

Time Complexity # variables : n # clauses : m O(nm) Argument: HUP by Ai can be simulated by length(Ai) UP. If we need k HUP then Summa(length(Ai), i:=1..k) = n. So we can simulate k HUP by n UP. Since UP is O(m) time method Unicorn-SAT is O(nm).

General-Unicorn-SAT Algorithm if i = 0 then unsatisfiable satisfiable if Si i := i-1 i := i+1 if Si+1 =  if Si+1 Si := Sires(C,L(C)) Correct the guess! Si Si+1 if Si then Ai := L(C), where C is a min. clause form Si. Guess a solution! if Si+1 i := i+1 i := i-1 START: i := 1, S0 := S, A0 := , Si := Si-1[Ai-1]

Conclusion DPLL like algorithms General-Unicorn-SAT use unit propagation incrementally construct a solution General-Unicorn-SAT uses hyper-unit propagation guesses a sub-model & correct it if necessary

Thank you for your attention!