NO
0 QTRS
↳1 QTRS Reverse (⇔, 0 ms)
↳2 QTRS
↳3 DependencyPairsProof (⇔, 9 ms)
↳4 QDP
↳5 DependencyGraphProof (⇔, 0 ms)
↳6 AND
↳7 QDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 QDP
↳10 MRRProof (⇔, 6 ms)
↳11 QDP
↳12 MRRProof (⇔, 0 ms)
↳13 QDP
↳14 PisEmptyProof (⇔, 0 ms)
↳15 YES
↳16 QDP
↳17 UsableRulesProof (⇔, 0 ms)
↳18 QDP
↳19 MRRProof (⇔, 6 ms)
↳20 QDP
↳21 QDPOrderProof (⇔, 0 ms)
↳22 QDP
↳23 PisEmptyProof (⇔, 0 ms)
↳24 YES
↳25 QDP
↳26 UsableRulesProof (⇔, 2 ms)
↳27 QDP
↳28 DependencyGraphProof (⇔, 0 ms)
↳29 TRUE
↳30 QDP
↳31 UsableRulesProof (⇔, 0 ms)
↳32 QDP
↳33 QDPSizeChangeProof (⇔, 0 ms)
↳34 YES
↳35 QDP
↳36 UsableRulesProof (⇔, 0 ms)
↳37 QDP
↳38 QDPSizeChangeProof (⇔, 0 ms)
↳39 YES
↳40 QDP
↳41 UsableRulesProof (⇔, 2 ms)
↳42 QDP
↳43 NonTerminationLoopProof (⇒, 935 ms)
↳44 NO
begin(end(x)) → rewrite(end(x))
begin(b(x)) → rotate(cut(Cb(guess(x))))
begin(a(x)) → rotate(cut(Ca(guess(x))))
guess(b(x)) → Cb(guess(x))
guess(a(x)) → Ca(guess(x))
guess(b(x)) → moveleft(Bb(wait(x)))
guess(a(x)) → moveleft(Ba(wait(x)))
guess(end(x)) → finish(end(x))
Cb(moveleft(Bb(x))) → moveleft(Bb(Ab(x)))
Ca(moveleft(Bb(x))) → moveleft(Bb(Aa(x)))
Cb(moveleft(Ba(x))) → moveleft(Ba(Ab(x)))
Ca(moveleft(Ba(x))) → moveleft(Ba(Aa(x)))
cut(moveleft(Bb(x))) → Db(cut(goright(x)))
cut(moveleft(Ba(x))) → Da(cut(goright(x)))
goright(Ab(x)) → Cb(goright(x))
goright(Aa(x)) → Ca(goright(x))
goright(wait(b(x))) → moveleft(Bb(wait(x)))
goright(wait(a(x))) → moveleft(Ba(wait(x)))
goright(wait(end(x))) → finish(end(x))
Cb(finish(x)) → finish(b(x))
Ca(finish(x)) → finish(a(x))
cut(finish(x)) → finish2(x)
Db(finish2(x)) → finish2(b(x))
Da(finish2(x)) → finish2(a(x))
rotate(finish2(x)) → rewrite(x)
rewrite(b(b(a(a(b(x)))))) → begin(b(a(a(b(b(x))))))
rewrite(b(a(a(a(b(b(x))))))) → begin(b(b(a(a(a(b(x)))))))
rewrite(b(a(b(a(a(b(x))))))) → begin(b(a(b(b(a(a(a(b(x)))))))))
rewrite(b(a(a(a(b(a(b(x)))))))) → begin(b(a(a(b(a(b(x)))))))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
END(begin(x)) → END(rewrite(x))
B(guess(x)) → BB(moveleft(x))
A(guess(x)) → BA(moveleft(x))
END(guess(x)) → END(finish(x))
END(guess(x)) → FINISH(x)
BB(moveleft(Cb(x))) → AB(Bb(moveleft(x)))
BB(moveleft(Cb(x))) → BB(moveleft(x))
BB(moveleft(Ca(x))) → AA(Bb(moveleft(x)))
BB(moveleft(Ca(x))) → BB(moveleft(x))
BA(moveleft(Cb(x))) → AB(Ba(moveleft(x)))
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Ca(x))) → AA(Ba(moveleft(x)))
BA(moveleft(Ca(x))) → BA(moveleft(x))
B(wait(goright(x))) → BB(moveleft(x))
A(wait(goright(x))) → BA(moveleft(x))
END(wait(goright(x))) → END(finish(x))
END(wait(goright(x))) → FINISH(x)
FINISH(Cb(x)) → B(finish(x))
FINISH(Cb(x)) → FINISH(x)
FINISH(Ca(x)) → A(finish(x))
FINISH(Ca(x)) → FINISH(x)
FINISH(cut(x)) → FINISH2(x)
FINISH2(Db(x)) → B(finish2(x))
FINISH2(Db(x)) → FINISH2(x)
FINISH2(Da(x)) → A(finish2(x))
FINISH2(Da(x)) → FINISH2(x)
B(a(a(b(b(rewrite(x)))))) → B(b(a(a(b(begin(x))))))
B(a(a(b(b(rewrite(x)))))) → B(a(a(b(begin(x)))))
B(a(a(b(b(rewrite(x)))))) → A(a(b(begin(x))))
B(a(a(b(b(rewrite(x)))))) → A(b(begin(x)))
B(a(a(b(b(rewrite(x)))))) → B(begin(x))
B(b(a(a(a(b(rewrite(x))))))) → B(a(a(a(b(b(begin(x)))))))
B(b(a(a(a(b(rewrite(x))))))) → A(a(a(b(b(begin(x))))))
B(b(a(a(a(b(rewrite(x))))))) → A(a(b(b(begin(x)))))
B(b(a(a(a(b(rewrite(x))))))) → A(b(b(begin(x))))
B(b(a(a(a(b(rewrite(x))))))) → B(b(begin(x)))
B(b(a(a(a(b(rewrite(x))))))) → B(begin(x))
B(a(a(b(a(b(rewrite(x))))))) → B(a(a(a(b(b(a(b(begin(x)))))))))
B(a(a(b(a(b(rewrite(x))))))) → A(a(a(b(b(a(b(begin(x))))))))
B(a(a(b(a(b(rewrite(x))))))) → A(a(b(b(a(b(begin(x)))))))
B(a(a(b(a(b(rewrite(x))))))) → A(b(b(a(b(begin(x))))))
B(a(a(b(a(b(rewrite(x))))))) → B(b(a(b(begin(x)))))
B(a(a(b(a(b(rewrite(x))))))) → B(a(b(begin(x))))
B(a(a(b(a(b(rewrite(x))))))) → A(b(begin(x)))
B(a(a(b(a(b(rewrite(x))))))) → B(begin(x))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(b(a(a(b(begin(x)))))))
B(a(b(a(a(a(b(rewrite(x)))))))) → A(b(a(a(b(begin(x))))))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(a(b(begin(x)))))
B(a(b(a(a(a(b(rewrite(x)))))))) → A(a(b(begin(x))))
B(a(b(a(a(a(b(rewrite(x)))))))) → A(b(begin(x)))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(begin(x))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
BA(moveleft(Ca(x))) → BA(moveleft(x))
BA(moveleft(Cb(x))) → BA(moveleft(x))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
BA(moveleft(Ca(x))) → BA(moveleft(x))
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Ca(x))) → BA(moveleft(x))
POL(BA(x1)) = x1
POL(Ca(x1)) = 1 + x1
POL(Cb(x1)) = 2·x1
POL(moveleft(x1)) = 2·x1
BA(moveleft(Cb(x))) → BA(moveleft(x))
BA(moveleft(Cb(x))) → BA(moveleft(x))
POL(BA(x1)) = x1
POL(Cb(x1)) = 1 + x1
POL(moveleft(x1)) = x1
BB(moveleft(Ca(x))) → BB(moveleft(x))
BB(moveleft(Cb(x))) → BB(moveleft(x))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
BB(moveleft(Ca(x))) → BB(moveleft(x))
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)) = 2·x1
POL(moveleft(x1)) = 2·x1
BB(moveleft(Cb(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))
POL(BB(x1)) = x1
POL(Cb(x1)) = 1 + x1
POL(moveleft(x1)) = x1
B(a(a(b(b(rewrite(x)))))) → B(a(a(b(begin(x)))))
B(a(a(b(b(rewrite(x)))))) → B(b(a(a(b(begin(x))))))
B(b(a(a(a(b(rewrite(x))))))) → B(a(a(a(b(b(begin(x)))))))
B(b(a(a(a(b(rewrite(x))))))) → B(b(begin(x)))
B(a(a(b(a(b(rewrite(x))))))) → B(a(a(a(b(b(a(b(begin(x)))))))))
B(a(a(b(a(b(rewrite(x))))))) → B(b(a(b(begin(x)))))
B(a(a(b(a(b(rewrite(x))))))) → B(a(b(begin(x))))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(b(a(a(b(begin(x)))))))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(a(b(begin(x)))))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
B(a(a(b(b(rewrite(x)))))) → B(a(a(b(begin(x)))))
B(a(a(b(b(rewrite(x)))))) → B(b(a(a(b(begin(x))))))
B(b(a(a(a(b(rewrite(x))))))) → B(a(a(a(b(b(begin(x)))))))
B(b(a(a(a(b(rewrite(x))))))) → B(b(begin(x)))
B(a(a(b(a(b(rewrite(x))))))) → B(a(a(a(b(b(a(b(begin(x)))))))))
B(a(a(b(a(b(rewrite(x))))))) → B(b(a(b(begin(x)))))
B(a(a(b(a(b(rewrite(x))))))) → B(a(b(begin(x))))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(b(a(a(b(begin(x)))))))
B(a(b(a(a(a(b(rewrite(x)))))))) → B(a(a(b(begin(x)))))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
a(guess(x)) → guess(Ca(x))
a(guess(x)) → wait(Ba(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
b(guess(x)) → guess(Cb(x))
b(guess(x)) → wait(Bb(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
FINISH2(Da(x)) → FINISH2(x)
FINISH2(Db(x)) → FINISH2(x)
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
FINISH2(Da(x)) → FINISH2(x)
FINISH2(Db(x)) → FINISH2(x)
From the DPs we obtained the following set of size-change graphs:
FINISH(Ca(x)) → FINISH(x)
FINISH(Cb(x)) → FINISH(x)
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
FINISH(Ca(x)) → FINISH(x)
FINISH(Cb(x)) → FINISH(x)
From the DPs we obtained the following set of size-change graphs:
END(wait(goright(x))) → END(finish(x))
END(guess(x)) → END(finish(x))
end(begin(x)) → end(rewrite(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
a(begin(x)) → guess(Ca(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
a(guess(x)) → guess(Ca(x))
b(guess(x)) → wait(Bb(moveleft(x)))
a(guess(x)) → wait(Ba(moveleft(x)))
end(guess(x)) → end(finish(x))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Ab(goright(x)) → goright(Cb(x))
Aa(goright(x)) → goright(Ca(x))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
end(wait(goright(x))) → end(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
END(wait(goright(x))) → END(finish(x))
END(guess(x)) → END(finish(x))
finish(Cb(x)) → b(finish(x))
finish(Ca(x)) → a(finish(x))
finish(cut(x)) → finish2(x)
finish2(Db(x)) → b(finish2(x))
finish2(Da(x)) → a(finish2(x))
finish2(rotate(x)) → rewrite(x)
a(begin(x)) → guess(Ca(cut(rotate(x))))
a(guess(x)) → guess(Ca(x))
a(guess(x)) → wait(Ba(moveleft(x)))
a(wait(goright(x))) → wait(Ba(moveleft(x)))
Ba(moveleft(Cb(x))) → Ab(Ba(moveleft(x)))
Ba(moveleft(Ca(x))) → Aa(Ba(moveleft(x)))
Ba(moveleft(cut(x))) → goright(cut(Da(x)))
Aa(goright(x)) → goright(Ca(x))
Ab(goright(x)) → goright(Cb(x))
b(begin(x)) → guess(Cb(cut(rotate(x))))
b(guess(x)) → guess(Cb(x))
b(guess(x)) → wait(Bb(moveleft(x)))
b(wait(goright(x))) → wait(Bb(moveleft(x)))
b(b(a(a(a(b(rewrite(x))))))) → b(a(a(a(b(b(begin(x)))))))
b(a(a(b(b(rewrite(x)))))) → b(b(a(a(b(begin(x))))))
b(a(a(b(a(b(rewrite(x))))))) → b(a(a(a(b(b(a(b(begin(x)))))))))
b(a(b(a(a(a(b(rewrite(x)))))))) → b(a(b(a(a(b(begin(x)))))))
Bb(moveleft(Cb(x))) → Ab(Bb(moveleft(x)))
Bb(moveleft(Ca(x))) → Aa(Bb(moveleft(x)))
Bb(moveleft(cut(x))) → goright(cut(Db(x)))