Equivalences of pushdown systems are hard Petr Jan car Dept of - - PowerPoint PPT Presentation

equivalences of pushdown systems are hard
SMART_READER_LITE
LIVE PREVIEW

Equivalences of pushdown systems are hard Petr Jan car Dept of - - PowerPoint PPT Presentation

Equivalences of pushdown systems are hard Petr Jan car Dept of Computer Science Technical University Ostrava (FEI V SB-TUO), Czech Republic www.cs.vsb.cz/jancar FoSSaCS14, part of ETAPS 2014 Grenoble, 11 Apr 2014 Petr Jan car (TU


slide-1
SLIDE 1

Equivalences of pushdown systems are hard

Petr Janˇ car

Dept of Computer Science Technical University Ostrava (FEI Vˇ SB-TUO), Czech Republic www.cs.vsb.cz/jancar

FoSSaCS’14, part of ETAPS 2014 Grenoble, 11 Apr 2014

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 1 / 73

slide-2
SLIDE 2

Deterministic pushdown automata; language equivalence

3 ∗ (5 + 7) q YES/NO (empty stack acceptance) ⊥ B A B finite control unit M = (Q, Σ, Γ, δ, q0, Z0) stack (LIFO) Decidability of L(M1) ? = L(M2) was open since 1960s (Ginsburg, Greibach). First-order schemes (1970s, 1980s, ..., B. Courcelle, ....).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 2 / 73

slide-3
SLIDE 3

Solution

S´ enizergues G.: L(A)=L(B)? Decidability results from complete formal systems. Theoretical Computer Science 251(1-2): 1-166 (2001) (a preliminary version appeared at ICALP’97; G¨

  • del prize 2002)

Stirling C.: Decidability of DPDA equivalence. Theoretical Computer Science 255, 1-31, 2001 S´ enizergues G.: L(A)=L(B)? A simplified decidability proof. Theoretical Computer Science 281(1-2): 555-608 (2002) Stirling C.: Deciding DPDA equivalence is primitive recursive. ICALP 2002, Lecture Notes in Computer Science 2380, 821-832, Springer 2002 (longer draft paper on the author’s web page) S´ enizergues G.: The Bisimulation Problem for Equational Graphs of Finite Out-Degree. SIAM J.Comput., 34(5), 1025–1106 (2005) (a preliminary version appeared at FOCS’98)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 3 / 73

slide-4
SLIDE 4

Outline

Part 1

Deterministic case is in TOWER. Equivalence of first-order schemes (or det-FO-grammars, or deterministic pushdown automata (DPDA)) is in TOWER, i.e. “close” to elementary. (The known lower bound is P-hardness.)

Part 2

Nondeterministic case is Ackermann-hard. Bisimulation equivalence of first-order grammars (or PDA with deterministic popping ε-moves) is Ackermann-hard, and thus not primitive recursive (but decidable).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 4 / 73

slide-5
SLIDE 5

Part 1

Equivalence of det-FO-grammars (or of DPDA) is in TOWER.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 5 / 73

slide-6
SLIDE 6

(Det-)labelled transition systems (LTSs); trace equivalence

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 6 / 73

slide-7
SLIDE 7

(Det-)labelled transition systems (LTSs); trace equivalence

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 7 / 73

slide-8
SLIDE 8

(Det-)labelled transition systems (LTSs); trace equivalence

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 8 / 73

slide-9
SLIDE 9

(Det-)labelled transition systems (LTSs); trace equivalence

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 9 / 73

slide-10
SLIDE 10

(Det-)labelled transition systems (LTSs); trace equivalence

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 10 / 73

slide-11
SLIDE 11

FO-grammar G = (N, A, R) ... rules A(x1, . . . , xm)

a

− → E

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 11 / 73

slide-12
SLIDE 12

FO-grammar G = (N, A, R) ... rules A(x1, . . . , xm)

a

− → E

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 12 / 73

slide-13
SLIDE 13

FO-grammar G = (N, A, R) ... rules A(x1, . . . , xm)

a

− → E

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 13 / 73

slide-14
SLIDE 14

FO-grammar G = (N, A, R) ... rules A(x1, . . . , xm)

a

− → E

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 14 / 73

slide-15
SLIDE 15

(D)pda from a first-order term perspective

Q = {q1, q2, q3} (pushing) rule q2A

a

− → q1BC configuration q2ABA (popping) rule q2A

b

− → q2 q2C

ε

− → q3

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 15 / 73

slide-16
SLIDE 16

Bounding lengths of witnesses (where EL keeps dropping)

Theorem. There is an elementary function g such that for any det-FO grammar G = (N, A, R) and T ∼ U

  • f size n we have

EL(T, U) ≤ tower(g(n)). tower(0) = 1 tower(n+1) = 2tower(n)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 16 / 73

slide-17
SLIDE 17

Bounding lengths of witnesses (where EL keeps dropping)

Theorem. There is an elementary function g such that for any det-FO grammar G = (N, A, R) and T ∼ U

  • f size n we have

EL(T, U) ≤ tower(g(n)). tower(0) = 1 tower(n+1) = 2tower(n) Proof is based on two ideas:

1 “Synchronize” the growth of lhs-terms

and rhs-terms while not changing the respective eq-levels. (Hence no repeat.)

2 Derive a tower-bound on the size of

terms in the (modified) sequence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 16 / 73

slide-18
SLIDE 18

Congruence properties of ∼k and ∼

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 17 / 73

slide-19
SLIDE 19

Congruence properties of ∼k and ∼

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 18 / 73

slide-20
SLIDE 20

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 19 / 73

slide-21
SLIDE 21

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 20 / 73

slide-22
SLIDE 22

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 21 / 73

slide-23
SLIDE 23

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 22 / 73

slide-24
SLIDE 24

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 23 / 73

slide-25
SLIDE 25

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 24 / 73

slide-26
SLIDE 26

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 25 / 73

slide-27
SLIDE 27

Balancing (the crucial tool for “synchronizing”)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 26 / 73

slide-28
SLIDE 28

“Stair subsequence” of pairs (on balanced witness path)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 27 / 73

slide-29
SLIDE 29

Stair subsequence of pairs (written horizontally)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 28 / 73

slide-30
SLIDE 30

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 29 / 73

slide-31
SLIDE 31

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 30 / 73

slide-32
SLIDE 32

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 31 / 73

slide-33
SLIDE 33

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 32 / 73

slide-34
SLIDE 34

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 33 / 73

slide-35
SLIDE 35

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 34 / 73

slide-36
SLIDE 36

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 35 / 73

slide-37
SLIDE 37

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 36 / 73

slide-38
SLIDE 38

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 37 / 73

slide-39
SLIDE 39

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 38 / 73

slide-40
SLIDE 40

(ℓ, n)-(sub)sequences, with 2ℓ pairs

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 39 / 73

slide-41
SLIDE 41

Final (conditional) step of the “TOWER-proof”

Recall: There is no EL-decreasing (1, 0)-sequence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 40 / 73

slide-42
SLIDE 42

Final (conditional) step of the “TOWER-proof”

Recall: There is no EL-decreasing (1, 0)-sequence.

  • Claim. Any EL-decreasing (ℓ+1, n+1)-sequence gives rise to

an EL-decreasing (ℓ, n)-sequence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 40 / 73

slide-43
SLIDE 43

Final (conditional) step of the “TOWER-proof”

Recall: There is no EL-decreasing (1, 0)-sequence.

  • Claim. Any EL-decreasing (ℓ+1, n+1)-sequence gives rise to

an EL-decreasing (ℓ, n)-sequence.

  • Corollary. There is no EL-decreasing (n+1, n)-sequence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 40 / 73

slide-44
SLIDE 44

Final (conditional) step of the “TOWER-proof”

Recall: There is no EL-decreasing (1, 0)-sequence.

  • Claim. Any EL-decreasing (ℓ+1, n+1)-sequence gives rise to

an EL-decreasing (ℓ, n)-sequence.

  • Corollary. There is no EL-decreasing (n+1, n)-sequence.

Recall that h(1) = 1 + q, h(j+1) = h(j) · (1 + qh(j)) and that h(j) “stairs” gives rise to (j, n)-sequence (n being the “small” thickness).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 40 / 73

slide-45
SLIDE 45

Final (conditional) step of the “TOWER-proof”

Recall: There is no EL-decreasing (1, 0)-sequence.

  • Claim. Any EL-decreasing (ℓ+1, n+1)-sequence gives rise to

an EL-decreasing (ℓ, n)-sequence.

  • Corollary. There is no EL-decreasing (n+1, n)-sequence.

Recall that h(1) = 1 + q, h(j+1) = h(j) · (1 + qh(j)) and that h(j) “stairs” gives rise to (j, n)-sequence (n being the “small” thickness).

  • Corollary. There are less than h(n+1) stairs, and h(n+1) ≤ tower(g(n)).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 40 / 73

slide-46
SLIDE 46

Repeating heads yield an “equation”

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 41 / 73

slide-47
SLIDE 47

Repeating heads yield an “equation”

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 42 / 73

slide-48
SLIDE 48

Repeating heads yield an “equation”

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 43 / 73

slide-49
SLIDE 49

Repeating heads yield an “equation”

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 44 / 73

slide-50
SLIDE 50

Repeating heads yield an “equation”

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 45 / 73

slide-51
SLIDE 51

From (ℓ, n) to (ℓ−1, n−1) ... decreasing thickness

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 46 / 73

slide-52
SLIDE 52

From (ℓ, n) to (ℓ−1, n−1) ... decreasing thickness

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 47 / 73

slide-53
SLIDE 53

From (ℓ, n) to (ℓ−1, n−1) ... decreasing thickness

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 48 / 73

slide-54
SLIDE 54

From (ℓ, n) to (ℓ−1, n−1) ... decreasing thickness

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 49 / 73

slide-55
SLIDE 55

Bounding lengths of witnesses (End of Part 1)

Theorem. There is an elementary function g such that for any det-FO grammar G = (N, A, R) and T ∼ U

  • f size n we have

EL(T, U) ≤ tower(g(n)). Proof is based on two ideas:

1 “Synchronize” the growth of lhs-terms

and rhs-terms while not changing the respective eq-levels. (Hence no repeat.)

2 Derive a tower-bound on the size of

terms in the (modified) sequence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 50 / 73

slide-56
SLIDE 56

Part 2

Bisimulation equivalence for FO-grammars is Ackermann-hard.

Note: Benedikt M., G¨

  • ller S., Kiefer S., Murawski A.S.:

Bisimilarity of Pushdown Automata is Nonelementary. LICS 2013 (no ε-transitions)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 51 / 73

slide-57
SLIDE 57

Ackermann function, class ACK, ACK-completeness

Family f0, f1, f2, . . . of functions: f0(n) = n+1 fk+1(n) = fk(fk(. . . fk(n) . . . )) = f (n+1)

k

(n) Ackermann function fA: fA(n) = fn(n).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 52 / 73

slide-58
SLIDE 58

Ackermann function, class ACK, ACK-completeness

Family f0, f1, f2, . . . of functions: f0(n) = n+1 fk+1(n) = fk(fk(. . . fk(n) . . . )) = f (n+1)

k

(n) Ackermann function fA: fA(n) = fn(n). ACK ... class of problems solvable in time fA(g(n)) where g is a primitive recursive function.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 52 / 73

slide-59
SLIDE 59

Ackermann function, class ACK, ACK-completeness

Family f0, f1, f2, . . . of functions: f0(n) = n+1 fk+1(n) = fk(fk(. . . fk(n) . . . )) = f (n+1)

k

(n) Ackermann function fA: fA(n) = fn(n). ACK ... class of problems solvable in time fA(g(n)) where g is a primitive recursive function. Ackermann-budget halting problem (AB-HP): Instance: Minsky counter machine M. Question: does M halt from the zero initial configuration within fA(size(M)) steps ?

  • Fact. AB-HP is ACK-complete.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 52 / 73

slide-60
SLIDE 60

Control state reachability in reset counter machines

Reset counter machines (RCMs). nonnegative counters c1, c2, . . . , cd, control states 1, 2, . . . , r, configuration (ℓ, (n1, n2, . . . , nd)), initial conf. (1, (0, 0, . . . , 0)), (nondeterministic) instructions of the types ℓ

inc(ci)

− → ℓ′ (increment ci), ℓ

dec(ci)

− → ℓ′ (decrement ci, if ci > 0), ℓ

reset(ci)

− → ℓ′ (reset ci, i.e., put ci = 0).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 53 / 73

slide-61
SLIDE 61

Control state reachability in reset counter machines

Reset counter machines (RCMs). nonnegative counters c1, c2, . . . , cd, control states 1, 2, . . . , r, configuration (ℓ, (n1, n2, . . . , nd)), initial conf. (1, (0, 0, . . . , 0)), (nondeterministic) instructions of the types ℓ

inc(ci)

− → ℓ′ (increment ci), ℓ

dec(ci)

− → ℓ′ (decrement ci, if ci > 0), ℓ

reset(ci)

− → ℓ′ (reset ci, i.e., put ci = 0). CS-reach problem for RCM: Instance: an RCM M, a control state ℓfin . Question: is (1, (0, 0, . . . , 0)) − →∗ (ℓfin, (. . . )) ?

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 53 / 73

slide-62
SLIDE 62

Control state reachability in reset counter machines

Reset counter machines (RCMs). nonnegative counters c1, c2, . . . , cd, control states 1, 2, . . . , r, configuration (ℓ, (n1, n2, . . . , nd)), initial conf. (1, (0, 0, . . . , 0)), (nondeterministic) instructions of the types ℓ

inc(ci)

− → ℓ′ (increment ci), ℓ

dec(ci)

− → ℓ′ (decrement ci, if ci > 0), ℓ

reset(ci)

− → ℓ′ (reset ci, i.e., put ci = 0). CS-reach problem for RCM: Instance: an RCM M, a control state ℓfin . Question: is (1, (0, 0, . . . , 0)) − →∗ (ℓfin, (. . . )) ?

  • Fact. CS-reach problem for RCM is ACK-complete.

(See [Schnoebelen, MFCS 2010].)

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 53 / 73

slide-63
SLIDE 63

Bisimulation equivalence as a game

Assume LTS L = (S, A, (

a

− →)a∈A). In a position (s, t),

1 Attacker chooses either some s

a

− → s′ or some t

a

− → t′.

2 Defender responses by some t

a

− → t′ or some s

a

− → s′, respectively. The new position is (s′, t′).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 54 / 73

slide-64
SLIDE 64

Bisimulation equivalence as a game

Assume LTS L = (S, A, (

a

− →)a∈A). In a position (s, t),

1 Attacker chooses either some s

a

− → s′ or some t

a

− → t′.

2 Defender responses by some t

a

− → t′ or some s

a

− → s′, respectively. The new position is (s′, t′). These rounds are repeated. If a player is stuck, then (s)he loses. An infinite play is a win of Defender. We put s ∼ t (s, t are bisimulation equivalent) if Defender has a winning strategy from position (s, t).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 54 / 73

slide-65
SLIDE 65

Bisimulation equivalence as a game

Assume LTS L = (S, A, (

a

− →)a∈A). In a position (s, t),

1 Attacker chooses either some s

a

− → s′ or some t

a

− → t′.

2 Defender responses by some t

a

− → t′ or some s

a

− → s′, respectively. The new position is (s′, t′). These rounds are repeated. If a player is stuck, then (s)he loses. An infinite play is a win of Defender. We put s ∼ t (s, t are bisimulation equivalent) if Defender has a winning strategy from position (s, t).

  • Observation. For deterministic LTSs, bisimulation equivalence coincides

with trace equivalence.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 54 / 73

slide-66
SLIDE 66

Reduction of CS-reach for RCM to FO-bisimilarity

Given an RCM M, i.e., counters c1, c2, . . . , cd, control states 1, 2, . . . , r, and instructions of the types ℓ

inc(ci)

− → ℓ′ (increment ci), ℓ

dec(ci)

− → ℓ′ (decrement ci, if ci > 0), ℓ

reset(ci)

− → ℓ′ (reset ci, i.e., put ci = 0), and ℓfin, we construct G = (N, A, R) and E0, F0 so that (1, (0, 0, . . . , 0)) − →∗ (ℓfin, (. . . )) iff E0 ∼ F0.

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 55 / 73

slide-67
SLIDE 67

CS-reachability as bisimulation game

Example with counters c1, c2; we start with the pair (A1(⊥, ⊥, ⊥, ⊥, ), B1(⊥, ⊥, ⊥, ⊥)). The pair after mimicking (1, (0, 0)) − →∗ (ℓ, (2, 1)) might be

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 56 / 73

slide-68
SLIDE 68

Attacker’s win

Attacker wins in (Aℓfin(. . . ), Bℓfin(. . . )) due to the rule Aℓfin(x1, x2, x3, x4)

a

− → . . . (while there is no rule for Bℓfin).

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 57 / 73

slide-69
SLIDE 69

Counter increment

For ins = ℓ

inc(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, I(x3), x4), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, I(x3), x4),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 58 / 73

