Abstract Solvers for Quantified Boolean Formulas and Their - - PowerPoint PPT Presentation

abstract solvers for quantified boolean formulas and
SMART_READER_LITE
LIVE PREVIEW

Abstract Solvers for Quantified Boolean Formulas and Their - - PowerPoint PPT Presentation

Abstract Solvers for Quantified Boolean Formulas and Their Applications Remi Brochenin and Marco Maratea DIBRIS, University of Genoa, Italy AI*IA 2015: Ferrara, Sept 23rd-25th 2015 unige4 M. Maratea Abstract Solvers for QBFs and Their


slide-1
SLIDE 1

unige4

Abstract Solvers for Quantified Boolean Formulas and Their Applications

Remi Brochenin and Marco Maratea

DIBRIS, University of Genoa, Italy

AI*IA 2015: Ferrara, Sept 23rd-25th 2015

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-2
SLIDE 2

unige4

Motivation

Issue Usually solving procedures are presented by means of pseudo-code descriptions, but some communities have experienced that analyzing such procedures on this basis may not be fruitful. Instead ... more formal descriptions, based on mathematically precise but possibly simple objects, can be useful, and can allow for, e.g. a uniform representation.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-3
SLIDE 3

unige4

Motivation

Issue Usually solving procedures are presented by means of pseudo-code descriptions, but some communities have experienced that analyzing such procedures on this basis may not be fruitful. Instead ... more formal descriptions, based on mathematically precise but possibly simple objects, can be useful, and can allow for, e.g. a uniform representation.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-4
SLIDE 4

unige4

Abstract solvers

Abstract solvers are a relatively new methodology for analyzing, comparing and composing solving procedures in an abstract way via graphs, where the states of computation are represented as nodes, the solving techniques as arcs between such nodes, the solving process as a path in the graph, and formal properties of the procedures are reduced to related graph’s properties.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-5
SLIDE 5

unige4

DPLL SAT solving: Transition rules of the graph DPLLF

Conclude : L = ⇒ UNSAT if L is inconsistent and L contains no decision literals Backtrack : Ll∆L′ = ⇒ Ll if

  • Ll∆L′ is inconsistent and

L′ contains no decision literals Unit : L = ⇒ Ll if    l does not occur in L and F contains a clause C ∨ l and all the literals of C occur in L Decide : L = ⇒ Ll∆ if L is consistent and neither l nor l occur in L Success : L = ⇒ SAT if no other rule applies

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-6
SLIDE 6

unige4

DPLL SAT solving: Examples

Initial state : ∅ Decide = ⇒ a∆ Unit = ⇒ a∆ c Decide = ⇒ a∆ c b∆ Success = ⇒ SAT Initial state : ∅ Decide = ⇒ a∆ Decide = ⇒ a∆ c∆ Unit = ⇒ a∆ c∆ c Backtrack = ⇒ a∆ c Decide = ⇒ a∆ c b∆ Success = ⇒ SAT

Figure : Examples of paths in DPLL{a∨b, a∨c}.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-7
SLIDE 7

unige4

DPLL SAT solving: Formal result

Theorem For any CNF formula F,

1

graph DPLLF is finite and acyclic,

2

any terminal state reachable from ∅ in DPLLF other than UNSAT is SAT, and

3

UNSAT is reachable from ∅ in DPLLF if and only if F is unsatisfiable.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-8
SLIDE 8

unige4

Abstract Solvers for Quantified Boolean Formulas

QBF is the prototypical PSPACE-complete problem. In this paper, three abstract solvers for solving QBFs are presented. One proposal abstracts the Q-DPLL algorithm for QBF . Q-DPLL is an extension of the DPLL algorithm for SAT.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-9
SLIDE 9

unige4

Q-DPLL for QBFs: Graph

We are given a (prenex CNF) QBF formula F. QBFF graph The nodes are the states defined similarly as for DPLL, but decision literals are either universal (l∀) or existential (l∃). The edges corresponds to updated and additional transition rules wrt DPLL graph.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-10
SLIDE 10

unige4

Q-DPLL for QBFs: Transition rules

Conclude L = ⇒ UNSAT if

  • L is inconsistent and existential free

Backtrack∃ Ll∃L′ = ⇒ Ll if

  • Ll∃L′ is inconsistent and

l∃ is the rightmost existential literal Backtrack∀ Ll∀L′ = ⇒ Ll if

  • no other rule applies except Succeed and

l∀ is the rightmost universal literal Unit L = ⇒ Ll if          l does not occur in L and for some clause C in the formula, l occurs in C and each other unassigned literal of C is universal and each assigned literal of C is contradicted Monotone1 L = ⇒ Ll if    the variable of l is existential and l occurs in some clause C and l does not occur in any clause C Monotone2 L = ⇒ Ll if    the variable of l is universal and l occurs in some clause C and l does not occur in any clause C Decide L = ⇒ LlQ if          L is consistent and the variable of l is unassigned and the quantifier of the variable of l is Q and for all l′ such that level(l′) < level(l) the variable of l′ is assigned. Succeed L = ⇒ Valid if

  • no other rule applies

Figure : The transition rules of the QBFF graph.

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-11
SLIDE 11

unige4

Q-DPLL for QBFs: Example

F := ∃a∀d∃bc{{a, d, b}, {d, b}, {b, c}, {a, d, c}, {d, b, c}} (1) Example A possible path in QBFF is:

Initial state : ∅ Decide = ⇒ a∃ Decide = ⇒ a∃d

Monotone1 = ⇒ a∃d

∀b

Backtrack∀ = ⇒ a∃d Unit = ⇒ a∃d c Unit = ⇒ a∃d cb Backtrack∃ = ⇒ a Decide = ⇒ ad

Monotone1 = ⇒ ad

∀b

Backtrack∀ = ⇒ a d Unit = ⇒ a d b Fail = ⇒ UNSAT

  • M. Maratea

Abstract Solvers for QBFs and Their Applications

slide-12
SLIDE 12

unige4

Q-DPLL for QBFs: Formal result

For any QBF formula F,

1

the graph QBFF is finite and acyclic;

2

Any terminal state in QBFF is either UNSAT or Valid;

3

If a state Valid is reachable from the initial state in QBFF then F is satisfiable;

4

UNSAT is reachable from the initial state in QBFF if and

  • nly if F is not satisfiable.
  • M. Maratea

Abstract Solvers for QBFs and Their Applications