On Local Domain Symmetry for Model Expansion Jo Devriendt, Bart - - PowerPoint PPT Presentation

on local domain symmetry for model expansion
SMART_READER_LITE
LIVE PREVIEW

On Local Domain Symmetry for Model Expansion Jo Devriendt, Bart - - PowerPoint PPT Presentation

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion On Local Domain Symmetry for Model Expansion Jo Devriendt, Bart Bogaerts, Maurice Bruynooghe, Marc Denecker University of Leuven / Aalto University October 21,


slide-1
SLIDE 1

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

On Local Domain Symmetry for Model Expansion

Jo Devriendt, Bart Bogaerts, Maurice Bruynooghe, Marc Denecker

University of Leuven / Aalto University

October 21, 2016

1 / 43

slide-2
SLIDE 2

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Intro

General symmetry definition

Given a vocabulary Σ, theory T, and domain D, a symmetry σ for T is a permutation on the set of D,Σ-structures ΓD such that for all I ∈ ΓD: I | = T iff σ(I) | = T

2 / 43

slide-3
SLIDE 3

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Intro

General symmetry definition

Given a vocabulary Σ, theory T, and domain D, a symmetry σ for T is a permutation on the set of D,Σ-structures ΓD such that for all I ∈ ΓD: I | = T iff σ(I) | = T Why study symmetry? speeding up search – symmetry breaking avoid parts of the search space symmetrical to failed parts

3 / 43

slide-4
SLIDE 4

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Outline

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

4 / 43

slide-5
SLIDE 5

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Prelims: First-Order Logic (FO)

  • vocabulary Σ of (function and predicate) symbols S/k
  • Σ-theory T
  • Σ-structure I
  • domain D
  • interpretations SI for all S ∈ Σ

Semantics captured by satisfiability relation: I | = T

5 / 43

slide-6
SLIDE 6

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Prelims: First-Order Logic (FO)

  • vocabulary Σ of (function and predicate) symbols S/k
  • Σ-theory T
  • Σ-structure I
  • domain D
  • interpretations SI for all S ∈ Σ

Semantics captured by satisfiability relation: I | = T In ASP: program ↔ theory, set of facts ↔ structure.

6 / 43

slide-7
SLIDE 7

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Prelims: First-Order Logic (FO)

  • vocabulary Σ of (function and predicate) symbols S/k
  • Σ-theory T
  • Σ-structure I
  • domain D
  • interpretations SI for all S ∈ Σ

Semantics captured by satisfiability relation: I | = T In ASP: program ↔ theory, set of facts ↔ structure. For the rest of the talk: vocabulary and domain are implicit and fixed.

7 / 43

slide-8
SLIDE 8

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Running example: graph coloring

Tgc: ∀x1 y1 : Edge(x1, y1) ⇒ Color(x1) = Color(y1) ∀x2 y2 : Edge(x2, y2) ⇒ V (x2) ∧ V (y2) ∀x3 : C(Color(x3)) Igc: V Igc = {t, u, v, w} C Igc = {r, g, b} EdgeIgc = {(t, u), (u, v), (v, w), (w, t)} Color Igc = t → r, u → g, v → b, w → g, r → r, g → g, b → b r g b t u v w Note: Igc | = Tgc

8 / 43

slide-9
SLIDE 9

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Symmetry for a theory

General symmetry definition

Given a vocabulary Σ, theory T, and domain D, a symmetry σ for T is a permutation on the set of D,Σ-structures ΓD such that for all I ∈ ΓD: I | = T iff σ(I) | = T Symmetries compose to symmetry groups

9 / 43

slide-10
SLIDE 10

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Global Domain Symmetry

Permutation π on D induces permutation σπ on ΓD: (π(d1), . . . , π(dn)) ∈ Pσπ(I) iff (d1, . . . , dn) ∈ PI f σπ(I)(π(d1), . . . , π(dn)) = π(d0) iff f I(d1, . . . , dn) = d0 Let’s call such induced σπ a Global Domain Symmetry for T. Intuitively, domain renaming π preserves satisfiability: σπ(I) | = T iff I | = T

