YES
0 QTRS
↳1 QTRSRRRProof (⇔, 0 ms)
↳2 QTRS
↳3 RisEmptyProof (⇔, 0 ms)
↳4 YES
sqr(0) → 0
sqr(s(x)) → +(sqr(x), s(double(x)))
double(0) → 0
double(s(x)) → s(s(double(x)))
+(x, 0) → x
+(x, s(y)) → s(+(x, y))
sqr(s(x)) → s(+(sqr(x), double(x)))
sqr1 > +2 > s1
sqr1 > double1 > 0 > s1
sqr1: multiset
0: multiset
s1: multiset
+2: multiset
double1: multiset
sqr(0) → 0
sqr(s(x)) → +(sqr(x), s(double(x)))
double(0) → 0
double(s(x)) → s(s(double(x)))
+(x, 0) → x
+(x, s(y)) → s(+(x, y))
sqr(s(x)) → s(+(sqr(x), double(x)))