• Nenhum resultado encontrado

2010 MarceloFinger SatisifiabilityandProbabilisticSatisifiability

N/A
N/A
Protected

Academic year: 2022

Share "2010 MarceloFinger SatisifiabilityandProbabilisticSatisifiability"

Copied!
100
0
0

Texto

(1)

Satisifiability and

Probabilistic Satisifiability

Marcelo Finger

Department of Computer Science Instituto de Matem´atica e Estat´ıstica

Universidade de S˜ao Paulo

2010

(2)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Topics

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(3)

Are they all saying the truth?

Every night, at least two of them are at the table Each says he comes “only” 60% of the nights

(4)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(5)

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

(6)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

SAT was the 1st NP-complete problem

(7)

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

SAT was the 1st NP-complete problem SAT received a lot of attention [1960-now]

(8)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

SAT was the 1st NP-complete problem SAT received a lot of attention [1960-now]

SAT has very efficient implementations

(9)

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

SAT was the 1st NP-complete problem SAT received a lot of attention [1960-now]

SAT has very efficient implementations

SAT has become the “assembly language” of hard-problems

(10)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The SAT Problem

The Centrality of SAT

Satisfiability is a central problem in Computer Science Both theoreticaland practicalinterests

SAT was the 1st NP-complete problem SAT received a lot of attention [1960-now]

SAT has very efficient implementations

SAT has become the “assembly language” of hard-problems SAT is logic

(11)

The PSAT Problem

Probabilistic satisfiability (PSAT) was proposed by [Boole 1854]

On the Laws of Thought Classical probability

No assumption of a priori statistical independence Rediscovered several times since Boole

PSAT is also NP-complete

(12)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The PSAT Problem

Probabilistic satisfiability (PSAT) was proposed by [Boole 1854]

On the Laws of Thought Classical probability

No assumption of a priori statistical independence Rediscovered several times since Boole

PSAT is also NP-complete

But PSAT seems to be more complex than SAT Why?

(13)

Applications of SAT

SAT has “good” implementations SAT has many applications

(14)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Applications of SAT

SAT has “good” implementations SAT has many applications

Planning: SatPlan Answer Set Programming Integer Programming

Map colouring, combinatorial problems Optimisation problems

etc

NP-complete problems reduced to SAT

(15)

Potential Applications of PSAT

SAT has many potential applications

(16)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Potential Applications of PSAT

SAT has many potential applications Computer models of biological processes Machine learning

Fault tolerance

Software design and analysis.

Economics, econometrics, etc.

But there are no practical algorithms for PSAT

(17)

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

(18)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Setting: the language

Atoms: P ={p1, . . . ,pn} Literals: pi and¬pj

¯

p =¬p,¬p =p

A clause is a set of literals. Ex: {p,¯q,r}or p∨ ¬q∨r A formula C is a set of clauses

(19)

The Setting: semantics

Valuation for atoms v :P → {0,1}

(20)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Setting: semantics

Valuation for atoms v :P → {0,1}

An atomp is satisfiedif v(p) = 1

(21)

The Setting: semantics

Valuation for atoms v :P → {0,1}

An atomp is satisfiedif v(p) = 1 Valuations are extended to all formulas

(22)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Setting: semantics

Valuation for atoms v :P → {0,1}

An atomp is satisfiedif v(p) = 1 Valuations are extended to all formulas v(¯λ) = 1⇔v(λ) = 0

(23)

The Setting: semantics

Valuation for atoms v :P → {0,1}

An atomp is satisfiedif v(p) = 1 Valuations are extended to all formulas v(¯λ) = 1⇔v(λ) = 0

A clause c is satisfied (v(c) = 1) ifsomeliteral λ∈c is satisfied

(24)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Setting: semantics

Valuation for atoms v :P → {0,1}

An atomp is satisfiedif v(p) = 1 Valuations are extended to all formulas v(¯λ) = 1⇔v(λ) = 0

A clause c is satisfied (v(c) = 1) ifsomeliteral λ∈c is satisfied

A formula C is satisfied (v(C) = 1) ifallclauses in C are satisfied

(25)

The Problem

A formula C is satisfiable if exitsv,v(C) = 1.

Otherwise, C is unsatisfiable

(26)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Problem

A formula C is satisfiable if exitsv,v(C) = 1.

Otherwise, C is unsatisfiable The SAT Problem

Given a formulaC, decide ifC is satisfiable.

Witnesses: IfC is satisfiable, provide a v such that v(C) = 1.

