Certification Problem

Input (TPDB TRS_Standard/SK90/2.19)

The rewrite relation of the following TRS is considered.

sqr(0) 0 (1)
sqr(s(x)) +(sqr(x),s(double(x))) (2)
double(0) 0 (3)
double(s(x)) s(s(double(x))) (4)
+(x,0) x (5)
+(x,s(y)) s(+(x,y)) (6)
sqr(s(x)) s(+(sqr(x),double(x))) (7)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the
prec(sqr) = 3 stat(sqr) = lex
prec(0) = 0 stat(0) = lex
prec(s) = 1 stat(s) = lex
prec(+) = 2 stat(+) = lex
prec(double) = 3 stat(double) = lex

π(sqr) = [1]
π(0) = []
π(s) = [1]
π(+) = [1,2]
π(double) = [1]

all of the following rules can be deleted.
sqr(0) 0 (1)
sqr(s(x)) +(sqr(x),s(double(x))) (2)
double(0) 0 (3)
double(s(x)) s(s(double(x))) (4)
+(x,0) x (5)
+(x,s(y)) s(+(x,y)) (6)
sqr(s(x)) s(+(sqr(x),double(x))) (7)

1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.