YES
0 QTRS
↳1 QTRS Reverse (⇔, 0 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 74 ms)
↳4 QTRS
↳5 Overlay + Local Confluence (⇔, 25 ms)
↳6 QTRS
↳7 DependencyPairsProof (⇔, 0 ms)
↳8 QDP
↳9 DependencyGraphProof (⇔, 0 ms)
↳10 AND
↳11 QDP
↳12 UsableRulesProof (⇔, 0 ms)
↳13 QDP
↳14 QReductionProof (⇔, 0 ms)
↳15 QDP
↳16 QDPOrderProof (⇔, 12 ms)
↳17 QDP
↳18 PisEmptyProof (⇔, 0 ms)
↳19 YES
↳20 QDP
↳21 UsableRulesProof (⇔, 0 ms)
↳22 QDP
↳23 QReductionProof (⇔, 0 ms)
↳24 QDP
↳25 QDPOrderProof (⇔, 11 ms)
↳26 QDP
↳27 QDPOrderProof (⇔, 0 ms)
↳28 QDP
↳29 PisEmptyProof (⇔, 0 ms)
↳30 YES
↳31 QDP
↳32 UsableRulesProof (⇔, 0 ms)
↳33 QDP
↳34 QReductionProof (⇔, 0 ms)
↳35 QDP
↳36 QDPSizeChangeProof (⇔, 0 ms)
↳37 YES
↳38 QDP
↳39 UsableRulesProof (⇔, 0 ms)
↳40 QDP
↳41 QReductionProof (⇔, 0 ms)
↳42 QDP
↳43 QDPSizeChangeProof (⇔, 0 ms)
↳44 YES
begin(end(x)) → rewrite(end(x))
begin(a(x)) → rotate(cut(Ca(guess(x))))
begin(b(x)) → rotate(cut(Cb(guess(x))))
guess(a(x)) → Ca(guess(x))
guess(b(x)) → Cb(guess(x))
guess(a(x)) → moveleft(Ba(wait(x)))
guess(b(x)) → moveleft(Bb(wait(x)))
guess(end(x)) → finish(end(x))
Ca(moveleft(Ba(x))) → moveleft(Ba(Aa(x)))
Cb(moveleft(Ba(x))) → moveleft(Ba(Ab(x)))
Ca(moveleft(Bb(x))) → moveleft(Bb(Aa(x)))
Cb(moveleft(Bb(x))) → moveleft(Bb(Ab(x)))
cut(moveleft(Ba(x))) → Da(cut(goright(x)))
cut(moveleft(Bb(x))) → Db(cut(goright(x)))
goright(Aa(x)) → Ca(goright(x))
goright(Ab(x)) → Cb(goright(x))
goright(wait(a(x))) → moveleft(Ba(wait(x)))
goright(wait(b(x))) → moveleft(Bb(wait(x)))
goright(wait(end(x))) → finish(end(x))
Ca(finish(x)) → finish(a(x))
Cb(finish(x)) → finish(b(x))
cut(finish(x)) → finish2(x)
Da(finish2(x)) → finish2(a(x))
Db(finish2(x)) → finish2(b(x))
rotate(finish2(x)) → rewrite(x)
rewrite(a(x)) → begin(b(x))
end(begin(x)) → end(rewrite(x))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → wait(Ba(moveleft(x)))
b(guess(x)) → wait(Bb(moveleft(x)))
end(guess(x)) → end(finish(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish(cut(x)) → finish2(x)
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
finish2(rotate(x)) → rewrite(x)
a(rewrite(x)) → b(begin(x))
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(Aa(x1)) = 6 + x1
POL(Ab(x1)) = x1
POL(Ba(x1)) = 6 + x1
POL(Bb(x1)) = x1
POL(Ca(x1)) = 6 + x1
POL(Cb(x1)) = x1
POL(Da(x1)) = 6 + x1
POL(Db(x1)) = x1
POL(a(x1)) = 6 + x1
POL(b(x1)) = x1
POL(begin(x1)) = 5 + x1
POL(cut(x1)) = 2 + x1
POL(end(x1)) = x1
POL(finish(x1)) = x1
POL(finish2(x1)) = 1 + x1
POL(goright(x1)) = x1
POL(guess(x1)) = 2 + x1
POL(moveleft(x1)) = x1
POL(rewrite(x1)) = x1
POL(rotate(x1)) = x1
POL(wait(x1)) = 1 + x1
end(begin(x)) → end(rewrite(x))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(guess(x)) → wait(Ba(moveleft(x)))
b(guess(x)) → wait(Bb(moveleft(x)))
end(guess(x)) → end(finish(x))
end(wait(goright(x))) → end(finish(x))
finish(cut(x)) → finish2(x)
finish2(rotate(x)) → rewrite(x)
a(rewrite(x)) → b(begin(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BA(moveleft(Ca(x))) → AA(Ba(moveleft(x)))
BA(moveleft(Ca(x))) → BA(moveleft(x))
BA(moveleft(Cb(x))) → AB(Ba(moveleft(x)))
BA(moveleft(Cb(x))) → BA(moveleft(x))
BB(moveleft(Ca(x))) → AA(Bb(moveleft(x)))
BB(moveleft(Ca(x))) → BB(moveleft(x))
BB(moveleft(Cb(x))) → AB(Bb(moveleft(x)))
BB(moveleft(Cb(x))) → BB(moveleft(x))
A(wait(goright(x))) → BA(moveleft(x))
B(wait(goright(x))) → BB(moveleft(x))
FINISH(Ca(x)) → A(finish(x))
FINISH(Ca(x)) → FINISH(x)
FINISH(Cb(x)) → B(finish(x))
FINISH(Cb(x)) → FINISH(x)
FINISH2(Da(x)) → A(finish2(x))
FINISH2(Da(x)) → FINISH2(x)
FINISH2(Db(x)) → B(finish2(x))
FINISH2(Db(x)) → FINISH2(x)
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BB(moveleft(Cb(x))) → BB(moveleft(x))
BB(moveleft(Ca(x))) → BB(moveleft(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BB(moveleft(Cb(x))) → BB(moveleft(x))
BB(moveleft(Ca(x))) → BB(moveleft(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BB(moveleft(Cb(x))) → BB(moveleft(x))
BB(moveleft(Ca(x))) → BB(moveleft(x))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
BB(moveleft(Cb(x))) → BB(moveleft(x))
BB(moveleft(Ca(x))) → BB(moveleft(x))
POL(BB(x1)) = x1
POL(Ca(x1)) = 1 + x1
POL(Cb(x1)) = 1 + x1
POL(moveleft(x1)) = x1
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Ca(x))) → BA(moveleft(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Ca(x))) → BA(moveleft(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Ca(x))) → BA(moveleft(x))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
BA(moveleft(Ca(x))) → BA(moveleft(x))
POL(BA(x1)) = 4·x1
POL(Ca(x1)) = 5 + 2·x1
POL(Cb(x1)) = 2·x1
POL(moveleft(x1)) = 5·x1
BA(moveleft(Cb(x))) → BA(moveleft(x))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
BA(moveleft(Cb(x))) → BA(moveleft(x))
POL(BA(x1)) = x1
POL(Cb(x1)) = 1 + x1
POL(moveleft(x1)) = x1
FINISH2(Db(x)) → FINISH2(x)
FINISH2(Da(x)) → FINISH2(x)
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
FINISH2(Db(x)) → FINISH2(x)
FINISH2(Da(x)) → FINISH2(x)
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
FINISH2(Db(x)) → FINISH2(x)
FINISH2(Da(x)) → FINISH2(x)
From the DPs we obtained the following set of size-change graphs:
FINISH(Cb(x)) → FINISH(x)
FINISH(Ca(x)) → FINISH(x)
a(guess(x)) → guess(Ca(x))
b(guess(x)) → guess(Cb(x))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
finish(Ca(x)) → a(finish(x))
finish(Cb(x)) → b(finish(x))
finish2(Da(x)) → a(finish2(x))
finish2(Db(x)) → b(finish2(x))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
FINISH(Cb(x)) → FINISH(x)
FINISH(Ca(x)) → FINISH(x)
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
a(guess(x0))
b(guess(x0))
Ba(moveleft(Ca(x0)))
Ba(moveleft(Cb(x0)))
Bb(moveleft(Ca(x0)))
Bb(moveleft(Cb(x0)))
Ba(moveleft(cut(x0)))
Bb(moveleft(cut(x0)))
Aa(goright(x0))
Ab(goright(x0))
a(wait(goright(x0)))
b(wait(goright(x0)))
finish(Ca(x0))
finish(Cb(x0))
finish2(Da(x0))
finish2(Db(x0))
FINISH(Cb(x)) → FINISH(x)
FINISH(Ca(x)) → FINISH(x)
From the DPs we obtained the following set of size-change graphs: