YES
0 QTRS
↳1 QTRSRRRProof (⇔, 0 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 0 ms)
↳4 QTRS
↳5 RisEmptyProof (⇔, 0 ms)
↳6 YES
g(x, y) → x
g(x, y) → y
f(s(x), y, y) → f(y, x, s(x))
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(f(x1, x2, x3)) = 2·x1 + x2 + x3
POL(g(x1, x2)) = 2 + x1 + x2
POL(s(x1)) = 2·x1
g(x, y) → x
g(x, y) → y
f(s(x), y, y) → f(y, x, s(x))
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(f(x1, x2, x3)) = 2·x1 + 2·x2 + x3
POL(s(x1)) = 1 + 2·x1
f(s(x), y, y) → f(y, x, s(x))