YES Termination w.r.t. Q proof of /home/cern_httpd/provide/research/cycsrs/tpdb/TPDB-d9b80194f163/SRS_Standard/Zantema_04/z107.srs-torpacyc2out-split.srs

(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

Begin(a(x)) → Wait(Right1(x))
Begin(b(x)) → Wait(Right2(x))
Begin(c(x)) → Wait(Right3(x))
Begin(d(d(x))) → Wait(Right4(x))
Begin(d(x)) → Wait(Right5(x))
Right1(a(End(x))) → Left(b(b(b(End(x)))))
Right2(b(End(x))) → Left(c(c(c(End(x)))))
Right3(c(End(x))) → Left(d(d(d(End(x)))))
Right4(c(End(x))) → Left(a(End(x)))
Right5(c(d(End(x)))) → Left(a(End(x)))
Right1(a(x)) → Aa(Right1(x))
Right2(a(x)) → Aa(Right2(x))
Right3(a(x)) → Aa(Right3(x))
Right4(a(x)) → Aa(Right4(x))
Right5(a(x)) → Aa(Right5(x))
Right1(b(x)) → Ab(Right1(x))
Right2(b(x)) → Ab(Right2(x))
Right3(b(x)) → Ab(Right3(x))
Right4(b(x)) → Ab(Right4(x))
Right5(b(x)) → Ab(Right5(x))
Right1(c(x)) → Ac(Right1(x))
Right2(c(x)) → Ac(Right2(x))
Right3(c(x)) → Ac(Right3(x))
Right4(c(x)) → Ac(Right4(x))
Right5(c(x)) → Ac(Right5(x))
Right1(d(x)) → Ad(Right1(x))
Right2(d(x)) → Ad(Right2(x))
Right3(d(x)) → Ad(Right3(x))
Right4(d(x)) → Ad(Right4(x))
Right5(d(x)) → Ad(Right5(x))
Aa(Left(x)) → Left(a(x))
Ab(Left(x)) → Left(b(x))
Ac(Left(x)) → Left(c(x))
Ad(Left(x)) → Left(d(x))
Wait(Left(x)) → Begin(x)
a(a(x)) → b(b(b(x)))
b(b(x)) → c(c(c(x)))
c(c(x)) → d(d(d(x)))
b(x) → d(d(x))
c(d(d(x))) → a(x)

Q is empty.

(1) QTRS Reverse (EQUIVALENT transformation)

We applied the QTRS Reverse Processor [REVERSE].

(2) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a(Begin(x)) → Right1(Wait(x))
b(Begin(x)) → Right2(Wait(x))
c(Begin(x)) → Right3(Wait(x))
d(d(Begin(x))) → Right4(Wait(x))
d(Begin(x)) → Right5(Wait(x))
End(a(Right1(x))) → End(b(b(b(Left(x)))))
End(b(Right2(x))) → End(c(c(c(Left(x)))))
End(c(Right3(x))) → End(d(d(d(Left(x)))))
End(c(Right4(x))) → End(a(Left(x)))
End(d(c(Right5(x)))) → End(a(Left(x)))
a(Right1(x)) → Right1(Aa(x))
a(Right2(x)) → Right2(Aa(x))
a(Right3(x)) → Right3(Aa(x))
a(Right4(x)) → Right4(Aa(x))
a(Right5(x)) → Right5(Aa(x))
b(Right1(x)) → Right1(Ab(x))
b(Right2(x)) → Right2(Ab(x))
b(Right3(x)) → Right3(Ab(x))
b(Right4(x)) → Right4(Ab(x))
b(Right5(x)) → Right5(Ab(x))
c(Right1(x)) → Right1(Ac(x))
c(Right2(x)) → Right2(Ac(x))
c(Right3(x)) → Right3(Ac(x))
c(Right4(x)) → Right4(Ac(x))
c(Right5(x)) → Right5(Ac(x))
d(Right1(x)) → Right1(Ad(x))
d(Right2(x)) → Right2(Ad(x))
d(Right3(x)) → Right3(Ad(x))
d(Right4(x)) → Right4(Ad(x))
d(Right5(x)) → Right5(Ad(x))
Left(Aa(x)) → a(Left(x))
Left(Ab(x)) → b(Left(x))
Left(Ac(x)) → c(Left(x))
Left(Ad(x)) → d(Left(x))
Left(Wait(x)) → Begin(x)
a(a(x)) → b(b(b(x)))
b(b(x)) → c(c(c(x)))
c(c(x)) → d(d(d(x)))
b(x) → d(d(x))
d(d(c(x))) → a(x)

Q is empty.

(3) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(Aa(x1)) = 240 + x1   
POL(Ab(x1)) = 159 + x1   
POL(Ac(x1)) = 105 + x1   
POL(Ad(x1)) = 69 + x1   
POL(Begin(x1)) = x1   
POL(End(x1)) = x1   
POL(Left(x1)) = x1   
POL(Right1(x1)) = 238 + x1   
POL(Right2(x1)) = 157 + x1   
POL(Right3(x1)) = 103 + x1   
POL(Right4(x1)) = 136 + x1   
POL(Right5(x1)) = 67 + x1   
POL(Wait(x1)) = 1 + x1   
POL(a(x1)) = 240 + x1   
POL(b(x1)) = 159 + x1   
POL(c(x1)) = 105 + x1   
POL(d(x1)) = 69 + x1   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

a(Begin(x)) → Right1(Wait(x))
b(Begin(x)) → Right2(Wait(x))
c(Begin(x)) → Right3(Wait(x))
d(d(Begin(x))) → Right4(Wait(x))
d(Begin(x)) → Right5(Wait(x))
End(a(Right1(x))) → End(b(b(b(Left(x)))))
End(b(Right2(x))) → End(c(c(c(Left(x)))))
End(c(Right3(x))) → End(d(d(d(Left(x)))))
End(c(Right4(x))) → End(a(Left(x)))
End(d(c(Right5(x)))) → End(a(Left(x)))
Left(Wait(x)) → Begin(x)
a(a(x)) → b(b(b(x)))
b(b(x)) → c(c(c(x)))
c(c(x)) → d(d(d(x)))
b(x) → d(d(x))
d(d(c(x))) → a(x)


(4) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a(Right1(x)) → Right1(Aa(x))
a(Right2(x)) → Right2(Aa(x))
a(Right3(x)) → Right3(Aa(x))
a(Right4(x)) → Right4(Aa(x))
a(Right5(x)) → Right5(Aa(x))
b(Right1(x)) → Right1(Ab(x))
b(Right2(x)) → Right2(Ab(x))
b(Right3(x)) → Right3(Ab(x))
b(Right4(x)) → Right4(Ab(x))
b(Right5(x)) → Right5(Ab(x))
c(Right1(x)) → Right1(Ac(x))
c(Right2(x)) → Right2(Ac(x))
c(Right3(x)) → Right3(Ac(x))
c(Right4(x)) → Right4(Ac(x))
c(Right5(x)) → Right5(Ac(x))
d(Right1(x)) → Right1(Ad(x))
d(Right2(x)) → Right2(Ad(x))
d(Right3(x)) → Right3(Ad(x))
d(Right4(x)) → Right4(Ad(x))
d(Right5(x)) → Right5(Ad(x))
Left(Aa(x)) → a(Left(x))
Left(Ab(x)) → b(Left(x))
Left(Ac(x)) → c(Left(x))
Left(Ad(x)) → d(Left(x))

Q is empty.

(5) Overlay + Local Confluence (EQUIVALENT transformation)

The TRS is overlay and locally confluent. By [NOC] we can switch to innermost.

(6) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a(Right1(x)) → Right1(Aa(x))
a(Right2(x)) → Right2(Aa(x))
a(Right3(x)) → Right3(Aa(x))
a(Right4(x)) → Right4(Aa(x))
a(Right5(x)) → Right5(Aa(x))
b(Right1(x)) → Right1(Ab(x))
b(Right2(x)) → Right2(Ab(x))
b(Right3(x)) → Right3(Ab(x))
b(Right4(x)) → Right4(Ab(x))
b(Right5(x)) → Right5(Ab(x))
c(Right1(x)) → Right1(Ac(x))
c(Right2(x)) → Right2(Ac(x))
c(Right3(x)) → Right3(Ac(x))
c(Right4(x)) → Right4(Ac(x))
c(Right5(x)) → Right5(Ac(x))
d(Right1(x)) → Right1(Ad(x))
d(Right2(x)) → Right2(Ad(x))
d(Right3(x)) → Right3(Ad(x))
d(Right4(x)) → Right4(Ad(x))
d(Right5(x)) → Right5(Ad(x))
Left(Aa(x)) → a(Left(x))
Left(Ab(x)) → b(Left(x))
Left(Ac(x)) → c(Left(x))
Left(Ad(x)) → d(Left(x))

The set Q consists of the following terms:

a(Right1(x0))
a(Right2(x0))
a(Right3(x0))
a(Right4(x0))
a(Right5(x0))
b(Right1(x0))
b(Right2(x0))
b(Right3(x0))
b(Right4(x0))
b(Right5(x0))
c(Right1(x0))
c(Right2(x0))
c(Right3(x0))
c(Right4(x0))
c(Right5(x0))
d(Right1(x0))
d(Right2(x0))
d(Right3(x0))
d(Right4(x0))
d(Right5(x0))
Left(Aa(x0))
Left(Ab(x0))
Left(Ac(x0))
Left(Ad(x0))

(7) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(8) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LEFT(Aa(x)) → A(Left(x))
LEFT(Aa(x)) → LEFT(x)
LEFT(Ab(x)) → B(Left(x))
LEFT(Ab(x)) → LEFT(x)
LEFT(Ac(x)) → C(Left(x))
LEFT(Ac(x)) → LEFT(x)
LEFT(Ad(x)) → D(Left(x))
LEFT(Ad(x)) → LEFT(x)

The TRS R consists of the following rules:

a(Right1(x)) → Right1(Aa(x))
a(Right2(x)) → Right2(Aa(x))
a(Right3(x)) → Right3(Aa(x))
a(Right4(x)) → Right4(Aa(x))
a(Right5(x)) → Right5(Aa(x))
b(Right1(x)) → Right1(Ab(x))
b(Right2(x)) → Right2(Ab(x))
b(Right3(x)) → Right3(Ab(x))
b(Right4(x)) → Right4(Ab(x))
b(Right5(x)) → Right5(Ab(x))
c(Right1(x)) → Right1(Ac(x))
c(Right2(x)) → Right2(Ac(x))
c(Right3(x)) → Right3(Ac(x))
c(Right4(x)) → Right4(Ac(x))
c(Right5(x)) → Right5(Ac(x))
d(Right1(x)) → Right1(Ad(x))
d(Right2(x)) → Right2(Ad(x))
d(Right3(x)) → Right3(Ad(x))
d(Right4(x)) → Right4(Ad(x))
d(Right5(x)) → Right5(Ad(x))
Left(Aa(x)) → a(Left(x))
Left(Ab(x)) → b(Left(x))
Left(Ac(x)) → c(Left(x))
Left(Ad(x)) → d(Left(x))

The set Q consists of the following terms:

a(Right1(x0))
a(Right2(x0))
a(Right3(x0))
a(Right4(x0))
a(Right5(x0))
b(Right1(x0))
b(Right2(x0))
b(Right3(x0))
b(Right4(x0))
b(Right5(x0))
c(Right1(x0))
c(Right2(x0))
c(Right3(x0))
c(Right4(x0))
c(Right5(x0))
d(Right1(x0))
d(Right2(x0))
d(Right3(x0))
d(Right4(x0))
d(Right5(x0))
Left(Aa(x0))
Left(Ab(x0))
Left(Ac(x0))
Left(Ad(x0))

We have to consider all minimal (P,Q,R)-chains.

(9) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 4 less nodes.

(10) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LEFT(Ab(x)) → LEFT(x)
LEFT(Aa(x)) → LEFT(x)
LEFT(Ac(x)) → LEFT(x)
LEFT(Ad(x)) → LEFT(x)

The TRS R consists of the following rules:

a(Right1(x)) → Right1(Aa(x))
a(Right2(x)) → Right2(Aa(x))
a(Right3(x)) → Right3(Aa(x))
a(Right4(x)) → Right4(Aa(x))
a(Right5(x)) → Right5(Aa(x))
b(Right1(x)) → Right1(Ab(x))
b(Right2(x)) → Right2(Ab(x))
b(Right3(x)) → Right3(Ab(x))
b(Right4(x)) → Right4(Ab(x))
b(Right5(x)) → Right5(Ab(x))
c(Right1(x)) → Right1(Ac(x))
c(Right2(x)) → Right2(Ac(x))
c(Right3(x)) → Right3(Ac(x))
c(Right4(x)) → Right4(Ac(x))
c(Right5(x)) → Right5(Ac(x))
d(Right1(x)) → Right1(Ad(x))
d(Right2(x)) → Right2(Ad(x))
d(Right3(x)) → Right3(Ad(x))
d(Right4(x)) → Right4(Ad(x))
d(Right5(x)) → Right5(Ad(x))
Left(Aa(x)) → a(Left(x))
Left(Ab(x)) → b(Left(x))
Left(Ac(x)) → c(Left(x))
Left(Ad(x)) → d(Left(x))

The set Q consists of the following terms:

a(Right1(x0))
a(Right2(x0))
a(Right3(x0))
a(Right4(x0))
a(Right5(x0))
b(Right1(x0))
b(Right2(x0))
b(Right3(x0))
b(Right4(x0))
b(Right5(x0))
c(Right1(x0))
c(Right2(x0))
c(Right3(x0))
c(Right4(x0))
c(Right5(x0))
d(Right1(x0))
d(Right2(x0))
d(Right3(x0))
d(Right4(x0))
d(Right5(x0))
Left(Aa(x0))
Left(Ab(x0))
Left(Ac(x0))
Left(Ad(x0))

We have to consider all minimal (P,Q,R)-chains.

(11) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LEFT(Ab(x)) → LEFT(x)
LEFT(Aa(x)) → LEFT(x)
LEFT(Ac(x)) → LEFT(x)
LEFT(Ad(x)) → LEFT(x)

R is empty.
The set Q consists of the following terms:

a(Right1(x0))
a(Right2(x0))
a(Right3(x0))
a(Right4(x0))
a(Right5(x0))
b(Right1(x0))
b(Right2(x0))
b(Right3(x0))
b(Right4(x0))
b(Right5(x0))
c(Right1(x0))
c(Right2(x0))
c(Right3(x0))
c(Right4(x0))
c(Right5(x0))
d(Right1(x0))
d(Right2(x0))
d(Right3(x0))
d(Right4(x0))
d(Right5(x0))
Left(Aa(x0))
Left(Ab(x0))
Left(Ac(x0))
Left(Ad(x0))

We have to consider all minimal (P,Q,R)-chains.

(13) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

a(Right1(x0))
a(Right2(x0))
a(Right3(x0))
a(Right4(x0))
a(Right5(x0))
b(Right1(x0))
b(Right2(x0))
b(Right3(x0))
b(Right4(x0))
b(Right5(x0))
c(Right1(x0))
c(Right2(x0))
c(Right3(x0))
c(Right4(x0))
c(Right5(x0))
d(Right1(x0))
d(Right2(x0))
d(Right3(x0))
d(Right4(x0))
d(Right5(x0))
Left(Aa(x0))
Left(Ab(x0))
Left(Ac(x0))
Left(Ad(x0))

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LEFT(Ab(x)) → LEFT(x)
LEFT(Aa(x)) → LEFT(x)
LEFT(Ac(x)) → LEFT(x)
LEFT(Ad(x)) → LEFT(x)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(15) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LEFT(Ab(x)) → LEFT(x)
    The graph contains the following edges 1 > 1

  • LEFT(Aa(x)) → LEFT(x)
    The graph contains the following edges 1 > 1

  • LEFT(Ac(x)) → LEFT(x)
    The graph contains the following edges 1 > 1

  • LEFT(Ad(x)) → LEFT(x)
    The graph contains the following edges 1 > 1

(16) YES