SLIDE 1
Regular Separability of WSTS Roland Meyer joint work with Wojciech - - PowerPoint PPT Presentation
Regular Separability of WSTS Roland Meyer joint work with Wojciech - - PowerPoint PPT Presentation
Regular Separability of WSTS Roland Meyer joint work with Wojciech Czerwi nski, S lawomir Lasota, Sebastian Muskalla, K Narayan Kumar, and Prakash Saivasan IFIP WG 2.2, September 2018, Brno Separability Separability Given L , K
SLIDE 2
SLIDE 3
Separability
Given L, K ⊆ Σ∗ from class F. What is their relationship?
1
SLIDE 4
Separability
Given L, K ⊆ Σ∗ from class F. What is their relationship? Case 1: L ∩ K = L K
- Study L ∩ K.
1
SLIDE 5
Separability
Case 2: L ∩ K = L K vs. L K
2
SLIDE 6
Separability
Consider separability. Separability of F by S Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ from S such that L ⊆ R, K ∩ R = ?
3
SLIDE 7
Separability
Consider separability. Separability of F by S Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ from S such that L ⊆ R, K ∩ R = ? L K R L K
3
SLIDE 8
Separability
Consider separability. Separability of F by S Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ from S such that L ⊆ R, K ∩ R = ? Commonly studied:
- S F = REG
e.g. S = Star-free languages
- Separability is decidable [Place, Zeitoun 2016].
3
SLIDE 9
Separability
Consider separability. Separability of F by S Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ from S such that L ⊆ R, K ∩ R = ? Commonly studied:
- S F = REG
e.g. S = Star-free languages
- Separability is decidable [Place, Zeitoun 2016].
- S = REG F
Regular separability.
3
SLIDE 10
Regular separability
Regular separability of F Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ regular such that L ⊆ R, K ∩ R = ? Observation: Problem is symmetric in the input: If L ⊆ R, K ∩ R = then K ⊆ R, L ∩ R = .
- Call L, K regularly separable if separator R exists.
4
SLIDE 11
Regular separability
Regular separability of F Given: Languages L, K ⊆ Σ∗ from F Decide: Is there R ⊆ Σ∗ regular such that L ⊆ R, K ∩ R = ? Disjointness is always necessary for (any kind of) separability. It is not always sufficient: L = anbn, K = L .
4
SLIDE 12
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76]
- pen, [CCLP17a,CCLP17b]
5
SLIDE 13
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76]
- pen, [CCLP17a,CCLP17b]
5
SLIDE 14
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76] [K16]
- pen, [CCLP17a,CCLP17b]
5
SLIDE 15
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76] [K16] [CL17] [CL17] non-trivial
- pen, [CCLP17a,CCLP17b]
5
SLIDE 16
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76] [K16] [CL17] [CL17] non-trivial
- pen, [CCLP17a,CCLP17b]
5
SLIDE 17
Regular separability — related work
REG VPL DCFL CFL OCN OCA PNCOV PNREACH WSTS
trivial [SW76] [K16] [CL17] [CL17] non-trivial
- pen, [CCLP17a,CCLP17b]
this talk
5
SLIDE 18
The result
SLIDE 19
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS:
6
SLIDE 20
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS: W = (S, , T, I, F). (S, ) states well quasi ordering T ⊆ S × Σ × S labeled transitions I ⊆ S initial states F ⊆ S final states, upward-closed
6
SLIDE 21
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS: W = (S, , T, I, F). (S, ) states well quasi ordering T ⊆ S × Σ × S labeled transitions I ⊆ S initial states F ⊆ S final states, upward-closed Monotonicity / Simulation property: s′
a
r′ (∃)
s
- a
r
- 6
SLIDE 22
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS: W = (S, , T, I, F). (S, ) states well quasi ordering T ⊆ S × Σ × S labeled transitions I ⊆ S initial states F ⊆ S final states, upward-closed Coverability language L(W) =
- w ∈ Σ∗
- ci
w
− → cf for some ci ∈ I, cf ∈ F
- .
6
SLIDE 23
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS: W = (S, , T, I, F). Example 1: Labeled Petri nets with covering acceptance condition yield WSTS (NP, P, T, M0, Mf ↑) .
6
SLIDE 24
Well-structured transiton systems [F87,AJ93,ACJT96,FS01]
Consider labeled version of WSTS: W = (S, , T, I, F). Example 1: Labeled Petri nets with covering acceptance condition yield WSTS (NP, P, T, M0, Mf ↑) . Example 2: Labeled lossy channel systems (LCS) [AJ93] yield WSTS.
6
SLIDE 25
The result
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable.
7
SLIDE 26
Applications and speculation
SLIDE 27
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. ✁
8
SLIDE 28
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
✁
8
SLIDE 29
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Parallel program P Q safe ✁
8
SLIDE 30
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Parallel program P Q safe iff Language L(P × Q) = ✁
8
SLIDE 31
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Parallel program P Q safe iff Language L(P × Q) = iff Language L(P) ∩ L(Q) = ✁
8
SLIDE 32
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Parallel program P Q safe iff Language L(P × Q) = iff Language L(P) ∩ L(Q) = (Theorem) iff ∃ regular separator of L(P) and L(Q) ✁
8
SLIDE 33
Compositional Safety Verification
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Parallel program P Q safe iff Language L(P × Q) = iff Language L(P) ∩ L(Q) = (Theorem) iff ∃ regular separator of L(P) and L(Q) iff ∃ L1, L2 regular with L(P) ⊆ L1, L(Q) ⊆ L2, and L1 ∩ L2 = . ✁
8
SLIDE 34
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
✁
8
SLIDE 35
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: ✁
8
SLIDE 36
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = ✁
8
SLIDE 37
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- ✁
8
SLIDE 38
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- c
a b ✁
8
SLIDE 39
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- c
a b (ab + c)∗.a ✁
8
SLIDE 40
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- c
a b (ab + c)∗.a ∩ (ac)∗ ✁ b∗
8
SLIDE 41
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- c
a b (ab + c)∗.a ∩ (ac)∗ ✁ b∗ =
8
SLIDE 42
Compositional Safety Verification
Corollary Regular approximations are complete for compositional verification
- f safety properties for parallel (well-structured) programs.
Applies to Petri net coverability, split set of places arbitrarily: b a c = b a c
- c
a b (ab + c)∗.a ∩ (ac)∗ ✁ b∗ = Petri nets seem to have a regular type.
8
SLIDE 43
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B.
9
SLIDE 44
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant!
9
SLIDE 45
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant! G
- B
- 9
SLIDE 46
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant! S G
- B
- 9
SLIDE 47
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant! S G
- B
- Inductiveness problem: What if x ∈ S but y = post(x) /
∈ S? Should x be outside S or y be in S?
9
SLIDE 48
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant! S G
- x
- B
- y
Inductiveness problem: What if x ∈ S but y = post(x) / ∈ S? Should x be outside S or y be in S?
9
SLIDE 49
Learning-based verification without ICE
Learning invariants [Madhusudan, Neider et al. since 2014] Given: Configurations G reachable from init, B leading to bad. Learn: Separator S of G and B. ⇒ Candidate for an invariant! S G
- x
- B
- y
Inductiveness problem: What if x ∈ S but y = post(x) / ∈ S? Should x be outside S or y be in S? Solution [Madhusudan, Neider et al.]: Generalize learning algorithms to take into account pairs (x, y).
9
SLIDE 50
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. .
9
SLIDE 51
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant.
9
SLIDE 52
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant. Learning-based verification with separators Given: Computations G feasible in P, B feasible in Q. Learn: Separator R of G and B.
9
SLIDE 53
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant. Learning-based verification with separators Given: Computations G feasible in P, B feasible in Q. Learn: Separator R of G and B. ⇒ Candidate for L(P), L(Q)!
9
SLIDE 54
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant. Learning-based verification with separators Given: Computations G feasible in P, B feasible in Q. Learn: Separator R of G and B. ⇒ Candidate for L(P), L(Q)! Inductiveness problem:
9
SLIDE 55
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant. Learning-based verification with separators Given: Computations G feasible in P, B feasible in Q. Learn: Separator R of G and B. ⇒ Candidate for L(P), L(Q)! Inductiveness problem: Inclusion of L(P) and disjointness from L(Q) have to be checked.
9
SLIDE 56
Learning-based verification without ICE
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Idea: Replace configurations by computations. Learn a regular separator rather than an invariant. Learning-based verification with separators Given: Computations G feasible in P, B feasible in Q. Learn: Separator R of G and B. ⇒ Candidate for L(P), L(Q)! Inductiveness problem: Inclusion of L(P) and disjointness from L(Q) have to be checked. But: No new framework needed!
9
SLIDE 57
Learning-based verification without ICE
G := =: B
9
SLIDE 58
Learning-based verification without ICE
G := =: B Learn R separating G from B
9
SLIDE 59
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R
9
SLIDE 60
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R w ∈ L(P) \ R G := G ∪ {w}
9
SLIDE 61
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R R ∩ L(Q) = yes w ∈ L(P) \ R G := G ∪ {w}
9
SLIDE 62
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R R ∩ L(Q) = yes w ∈ L(P) \ R G := G ∪ {w} w ∈ L(Q) ∩ R B := B ∪ {w}
9
SLIDE 63
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R R ∩ L(Q) =
- yes
yes w ∈ L(P) \ R G := G ∪ {w} w ∈ L(Q) ∩ R B := B ∪ {w}
9
SLIDE 64
Learning-based verification without ICE
G := =: B Learn R separating G from B L(P) ⊆ R R ∩ L(Q) =
- yes
yes w ∈ L(P) \ R G := G ∪ {w} w ∈ L(Q) ∩ R B := B ∪ {w} There is a dual algorithm learning L1 and L2 from above.
9
SLIDE 65
Interpolation-based regular model checking
Interpolation-based model checking [McMillan since 2003] Given: Formulas F = init ∨ post(init), G = prek(bad). Compute: Interpolant of F and G. .
10
SLIDE 66
Interpolation-based regular model checking
Interpolation-based model checking [McMillan since 2003] Given: Formulas F = init ∨ post(init), G = prek(bad). Compute: Interpolant of F and G. ⇒ Candidate for an invariant! .
10
SLIDE 67
Interpolation-based regular model checking
Interpolation-based model checking [McMillan since 2003] Given: Formulas F = init ∨ post(init), G = prek(bad). Compute: Interpolant of F and G. ⇒ Candidate for an invariant! Needs representation for which interpolants can be computed. .
10
SLIDE 68
Interpolation-based regular model checking
Interpolation-based model checking [McMillan since 2003] Given: Formulas F = init ∨ post(init), G = prek(bad). Compute: Interpolant of F and G. ⇒ Candidate for an invariant! Needs representation for which interpolants can be computed. Craig’s theorem 1957: First-order logic has interpolants. .
10
SLIDE 69
Interpolation-based regular model checking
Separators are interpolants! .
10
SLIDE 70
Interpolation-based regular model checking
Separators are interpolants! Regular model checking [Abdulla et al. since 1997] Analyze programs where configurations are words: .
10
SLIDE 71
Interpolation-based regular model checking
Separators are interpolants! Regular model checking [Abdulla et al. since 1997] Analyze programs where configurations are words: init, bad = regular languages transitions = regular transductions. .
10
SLIDE 72
Interpolation-based regular model checking
Separators are interpolants! Regular model checking [Abdulla et al. since 1997] Analyze programs where configurations are words: init, bad = regular languages transitions = regular transductions. Since post(reg) regular, languages in McMillan’s approach regular.
10
SLIDE 73
Interpolation-based regular model checking
Separators are interpolants! Regular model checking [Abdulla et al. since 1997] Analyze programs where configurations are words: init, bad = regular languages transitions = regular transductions. Since post(reg) regular, languages in McMillan’s approach regular. Separators trivially exist!
10
SLIDE 74
Interpolation-based regular model checking
Separators are interpolants! Regular model checking [Abdulla et al. since 1997] Analyze programs where configurations are words: init, bad = regular languages transitions = regular transductions. Since post(reg) regular, languages in McMillan’s approach regular. Separators trivially exist! init post(init) prek(bad) R
10
SLIDE 75
Interpolation of string-manipulating programs
Again: Separators may be the right thing!
11
SLIDE 76
Language-theoretic consequences
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable.
12
SLIDE 77
Language-theoretic consequences
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary If a language and its complement are finitely branching WSTS languages, they are necessarily regular.
12
SLIDE 78
Language-theoretic consequences
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary If a language and its complement are finitely branching WSTS languages, they are necessarily regular. Generalizes results for Petri nets [Kumar et al. 1998].
12
SLIDE 79
Language-theoretic consequences
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. Corollary If a language and its complement are finitely branching WSTS languages, they are necessarily regular. Generalizes results for Petri nets [Kumar et al. 1998]. Corollary No subclass of finitely branching WSTS beyond REG is closed under complement.
12
SLIDE 80
Expressiveness results: Languages of finitely branching WSTS
SLIDE 81
Our result - Recall
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. W finitely branching: I finite, PostΣ(c) finite for all c.
13
SLIDE 82
Our result - Recall
Theorem If two WSTS languages, one of them finitely branching, are disjoint, then they are regularly separable. W finitely branching: I finite, PostΣ(c) finite for all c. How much of a restriction is it to assume finite branching? What do we gain by assuming finite branching?
13
SLIDE 83
Expressibility I
Proposition Languages of ω2-WSTS ⊆ Languages of finitely branching WSTS. (S, ) ω2-wqo iff
- P↓(S), ⊆
- wqo
iff (S, ) does not embed the Rado order. Our result applies to all WSTS of practical interest!
14
SLIDE 84
Expressibility II
Proposition Languages of finitely branching WSTS = Languages of deterministic WSTS. Sufficient to show: Theorem If two WSTS languages, one of them deterministic, are disjoint, then they are regularly separable.
15
SLIDE 85
Proof sketch
SLIDE 86
Proof approach
Theorem If two WSTS languages, one of them deterministic, are disjoint, then they are regularly separable. Proof approach: Relate separability to the existence of certain invariants. Separability talks about the languages, invariants talk about the state space!
16
SLIDE 87
Inductive invariant [Manna, Pnueli 1995]
Inductive invariant X for WSTS W: (1) X ⊆ S downward-closed (2) I ⊆ X (3) F ∩ X = (4) PostΣ(X) ⊆ X
I F Post∗ Pre∗ S \ Pre∗ X
17
SLIDE 88
Inductive invariant [Manna, Pnueli 1995]
Inductive invariant X for WSTS W: (1) X ⊆ S downward-closed (2) I ⊆ X (3) F ∩ X = (4) PostΣ(X) ⊆ X
I F Post∗ Pre∗ S \ Pre∗ X
Lemma L(W) = iff inductive invariant for W exists.
17
SLIDE 89
Proof approach
L(W1), L(W2) reg. sep L(W1) ∩ L(W2) = L(W1 × W2) = W1 × W2 has inductive invariant ! ?
18
SLIDE 90
Proof approach
L(W1), L(W2) reg. sep L(W1) ∩ L(W2) = L(W1 × W2) = W1 × W2 has inductive invariant ! ?
18
SLIDE 91
Proof approach
L(W1), L(W2) reg. sep L(W1) ∩ L(W2) = L(W1 × W2) = W1 × W2 has inductive invariant ! ?
18
SLIDE 92
Finitely represented invariants
The desired implication does not hold. Call an invariant X finitely represented if X = Q ↓ for Q finite.
19
SLIDE 93
Finitely represented invariants
The desired implication does not hold. Call an invariant X finitely represented if X = Q ↓ for Q finite. Recall: (S, ) well quasi order (wqo) iff upward-closed sets have finitely many minimal elements. No such statement for downward-closed sets and maximal elements!
19
SLIDE 94
Finitely represented invariants
The desired implication does not hold. Call an invariant X finitely represented if X = Q ↓ for Q finite. We can show: Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable.
19
SLIDE 95
Proof approach II
L(W1), L(W2) reg. sep L(W1) ∩ L(W2) = L(W1 × W2) = W1 × W2 has fin. rep. invariant ! ✗
- 20
SLIDE 96
Proof approach II
L(W1), L(W2) reg. sep L(W1) ∩ L(W2) = L(W1 × W2) = W1 × W2 has fin. rep. invariant ! ✗
- 20
SLIDE 97
Ideals
Finitely represented invariants do not necessarily exist. Solution: Ideals Definition For WSTS W, let W be its ideal completion [KP92,BFM14,FG12]. Lemma L(W) = L( W).
- W is deterministic if so is W.
21
SLIDE 98
Ideals
Finitely represented invariants do not necessarily exist. Solution: Ideals Definition For WSTS W, let W be its ideal completion [KP92,BFM14,FG12]. Lemma L(W) = L( W).
- W is deterministic if so is W.
Proposition If X is an inductive invariant for W, then its ideal decomposition Idec(X)↓ is a finitely represented inductive invariant for W.
21
SLIDE 99
Proof
Putting everything together: If W1, W2 are disjoint, W1 × W2 admits an invariant X. Then Idec(X)↓ is a finitely represented invariant for
- W1 × W2 ∼
= W1 × W2. This finitely represented invariant gives rise to a regular separator.
22
SLIDE 100
Proof
Putting everything together: If W1, W2 are disjoint, W1 × W2 admits an invariant X. Then Idec(X)↓ is a finitely represented invariant for
- W1 × W2 ∼
= W1 × W2. This finitely represented invariant gives rise to a regular separator. We have shown: Theorem If two WSTS languages are disjoint,
- ne of them finitely branching or deterministic or ω2,
then they are regularly separable.
22
SLIDE 101
Proof details: From fin. rep. invariants to regular separators
SLIDE 102
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable.
23
SLIDE 103
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable. Assume Q ↓ is an invariant. Idea: Construct separating NFA with Q as states.
23
SLIDE 104
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable. Definition A = (Q, →, QI, QF) where
23
SLIDE 105
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable. Definition A = (Q, →, QI, QF) where QI = {(s, s′) ∈ Q | (c, c′) (s, s′) for some (c, c′) initial}
23
SLIDE 106
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable. Definition A = (Q, →, QI, QF) where QI = {(s, s′) ∈ Q | (c, c′) (s, s′) for some (c, c′) initial} QF = {(s, s′) ∈ Q | s ∈ F1}
23
SLIDE 107
From invariants to separability
Theorem Let W1, W2 WSTS, W2 deterministic. If W1 × W2 admits a finitely represented inductive invariant, then L(W1) and L(W2) are regularly separable. Definition A = (Q, →, QI, QF) where QI = {(s, s′) ∈ Q | (c, c′) (s, s′) for some (c, c′) initial} QF = {(s, s′) ∈ Q | s ∈ F1} (r, r′) ∈ Q Q ∋ (s, s′)
a in A
- a
in W1×W2
(t, t′) ∈ S1 × S2
- 23
SLIDE 108
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 109
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 110
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 111
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 112
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 113
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 114
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 115
Behavior of A
- q0 ↓
- q1 ↓
- q2 ↓
- q3 ↓
- a
b c a b c
F1 × S2 A over-approximates the behavior of the product system using the configurations from Q.
24
SLIDE 116
Proving separability: Inclusion
Lemma L(W1) ⊆ L(A).
25
SLIDE 117
Proving separability: Inclusion
Lemma L(W1) ⊆ L(A). Proof. Any run c
w
− → d of W1 synchronizes with the run of W2 for w in the run (c, c′) w − → (d, d′) of W1 × W2.
25
SLIDE 118
Proving separability: Inclusion
Lemma L(W1) ⊆ L(A). Proof. Any run c
w
− → d of W1 synchronizes with the run of W2 for w in the run (c, c′) w − → (d, d′) of W1 × W2. This run can be over-approximated in A.
25
SLIDE 119
Proving separability: Inclusion
Lemma L(W1) ⊆ L(A). Proof. Any run c
w
− → d of W1 synchronizes with the run of W2 for w in the run (c, c′) w − → (d, d′) of W1 × W2. This run can be over-approximated in A. If d is final in W1, the over-approximation of (d, d′) is final in A.
25
SLIDE 120
Proving separability: Disjointness
Lemma L(W2) ∩ L(A) = .
26
SLIDE 121
Proving separability: Disjointness
Lemma L(W2) ∩ L(A) = . Proof. Any run of A for w over-approximates in the second component the unique run of W2 for w.
26
SLIDE 122
Proving separability: Disjointness
Lemma L(W2) ∩ L(A) = . Proof. Any run of A for w over-approximates in the second component the unique run of W2 for w. If w ∈ L(W2) ∩ L(A) then some run of A reaches a state (q, q′) with
- q final in W1 (def. of QF)
- q′ final in W2 (w ∈ L(W2) + argument above).
26
SLIDE 123
Proving separability: Disjointness
Lemma L(W2) ∩ L(A) = . Proof. Any run of A for w over-approximates in the second component the unique run of W2 for w. If w ∈ L(W2) ∩ L(A) then some run of A reaches a state (q, q′) with
- q final in W1 (def. of QF)
- q′ final in W2 (w ∈ L(W2) + argument above).
Contradiction to (F1 × F2) ∩ Q↓ = !
26
SLIDE 124
Proof details: The ideal completion and fin. rep. invariants
SLIDE 125
Finitely represented invariants
Lemma Let U ⊆ S be an upward-closed set in a wqo. There is a finite set Umin such that U = Umin ↑ . A similar result for downward-closed subsets and maximal elements does not hold.
27
SLIDE 126
Finitely represented invariants
Lemma Let U ⊆ S be an upward-closed set in a wqo. There is a finite set Umin such that U = Umin ↑ . A similar result for downward-closed subsets and maximal elements does not hold. Example: Consider N in (N, ) Intuitively, N = ω↓ .
27
SLIDE 127
Finitely represented invariants
Lemma Let U ⊆ S be an upward-closed set in a wqo. There is a finite set Umin such that U = Umin ↑ . A similar result for downward-closed subsets and maximal elements does not hold. Consequence: Finitely represented invariants may not exist! Solution: Move to a language-equivalent system for which they always exist.
27
SLIDE 128
Ideals
Let (S, ) be a wqo An ideal I ⊆ S is a set that is
- non-empty
- downward-closed
28
SLIDE 129
Ideals
Let (S, ) be a wqo An ideal I ⊆ S is a set that is
- non-empty
- downward-closed
- directed: ∀x, y ∈ I ∃z ∈ I : x z, y z.
28
SLIDE 130
Ideals
Let (S, ) be a wqo An ideal I ⊆ S is a set that is
- non-empty
- downward-closed
- directed: ∀x, y ∈ I ∃z ∈ I : x z, y z.
Example 1: For each c ∈ S, c ↓ is an ideal.
28
SLIDE 131
Ideals
Let (S, ) be a wqo An ideal I ⊆ S is a set that is
- non-empty
- downward-closed
- directed: ∀x, y ∈ I ∃z ∈ I : x z, y z.
Example 2: Consider (Nk, ) The ideals are the sets u ↓ for u ∈ (N ∪ {ω})k.
28
SLIDE 132
Ideal decomposition
Lemma ([Kabil, Pouzet 1992]) Let (S, ) be a wqo. For D ⊆ S downward closed, let Idec(D) be the set of inclusion-maximal ideals in D. Idec(D) is unique, finite, and we have D =
- Idec(D) .
29
SLIDE 133
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
30
SLIDE 134
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
- F = {I | I ∩ F = }
30
SLIDE 135
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
- F = {I | I ∩ F = }
- T defined by Post
- W
a (I) = Idec
- PostW
a (I)↓
- .
30
SLIDE 136
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
- F = {I | I ∩ F = }
- T defined by Post
- W
a (I) = Idec
- PostW
a (I)↓
- .
Lemma
W finitely branching.
30
SLIDE 137
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
- F = {I | I ∩ F = }
- T defined by Post
- W
a (I) = Idec
- PostW
a (I)↓
- .
Lemma
W finitely branching.
- W deterministic =
⇒ W deterministic.
30
SLIDE 138
Ideal completion
Definition ([FG12,BFM14]) Let W = (S, , T, I, F) WSTS. Its ideal completion is
- W = ({I ⊆ S | I ideal}, ⊆,
T, Idec(I ↓), F) with
- F = {I | I ∩ F = }
- T defined by Post
- W
a (I) = Idec
- PostW
a (I)↓
- .
Lemma
W finitely branching.
- W deterministic =
⇒ W deterministic.
- L(
W) = L(W).
30
SLIDE 139
Using the ideal completion
Proposition If X is an inductive invariant for W, then its ideal decomposition Idec(X)↓ is a finitely represented inductive invariant for W.
31
SLIDE 140
Using the ideal completion
Proposition If X is an inductive invariant for W, then its ideal decomposition Idec(X)↓ is a finitely represented inductive invariant for W. Proof. Property of being an inductive invariant carries over. Any set of the shape Idec(Y )↓ is finitely-represented in W.
31
SLIDE 141
Using the ideal completion
Proposition If X is an inductive invariant for W, then its ideal decomposition Idec(X)↓ is a finitely represented inductive invariant for W. Proof. Property of being an inductive invariant carries over. Any set of the shape Idec(Y )↓ is finitely-represented in W. Result in particular applies to Cover = Post∗(I1 × I2)↓ .
31
SLIDE 142
Using the ideal completion
Proposition If X is an inductive invariant for W, then its ideal decomposition Idec(X)↓ is a finitely represented inductive invariant for W. Proof. Property of being an inductive invariant carries over. Any set of the shape Idec(Y )↓ is finitely-represented in W. Result in particular applies to Cover = Post∗(I1 × I2)↓ . Remark: W is not necessarily a WSTS.
31
SLIDE 143
Separator size: The case of Petri nets
SLIDE 144
Separator size
Question: Number of states of the separating automaton?
32
SLIDE 145
Separator size
Question: Number of states of the separating automaton? Consider Petri nets.
32
SLIDE 146
Separator size
Question: Number of states of the separating automaton? Consider Petri nets. Problems:
- 1. Determinism.
32
SLIDE 147
Separator size
Question: Number of states of the separating automaton? Consider Petri nets. Problems:
- 1. Determinism.
- 2. Size estimation on the ideal decomposition of an invariant.
32
SLIDE 148
Enforcing determinism
Given: Labeled Petri nets over Σ NA = (PA, TA, λA, inA, outA, M0A, MfA) NB = (PB, TB, λ, inB, outB, M0B, MfB) . See board.
33
SLIDE 149
Enforcing determinism
Given: Labeled Petri nets over Σ NA = (PA, TA, λA, inA, outA, M0A, MfA) NB = (PB, TB, λ, inB, outB, M0B, MfB) . Construct: Labeled Petri nets over TB N−λ
A
= (PA, T −λ
A , ℓ, in−λ A , out−λ A , M0A, MfA)
Ndet
B
= (PB, TB, id, inB, outB, , M0B, MfB) . See board.
33
SLIDE 150
Enforcing determinism
Given: Labeled Petri nets over Σ NA = (PA, TA, λA, inA, outA, M0A, MfA) NB = (PB, TB, λ, inB, outB, M0B, MfB) . Construct: Labeled Petri nets over TB N−λ
A
= (PA, T −λ
A , ℓ, in−λ A , out−λ A , M0A, MfA)
Ndet
B
= (PB, TB, id, inB, outB, , M0B, MfB) . L(NA × NB) = λ
- L
- N−λ
A
× Ndet
B
- 33
SLIDE 151
Enforcing determinism
Given: Labeled Petri nets over Σ NA = (PA, TA, λA, inA, outA, M0A, MfA) NB = (PB, TB, λ, inB, outB, M0B, MfB) . Construct: Labeled Petri nets over TB N−λ
A
= (PA, T −λ
A , ℓ, in−λ A , out−λ A , M0A, MfA)
Ndet
B
= (PB, TB, id, inB, outB, , M0B, MfB) . If R separates L
- N−λ
A
- and L
- Ndet
B
- ,
then λ
- R
- separates L(NA) and L(NB).
33
SLIDE 152
Obtaining an ideal decomposition of an invariant
First idea: Coverability graph provides ideal decomposition of Cover.
34
SLIDE 153
Obtaining an ideal decomposition of an invariant
First idea: Coverability graph provides ideal decomposition of Cover. Problem: It may be Ackermann-large.
34
SLIDE 154
Obtaining an ideal decomposition of an invariant
First idea: Coverability graph provides ideal decomposition of Cover. Problem: It may be Ackermann-large. Better idea: Use ideal decomposition of Nk \ Pre∗(MfA ↑ × MfB ↑).
34
SLIDE 155
Obtaining an ideal decomposition of an invariant
First idea: Coverability graph provides ideal decomposition of Cover. Problem: It may be Ackermann-large. Better idea: Use ideal decomposition of Nk \ Pre∗(MfA ↑ × MfB ↑). Theorem ([Bozzelli, Ganty 2011]) Pre∗(Mf ↑) = {v1, . . . , vk} with k and ||vi||∞ doubly exponential.
34
SLIDE 156
The upper bound
Theorem (BG11) Pre∗(Mf ↑) = {v1, . . . , vk} with k and ||vi||∞ doubly exponential. Theorem (Upper bound) Given two disjoint Petri nets, we can construct an NFA separating their coverability languages of triply-exponential size.
35
SLIDE 157
Upper vs. lower bound
Theorem (Upper bound) Given two disjoint Petri nets, we can construct an NFA separating their coverability languages of triply-exponential size. Theorem (Lower bound) The disjoint Petri net coverability languages L0@22k and L1@22k over {0, 1} cannot be separated by a DFA of less than triply-exponential size.
36
SLIDE 158
Conclusion
SLIDE 159
Regular separability for WSTS languages
Theorem If two WSTS languages are disjoint,
- ne of them finitely branching or deterministic or ω2,
then they are regularly separable.
37
SLIDE 160
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS:
38
SLIDE 161
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS: deterministic WSTS languages
- all WSTS languages
?
38
SLIDE 162
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS: deterministic WSTS languages
- all WSTS languages
? Open: Infinitely branching WSTS over Rado order.
38
SLIDE 163
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS: deterministic WSTS languages
- all WSTS languages
? Open: Infinitely branching WSTS over Rado order. Related problem: ω2-WSTS languages
- deterministic WSTS languages
?
38
SLIDE 164
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS: deterministic WSTS languages
- all WSTS languages
? Open: Infinitely branching WSTS over Rado order. Related problem: ω2-WSTS languages
- deterministic WSTS languages
? Complexity: Tight bound on the separator size for Petri nets.
38
SLIDE 165
Open problems: Expressiveness
Non-Determinism: Does non-determinism add to the expressiveness of WSTS: deterministic WSTS languages
- all WSTS languages
? Open: Infinitely branching WSTS over Rado order. Related problem: ω2-WSTS languages
- deterministic WSTS languages
? Complexity: Tight bound on the separator size for Petri nets. Replace homomorphism trick or show combinatorial magic.
38
SLIDE 166
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable?
39
SLIDE 167
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness.
39
SLIDE 168
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class.
39
SLIDE 169
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability:
39
SLIDE 170
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results.
39
SLIDE 171
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results. An equivalence will not do (not one separator).
39
SLIDE 172
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results. An equivalence will not do (not one separator). ω-regular separability of WSTS?
39
SLIDE 173
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results. An equivalence will not do (not one separator). ω-regular separability of WSTS? Regular separability is for safety verification.
39
SLIDE 174
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results. An equivalence will not do (not one separator). ω-regular separability of WSTS? Regular separability is for safety verification. Is there an ω-regular separability result for liveness verification?
39
SLIDE 175
Open problems: Theory of regular separability
Regular separability result: Are disjoint WSTS languages always regularly separable? Solved if non-determinism does not add expressiveness. Fails for WBTS [Finkel et al. 2017], strictly larger class. Myhill-Nerode-like characterization of regular separability: Should explain existing (un)decidability results. An equivalence will not do (not one separator). ω-regular separability of WSTS? Regular separability is for safety verification. Is there an ω-regular separability result for liveness verification? A similarly general result would be surprising given the negative results for LCS [Abdulla, Jonsson 1996].
39
SLIDE 176
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :)
40
SLIDE 177
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas.
40
SLIDE 178
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas. Interpolation algorithms rely on resolution proofs.
40
SLIDE 179
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas. Interpolation algorithms rely on resolution proofs. Proof systems for WSMO under development [Vojnar et al. 2017].
40
SLIDE 180
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas. Interpolation algorithms rely on resolution proofs. Proof systems for WSMO under development [Vojnar et al. 2017]. Verification: Try out ideas for verification algorithms.
40
SLIDE 181
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas. Interpolation algorithms rely on resolution proofs. Proof systems for WSMO under development [Vojnar et al. 2017]. Verification: Try out ideas for verification algorithms. Iterated decomposition in the Petri net case open.
40
SLIDE 182
Open problems: Algorithms
There are not yet practical algorithms for and based on separability :) Computing regular separators: Compute separators from automata or WMSO formulas. Interpolation algorithms rely on resolution proofs. Proof systems for WSMO under development [Vojnar et al. 2017]. Verification: Try out ideas for verification algorithms. Iterated decomposition in the Petri net case open. Learning would benefit from extrapolation.
40
SLIDE 183
Open problems
Beyond regular separability?
41
SLIDE 184
Open problems
Beyond regular separability? Beyond WSTS?
41
SLIDE 185
Thank you!
SLIDE 186