10 / 43

slide-11
SLIDE 11

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Let π = (v r), so σπ maps r g b t u v w to d d v g b t u r w which still models Tgc.

11 / 43

slide-12
SLIDE 12

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Connectively closed argument positions

More precise notion of domain symmetry: apply π only on limited set of argument positions A.

  • Argument position S|n with S/k ∈ Σ and 1 ≤ n ≤ k

denotes S’s nth argument. f |0 is output argument position.

12 / 43

slide-13
SLIDE 13

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Connectively closed argument positions

More precise notion of domain symmetry: apply π only on limited set of argument positions A.

  • Argument position S|n with S/k ∈ Σ and 1 ≤ n ≤ k

denotes S’s nth argument. f |0 is output argument position.

  • Argument positions are connected under theory T if one
  • ccurs as subterm of the other, if they are connected by

=, or if they are connected by quantified variables.

13 / 43

slide-14
SLIDE 14

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Connectively closed argument positions

More precise notion of domain symmetry: apply π only on limited set of argument positions A.

  • Argument position S|n with S/k ∈ Σ and 1 ≤ n ≤ k

denotes S’s nth argument. f |0 is output argument position.

  • Argument positions are connected under theory T if one
  • ccurs as subterm of the other, if they are connected by

=, or if they are connected by quantified variables.

  • A set of argument positions A is connectively closed

under T if no other argument positions of Σ are connected to A under T. Intuitively, a partition of connectively closed argument positions under T corresponds to a well-defined typing of T.

14 / 43

slide-15
SLIDE 15

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Tgc: ∀x1 y1 : Edge(x1, y1) ⇒ Color(x1) = Color(y1) ∀x2 y2 : Edge(x2, y2) ⇒ V (x2) ∧ V (y2) ∀x3 : C(Color(x3))

15 / 43

slide-16
SLIDE 16

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Tgc: ∀x1 y1 : Edge(x1, y1) ⇒ Color(x1) = Color(y1) ∀x2 y2 : Edge(x2, y2) ⇒ V (x2) ∧ V (y2) ∀x3 : C(Color(x3)) Connectively closed argument position partition under Tgc:

  • {V |1, Edge|1, Edge|2, Color|1}
  • {C|1, Color|0}

16 / 43

slide-17
SLIDE 17

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Local Domain Symmetry

Permutation π on D and argument position set A induce permutation σA

π on ΓD:

(πA(d1), . . . , πA(dn)) ∈ PσA

π(I) iff (d1, . . . , dn) ∈ PI

f σA

π(I)(πA(d1), . . . , πA(dn)) = πA(d0) iff f I(d1, . . . , dn) = d0

where πA applies π only on argument positions in A.

17 / 43

slide-18
SLIDE 18

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Local Domain Symmetry

Permutation π on D and argument position set A induce permutation σA

π on ΓD:

(πA(d1), . . . , πA(dn)) ∈ PσA

π(I) iff (d1, . . . , dn) ∈ PI

f σA

π(I)(πA(d1), . . . , πA(dn)) = πA(d0) iff f I(d1, . . . , dn) = d0

where πA applies π only on argument positions in A. If A is connectively closed under T, σA

π is a local domain

symmetry of T. Intuitively, σA

π permutes domain element tuples according to

some type A of T.

18 / 43

slide-19
SLIDE 19

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Let π = (v r) and A = {V |1, Edge|1, Edge|2, Color|1}, so σA

π

maps r g b t u v w to d r g b t u r w which still models Tgc.

19 / 43

slide-20
SLIDE 20

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Local Domain Symmetry

  • So far, so good: more or less known in literature (MACE,

SEM, Paradox, ...)

20 / 43

slide-21
SLIDE 21

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Local Domain Symmetry

  • So far, so good: more or less known in literature (MACE,

SEM, Paradox, ...)

  • What if we have to take pre-interpreted symbols into

account? → Model eXpansion

21 / 43

slide-22
SLIDE 22

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

First-Order Model Expansion (MX)

