Boolean Constraint Satisfaction Problems Heribert Vollmer Institut - - PowerPoint PPT Presentation

boolean constraint satisfaction problems
SMART_READER_LITE
LIVE PREVIEW

Boolean Constraint Satisfaction Problems Heribert Vollmer Institut - - PowerPoint PPT Presentation

Boolean Constraint Satisfaction Problems Heribert Vollmer Institut f ur Theoretische Informatik Leibniz-Universit at Hannover Boolean Constraint Satisfaction Problems or: When does Posts Lattice Help? Heribert Vollmer Institut f


slide-1
SLIDE 1

Boolean Constraint Satisfaction Problems

Heribert Vollmer

Institut f¨ ur Theoretische Informatik Leibniz-Universit¨ at Hannover

slide-2
SLIDE 2

Boolean Constraint Satisfaction Problems

  • r: When does Post’s Lattice Help?

Heribert Vollmer

Institut f¨ ur Theoretische Informatik Leibniz-Universit¨ at Hannover

slide-3
SLIDE 3

Boolean Constraint Satisfaction Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Γ – a finite set of Boolean relations Constraint: R(x1, . . . , xn) for R ∈ Γ, x1, . . . , xn propos. variables Γ-formula: Conjunction of constraints over Γ

Boolean Constraint Satisfaction Problems 2

slide-4
SLIDE 4

Boolean Constraint Satisfaction Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Γ – a finite set of Boolean relations Constraint: R(x1, . . . , xn) for R ∈ Γ, x1, . . . , xn propos. variables Γ-formula: Conjunction of constraints over Γ Example: R1-IN-3 =

  • (0, 0, 1), (0, 1, 0), (1, 0, 0)
  • .

Then: {R1-IN-3}-formulas = instances of 1-IN-3-SAT.

Boolean Constraint Satisfaction Problems 2

slide-5
SLIDE 5

Boolean Constraint Satisfaction Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Γ – a finite set of Boolean relations Constraint: R(x1, . . . , xn) for R ∈ Γ, x1, . . . , xn propos. variables Γ-formula: Conjunction of constraints over Γ Example: R1-IN-3 =

  • (0, 0, 1), (0, 1, 0), (1, 0, 0)
  • .

Then: {R1-IN-3}-formulas = instances of 1-IN-3-SAT. CSP(Γ): Input: a propositional Γ-formula F Question: Is F satisfiable?

Boolean Constraint Satisfaction Problems 2

slide-6
SLIDE 6

Comparing Complexities of CSPs

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Goal: Determine the computational complexity of CSP(Γ) as a function of Γ! ◮ Determine Γ0 such that CSP(Γ0) is NP-complete and conclude that CSP(Γ) is NP-complete for all“harder”Γ as well. ◮ Determine Γ1 such that CSP(Γ1) is tractable and conclude that CSP(Γ) is tractable for all“easier”Γ as well. Need a way to compare complexity of CSP(Γ) for different Γ.

Boolean Constraint Satisfaction Problems 3

slide-7
SLIDE 7

Reductions

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Question: When does CSP(Γ) reduce to CSP(Γ′)?

Boolean Constraint Satisfaction Problems 4

slide-8
SLIDE 8

Reductions

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Question: When does CSP(Γ) reduce to CSP(Γ′)? Answer: When using relations in Γ′ we can simulate (implement) all relations in Γ.

Boolean Constraint Satisfaction Problems 4

slide-9
SLIDE 9

Reductions

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Question: When does CSP(Γ) reduce to CSP(Γ′)? Answer: When using relations in Γ′ we can simulate (implement) all relations in Γ. Develop a reasonable notion of the class of relations that can be implemented by Γ′.

Boolean Constraint Satisfaction Problems 4

slide-10
SLIDE 10

Relational Clones

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let Γ be the relational clone (or co-clone) generated by Γ, i.e., – Γ contains the equality relation and all relations in Γ. – Γ is closed under primitive positive definitions, i.e., if φ is a Γ-formula and R(x1, . . . , xn) ≡ ∃y1 . . . yℓ φ(x1, . . . , xn, y1, . . . , yℓ) then R ∈ Γ. (Such R are also called conjunctive queries over Γ.) Γ is called the expressive power of Γ.

Boolean Constraint Satisfaction Problems 5

slide-11
SLIDE 11

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows:

Boolean Constraint Satisfaction Problems 6

slide-12
SLIDE 12

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by its defining existentially quantified

  • Γ′ ∪ {=}
  • formula.

Boolean Constraint Satisfaction Problems 6

slide-13
SLIDE 13

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by its defining existentially quantified

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers.

Boolean Constraint Satisfaction Problems 6

slide-14
SLIDE 14

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by its defining existentially quantified

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses and replace all variables that are connected via a chain of equality constraints by a common new variable (undirected graph accessibility problem).

Boolean Constraint Satisfaction Problems 6

slide-15
SLIDE 15

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by its defining existentially quantified

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses and replace all variables that are connected via a chain of equality constraints by a common new variable (undirected graph accessibility problem). F ′ is a Γ′-formula. Then: F is satisfiable iff F ′ is satisfiable.

Boolean Constraint Satisfaction Problems 6

slide-16
SLIDE 16

Relational Clones and CSPs

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ⊆ Γ′, then CSP(Γ) ≤log

m CSP(Γ′).

◮ If Γ = Γ′, then CSP(Γ) ≡log

m CSP(Γ′),

i.e., the complexity of CSP(Γ) depends only on Γ. We only have to study co-clones in order to obtain a full classification. “Galois connection helps for satisfiability.”

Boolean Constraint Satisfaction Problems 7

slide-17
SLIDE 17

Relational Clones and CSPs

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ⊆ Γ′, then CSP(Γ) ≤log

m CSP(Γ′).

◮ If Γ = Γ′, then CSP(Γ) ≡log

m CSP(Γ′),

i.e., the complexity of CSP(Γ) depends only on Γ. We only have to study co-clones in order to obtain a full classification. “Galois connection helps for satisfiability.” What co-clones are there?

Boolean Constraint Satisfaction Problems 7