slide-70
SLIDE 70

Counter increment

For ins = ℓ

inc(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, I(x3), x4), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, I(x3), x4),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 59 / 73

slide-71
SLIDE 71

Counter increment

For ins = ℓ

inc(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, I(x3), x4), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, I(x3), x4),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 60 / 73

slide-72
SLIDE 72

Counter reset

For ins = ℓ

reset(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, ⊥, ⊥), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, ⊥, ⊥),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 61 / 73

slide-73
SLIDE 73

Counter reset

For ins = ℓ

reset(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, ⊥, ⊥), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, ⊥, ⊥),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 62 / 73

slide-74
SLIDE 74

Counter reset

For ins = ℓ

reset(c2)

− → ℓ′ we have rules Aℓ(x1, x2, x3, x4)

ins

− → Aℓ′(x1, x2, ⊥, ⊥), Bℓ(x1, x2, x3, x4)

ins

− → Bℓ′(x1, x2, ⊥, ⊥),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 63 / 73

slide-75
SLIDE 75

Counter decrement

For ins = ℓ

dec(c2)

− → ℓ′ we have two phases; the first-phase rules are Aℓ

ins

− → A(ℓ′,2), Aℓ

ins

− → B(ℓ′,2,a), Aℓ

ins

− → B(ℓ′,2,b), Bℓ