In:

  • vocabulary Σ = Σin ∪ Σout (Σin ∩ Σout = ∅)
  • Σ-theory T
  • Σin-structure Iin
  • domain D
  • interpretations SIin to S ∈ Σin

Out:

  • Σout-structure Iout such that Iin ⊔ Iout |

= T

  • same domain D
  • Iin ⊔ Iout merges both structures to a Σ-structure
  • or ”unsat”

22 / 43

slide-23
SLIDE 23

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

First-Order Model Expansion (MX)

In:

  • vocabulary Σ = Σin ∪ Σout (Σin ∩ Σout = ∅)
  • Σ-theory T
  • Σin-structure Iin
  • domain D
  • interpretations SIin to S ∈ Σin

Out:

  • Σout-structure Iout such that Iin ⊔ Iout |

= T

  • same domain D
  • Iin ⊔ Iout merges both structures to a Σ-structure
  • or ”unsat”

Shortened as MX(T, Iin).

23 / 43

slide-24
SLIDE 24

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Tgc: ∀x1 y1 : Edge(x1, y1) ⇒ Color(x1) = Color(y1) ∀x2 y2 : Edge(x2, y2) ⇒ V (x2) ∧ V (y2) ∀x3 : C(Color(x3)) Igcin: V Igcin = {t, u, v, w} C Igcin = {r, g, b} EdgeIgcin = {(t, u), (u, v), (v, w), (w, t)} r g b t u v w

24 / 43

slide-25
SLIDE 25

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Igcout: Color Igcout = t → r, u → g, v → b, w → g, r → r, g → g, b → b Igcin ⊔ Igcout: r g b t u v w Note: Igcin ⊔ Igcout | = Tgc

25 / 43

slide-26
SLIDE 26

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Symmetry for MX

Symmetry for MX(T, Iin)

A symmetry σ for MX(T, Iin) is a permutation on the set of D,Σout-structures ΓD such that for all I ∈ ΓD: Iin ⊔ Iout | = T iff Iin ⊔ σ(Iout) | = T Intuitively, symmetry must preserve input structure.

26 / 43

slide-27
SLIDE 27

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Sufficient condition for MX-symmetry?

  • Local domain symmetry σA

π where A is connectively

closed under T and π such that σA

π(Iin) = Iin

27 / 43

slide-28
SLIDE 28

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Sufficient condition for MX-symmetry?

  • Local domain symmetry σA

π where A is connectively

closed under T and π such that σA

π(Iin) = Iin

  • Does not work well for independent symbols connected

under T: t u v w r g b Both graphs Edge/2 and Edge′/2 have different symmetries, but since their argument positions typically are connected by a V /1 argument position, no π exists that is consistent with the symmetry of both graphs.

28 / 43

slide-29
SLIDE 29

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Sufficient condition for MX-symmetry?

We defined transformation for MX(T, Iin) to MX(T ∗, I ∗

in) such

that

Sufficient condition for MX-symmetry

σA

π is a local domain symmetry for MX(T, Iin) if A is

connectively closed under T ∗ and σA

π(I ∗ in) = I ∗ in.

Intuitively, MX(T, Iin) decouples all occurrences of pre-interpreted symbols.

29 / 43

slide-30
SLIDE 30

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Finding structure-preserving π?

  • given MX(T, Iin), finding good A is easy
  • Partition argument positions in T ∗ in connectively closed

classes

30 / 43

slide-31
SLIDE 31

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Finding structure-preserving π?

  • given MX(T, Iin), finding good A is easy
  • Partition argument positions in T ∗ in connectively closed

classes

  • how about π such that σA

π(I ∗ in) = I ∗ in?

31 / 43

slide-32
SLIDE 32

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Finding structure-preserving π?

  • given MX(T, Iin), finding good A is easy
  • Partition argument positions in T ∗ in connectively closed

classes

  • how about π such that σA

π(I ∗ in) = I ∗ in?

Answer:

  • generate-and-test for domain element swaps (d1 d2)

32 / 43