slide-18
SLIDE 18

Closure Properties of Relations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let f : {0, 1}m → {0, 1}, R ⊆ {0, 1}n. f ≈ R, if

Boolean Constraint Satisfaction Problems 8

slide-19
SLIDE 19

Closure Properties of Relations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let f : {0, 1}m → {0, 1}, R ⊆ {0, 1}n. f ≈ R, if x1 = x1,1 x1,2 x1,3 · · · x1,n ∈ R x2 = x2,1 x2,2 x2,3 · · · x2,n ∈ R . . . . . . . . . . . . . . . xm = xm,1 xm,2 xm,3 · · · xm,n ∈ R

Boolean Constraint Satisfaction Problems 8

slide-20
SLIDE 20

Closure Properties of Relations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let f : {0, 1}m → {0, 1}, R ⊆ {0, 1}n. f ≈ R, if f ( f ( f ( f ( x1 = x1,1 x1,2 x1,3 · · · x1,n ∈ R x2 = x2,1 x2,2 x2,3 · · · x2,n ∈ R . . . . . . . . . . . . . . . xm = xm,1 xm,2 xm,3 · · · xm,n ∈ R ) = ) = ) = ) = z1 z2 z3 · · · zn

Boolean Constraint Satisfaction Problems 8

slide-21
SLIDE 21

Closure Properties of Relations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let f : {0, 1}m → {0, 1}, R ⊆ {0, 1}n. f ≈ R, if f ( f ( f ( f ( If x1 = x1,1 x1,2 x1,3 · · · x1,n ∈ R x2 = x2,1 x2,2 x2,3 · · · x2,n ∈ R . . . . . . . . . . . . . . . xm = xm,1 xm,2 xm,3 · · · xm,n ∈ R ) = ) = ) = ) = then also z = z1 z2 z3 · · · zn ∈ R. R is invariant under f . f preserves R.

Boolean Constraint Satisfaction Problems 8

slide-22
SLIDE 22

Clones of Polymorphisms

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Pol(Γ) is the set of all polymorphisms of Γ, i.e., the set of all Boolean functions that preserve every relation in Γ. ◮ Pol(Γ) is a clone, i.e., a set of Boolean functions that contains all projections and is closed under composition. Post’s lattice [Emil Post, 1921/1941]: – List of all Boolean clones – Inclusion structure among them – Finite basis for each of them

Boolean Constraint Satisfaction Problems 9

slide-23
SLIDE 23

Co-Clones of Invariants

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Inv(B) is the set of all invariants of B, i.e., the set of all Boolean relations that are preserved by every function in B. ◮ Inv(B) is a relational clone.

Boolean Constraint Satisfaction Problems 10

slide-24
SLIDE 24

Co-Clones of Invariants

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Inv(B) is the set of all invariants of B, i.e., the set of all Boolean relations that are preserved by every function in B. ◮ Inv(B) is a relational clone. [Post 1941]: Every clone B can be characterized by the set of its invariant constraints: Let Γ0 be a basis for the co-clone Inv(B). Then, ◮ A function belongs to B iff it preserves all relations in Γ0.

Boolean Constraint Satisfaction Problems 10

slide-25
SLIDE 25

The Galois Correspondence

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ Inv

  • Pol(Γ)
  • = Γ.

◮ Pol

  • Inv(B)
  • = [B].

One-one correspondence between clones and co-clones;

  • btain complete list of co-clones from Post’s lattice.

Determine easy bases for relational clones!

Boolean Constraint Satisfaction Problems 11

slide-26
SLIDE 26

Efficient SAT Algorithms

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

If Γ ⊆ Inv(E2) (∧ ≈ Γ) then CSP(Γ) ∈ P (Horn relations). If Γ ⊆ Inv(V2) (∨ ≈ Γ) then CSP(Γ) ∈ P (anti-Horn relations). If Γ ⊆ Inv(D2) (T3

2 ≈ Γ) then CSP(Γ) ∈ P

(2-CNF relations). If Γ ⊆ Inv(L2) (⊕3 ≈ Γ) then CSP(Γ) ∈ P (affine relations). If Γ ⊆ Inv(I1) (1 ≈ Γ) then CSP(Γ) ∈ P (1-valid relations). If Γ ⊆ Inv(I0) (0 ≈ Γ) then CSP(Γ) ∈ P (0-valid relations).

Boolean Constraint Satisfaction Problems 12

slide-27
SLIDE 27

Efficient SAT Algorithms

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

If Γ ⊆ Inv(E2) (∧ ≈ Γ) then CSP(Γ) ∈ P (Horn relations). If Γ ⊆ Inv(V2) (∨ ≈ Γ) then CSP(Γ) ∈ P (anti-Horn relations). If Γ ⊆ Inv(D2) (T3

2 ≈ Γ) then CSP(Γ) ∈ P

(2-CNF relations). If Γ ⊆ Inv(L2) (⊕3 ≈ Γ) then CSP(Γ) ∈ P (affine relations). If Γ ⊆ Inv(I1) (1 ≈ Γ) then CSP(Γ) ∈ P (1-valid relations). If Γ ⊆ Inv(I0) (0 ≈ Γ) then CSP(Γ) ∈ P (0-valid relations). What remains?

Boolean Constraint Satisfaction Problems 12

slide-28
SLIDE 28

Efficient SAT Algorithms

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

If Γ ⊆ Inv(E2) (∧ ≈ Γ) then CSP(Γ) ∈ P (Horn relations). If Γ ⊆ Inv(V2) (∨ ≈ Γ) then CSP(Γ) ∈ P (anti-Horn relations). If Γ ⊆ Inv(D2) (T3

2 ≈ Γ) then CSP(Γ) ∈ P

(2-CNF relations). If Γ ⊆ Inv(L2) (⊕3 ≈ Γ) then CSP(Γ) ∈ P (affine relations). If Γ ⊆ Inv(I1) (1 ≈ Γ) then CSP(Γ) ∈ P (1-valid relations). If Γ ⊆ Inv(I0) (0 ≈ Γ) then CSP(Γ) ∈ P (0-valid relations). What remains? Γ ⊇ Inv(N2), i.e., only polymorphism is negation.

