Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/PEANO_nosorts_GM)

The rewrite relation of the following TRS is considered.

a__and(tt,X) mark(X) (1)
a__plus(N,0) mark(N) (2)
a__plus(N,s(M)) s(a__plus(mark(N),mark(M))) (3)
mark(and(X1,X2)) a__and(mark(X1),X2) (4)
mark(plus(X1,X2)) a__plus(mark(X1),mark(X2)) (5)
mark(tt) tt (6)
mark(0) 0 (7)
mark(s(X)) s(mark(X)) (8)
a__and(X1,X2) and(X1,X2) (9)
a__plus(X1,X2) plus(X1,X2) (10)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the linear polynomial interpretation over the naturals
[a__and(x1, x2)] = 1 · x1 + 2 · x2
[tt] = 2
[mark(x1)] = 1 · x1
[a__plus(x1, x2)] = 1 · x1 + 2 · x2
[0] = 0
[s(x1)] = 1 · x1
[and(x1, x2)] = 1 · x1 + 2 · x2
[plus(x1, x2)] = 1 · x1 + 2 · x2
all of the following rules can be deleted.
a__and(tt,X) mark(X) (1)

1.1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(0) = 2 weight(0) = 1
prec(tt) = 6 weight(tt) = 1
prec(mark) = 7 weight(mark) = 0
prec(s) = 0 weight(s) = 1
prec(a__plus) = 4 weight(a__plus) = 0
prec(and) = 1 weight(and) = 0
prec(a__and) = 5 weight(a__and) = 0
prec(plus) = 3 weight(plus) = 0
all of the following rules can be deleted.
a__plus(N,0) mark(N) (2)
a__plus(N,s(M)) s(a__plus(mark(N),mark(M))) (3)
mark(and(X1,X2)) a__and(mark(X1),X2) (4)
mark(plus(X1,X2)) a__plus(mark(X1),mark(X2)) (5)
mark(tt) tt (6)
mark(0) 0 (7)
mark(s(X)) s(mark(X)) (8)
a__and(X1,X2) and(X1,X2) (9)
a__plus(X1,X2) plus(X1,X2) (10)

1.1.1 R is empty

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