(27)

The Problem

A formula C is satisfiable if exitsv,v(C) = 1.

Otherwise, C is unsatisfiable The SAT Problem

Given a formulaC, decide ifC is satisfiable.

Witnesses: IfC is satisfiable, provide a v such that v(C) = 1.

SAT has small witnesses

(28)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

An NP Algorithm for SAT

NP-SAT(C)

Input: C, a formula in clausal form Output: v, ifv(C) = 1; no, otherwise.

1: Guess a v

2: Show, in polynomial time, that v(C) = 1

3: returnv

4: if no suchv is guessablethen

5: returnno

6: end if

(29)

A Na¨ıve SAT Solver

NaiveSAT(C)

Input: C, a formula in clausal form Output: v, ifv(C) = 1; no, otherwise.

1: for every valuationv overp1, . . . ,pn do

2: if v(C) = 1 then

3: returnv

4: end if

5: end for

6: returnno

(30)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions Empirical

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(31)

The SAT Phase Transition

(32)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions Empirical

The Phase Transition Diagram

3-SAT, N is fixed

Higher N, more abrupt transition M/N: low (SAT); high (UNSAT)

Phase transition point: M/N≈4.3, 50%SAT [Toby & Walsh 1994]

Invariant withN

Invariant with algorithm!

(33)

The Phase Transition Diagram

3-SAT, N is fixed

Higher N, more abrupt transition M/N: low (SAT); high (UNSAT)

Phase transition point: M/N≈4.3, 50%SAT [Toby & Walsh 1994]

Invariant withN

Invariant with algorithm!

No theoretical explanation

There is another phase-transition for SAT based on

(34)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(35)

Why PSAT?

3 forms of reasoning (According to Peirce) Deductive reasoning

Inductive reasoning Abductive reasoning

(36)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Why PSAT?

3 forms of reasoning (According to Peirce) Deductive reasoning

Probabilisticreasoning Abductive reasoning

(37)

Why PSAT?

3 forms of reasoning (According to Peirce) Deductive reasoning

Probabilisticreasoning Abductive reasoning PSAT is at the intersection

(38)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Setting: the language

Logical variables or atoms: P ={x1, . . . ,xn} Connectives: ∧,∨,¬,→,↔.

Formulas (L) are inductively composed form atoms using connectives

Formulas can be brought to clausal form, but need not be.

(39)

Basics

Propositional valuation v :P → {0,1}

Generalised for any propositional formula (clausal or not) v :L → {0,1}

(40)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Basics

Propositional valuation v :P → {0,1}

Generalised for any propositional formula (clausal or not) v :L → {0,1}

A probability distribution over propositional valuations π:V →[0,1]

2n

X

i=1

π(vi) = 1

(41)

Basics

Propositional valuation v :P → {0,1}

Generalised for any propositional formula (clausal or not) v :L → {0,1}

A probability distribution over propositional valuations π:V →[0,1]

2n

X

i=1

π(vi) = 1 Probability of a formulaα according to π

(42)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Kolmogorov Axioms for Probability

α, β∈ L

(K1) 0≤P(α)≤1 (K2) P(⊤) = 1

(K3) If|=¬(α∧β) then P(α∨β) =P(α) +P(β)

(43)

Kolmogorov Axioms for Probability

α, β∈ L

(K1) 0≤P(α)≤1 (K2) P(⊤) = 1

(K3) If|=¬(α∧β) then P(α∨β) =P(α) +P(β) From which we can derive:

(K4) P(¬α) = 1−P(α)

(K5) Ifα|=β thenP(α)≤P(β) (K6) Ifα≡β thenP(α) =P(β)

(44)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The PSAT Problem

Considerk formulasα1, . . . , αk defined onn atoms {x1, . . . ,xn}

A PSAT problem Σ is a set of k restrictions Σ ={P(αi) =pi|1≤ik}

Probabilistic Satisfiability: are these restrictions consistent?

(45)

A PSAT example

(46)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

A PSAT example

Σ =

P(a∨b) =P(a∨c) =P(b∨c) = 1 P(a) =P(b) =P(c) = 0.6

(47)

The PSAT Problem: An Algebraic Formalisation

Vector of probabilities p of dimensionk×1 (given) Consider a “large” matrix Ak×2n = [aij] (computed)

aij =vji)∈ {0,1}

PSAT: decide if there is vector πof dimension 2n×1 such that = p

i = 1

π ≥ 0

