Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex26_Luc03b_L)

The rewrite relation of the following TRS is considered.

terms(N) cons(recip(sqr(N))) (1)
sqr(0) 0 (2)
sqr(s) s (3)
dbl(0) 0 (4)
dbl(s) s (5)
add(0,X) X (6)
add(s,Y) s (7)
first(0,X) nil (8)
first(s,cons(Y)) cons(Y) (9)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(0) = 4 weight(0) = 1
prec(s) = 5 weight(s) = 1
prec(nil) = 7 weight(nil) = 2
prec(terms) = 1 weight(terms) = 3
prec(cons) = 0 weight(cons) = 1
prec(recip) = 3 weight(recip) = 1
prec(sqr) = 2 weight(sqr) = 1
prec(dbl) = 9 weight(dbl) = 0
prec(add) = 6 weight(add) = 0
prec(first) = 8 weight(first) = 0
all of the following rules can be deleted.
terms(N) cons(recip(sqr(N))) (1)
sqr(0) 0 (2)
sqr(s) s (3)
dbl(0) 0 (4)
dbl(s) s (5)
add(0,X) X (6)
add(s,Y) s (7)
first(0,X) nil (8)
first(s,cons(Y)) cons(Y) (9)

1.1 R is empty

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