Certifying Planning Systems: Witnesses for Unsolvability Salom e - - PowerPoint PPT Presentation

certifying planning systems witnesses for unsolvability
SMART_READER_LITE
LIVE PREVIEW

Certifying Planning Systems: Witnesses for Unsolvability Salom e - - PowerPoint PPT Presentation

Certifying Planning Systems: Witnesses for Unsolvability Salom e Eriksson University of Basel, Switzerland April 26, 2019 Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion Classical Planning


slide-1
SLIDE 1

Certifying Planning Systems: Witnesses for Unsolvability

Salom´ e Eriksson

University of Basel, Switzerland

April 26, 2019

slide-2
SLIDE 2

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Classical Planning

1 / 26

slide-3
SLIDE 3

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Validating Planner Output

Why?

software bugs hardware faults malicious reasons . . .

How?

tests on known instances formal correctness proofs certifying algorithms

2 / 26

slide-4
SLIDE 4

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Certifying Algorithms

generate a witness alongside answer:

task

Planner “solvable”

plan

plan validation tool “valid”/“invalid”

3 / 26

slide-5
SLIDE 5

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Certifying Algorithms

generate a witness alongside answer:

task

Planner plan validation tool “valid”/“invalid” “solvable”

plan

“unsolvable”

cert

verification tool “valid”/“invalid”

3 / 26

slide-6
SLIDE 6

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Contribution

Main Contributions two suitable witness types for unsolvable planning tasks: I Inductive Certificates II Proof System theoretical and experimental comparison

suitability measures: soundness & completeness efficient generation and verification generality

4 / 26

slide-7
SLIDE 7

Witness I: Inductive Certificates

[E, R¨

  • ger, Helmert, ICAPS 2017]
slide-8
SLIDE 8

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

5 / 26

slide-9
SLIDE 9

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

5 / 26

slide-10
SLIDE 10

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

5 / 26

slide-11
SLIDE 11

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

5 / 26

slide-12
SLIDE 12

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

5 / 26

slide-13
SLIDE 13

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Sets

can only reach states with “box in corner” Inductive Set A set of states is inductive if all action applications to a state in S lead to a state which is also in S. (S[A] ⊆ S).

5 / 26

slide-14
SLIDE 14

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Inductive Certificate

Inductive Certificate set of states S with following properties: contains I contains no goal inductive I G S

6 / 26

slide-15
SLIDE 15

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Soundness & Completeness

Theorem Inductive certificates are sound and complete. states reachable from I: contains I is inductive contains no goal if task solvable

7 / 26

slide-16
SLIDE 16

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Efficient Verification

depends on how S is represented formalisms based on propositional logic Which logical operations are needed for efficient verification? several commonly used formalisms support needed operations

8 / 26

slide-17
SLIDE 17

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Composite Certificates

not all sets can be compactely described represent as union or intersection of sets r-disjunctive Certificates family F of sets with: I ∈ S for some S ∈ F no goal in any S ∈ F S[a] ⊆

S′∈F′ S′ for all a ∈ A, S ∈ F

with F′ ⊆ F and |F′| ≤ r.

9 / 26

slide-18
SLIDE 18

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

heuristic can detect dead-ends set of reachable states not explored fully

10 / 26

slide-19
SLIDE 19

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

10 / 26

slide-20
SLIDE 20

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

heuristic can detect dead-ends set of reachable states not explored fully Heuristic Search Certificate Union of: inductive set for each dead-end

for each a ∈ A: leads to itself

10 / 26

slide-21
SLIDE 21

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

10 / 26

slide-22
SLIDE 22

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

heuristic can detect dead-ends set of reachable states not explored fully Heuristic Search Certificate Union of: inductive set for each dead-end

for each a ∈ A: leads to itself

  • ne set for each expanded state

for each a ∈ A: leads to one expanded or dead-end state

1-disjunctive

10 / 26

slide-23
SLIDE 23

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

10 / 26

slide-24
SLIDE 24

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Generating Inductive Certificates

certificates blind search yes heuristic search

  • single heuristic

yes

  • several heuristics

if same formalism h+ yes hm yes hM&S yes Landmarks yes Trapper yes Iterative dead pairs no CLS yes

11 / 26

slide-25
SLIDE 25

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Weaknesses

monolithic: find one inductive set cannot mix representations

several heuristics

cannot cover techniques not built on inductive sets

iterative dead pairs

12 / 26

slide-26
SLIDE 26

Witness II: Proof System

[E, R¨

  • ger, Helmert, ICAPS 2018]
slide-27
SLIDE 27

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Dead States

incrementally rule out parts of the search space Definition A state s is dead if no plan traverses s. A set of states is dead if all its elements are dead. initial state / all goal states dead task unsolvable