(48)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(49)

The PSAT Problem

Probabilistic satisfiability (PSAT) was proposed in On the Laws of Thought[Boole 1854]

Classical probability

No assumption of a priori statistical independence Rediscovered several times since Boole

Hailperin 1965 De Finetti 1937, 1974

Nilsson 1986, (re)introduces PSAT to AI

and many others (see [Hansen & Jaumard 1996])

(50)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Potential Applications of PSAT

PSAT has many potential applications

(51)

Potential Applications of PSAT

PSAT has many potential applications Computer models of biological processes Machine learning

Fault tolerance.

Software design and analysis.

Economics, econometrics, etc.

But there are no practical algorithms for PSAT

(52)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

PSAT is NP-complete

PSAT is NP-complete: [Georgakopoulos & Kavvadias &

Papadimitriou 1988]

A PSAT problem has a solution, then there is a solution π with at mostk+ 1 elementsπi >0

Carath´eodory’s Lemma

So PSAT has a polynomial size witness

1 · · · 1

0/1 · · · 0/1 ... . .. ...

0/1 · · · 0/1

·

 π1 π2

... πk+1

=

 1 p1

... pk

(53)

PSAT is NP-complete

PSAT is NP-complete: [Georgakopoulos & Kavvadias &

Papadimitriou 1988]

A PSAT problem has a solution, then there is a solution π with at mostk+ 1 elementsπi >0

Carath´eodory’s Lemma

So PSAT has a polynomial size witness

1 · · · 1

0/1 · · · 0/1 ... . .. ...

·

 π1 π2

...

=

 1 p1

...

(54)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Existing Algorithms for PSAT

All algorithms are algebraic

Try to solve an exponential linear program Column generation heuristics

Easy cases: quickly generates witness (k≈300)

Hard cases: solves aweighted MAXSAT instance at each step weighted MAXSAT is a “hard” NP-complete problem

(55)

Existing Algorithms for PSAT

All algorithms are algebraic

Try to solve an exponential linear program Column generation heuristics

Easy cases: quickly generates witness (k≈300)

Hard cases: solves aweighted MAXSAT instance at each step weighted MAXSAT is a “hard” NP-complete problem

No phase-transition observed

[Kavvadias-Papadimitriou 1990, Hansen-Jaumard 1997]

(56)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Idea

Goal:

Obtain a “decent” algorithm for PSAT Study its empiric properties

Both SAT and PSAT are NP-complete problems SAT has good implementations

(57)

Idea

Goal:

Obtain a “decent” algorithm for PSAT Study its empiric properties

Both SAT and PSAT are NP-complete problems SAT has good implementations

Let’s reduce PSAT to SAT.

(58)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(59)

Canonical Reductions

A reductiontransforms an instance of PSAT into one of SAT One such reduction in polynomial time exists, due to

NP-completeness

(60)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Canonical Reductions

A reductiontransforms an instance of PSAT into one of SAT One such reduction in polynomial time exists, due to

NP-completeness

A reduction iscanonical if it encodes an NP-witness Easier if witness has a simple format

Normal forms simplify the study of complex objects

(61)

A PSAT Normal Form

PSAT atomic normal formΣ = (Γ,Ψ) Γ is a SAT problem, ie{α|P(α) = 1}

Ψ ={P(xi) =pi|xi is an atom}

(62)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

A PSAT Normal Form

PSAT atomic normal formΣ = (Γ,Ψ) Γ is a SAT problem, ie{α|P(α) = 1}

Ψ ={P(xi) =pi|xi is an atom}

Theorem

Every PSAT problem has an equivalent atomic normal form, that can be computed in linear time.

(63)

That PSAT example is already normal form!

Γ =

ab ac

Ψ ={P(a) =P(b) =P(c) = 0.6}

(64)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

A Second Example

Σ =

P(abc) = 1

P(ab) = 0.61;P(a∧c) = 0.60;P(b∧c) = 0.59

Can be put in normal form (Γ,Ψ)

Γ =

¯

xa ¯ya ¯zb abc

¯

xb ¯yc ¯zc

¯

a∨¯bx ¯a∨¯cy ¯b∨¯cz

Ψ ={P(x) = 0.61;P(y) = 0.60;P(z) = 0.59}

(65)

Algebraic Notation

An×m is a matrix of n lines by mcolumns.

Aj is the j-th column of matrix A Let p be a vector of dimension n.

