Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex4_7_77_Bor03_GM)

The rewrite relation of the following TRS is considered.

a__zeros cons(0,zeros) (1)
a__tail(cons(X,XS)) mark(XS) (2)
mark(zeros) a__zeros (3)
mark(tail(X)) a__tail(mark(X)) (4)
mark(cons(X1,X2)) cons(mark(X1),X2) (5)
mark(0) 0 (6)
a__zeros zeros (7)
a__tail(X) tail(X) (8)

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(tail) = 1 weight(tail) = 3
prec(mark) = 6 weight(mark) = 3
prec(a__tail) = 3 weight(a__tail) = 3
prec(cons) = 5 weight(cons) = 0
prec(zeros) = 0 weight(zeros) = 2
prec(0) = 4 weight(0) = 2
prec(a__zeros) = 2 weight(a__zeros) = 5
all of the following rules can be deleted.
a__zeros cons(0,zeros) (1)
a__tail(cons(X,XS)) mark(XS) (2)
mark(zeros) a__zeros (3)
mark(tail(X)) a__tail(mark(X)) (4)
mark(cons(X1,X2)) cons(mark(X1),X2) (5)
mark(0) 0 (6)
a__zeros zeros (7)
a__tail(X) tail(X) (8)

1.1 R is empty

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