13 / 26

slide-28
SLIDE 28

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Proof Systems

based on rules with premises Ai and conclusion B: A1 . . . An B universally true

14 / 26

slide-29
SLIDE 29

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Rules

showing that state sets are dead end proof set theory

15 / 26

slide-30
SLIDE 30

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Rules

showing that state sets are dead end proof set theory S′ dead S ⊆ S′ S dead

15 / 26

slide-31
SLIDE 31

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Rules

showing that state sets are dead end proof set theory S[A] ⊆ S ∪ S′ S′ dead S ∩ G dead S dead S S′ G

15 / 26

slide-32
SLIDE 32

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Rules

showing that state sets are dead end proof set theory I dead unsolvable G dead unsolvable

15 / 26

slide-33
SLIDE 33

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Rules

showing that state sets are dead end proof set theory S ⊆ (S ∪ S′) S ⊆ S′ S′ ⊆ S′′ S ⊆ S′′

15 / 26

slide-34
SLIDE 34

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Basic Statements

show S ⊆ S′ holds for concrete sets? basic statements verified for concrete task establish ”initial” knowledge base

16 / 26

slide-35
SLIDE 35

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Soundness & Completeness

Theorem Proofs in the proof system are sound and complete. inductive certificate S: no successor containing I no goal (1) ∅ dead (2) S[A] ⊆ S ∪ ∅ (3) S ∩ G ⊆ ∅ (4) S ∩ G dead (5) S dead (6) I ∈ S (7) I dead (8) unsolvable

17 / 26

slide-36
SLIDE 36

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Efficient Verification

rule verification trivial only depends on basic statements different forms of S ⊆ S′: S as a intersection of sets S′ as a union of sets S and S′ represented in different formalisms translated inductive certificates require same operations

18 / 26

slide-37
SLIDE 37

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

Heuristic Search Proof proof structure:

1 each dead end is dead (inductive set) 19 / 26

slide-38
SLIDE 38

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

19 / 26

slide-39
SLIDE 39

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

Heuristic Search Proof proof structure:

1 each dead end is dead (inductive set) 2 union of all dead ends is dead 19 / 26

slide-40
SLIDE 40

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

19 / 26

slide-41
SLIDE 41

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

Heuristic Search Proof proof structure:

1 each dead end is dead (inductive set) 2 union of all dead ends is dead 3 expanded[A] = expanded ∪ dead expanded dead 4 I ∈ expanded I dead. 19 / 26

slide-42
SLIDE 42

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Application to Heuristic Search

h = ∞ h = ∞ walk-up push-right walk-right push-up . . . . . .

19 / 26

slide-43
SLIDE 43

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Generating Proofs

certificates proofs blind search yes yes heuristic search

  • single heuristic

yes yes

  • several heuristics

if same formalism yes h+ yes yes hm yes yes hM&S yes yes Landmarks yes yes Trapper yes yes Iterative dead pairs no yes CLS yes yes

20 / 26

slide-44
SLIDE 44

Comparison

slide-45
SLIDE 45

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Theoretical Comparison

both witnesses sound & complete proof covers more examined techniques translation certificate → proof possible

also for composite certificates, but at cost of size increase

proof system more expressive

21 / 26

slide-46
SLIDE 46

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Experimental Evaluation

comparison for A* search with hmax hM&S limits: generate: 30 minutes verify: 4 hours

22 / 26

slide-47
SLIDE 47

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Coverage - Generation

hmax

225 175 certificate 172 proof

hM&S

242 207 certificate 212 proof

23 / 26

slide-48
SLIDE 48

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Coverage - Verification

hmax

225 175 146 certificate 172 156 proof

hM&S

242 207 187 certificate 212 198 proof

23 / 26

slide-49
SLIDE 49

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Verification

10−1 101 103 10−1 101 103 failed failed certificate runtime (in s) proof runtime (in s) hmax hM&S certificate repeats explicit search

24 / 26

slide-50
SLIDE 50

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Witness Size

10−1 101 103 10−1 101 103 failed failed certificate size (in MiB) proof size (in MiB) hmax hM&S

25 / 26

slide-51
SLIDE 51

Conclusion

slide-52
SLIDE 52

Introduction Witness I: Inductive Certificates Witness II: Proof System Comparison Conclusion

Summary

Inductive Certificates describes invariant property which I has but not G concise argument for unsolvability lacks composability Proof System explicit reasoning with simple rules versatile and extensible

26 / 26

slide-53
SLIDE 53

Logical Operations

