Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/PALINDROME_nosorts_GM)

The rewrite relation of the following TRS is considered.

a____(__(X,Y),Z) a____(mark(X),a____(mark(Y),mark(Z))) (1)
a____(X,nil) mark(X) (2)
a____(nil,X) mark(X) (3)
a__and(tt,X) mark(X) (4)
a__isNePal(__(I,__(P,I))) tt (5)
mark(__(X1,X2)) a____(mark(X1),mark(X2)) (6)
mark(and(X1,X2)) a__and(mark(X1),X2) (7)
mark(isNePal(X)) a__isNePal(mark(X)) (8)
mark(nil) nil (9)
mark(tt) tt (10)
a____(X1,X2) __(X1,X2) (11)
a__and(X1,X2) and(X1,X2) (12)
a__isNePal(X) isNePal(X) (13)

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(isNePal) = 2 weight(isNePal) = 4
prec(and) = 8 weight(and) = 0
prec(a__isNePal) = 3 weight(a__isNePal) = 4
prec(a__and) = 9 weight(a__and) = 0
prec(tt) = 11 weight(tt) = 2
prec(nil) = 10 weight(nil) = 2
prec(mark) = 15 weight(mark) = 0
prec(a____) = 1 weight(a____) = 1
prec(__) = 0 weight(__) = 1
all of the following rules can be deleted.
a____(__(X,Y),Z) a____(mark(X),a____(mark(Y),mark(Z))) (1)
a____(X,nil) mark(X) (2)
a____(nil,X) mark(X) (3)
a__and(tt,X) mark(X) (4)
a__isNePal(__(I,__(P,I))) tt (5)
mark(__(X1,X2)) a____(mark(X1),mark(X2)) (6)
mark(and(X1,X2)) a__and(mark(X1),X2) (7)
mark(isNePal(X)) a__isNePal(mark(X)) (8)
mark(nil) nil (9)
mark(tt) tt (10)
a____(X1,X2) __(X1,X2) (11)
a__and(X1,X2) and(X1,X2) (12)
a__isNePal(X) isNePal(X) (13)

1.1 R is empty

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