A[j :=p] is obtained fromAby replacingAj withp IfA is a square matrix,|A|isA’s determinant IfA·x =b then, by Cramer’s Rule

xj = |A[j :=b]|

|A|

(66)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Properties of Atomic Normal Form

(Γ,Ψ) has a solution iff there isA= [ai,j] and π satisfying

1 · · · 1 a1,1 · · · a1,k+1

... . .. ... ak,1 · · · ak,k+1

·

 π1 π2 ... πk+1

=

 1 p1

... pk

ai,j ∈ {0,1} πj ≥0

(1)

Ifπj >0 thenAj is a valuation satisfying Γ.

(67)

Second Example – Part II

Γ =

¯

xa ¯ya ¯zb abc

¯

xb ¯yc ¯zc

¯

a∨¯bx ¯a∨¯cy ¯b∨¯cz

 Ψ ={P(x) = 0.61;P(y) = 0.60;P(z) = 0.59}

is P-satisfiable because

x y z

1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1

·

 0.4 0.21

0.2 0.19

=

 1 0.61 0.60 0.59

a 1 1 1 0

(68)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

The Canonical Reduction

Canonical reduction direct encoding of the solution A·π=p of the normal form (Γ,Ψ).

Γ(x1, . . . ,xk;y1, . . .yl) Ψ ={P(xi) =pi}

Aj = [1 a1,j · · · ak,j]t, so Γ(a1,j, . . . ,ak,j;y1j, . . .ylj) must hold Each πi is encoded as a sequence of b bits

Each pi is encoded as a sequence of b+k bits Direct encoding of sums of bits

Direct encoding of bit product as a conjunction Number of variables isO(b·k2)

(69)

The Canonical Reduction

Canonical reduction direct encoding of the solution A·π=p of the normal form (Γ,Ψ).

Γ(x1, . . . ,xk;y1, . . .yl) Ψ ={P(xi) =pi}

Aj = [1 a1,j · · · ak,j]t, so Γ(a1,j, . . . ,ak,j;y1j, . . .ylj) must hold Each πi is encoded as a sequence of b bits

Each pi is encoded as a sequence of b+k bits Direct encoding of sums of bits

Direct encoding of bit product as a conjunction Number of variables isO(b·k2)

(70)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Number of Bits in the Canonical Reduction

Cramer’s Rule xj = |A[j|A|:=b]|

(71)

Number of Bits in the Canonical Reduction

Cramer’s Rule xj = |A[j|A|:=b]|

Theorem (Hadamard’s Maximum Determinant Problem 1893)

Let A= [aij]n×n, aij ∈ {0,1}. Then

|A| ≤ (n+ 1)(n+1)/2 2n

(72)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Number of Bits in the Canonical Reduction

Cramer’s Rule xj = |A[j|A|:=b]|

Theorem (Hadamard’s Maximum Determinant Problem 1893)

Let A= [aij]n×n, aij ∈ {0,1}. Then

|A| ≤ (n+ 1)(n+1)/2 2n b = (k+1)2 ⌈log(k+ 1)⌉ −k

Number of variables in the canonical reduction isO(k3·logk)

(73)

Number of Bits in the Canonical Reduction

Cramer’s Rule xj = |A[j|A|:=b]|

Theorem (Hadamard’s Maximum Determinant Problem 1893)

Let A= [aij]n×n, aij ∈ {0,1}. Then

|A| ≤ (n+ 1)(n+1)/2 2n b = (k+1)2 ⌈log(k+ 1)⌉ −k

Number of variables in the canonical reduction is (k3·logk)

EC AA !

(74)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Implementation

A canonical reduction of PSAT to SAT n = 80 variables

k = 5, b= 10

52 hours to compute!

(75)

Implementation

A canonical reduction of PSAT to SAT n = 80 variables

k = 5, b= 10

52 hours to compute! ECAA!

(76)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Implementation

A canonical reduction of PSAT to SAT n = 80 variables

k = 5, b= 10

52 hours to compute! ECAA!

Phase-transition found for PSAT

(77)

Implementation

A canonical reduction of PSAT to SAT n = 80 variables

k = 5, b= 10

52 hours to compute! ECAA!

Phase-transition found for PSATYippie!

(78)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

PSAT Phase Transition

(79)

Lessons Learned So Far

Canonical reduction in nota “decent” implementation of a PSAT-solver

A “decent” one may not exits

There may not exist a linear reduction of PSAT to SAT PSAT may be more complex than SAT

even if P=NP or not

(80)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

What to do now?