Boolean Constraint Satisfaction Problems 12

slide-29
SLIDE 29

Schaefer’s Theorem

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

RNAE =

  • (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0)
  • .

Pol(RNAE) = N2.

Boolean Constraint Satisfaction Problems 13

slide-30
SLIDE 30

Schaefer’s Theorem

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

RNAE =

  • (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0)
  • .

Pol(RNAE) = N2. But: CSP

  • {RNAE}
  • = NOT-ALL-EQUAL-SAT, NP-complete.

Boolean Constraint Satisfaction Problems 13

slide-31
SLIDE 31

Schaefer’s Theorem

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

RNAE =

  • (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0)
  • .

Pol(RNAE) = N2. But: CSP

  • {RNAE}
  • = NOT-ALL-EQUAL-SAT, NP-complete.

◮ If Γ ⊇ Inv

  • N2
  • then CSP(Γ) is NP-complete, otherwise

CSP(Γ) is in P. [Schaefer 1978] Through“polynomial-time glasses” , we observe dichotomy.

Boolean Constraint Satisfaction Problems 13

slide-32
SLIDE 32

A Finer Classification w.r.t. Logspace-Reductions

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ∈ {Inv(I2), Inv(N2)}, then CSP(Γ) is NP-complete. ◮ If Γ ∈ {Inv(V2), Inv(E2)}, then CSP(Γ) is P-complete. ◮ If Γ ∈ {Inv(L2), Inv(L3)}, then CSP(Γ) is ⊕L-complete. ◮ If Inv(S2

00) ⊆ Γ ⊆ Inv(S00) or Inv(S2 10) ⊆ Γ ⊆ Inv(S10) or

