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