Explore other reduction strategies Explore other forms of reductions

Turing reduction: an algorithm that invokes a polynomial number of SAT problems

Turing reductions explore properties of PSAT problems We are going to explore some logical properties of PSAT

(81)

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

(82)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Probabilistic Entailment

Normal form problem (Γ,Ψ) Ψ|≈α iff ({¬α},Ψ) is P-UNSAT Intuition: Ψ forces P(α)>0

(83)

Probabilistic Entailment

Normal form problem (Γ,Ψ) Ψ|≈α iff ({¬α},Ψ) is P-UNSAT Intuition: Ψ forces P(α)>0

Theorem (PSAT Logic-Algebraic Characterization) The following are equivalent:

(Γ,Ψ)is P-satisfiable

A, π such that A·π=p, aij∈ {0,1},π0, vAj(Γ) = 1

(84)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Partial Solutions

A partial solution (A, π),

A·π =p, π≥0, aij ∈ {0,1}

Allowed: Aj such thatvAj(Γ) = 0

A partial solution always exists (relaxedsolution)

1 · · · 1

0 . .. ...

... . .. . .. ...

0 · · · 0 1

·

 π1

π2 ... πk+1

=

 1 p1

... pk

(85)

Second Example – Part III

Γ =

¯

xa ¯ya ¯zb abc

¯

xb ¯yc ¯zc

¯

a∨¯bx ¯a∨¯cy ¯b∨¯cz

 Ψ ={P(x) = 0.61;P(y) = 0.60;P(z) = 0.59}

The relaxed solution is

x y z

1 1 1 1

0 1 1 1

0 0 1 1

0 0 0 1

·

 0.39 0.01 0.01 0.59

=

 1 0.61 0.60 0.59

(86)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

New PSAT Algorithm

1 Input: (Γ,Ψ)

2 Start with a relaxed solution

3 Transform partial solution into partial solution

4 Until either a solution is found, or (Γ,Ψ) is proven P-UNSAT.

(87)

New PSAT Algorithm

1 Input: (Γ,Ψ)

2 Start with a relaxed solution

3 Transform partial solution into partial solution

4 Until either a solution is found, or (Γ,Ψ) is proven P-UNSAT.

Transformation is by finding formulas α,ψ|≈α Submit Γ∪ {α} to SAT solver.

if UNSAT, (Γ,Ψ) is P-UNSAT

else, takev(Γ∪ {α}) = 1 and substitute one column of partial solution with it

This can always be done so as to obtain a new partial solution

(88)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

New PSAT Algorithm

1 Input: (Γ,Ψ)

2 Start with a relaxed solution

3 Transform partial solution into partial solution

4 Until either a solution is found, or (Γ,Ψ) is proven P-UNSAT.

Transformation is by finding formulas α,ψ|≈α Submit Γ∪ {α} to SAT solver.

if UNSAT, (Γ,Ψ) is P-UNSAT

else, takev(Γ∪ {α}) = 1 and substitute one column of partial solution with it

This can always be done so as to obtain a new partial solution 2 Problems:

How to compute conditionα

(89)

Second Example – Part IV

Choose a columnj, replace it with [1 x1 · · · xk]t

A=

1 1 1 1

0 1 x 1

0 0 y 1

0 0 z 1

Cramer’s:ruleπl = |A[l:=p]||A| ≥0, l ∈[1,k+ 1]. For l =j:

1 1 1 1

0 1 .61 1 0 0 .60 1 0 0 .59 1

1 1 1 1 0 = y¯+z0

(90)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Second Example – Part IV (cont.)

Whenx,y,z ∈ {0,1},α= [¯y+z ≤0]is a formula Any linear (in)equality with {0,1}-variablesis a formula There is a linear-time SAT-translation of (in)equalities Lemma: Ψ|≈α

So Γ∪ {α}must be satisfiable if problem is P-SAT Valuation: [10 1 0]t

Lemma: any column can replace some column of A, keeping π ≥0

(91)

Second Example – Part IV (cont.)

x y z

1 1 1 1

0 1 0 1

0 0 1 1

0 0 0 1

·

 0.38 0.02 0.01 0.59

=

 1 0.61 0.60 0.59

As all columns are Γ-consistent, the problem is P-satisfiable (We were lucky!)

(92)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Back to the First Example

Γ =

ab ac bc

Ψ ={P(a) =P(b) =P(c) = 0.6}

(93)

First Example (cont)

Relaxed solution

a b c