Γ ∈ {Inv(D2), Inv(M2)}, then CSP(Γ) is NL-complete. ◮ If Γ ∈ {Inv(D1), Inv(D)} or Inv(R2) ⊆ Γ ⊆ Inv(S02 or Inv(R2) ⊆ Γ ⊆ Inv(S12, then CSP(Γ) is in L. ◮ If Γ ⊆ Inv(I0) or Γ ⊆ Inv(I1), then every constraint formula over Γ is satisfiable, and therefore CSP(Γ) is trivial. [Allender-Bauland-Immerman-Schnoor-Vollmer 2005] Through“logspace glasses” , there are 5 complexity levels for CSP.

Boolean Constraint Satisfaction Problems 14

slide-33
SLIDE 33

Quantified Boolean Formulae

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QBF (determination of truth of a closed quantified Boolean formula) is PSPACE-complete. [Stockmeyer-Meyer 1973] ◮ QCNF (restriction to matrix in CNF) remains complete.

Boolean Constraint Satisfaction Problems 15

slide-34
SLIDE 34

Quantified Boolean Formulae

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QBF (determination of truth of a closed quantified Boolean formula) is PSPACE-complete. [Stockmeyer-Meyer 1973] ◮ QCNF (restriction to matrix in CNF) remains complete. ◮ QCSP(Γ) (determination of truth of a closed quantified Γ-formula) is PSPACE-complete if Γ ⊇ Inv(N), otherwise QCSP(Γ) is tractable. [Schaefer 1978, Dalmau 2000, Creignou-Khanna-Sudan 2001]

Boolean Constraint Satisfaction Problems 15

slide-35
SLIDE 35

Bounded Number of Alternations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QBFi (restriction of QBF to prenex normal-form with i − 1 quantifier alternations, starting with existential) is complete for the class Σp

i of the polynomial-time hierarchy.

◮ For i odd, QCNFi is Σp

i -complete.

◮ For i even, QDNFi is Σp

i -complete.

[Wrathall, 1977]

Boolean Constraint Satisfaction Problems 16

slide-36
SLIDE 36

Bounded Number of Alternations

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QBFi (restriction of QBF to prenex normal-form with i − 1 quantifier alternations, starting with existential) is complete for the class Σp

i of the polynomial-time hierarchy.

◮ For i odd, QCNFi is Σp

i -complete.

◮ For i even, QDNFi is Σp

i -complete.

[Wrathall, 1977] How to define QCSPi?

Boolean Constraint Satisfaction Problems 16

slide-37
SLIDE 37

Quantified Constraints

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

QCSPi(Γ): For i odd, determine if a closed quantified Γ-formula with i − 1 quantifier alternations starting with existential quantifier is true. For i even, determine if a closed quantified Γ-formula with i − 1 quantifier alternations starting with universal quantifier is false.

Boolean Constraint Satisfaction Problems 17

slide-38
SLIDE 38

Quantified Constraints

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

QCSPi(Γ): For i odd, determine if a closed quantified Γ-formula with i − 1 quantifier alternations starting with existential quantifier is true. For i even, determine if a closed quantified Γ-formula with i − 1 quantifier alternations starting with universal quantifier is false. ◮ If Γ ⊆ Γ′, then QCSPi(Γ) ≤log

m QCSPi(Γ′).

“Galois connection helps for quantified satisfiability.”

Boolean Constraint Satisfaction Problems 17

slide-39
SLIDE 39

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

since Inv(R1-IN-3) is the class of all Boolean relations.

Boolean Constraint Satisfaction Problems 18

slide-40
SLIDE 40

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

since Inv(R1-IN-3) is the class of all Boolean relations. ◮ QCSPi

  • {RNAE}
  • is Σp

i -complete:

Replace every constraint R1-IN-3(x1, x2, x3) by R2-IN-4(x1, x2, x3, t) for a (common) new variable t, and observe R2-IN-4(x1, x2, x3, t) =

i=j RNAE(xi, xj, t) ∧ RNAE(x1, x2, x3).

Quantify t in first quantifier block.

Boolean Constraint Satisfaction Problems 18

slide-41
SLIDE 41

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

since Inv(R1-IN-3) is the class of all Boolean relations. ◮ QCSPi

  • {RNAE}
  • is Σp

i -complete:

Replace every constraint R1-IN-3(x1, x2, x3) by R2-IN-4(x1, x2, x3, t) for a (common) new variable t, and observe R2-IN-4(x1, x2, x3, t) =

i=j RNAE(xi, xj, t) ∧ RNAE(x1, x2, x3).

Quantify t in first quantifier block. ◮ QCSPi({R0}) is Σp

i -complete,

where R0(u, v, x1, x2, x3) ≡ u = v ∨ NAE(x1, x2, x3): Replace every constraint NAE(x1, x2, x3) by R0(u, v, x1, x2, x3). Quantify u, v in last universal quantifier block.

Boolean Constraint Satisfaction Problems 18

slide-42
SLIDE 42

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

✞ ✝ ☎ ✆

R1-IN-3 ∈ Inv(I2) since Inv(R1-IN-3) is the class of all Boolean relations. ◮ QCSPi

  • {RNAE}
  • is Σp

i -complete:

Replace every constraint R1-IN-3(x1, x2, x3) by R2-IN-4(x1, x2, x3, t) for a (common) new variable t, and observe R2-IN-4(x1, x2, x3, t) =

i=j RNAE(xi, xj, t) ∧ RNAE(x1, x2, x3).

Quantify t in first quantifier block. ◮ QCSPi({R0}) is Σp

i -complete,

where R0(u, v, x1, x2, x3) ≡ u = v ∨ NAE(x1, x2, x3): Replace every constraint NAE(x1, x2, x3) by R0(u, v, x1, x2, x3). Quantify u, v in last universal quantifier block.

Boolean Constraint Satisfaction Problems 18

slide-43
SLIDE 43

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

✞ ✝ ☎ ✆

R1-IN-3 ∈ Inv(I2) since Inv(R1-IN-3) is the class of all Boolean relations. ◮ QCSPi

  • {RNAE}
  • is Σp

i -complete:

✞ ✝ ☎ ✆

RNAE ∈ Inv(N2) Replace every constraint R1-IN-3(x1, x2, x3) by R2-IN-4(x1, x2, x3, t) for a (common) new variable t, and observe R2-IN-4(x1, x2, x3, t) =

i=j RNAE(xi, xj, t) ∧ RNAE(x1, x2, x3).

Quantify t in first quantifier block. ◮ QCSPi({R0}) is Σp

i -complete,

where R0(u, v, x1, x2, x3) ≡ u = v ∨ NAE(x1, x2, x3): Replace every constraint NAE(x1, x2, x3) by R0(u, v, x1, x2, x3). Quantify u, v in last universal quantifier block.

Boolean Constraint Satisfaction Problems 18

slide-44
SLIDE 44

Classification of QCSPi(Γ)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSPi

  • {R1-IN-3}
  • is Σp

i -complete,

✞ ✝ ☎ ✆

R1-IN-3 ∈ Inv(I2) since Inv(R1-IN-3) is the class of all Boolean relations. ◮ QCSPi

  • {RNAE}
  • is Σp

i -complete:

✞ ✝ ☎ ✆

RNAE ∈ Inv(N2) Replace every constraint R1-IN-3(x1, x2, x3) by R2-IN-4(x1, x2, x3, t) for a (common) new variable t, and observe R2-IN-4(x1, x2, x3, t) =

i=j RNAE(xi, xj, t) ∧ RNAE(x1, x2, x3).

Quantify t in first quantifier block. ◮ QCSPi({R0}) is Σp

i -complete,

✞ ✝ ☎ ✆

R0 ∈ Inv(N) where R0(u, v, x1, x2, x3) ≡ u = v ∨ NAE(x1, x2, x3): Replace every constraint NAE(x1, x2, x3) by R0(u, v, x1, x2, x3). Quantify u, v in last universal quantifier block.

Boolean Constraint Satisfaction Problems 18

slide-45
SLIDE 45

Hemaspaandra’s Theorem

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSP(Γ) is tractable if Γ is Horn, anti-Horn, bijunctive, or affine. [Schaefer 1978, Creignou-Khanna-Sudan 2001] If Γ is not in one of these cases, then Γ ⊇ Inv(N) ∋ R0.

Boolean Constraint Satisfaction Problems 19

slide-46
SLIDE 46

Hemaspaandra’s Theorem

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ QCSP(Γ) is tractable if Γ is Horn, anti-Horn, bijunctive, or affine. [Schaefer 1978, Creignou-Khanna-Sudan 2001] If Γ is not in one of these cases, then Γ ⊇ Inv(N) ∋ R0. Hence: ◮ If Γ ⊇ Inv(N) then QCSPi(Γ) is Σp

i -complete and QCSP(Γ) is

PSPACE-complete; otherwise QCSPi(Γ) and QCSP(Γ) are tractable. [Hemaspaandra 2004]

Boolean Constraint Satisfaction Problems 19

slide-47
SLIDE 47

Counting Solutions for Quantified Constraints

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#QCSPi(Γ): For i odd, determine number of satisfying assignments of a quantified Γ-formula with i − 1 quantifier alternations starting with existential quantifier. For i even, determine number of unsatisfying assignments of a quantified Γ-formula with i − 1 quantifier alternations starting with universal quantifier. ◮ If Γ ⊆ Γ′, then #QCSPi(Γ) ≤p

m #QCSPi(Γ′).

“Galois connection helps for #QCSPi.”

Boolean Constraint Satisfaction Problems 20

slide-48
SLIDE 48

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

A – binary relation s.t. (x, y) ∈ A = ⇒ |y| is polynomial in |x| A(x) = { y | (x, y) ∈ A }, #A(x) = |A(x)|. #A ≤p

m #B if there is polynomial-time computable function f

s.t. for all x, #A(x) = #B(f (x)). [Valiant 1979] ( “parsimonious reductions” )

Boolean Constraint Satisfaction Problems 21

slide-49
SLIDE 49

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

A – binary relation s.t. (x, y) ∈ A = ⇒ |y| is polynomial in |x| A(x) = { y | (x, y) ∈ A }, #A(x) = |A(x)|. #A ≤p

m #B if there is polynomial-time computable function f

s.t. for all x, #A(x) = #B(f (x)). [Valiant 1979] ( “parsimonious reductions” ) #SAT is ≤p

m-complete for #P, but not many further complete

problems are known.

Boolean Constraint Satisfaction Problems 21

slide-50
SLIDE 50

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#A ≤p

cnt #B if there are polynomial-time computable function f , g

s.t. for all x, #A(x) = g

  • #B(f (x))
  • .

[Zank´

  • 1991]

( “counting reductions” )

Boolean Constraint Satisfaction Problems 22

slide-51
SLIDE 51

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#A ≤p

cnt #B if there are polynomial-time computable function f , g

s.t. for all x, #A(x) = g

  • #B(f (x))
  • .

[Zank´

  • 1991]

( “counting reductions” ) Permanent and many further problems are known to be ≤p

cnt-complete for #P, but #P is not closed under counting

reductions, in fact: ◮ ≤p

cnt(#P) = #PH = k≥0 #Σp k.

[Toda-Watanabe 1992]

Boolean Constraint Satisfaction Problems 22

slide-52
SLIDE 52

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#A ≤p

cnt #B if there are polynomial-time computable function f , g

s.t. for all x, #A(x) = g

  • #B(f (x))
  • .

[Zank´

  • 1991]

( “counting reductions” ) Permanent and many further problems are known to be ≤p

cnt-complete for #P, but #P is not closed under counting

reductions, in fact: ◮ ≤p

cnt(#P) = #PH = k≥0 #Σp k.

[Toda-Watanabe 1992] Look for a reduction powerful enough to prove completeness results but strict enough to distinguish among levels of the #Σp

k-hierarchy.

Boolean Constraint Satisfaction Problems 22

slide-53
SLIDE 53

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#A ≤p

ssub #B if there are polynomial-time computable function

f , g s.t. for all x, – B(g(x)) ⊆ B(f (x)). – #A(x) = #B(f (x)) − #B(g(x)). “Subtractive reduction”≤p

sub is the transitive closure of strong

subtractive reduction ≤p

ssub.

[Durand-Hermann-Kolaitis 2000] ◮ #P and all classes #Πp

k for k > 1 are closed under subtractive

reductions, but ≤p

sub(#Σp k) = #Πp k.

Boolean Constraint Satisfaction Problems 23

slide-54
SLIDE 54

Reductions for Counting Problems

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

#A ≤p

scom #B if there are polynomial-time computable function

f , g and a bipartite permutation π on the alphabet underlying B s.t. for all x, – B(g(x)) ⊆ B(f (x)). – y ∈ B(x) ⇐ ⇒ π(y) ∈ B(x) – 2 · #A(x) = #B(f (x)) − #B(g(x)). “Complementive reduction”≤p

com is the transitive closure of strong

complementive reduction ≤p

scom and parsimonious reduction ≤p m.

[Bauland-Chapdelaine-Creignou-Hermann-Vollmer 2004] ◮ #P and all classes #Πp

k for k > 1 are closed under

complementive reductions, but ≤p

com(#Σp k) = #Πp k.

Boolean Constraint Satisfaction Problems 24

slide-55
SLIDE 55

Classification of #QCSP

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

For every i ≥ 1, ◮ if Γ ⊆ Inv(L2) then #QCSPi(Γ) and #QCSP(Γ) are tractable, ◮ else if Γ ⊆ Inv(E2) or Γ ⊆ Inv(V2) or Γ ⊆ Inv(D2) then #QCSPi(Γ) and #QCSP(Γ) are ≤p

cnt-complete for #P,

◮ else (note: Γ ⊇ Inv(N)) #QCSPi(Γ) is ≤p

com-complete for

#Σp

i and #QCSP(Γ) is ≤p com-complete for #PSPACE.

[Bauland-B¨

  • hler-Creignou-Reith-Schnoor-Vollmer 2006]

Boolean Constraint Satisfaction Problems 25

slide-56
SLIDE 56

Classification of #QCSP

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

For every i ≥ 1, ◮ if Γ ⊆ Inv(L2) then #QCSPi(Γ) and #QCSP(Γ) are tractable, ◮ else if Γ ⊆ Inv(E2) or Γ ⊆ Inv(V2) or Γ ⊆ Inv(D2) then #QCSPi(Γ) and #QCSP(Γ) are ≤p

cnt-complete for #P,

◮ else (note: Γ ⊇ Inv(N)) #QCSPi(Γ) is ≤p

com-complete for

#Σp

i and #QCSP(Γ) is ≤p com-complete for #PSPACE.

[Bauland-B¨

  • hler-Creignou-Reith-Schnoor-Vollmer 2006]

– In 2nd case, #QCSPi(Γ) is not tractable unless FP = #P. – In 3rd case, #QCSPi(Γ) is not in #Σp

i−1 unless #Σp i = #Πp i−1.

Boolean Constraint Satisfaction Problems 25

slide-57
SLIDE 57

A priori

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

The Galois connection holds a priori for a computational problem Π, if we can prove ◮ If Γ ⊆ Γ′ then Π(Γ) ≤log

m Π(Γ′)

and use this to obtain a complexity theoretic classification.

Boolean Constraint Satisfaction Problems 26

slide-58
SLIDE 58

A priori

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

The Galois connection holds a priori for a computational problem Π, if we can prove ◮ If Γ ⊆ Γ′ then Π(Γ) ≤log

m Π(Γ′)

and use this to obtain a complexity theoretic classification. For problems above, the Galois connection holds a priori.

Boolean Constraint Satisfaction Problems 26

slide-59
SLIDE 59

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by equivalent

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses. F ′ is a Γ′-formula. Then: F is satisfiable iff F ′ is satisfiable.

Boolean Constraint Satisfaction Problems 27

slide-60
SLIDE 60

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by equivalent

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses. F ′ is a Γ′-formula. Then: F is satisfiable iff F ′ is satisfiable. Problem: Introduction of new existentially quantified variables. Preserves satisfiability, but does not preserve number of solutions, etc.

Boolean Constraint Satisfaction Problems 27

slide-61
SLIDE 61

When does the Galois Connection Hold?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Galois connection holds a priori for Π, if definition of Π allows to “hide”the new existentially quantified variables that are introduced by co-clone implementation.

Boolean Constraint Satisfaction Problems 28

slide-62
SLIDE 62

When does the Galois Connection Hold?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Galois connection holds a priori for Π, if definition of Π allows to “hide”the new existentially quantified variables that are introduced by co-clone implementation. Examples: – Satisfiability – Several computational problems for quantified constraints

Boolean Constraint Satisfaction Problems 28

slide-63
SLIDE 63

Positive Examples

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

– Circumscription: [Nordh-Jonsson 2004] Given formula F, subset M of variables, clause C, determine if C holds in every satisfying assignment of F that is minimal on M in componentwise order.

Boolean Constraint Satisfaction Problems 29

slide-64
SLIDE 64

Positive Examples

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

– Circumscription: [Nordh-Jonsson 2004] Given formula F, subset M of variables, clause C, determine if C holds in every satisfying assignment of F that is minimal on M in componentwise order. – Frozen variables: [Jonsson-Krokhin 2003] [Bauland-Chapdelaine-Creignou-Hermann-Vollmer 2004] Given formula F, subset M of variables, check if there is a variable x ∈ M that has the same value in every satisfying assignment of F.

Boolean Constraint Satisfaction Problems 29

slide-65
SLIDE 65

Positive Examples

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

– Abduction: [Creignou-Zanuttini 2006] Given formula F, subset M of variables, variable x ∈ M, check if there is a set E of literals over M such that F ∧ E is satisfiable but F ∧ E ∧ ¬x is not? (E is“explanation”of x.)

Boolean Constraint Satisfaction Problems 30

slide-66
SLIDE 66

A posteriori

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

The Galois connection holds a posteriori for a computational problem Π, if we obtain a complexity classification“by hand”that speaks only of co-clones, and we can read the implication ◮ If Γ ⊆ Γ′ then Π(Γ) ≤log

m Π(Γ′)

from the classification.

Boolean Constraint Satisfaction Problems 31

slide-67
SLIDE 67

A posteriori

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

The Galois connection holds a posteriori for a computational problem Π, if we obtain a complexity classification“by hand”that speaks only of co-clones, and we can read the implication ◮ If Γ ⊆ Γ′ then Π(Γ) ≤log

m Π(Γ′)

from the classification. For many problems, the Galois connection holds a posteriori, e.g. – Counting [Creignou-Hermann 1996] – Enumeration [Creignou-H´ ebrard 1997] – Equivalence and isomorphism [B¨

  • hler-Hemaspaandra-Reith-Vollmer 2002,4]

Boolean Constraint Satisfaction Problems 31

slide-68
SLIDE 68

Negative Examples

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

The Galois connection does not hold for – MaxSAT – Fixed parameter tractability – Approximation

Boolean Constraint Satisfaction Problems 32

slide-69
SLIDE 69

When does the Galois Connection Hold?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Open Problem: Determine properties of computational problems Π that imply that the Galois connection holds for Π.

Boolean Constraint Satisfaction Problems 33

slide-70
SLIDE 70

Different Galois Connections

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Problems arise from existentially quantified variables in definition

  • f relational clone.

Boolean Constraint Satisfaction Problems 34

slide-71
SLIDE 71

Different Galois Connections

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Problems arise from existentially quantified variables in definition

  • f relational clone.

Let Γ′ be defined as folows: – Γ′ contains the equality relation and all relations in Γ. – Γ′ is closed under definitions by Γ′-formulas, i.e. if R(x1, . . . , xn) ≡ φ(x1, . . . , xn) for Γ′-formulas φ, then R ∈ Γ′.

Boolean Constraint Satisfaction Problems 34

slide-72
SLIDE 72

Different Galois Connections

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Problems arise from existentially quantified variables in definition

  • f relational clone.

Let Γ′ be defined as folows: – Γ′ contains the equality relation and all relations in Γ. – Γ′ is closed under definitions by Γ′-formulas, i.e. if R(x1, . . . , xn) ≡ φ(x1, . . . , xn) for Γ′-formulas φ, then R ∈ Γ′. Road map: Look for Galois connection between lattice of classes Γ′ and suitable refinement of Post’s lattice.

Boolean Constraint Satisfaction Problems 34

slide-73
SLIDE 73

Different Galois Connections

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Problems arise from existentially quantified variables in definition

  • f relational clone.

Let Γ′ be defined as folows: – Γ′ contains the equality relation and all relations in Γ. – Γ′ is closed under definitions by Γ′-formulas, i.e. if R(x1, . . . , xn) ≡ φ(x1, . . . , xn) for Γ′-formulas φ, then R ∈ Γ′. Road map: Look for Galois connection between lattice of classes Γ′ and suitable refinement of Post’s lattice. Talk by Ilka Schnoor.

Boolean Constraint Satisfaction Problems 34

slide-74
SLIDE 74

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by equivalent

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses. F ′ is a Γ′-formula. Then: F is satisfiable iff F ′ is satisfiable.

Boolean Constraint Satisfaction Problems 35

slide-75
SLIDE 75

If Γ ⊆ Γ′ then CSP(Γ) ≤log

m CSP(Γ′)

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let F be a Γ-formula. Construct F ′ as follows: ◮ Replace every constraint from Γ by equivalent

  • Γ′ ∪ {=}
  • formula.

◮ Delete existential quantifiers. ◮ Delete equality clauses. F ′ is a Γ′-formula. Then: F is satisfiable iff F ′ is satisfiable. Can we do better than logspace-reductions?

Boolean Constraint Satisfaction Problems 35

slide-76
SLIDE 76

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Example 1: Γ1 = {x, x}: A Γ1-formula F is unsatisfiable iff it contains clauses x and x for some x, hence CSP(Γ1) ∈ AC0.

Boolean Constraint Satisfaction Problems 36

slide-77
SLIDE 77

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Example 1: Γ1 = {x, x}: A Γ1-formula F is unsatisfiable iff it contains clauses x and x for some x, hence CSP(Γ1) ∈ AC0. Example 2: Γ2 = {x, x, =}: Then CSP(Γ2) can express undirected graph reachability as follows: Given G, s, t, construct F to consist of clauses s, t, and u = v for every edge (u, v) ∈ G. Then t is reachable in G from s iff F is unsatisfiable,

Boolean Constraint Satisfaction Problems 36

slide-78
SLIDE 78

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Example 1: Γ1 = {x, x}: A Γ1-formula F is unsatisfiable iff it contains clauses x and x for some x, hence CSP(Γ1) ∈ AC0. Example 2: Γ2 = {x, x, =}: Then CSP(Γ2) can express undirected graph reachability as follows: Given G, s, t, construct F to consist of clauses s, t, and u = v for every edge (u, v) ∈ G. Then t is reachable in G from s iff F is unsatisfiable, hence CSP(Γ2) is hard for L (under AC0-reductions/FO-reductions).

Boolean Constraint Satisfaction Problems 36

slide-79
SLIDE 79

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Example 1: Γ1 = {x, x}: A Γ1-formula F is unsatisfiable iff it contains clauses x and x for some x, hence CSP(Γ1) ∈ AC0. Example 2: Γ2 = {x, x, =}: Then CSP(Γ2) can express undirected graph reachability as follows: Given G, s, t, construct F to consist of clauses s, t, and u = v for every edge (u, v) ∈ G. Then t is reachable in G from s iff F is unsatisfiable, hence CSP(Γ2) is hard for L (under AC0-reductions/FO-reductions). Thus: Provably different complexity: CSP(Γ2) ≤AC0

m

CSP(Γ1), but Pol(Γ1) = Pol(Γ2) (= R2).

Boolean Constraint Satisfaction Problems 36

slide-80
SLIDE 80

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ⊆ Γ′ then CSP(Γ) ≤AC0

m

CSP

  • Γ′ ∪ {=}
  • ≤log

m CSP(Γ′).

Boolean Constraint Satisfaction Problems 37

slide-81
SLIDE 81

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ⊆ Γ′ then CSP(Γ) ≤AC0

m

CSP

  • Γ′ ∪ {=}
  • ≤log

m CSP(Γ′).

Say that Γ can express equality if equality constraint can be defined by a conjunctive query over Γ. ◮ If Γ can express equality then CSP

  • Γ ∪ {=}
  • ≤AC0

m

CSP(Γ). There is an algorithm that detects if Γ can express equality.

Boolean Constraint Satisfaction Problems 37

slide-82
SLIDE 82

The Equality Constraint

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If Γ ⊆ Γ′ then CSP(Γ) ≤AC0

m

CSP

  • Γ′ ∪ {=}
  • ≤log

m CSP(Γ′).

Say that Γ can express equality if equality constraint can be defined by a conjunctive query over Γ. ◮ If Γ can express equality then CSP

  • Γ ∪ {=}
  • ≤AC0

m

CSP(Γ). There is an algorithm that detects if Γ can express equality. ◮ If Γ can express equality then CSP(Γ) is hard for L, otherwise CSP(Γ) ∈ AC0.

Boolean Constraint Satisfaction Problems 37

slide-83
SLIDE 83

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Two remaining cases: Pol(Γ) ∈ {D1, D} and S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2.

Boolean Constraint Satisfaction Problems 38

slide-84
SLIDE 84

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Two remaining cases: Pol(Γ) ∈ {D1, D} and S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2. ◮ If Pol(Γ) ∈ {D1, D}, then CSP(Γ) is L-complete. Proof: x ⊕ y ∈ Inv(Γ), i.e., there is conjunctive query over Γ ∪ {=} that defines x ⊕ y. Equality clauses here appear only between existentially quantified new variables and can be removed locally. Hence, Γ can express x ⊕ y. Now, (∃z)

  • (x ⊕ z) ∧ (z ⊕ y)
  • expresses equality.

Boolean Constraint Satisfaction Problems 38

slide-85
SLIDE 85

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2, then either CSP(Γ) is in AC0, or CSP(Γ) is L-complete.

Boolean Constraint Satisfaction Problems 39

slide-86
SLIDE 86

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2, then either CSP(Γ) is in AC0, or CSP(Γ) is L-complete. Proof: Logspace upper bound: If Γ ⊆ Inv(S02) =

m Inv(Sm 02) = m

  • {∨m, =, x, x}
  • ,

then Γ ⊆

  • {∨m, =, x, x}
  • for some m.

Boolean Constraint Satisfaction Problems 39

slide-87
SLIDE 87

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2, then either CSP(Γ) is in AC0, or CSP(Γ) is L-complete. Proof: Logspace upper bound: If Γ ⊆ Inv(S02) =

m Inv(Sm 02) = m

  • {∨m, =, x, x}
  • ,

then Γ ⊆

  • {∨m, =, x, x}
  • for some m.

Given Γ-formula F is satisfiable iff

  • for each clause x1 ∨ · · · ∨ xk
  • there is a variable xk,

for which there is no =-path from xk to some clause x. Essentially graph reachability, hence: CSP(Γ) ∈ L.

Boolean Constraint Satisfaction Problems 39

slide-88
SLIDE 88

Inside LOGSPACE

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

◮ If S02 ⊆ Pol(Γ) ⊆ R2 or S12 ⊆ Pol(Γ) ⊆ R2, then either CSP(Γ) is in AC0, or CSP(Γ) is L-complete. Proof: Logspace upper bound: If Γ ⊆ Inv(S02) =

m Inv(Sm 02) = m

  • {∨m, =, x, x}
  • ,

then Γ ⊆

  • {∨m, =, x, x}
  • for some m.

Given Γ-formula F is satisfiable iff

  • for each clause x1 ∨ · · · ∨ xk
  • there is a variable xk,

for which there is no =-path from xk to some clause x. Essentially graph reachability, hence: CSP(Γ) ∈ L. Γ ⊆ Inv(S12): analogously with NANDm.

Boolean Constraint Satisfaction Problems 39

slide-89
SLIDE 89

Can We Express Equality?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let R ∈ Inv(Sm

02), i.e., R is defined by conjunctive query φ over

{∨m, =, x, x}.

Boolean Constraint Satisfaction Problems 40

slide-90
SLIDE 90

Can We Express Equality?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Let R ∈ Inv(Sm

02), i.e., R is defined by conjunctive query φ over

{∨m, =, x, x}. – For all clauses x1 = x2: If x1 or x2 occur in literals in φ, delete x1 = x2 and insert corresponding literal for the other variable. – For all clauses x1 ∨ · · · ∨k: If there is a literal xi, delete xi in this clause. – For all clauses x1 ∨ · · · ∨k: If occuring variables are connected by =-path, delete all of them except one.

Boolean Constraint Satisfaction Problems 40

slide-91
SLIDE 91

Can We Express Equality?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Case 1: No clause x1 = x2 remains. Then CSP

  • {R, ∨m, x, x}
  • ∈ AC0.

(Satisfiable iff no contradictory literals and every disjunction has variable that does not occcur in negative literal.)

Boolean Constraint Satisfaction Problems 41

slide-92
SLIDE 92

Can We Express Equality?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Case 1: No clause x1 = x2 remains. Then CSP

  • {R, ∨m, x, x}
  • ∈ AC0.

(Satisfiable iff no contradictory literals and every disjunction has variable that does not occcur in negative literal.) Case 2: There is a remaining clause x1 = x2. Obtain R′(x1, x2) by existentially quantifiying all variables in R except x1, x2. Then R′ expresses equality.

Boolean Constraint Satisfaction Problems 41

slide-93
SLIDE 93

Can We Express Equality?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Case 1: No clause x1 = x2 remains. Then CSP

  • {R, ∨m, x, x}
  • ∈ AC0.

(Satisfiable iff no contradictory literals and every disjunction has variable that does not occcur in negative literal.) Case 2: There is a remaining clause x1 = x2. Obtain R′(x1, x2) by existentially quantifiying all variables in R except x1, x2. Then R′ expresses equality. Analogous argument with NANDm for Γ ⊆ Inv(S12).

Boolean Constraint Satisfaction Problems 41

slide-94
SLIDE 94

Classification of CSP-Satisfiability

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

R1 R0 BF R2 M M1 M0 M2 S2 S3 S0 S2

02

S3

02

S02 S2

01

S3

01

S01 S2

00

S3

00

S00 S2

1

S3

1

S1 S2

12

S3

12

S12 S2

11

S3

11

S11 S2

10

S3

10

S10 D D1 D2 L L1 L0 L2 L3 V V1 V0 V2 E E0 E1 E2 I I1 I0 I2 N2 N BF R1 R0 R2 M M1 M0 M2 S2 S3 S0 S2

02

S3

02

S02 S2

01

S3

01

S01 S2

00

S3

00

S00 S2

1

S3

1

S1 S2

12

S3

12

S12 S2

11

S3

11

S11 S2

10

S3

10

S10 D D1 D2 L L1 L0 L2 L3 V V1 V0 V2 E E0 E1 E2 N2 N I I1 I0 I2

NP complete P complete NL complete ⊕L complete L complete L complete / coNLOGTIME Boolean Constraint Satisfaction Problems 42

slide-95
SLIDE 95

The Power of ⊕L

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Post’s lattice: L2 ⊆ R2, hence Inv(R2) ⊆ Inv(L2). Hence: ◮ Undirected graph accessibility is in ⊕L, in other words: SL ⊆ ⊕L. [Karchmer, Wigderson, 1993]

Boolean Constraint Satisfaction Problems 43

slide-96
SLIDE 96

The Power of ⊕L

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Post’s lattice: L2 ⊆ R2, hence Inv(R2) ⊆ Inv(L2). Hence: ◮ Undirected graph accessibility is in ⊕L, in other words: SL ⊆ ⊕L. [Karchmer, Wigderson, 1993] (Today we even know SL ⊆ L.)

Boolean Constraint Satisfaction Problems 43

slide-97
SLIDE 97

Isomorphism

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Isomorphism Theorem holds for ≤AC0

m -reducibility:

◮ For every constraint language Γ, CSP(Γ) is AC0-isomorphic either to 0Σ⋆ or to the standard complete set for one of the complexity classes NP, P, ⊕L, NL, or L. Through FO glasses, there are only six different CSP-problems!

Boolean Constraint Satisfaction Problems 44

slide-98
SLIDE 98

Why study Boolean CSP?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Provide a reasonably accurate bird’s eye view of complexity theory: [Creignou-Khanna-Sudan 2001] – inclusions among complexity classes – relations among reducibility notions – structure of complete problems

Boolean Constraint Satisfaction Problems 45

slide-99
SLIDE 99

Why study Boolean CSP?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Provide a reasonably accurate bird’s eye view of complexity theory: [Creignou-Khanna-Sudan 2001] – inclusions among complexity classes – relations among reducibility notions – structure of complete problems – playground for the study of many issues related to counting classes – CSP isomorphism problems yield good candidates for “intermediate problems”

Boolean Constraint Satisfaction Problems 45

slide-100
SLIDE 100

Why study Boolean CSP?

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

Classifications of problems for Boolean CSPs provide a guidepost for study of general CSPs: – If Galois connection holds a priori, then usually for arbitrary CSPs. – Hard cases translate from Boolean to general case, sometimes in nontrivial way: #QCSP [Bauland-B¨

  • hler-Creignou-Reith-Schnoor-Vollmer 2006]

– Issues from Post’s lattice show direction for general classification: Non-FO CSPs are logspace-hard: Talk by Benoˆ ıt Larose

Boolean Constraint Satisfaction Problems 46

slide-101
SLIDE 101

Open Questions for Boolean CSP

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

– Obtain fine classification for Boolean counting problem. – Study different Galois connections. – Uniform Boolean CSP?

Boolean Constraint Satisfaction Problems 47

slide-102
SLIDE 102

Open Questions for General CSP

CSP Post Schaefer QCSP #QCSP Galois FO Equality Classification Applications R´ esum´ e

– Study different Galois connections. – Obtain fine classification for satisfiability over 3-element domain. – Study different computational problems (besides satisfiability) for general CSPs.

Boolean Constraint Satisfaction Problems 48