Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex2_Luc03b_L)

The rewrite relation of the following TRS is considered.

fst(0,Z) nil (1)
fst(s,cons(Y)) cons(Y) (2)
from(X) cons(X) (3)
add(0,X) X (4)
add(s,Y) s (5)
len(nil) 0 (6)
len(cons(X)) s (7)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by ttt2 @ termCOMP 2023)

1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(len) = 2 weight(len) = 7
prec(add) = 6 weight(add) = 0
prec(from) = 7 weight(from) = 2
prec(cons) = 0 weight(cons) = 2
prec(s) = 3 weight(s) = 4
prec(nil) = 1 weight(nil) = 6
prec(fst) = 4 weight(fst) = 1
prec(0) = 5 weight(0) = 4
all of the following rules can be deleted.
fst(0,Z) nil (1)
fst(s,cons(Y)) cons(Y) (2)
from(X) cons(X) (3)
add(0,X) X (4)
add(s,Y) s (5)
len(nil) 0 (6)
len(cons(X)) s (7)

1.1 R is empty

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