slide-33
SLIDE 33

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Finding structure-preserving π?

  • given MX(T, Iin), finding good A is easy
  • Partition argument positions in T ∗ in connectively closed

classes

  • how about π such that σA

π(I ∗ in) = I ∗ in?

Answer:

  • generate-and-test for domain element swaps (d1 d2)
  • encode to graph automorphism problem for more

complicated π

  • In: Iin, A
  • Out: generators π that induce symmetry σA

π

  • Size of graph depends on size of Iin, not on size of T

33 / 43

slide-34
SLIDE 34

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

t u v w t.2 u.2 v.2 w.2 t.1 u.1 v.1 w.1 t.0 u.0 v.0 w.0 r g b r.2 g.2 b.2 r.1 g.1 b.1 r.0 g.0 b.0 Edge1(t, u) Edge1(u, v) Edge1(v, w) Edge1(w, t)

34 / 43

slide-35
SLIDE 35

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Symmetry breaking

Given symmetry group G, construct symmetry breaking formula ϕ(G). ϕ(G) is sound if for each Iout, there exists some σ ∈ G such that Iin ⊔ σ(Iout) | = ϕ(G). ϕ(G) is complete if for each Iout, there exists exactly one σ ∈ G such that Iin ⊔ σ(Iout) | = ϕ(G).

35 / 43

slide-36
SLIDE 36

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Symmetry breaking

Given symmetry group G, construct symmetry breaking formula ϕ(G). ϕ(G) is sound if for each Iout, there exists some σ ∈ G such that Iin ⊔ σ(Iout) | = ϕ(G). ϕ(G) is complete if for each Iout, there exists exactly one σ ∈ G such that Iin ⊔ σ(Iout) | = ϕ(G). What is the size of ϕ(G) to break G completely?

36 / 43

slide-37
SLIDE 37

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Breaking local domain symmetry completely

GA

δ is a local domain interchangeability group if A is a set of

argument positions, δ ⊆ D, and each permutation π over δ induces a local domain symmetry σA

π.

GA

δ is broken completely with O(|δ|2) sized symmetry breaking

formula if A contains at most one argument position S|i for each symbol S ∈ Σout. Intuitively, after grounding, GA

δ represents row

interchangeability of a Boolean variable matrix. Ordering the rows breaks all symmetry.

37 / 43

slide-38
SLIDE 38

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Let A = {C|1, Color|0}, δ = {r, b, g}. GA

δ represents the

interchangeability of colors, and can be broken completely with a small symmetry breaking formula.

38 / 43

slide-39
SLIDE 39

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Graph coloring ctd.

Let A = {C|1, Color|0}, δ = {r, b, g}. GA

δ represents the

interchangeability of colors, and can be broken completely with a small symmetry breaking formula. However, e.g. for the Ramsey number problem, A = {Edge|1, Edge|2, Color|1, . . .}, so A′ does not satisfy the “one argument position” condition.

39 / 43

slide-40
SLIDE 40

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Symmetry notions not captured by local domain symmetry

E.g. swapping colors of node v and t: r g b t u v w to d d r g b t u v w which still models Tgc.

40 / 43

slide-41
SLIDE 41

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Conclusion

  • Notion of local domain symmetry
  • Sufficient condition for symmetry detection in the context
  • f an input structure
  • Symmetry detection approach on predicate level
  • Completeness guarantee for symmetry breaking
  • Limits of our approach
  • Notion can be extended to aggregates, non-monotonic

rules, etc.

  • Implementation in IDP

41 / 43

slide-42
SLIDE 42

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Conclusion

  • Notion of local domain symmetry
  • Sufficient condition for symmetry detection in the context
  • f an input structure
  • Symmetry detection approach on predicate level
  • Completeness guarantee for symmetry breaking
  • Limits of our approach
  • Notion can be extended to aggregates, non-monotonic

rules, etc.

  • Implementation in IDP

Future work

Extend local domain symmetry to capture other notions of symmetry.

42 / 43

slide-43
SLIDE 43

Intro Theory symmetry MX symmetry Efficient breaking More symmetry Conclusion

Thanks for your attention! Questions?

43 / 43