ins

− → B(ℓ′,2,a), Bℓ

ins

− → B(ℓ′,2,b),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 64 / 73

slide-76
SLIDE 76

Counter decrement

For ins = ℓ

dec(c2)

− → ℓ′ we have two phases; the first-phase rules are Aℓ

ins

− → A(ℓ′,2), Aℓ

ins

− → B(ℓ′,2,a), Aℓ

ins

− → B(ℓ′,2,b), Bℓ

ins

− → B(ℓ′,2,a), Bℓ

ins

− → B(ℓ′,2,b),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 65 / 73

slide-77
SLIDE 77

Counter decrement

For ins = ℓ

dec(c2)

− → ℓ′ we have two phases; the first-phase rules are Aℓ

ins

− → A(ℓ′,2), Aℓ

ins

− → B(ℓ′,2,a), Aℓ

ins

− → B(ℓ′,2,b), Bℓ

ins

− → B(ℓ′,2,a), Bℓ

ins

− → B(ℓ′,2,b),

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 66 / 73

slide-78
SLIDE 78

Counter decrement (option a)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,a)(x1, x2, x3, x4)

a

− → Bℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,a)(x1, x2, x3, x4)

b

− → x3,

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 67 / 73

slide-79
SLIDE 79

Counter decrement (option a)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,a)(x1, x2, x3, x4)