1 1 1 1 0 1 1 1 0 0 1 1 0 0 0 1

·

 0.4

0 0 0.6

=

 1 0.6 0.6 0.6

Applying the process, obtain Ψ|≈[¯b≥1]∧[a+c ≤1]

But Γ∪ {[¯b≥1]∧[a+c ≤1]} is UNSAT So the problem is P-UNSAT

(94)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Computing Conditions from Partial Solutions

Partial solution A·π=p, computeA·π =p Choose a column j, replace it with [1 x1 · · · xk]t

1 · · · 1 · · · 1 a1,1 · · · x1 · · · a1,k+1

... ... ...

ak,1 · · · xk · · · ak,k+1

·

 π1 π2 ... πk+1

=

 1 p1

... pk

(95)

Computing Conditions from Partial Solutions

Partial solution A·π=p, computeA·π =p Choose a column j, replace it with [1 x1 · · · xk]t

1 · · · 1 · · · 1 a1,1 · · · x1 · · · a1,k+1

... ... ...

ak,1 · · · xk · · · ak,k+1

·

 π1 π2 ... πk+1

=

 1 p1

... pk

By Cramer’s rule πj = |A[j:=p]||A| ≥0

Note: |A[j :=p]|is a number, |A|is a polynomial of degree 1

(96)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Computing Conditions (Cont.)

Linear inequalities with variables over {0,1}are the inteface between SAT, algebra and probabilities

Other conditions obtained from Cramer’s Rule for other columns

πj = |A[j :=p]|

|A| ≥0

A suitable combination of those lead to a halting condition This algorithm is aTuring Reduction

Complexity of SAT calls is O(k3) variables We hope to bring it down toO(k2) variables

(97)

Computing Conditions (Cont.)

Linear inequalities with variables over {0,1}are the inteface between SAT, algebra and probabilities

Other conditions obtained from Cramer’s Rule for other columns

πj = |A[j :=p]|

|A| ≥0

A suitable combination of those lead to a halting condition This algorithm is aTuring Reduction

Complexity of SAT calls is O(k3) variables We hope to bring it down toO(k2) variables

(98)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Next Topic

1 Introduction

2 SAT

Empirical Properties

3 Probabilistic Satisfiability

4 A Brief History of PSAT

5 Canonical Reduction of PSAT to SAT

6 PSAT via Logic

7 Conclusions and Conjectures

(99)

Conclusions and Conjectures

Relationship between Deductive and Probabilistic reasoning Deductive bridge: Linear Algebra Probabilistic Not sure if PSAT will have a use in practice.

(100)

Introduction SAT PSAT History Canonical PSAT via Logic Conclusions

Conclusions and Conjectures

Relationship between Deductive and Probabilistic reasoning Deductive bridge: Linear Algebra Probabilistic Not sure if PSAT will have a use in practice.

Conjecture: the internal structure of class NP revealed by reductions to SAT

Subclasses NPf NP: A problem ΠNPf if there is a reduction of Π into SAT of sizeO(f)-variables

PSAT is NPn3logn

If Turing reductions are used, PSAT is in NPn3

Referências

Documentos relacionados

O grupo tem consistentes objetivos estratégicos na Área Comercial e um papel fundamental do coordenador Comercial será a implementação de um plano de expansão

Effect of storage and domestic processing on the content and composition of flavonol glucosides in onion (Allium cepa).. Journal of Agricultural and

A análise estatística foi realizada empregando-se o aplicativo SPSS 11.5 (Statistical Package for the Social Sciences). As variáveis numéricas contínuas que

Seguindo essa linha de pensamento, nossa proposta é realizar uma prospecção teórica acerca das confluências entre a escrita e os meios de produção de imagens em movimento

São cinco horas de prova e você precisa estar com energia para se manter concentrado por tanto tempo.. Não coma nada que não esteja acostumado para não ter

Trata-se sem dúvida de grande perda para a nação, tendo em vista sua antiguidade (9,7 mil anos) e sua utilização como cemitério pelos grupos pré-históricos que ali habitaram.

Por serem em tudo an´ alogas ao caso das fun¸ c˜ oes reais da vari´ avel real, omitimos a prova das seguintes propriedades:.. Propriedade 4.1.3 Sejam f, g C-deriv´aveis em

Almeno 24 ore prima di procedere al congelamento di cibi freschi nel prodotto, attivare il congelamento rapido (fast freezing) premendo il tasto (4) per circa 3 secondi.. La spia