BDD Horn 2CNF MODS MO yes yes yes yes CO yes yes yes yes VA yes yes yes yes CE yes yes yes yes IM yes yes yes yes SE yes yes yes yes ME yes yes yes yes ∧BC yes yes yes yes ∧C no yes yes no ∨BC yes no no no* ∨C no no no no ¬C yes no no no CL yes yes yes yes RN no yes yes yes RN≺ yes yes yes yes toDNF no no no yes toCNF no yes yes no CT yes (no) (no) yes

1 / 10

slide-54
SLIDE 54

Transition formula

Traditional: ϕ ∧

  • vp∈pre(a)

vp ∧

  • va∈add(a)

v′

a ∧

  • vd∈(del(a)\add(a))

¬v′

d

  • v∈(V Π\(add(a)∪del(a))

(v ↔ v′) | = ϕ[V → V ′] New:

  • (ϕ ∧
  • vp∈pre(a)

vp)[(add(a) ∪ del(a)) → X′]

  • va∈add(a)

va ∧

  • vd∈(del(a)\add(a))

¬vd | = ϕ

2 / 10

slide-55
SLIDE 55

Disjunctive Certificates

r-disjunctive certificate For r ∈ N0, a family F ⊆ 2SΠ of state sets of task Π = V Π, AΠ, IΠ, GΠ is called an r-disjunctive certificate if:

1 IΠ ∈ S for some S ∈ F, 2 S ∩ SΠ

G = ∅ for all S ∈ F, and

3 for all S ∈ F and all a ∈ AΠ, there is a subfamily F′ ⊆ F

with |F′| ≤ r such that S[a] ⊆

S′∈F′ S′.

3 / 10

slide-56
SLIDE 56

Disjunctive Certificates

a b c d e f g h i j S1 S2 a b c d e f g h i j S1 S2 a b c d e f g h i j S1 S2 a b c d e f g h i j S1 S2 a b c d e f g h i j S1 S2 a b c d e f g h i j S1 S2 a1 a2 a3

3 / 10

slide-57
SLIDE 57

Conjunctive Certificates

r-conjunctive certificate For r ∈ N0, a family F ⊆ 2SΠ of state sets of task Π = V Π, AΠ, IΠ, GΠ is called an r-conjunctive certificate if:

1 IΠ ∈ S for all S ∈ F, 2 there is a subfamily F′ ⊆ F with |F′| ≤ r such that

(

S∈F′ S) ∩ SΠ G = ∅, and

3 for all S ∈ F and all a ∈ AΠ, there is a subfamily F′ ⊆ F

with |F′| ≤ r such that (

S′∈F′ S′)[a] ⊆ S.

4 / 10

slide-58
SLIDE 58

Conjunctive Certificates

a b c d e f g h i j k l m n S1 S2 S3 a b c d e f g h i j k l m n S1 S2 S3 a b c d e f g h i j k l m n S1 S2 S3 a b c d e f g h i j k l m n S1 S2 S3 a b c d e f g h i j k l m n S1 S2 S3 a b c d e f g h i j k l m n S1 S2 S3 a1 a2

4 / 10

slide-59
SLIDE 59

Proof System Rules

Empty set Dead ED ∅ dead Union Dead S dead S′ dead UD S ∪ S′ dead Subset Dead S′ dead S ⊑ S′ SD S dead Progression Goal S[AΠ] ⊑ S ∪ S′ S′ dead S ∩ SΠ

G dead

PG S dead Progression Initial S[AΠ] ⊑ S ∪ S′ S′ dead {IΠ} ⊑ S PI S dead Regression Goal [AΠ]S ⊑ S ∪ S′ S′ dead S ∩ SΠ

G dead

RG S dead Regression Initial [AΠ]S ⊑ S ∪ S′ S′ dead {IΠ} ⊑ S RI S dead

5 / 10

slide-60
SLIDE 60

Proof System Rules

Conclusion Initial {IΠ} dead CI unsolvable Conclusion Goal SΠ

G dead

CG unsolvable

5 / 10

slide-61
SLIDE 61

Proof System Rules

Union Right UR E ⊑ (E ∪ E′) Union Left UL E ⊑ (E′ ∪ E) Intersection Right IR (E ∩ E′) ⊑ E Intersection Left IL (E′ ∩ E) ⊑ E DIstributivity DI ((E ∪ E′) ∩ E′′) ⊑ ((E ∩ E′′) ∪ (E′ ∩ E′′)) Subset Union E ⊑ E′′ E′ ⊑ E′′ SU (E ∪ E′) ⊑ E′′ Subset Intersection E ⊑ E′ E ⊑ E′′ SI E ⊑ (E′ ∩ E′′) Subset Transitivity E ⊑ E′ E′ ⊑ E′′ ST E ⊑ E′′

5 / 10

slide-62
SLIDE 62

Proof System Rules

Action Transitivity S[A] ⊑ S′ A′ ⊑ A AT S[A′] ⊑ S′ Action Union S[A] ⊑ S′ S[A′] ⊑ S′ AU S[A ∪ A′] ⊑ S′ Progression Transitivity S[A] ⊑ S′′ S′ ⊑ S PT S′[A] ⊑ S′′ Progression Union S[A] ⊑ S′′ S′[A] ⊑ S′′ PU (S ∪ S′)[A] ⊑ S′′ Progression to Regression S[A] ⊑ S′ PR [A]S′ ⊑ S Regression to Progression [A]S′ ⊑ S RP S[A] ⊑ S′

5 / 10

slide-63
SLIDE 63

Proof System Basic Statements

1

LR∈L LR ⊆ L′

R∈L′ L′

R

with |L| + |L′| ≤ r

2

(

XR∈X XR)[A] ∩ LR∈L LR ⊆ L′

R∈L′ L′

R

with |X| + |L| + |L′| ≤ r

3

[A](

XR∈X XR) ∩ LR∈L LR ⊆ L′

R∈L′ L′

R

with |X| + |L| + |L′| ≤ r

4

LR ⊆ L′

R′

5

A ⊆ A′

6 / 10

slide-64
SLIDE 64

Proof System Basic Statements

  • Li∈L Li ⊆

L′

i∈L′ L′

i:

L+ + L′− = 0 L+ + L′− = 1 L+ + L′− > 1 L− + L′+ = 0 CO CO, ∧BC toDNF L− + L′+ = 1 VA SE SE, ∧BC toDNF, IM L− + L′+ > 1 VA, ∨BC SE, ∨BC SE, ∧BC, ∨BC toCNF toCNF, CE toDNF, IM, ∨BC toCNF, CE, ∧BC

6 / 10

slide-65
SLIDE 65

Proof System Basic Statements

(

Xi∈X Xi)[A] ∩ Li∈L ⊆ L′

i∈L′ L′

i and

[A](

Xi∈X Xi) ∩ Li∈L ⊆ L′

i∈L′ L′

i:

L− + L′+ = 0 CO, ∧BC, CL, RN≺ L− + L′+ = 1 SE, ∧BC, CL, RN≺ L− + L′+ > 1 SE, ∨BC, ∧BC, CL, RN≺ toCNF, CE, ∧BC, CL, RN≺

6 / 10

slide-66
SLIDE 66

Proof System Basic Statements

L ⊆ L′ (mixed): R R′ ϕR| = ψR′ ¬ψR′| = ¬ϕR ME, ns MO toDNF IM CE toCNF ME MO, ns ¬ϕR| = ψR′ ¬ψR′| = ϕR ME, ns MO, CT toCNF IM IM toCNF MO, CT ME, ns ϕR| = ¬ψR′ ψR′| = ¬ϕR ME, ns MO toDNF CE CE toDNF MO ME, ns

6 / 10

slide-67
SLIDE 67

M&S

M3 µ2 µ2

1

µ2

2

µ2

3

α3 2 ∞ ∞ α3

1

1 3 ∞ ∞ A3 v3 = 0 α3 v3 = 1 α3

1

v3 = 2 α3 M2 α1 α1

1

α1

2

α2 µ2 µ2

2

µ2

2

α2

1

µ2

1

µ2

1

µ2

3

A2 v2 = 0 α2 v2 = 1 α2

1

A1 v1 = 0 α1 v1 = 1 α1

1

v1 = 2 α1

2

7 / 10

slide-68
SLIDE 68

M&S

⊤ B3 B3

1

B3

2

B3

3

B2 B2

1

B2

2

B∞

v1 = 0 v1 = 1 v1 = 2 v2 = 0 v2 = 1 v3 = 0 v3 = 1 v3 = 2

7 / 10

slide-69
SLIDE 69

Generation

10−2 10−1 100 101 102 103 10−2 10−1 100 101 102 103 failed failed FDc runtime (in s) FDp runtime (in s) hmax hM&S

8 / 10

slide-70
SLIDE 70

Witness size in relation to dead-ends

0.2 0.4 0.6 0.8 1 100 ≤ 10−2 ≥ 102 percentage of dead-ends witness size FDp/ FDc hmax hM&S 0.2 0.4 0.6 0.8 1 100 ≤ 10−2 ≥ 102 percentage of dead-ends verifier runtime FDp/ FDc hmax hM&S

9 / 10

slide-71
SLIDE 71

Future Work

cover more planning techniques

planning as satisfiability potential heuristics partial order reduction . . .

extend witness definition

inductive certificates: more compositions proof system: more rules, more general basic statements

10 / 10