a

− → Bℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,a)(x1, x2, x3, x4)

b

− → x3,

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 68 / 73

slide-80
SLIDE 80

Counter decrement (option a)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,a)(x1, x2, x3, x4)

a

− → Bℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,a)(x1, x2, x3, x4)

b

− → x3,

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 69 / 73

slide-81
SLIDE 81

Counter decrement (option b)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,b)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,b)(x1, x2, x3, x4)

b

− → x4, I(x1)

c

− → x1

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 70 / 73

slide-82
SLIDE 82

Counter decrement (option b)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,b)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,b)(x1, x2, x3, x4)

b

− → x4, I(x1)

c

− → x1

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 71 / 73

slide-83
SLIDE 83

Counter decrement (option b)

A(ℓ′,2)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), Aℓ′,2(x1, x2, x3, x4)

b

− → x3, B(ℓ′,2,b)(x1, x2, x3, x4)

a

− → Aℓ′(x1, x2, x3, I(x4)), B(ℓ′,2,b)(x1, x2, x3, x4)

b

− → x4, I(x1)

c

− → x1

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 72 / 73

slide-84
SLIDE 84

Concluding remarks

We have shown (Trace) equivalence of deterministic first-order grammars is in TOWER. Bisimulation equivalence of first-order grammars is Ackermann-hard. Questions/problems/related results: more precise complexity bounds ... subcases (simple grammars, one-counter automata, ...) higher orders ... ....

Petr Janˇ car (TU Ostrava) Equivalences of pushdown systems Grenoble, 11 Apr 2014 73 / 73