Certification Problem

Input (TPDB SRS_Standard/Secret_06_SRS/aprove09)

The rewrite relation of the following TRS is considered.

q(0(x1)) → p(p(s(s(0(s(s(s(s(x1))))))))) (1)
q(s(x1)) → p(p(s(s(s(s(s(s(r(p(p(s(s(x1))))))))))))) (2)
r(0(x1)) → p(s(p(s(0(p(p(p(s(s(s(x1))))))))))) (3)
r(s(x1)) → p(s(p(s(s(q(p(s(p(s(x1)))))))))) (4)
p(p(s(x1))) → p(x1) (5)
p(s(x1)) → x1 (6)
p(0(x1)) → 0(s(s(s(x1)))) (7)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by matchbox @ termCOMP 2023)

1 Rule Removal

Using the matrix interpretations of dimension 1 with strict dimension 1 over the rationals with delta = 1
[0(x1)] = x1 +
0
[s(x1)] = x1 +
0
[r(x1)] = x1 +
1
[q(x1)] = x1 +
1
[p(x1)] = x1 +
0
all of the following rules can be deleted.
q(0(x1)) → p(p(s(s(0(s(s(s(s(x1))))))))) (1)
r(0(x1)) → p(s(p(s(0(p(p(p(s(s(s(x1))))))))))) (3)

1.1 String Reversal

Since only unary symbols occur, one can reverse all terms and obtains the TRS
s(q(x1)) → s(s(p(p(r(s(s(s(s(s(s(p(p(x1))))))))))))) (8)
s(r(x1)) → s(p(s(p(q(s(s(p(s(p(x1)))))))))) (9)
s(p(p(x1))) → p(x1) (10)
s(p(x1)) → x1 (11)
0(p(x1)) → s(s(s(0(x1)))) (12)

1.1.1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
0#(p(x1)) → 0#(x1) (13)
0#(p(x1)) → s#(0(x1)) (14)
0#(p(x1)) → s#(s(0(x1))) (15)
0#(p(x1)) → s#(s(s(0(x1)))) (16)
s#(r(x1)) → s#(s(p(s(p(x1))))) (17)
s#(r(x1)) → s#(p(x1)) (18)
s#(r(x1)) → s#(p(s(p(x1)))) (19)
s#(r(x1)) → s#(p(s(p(q(s(s(p(s(p(x1)))))))))) (20)
s#(r(x1)) → s#(p(q(s(s(p(s(p(x1)))))))) (21)
s#(q(x1)) → s#(s(s(s(s(s(p(p(x1)))))))) (22)
s#(q(x1)) → s#(s(s(s(s(p(p(x1))))))) (23)
s#(q(x1)) → s#(s(s(s(p(p(x1)))))) (24)
s#(q(x1)) → s#(s(s(p(p(x1))))) (25)
s#(q(x1)) → s#(s(p(p(x1)))) (26)
s#(q(x1)) → s#(s(p(p(r(s(s(s(s(s(s(p(p(x1))))))))))))) (27)
s#(q(x1)) → s#(p(p(x1))) (28)
s#(q(x1)) → s#(p(p(r(s(s(s(s(s(s(p(p(x1)))))))))))) (29)

1.1.1.1 Monotonic Reduction Pair Processor with Usable Rules

Using the matrix interpretations of dimension 1 with strict dimension 1 over the rationals with delta = 1
[0(x1)] = x1 +
0
[s(x1)] = x1 +
0
[r(x1)] = x1 +
1
[q(x1)] = x1 +
1
[p(x1)] = x1 +
0
[0#(x1)] = x1 +
1
[s#(x1)] = x1 +
0
together with the usable rules
s(q(x1)) → s(s(p(p(r(s(s(s(s(s(s(p(p(x1))))))))))))) (8)
s(r(x1)) → s(p(s(p(q(s(s(p(s(p(x1)))))))))) (9)
s(p(p(x1))) → p(x1) (10)
s(p(x1)) → x1 (11)
0(p(x1)) → s(s(s(0(x1)))) (12)
(w.r.t. the implicit argument filter of the reduction pair), the pairs
0#(p(x1)) → s#(0(x1)) (14)
0#(p(x1)) → s#(s(0(x1))) (15)
0#(p(x1)) → s#(s(s(0(x1)))) (16)
s#(r(x1)) → s#(s(p(s(p(x1))))) (17)
s#(r(x1)) → s#(p(x1)) (18)
s#(r(x1)) → s#(p(s(p(x1)))) (19)
s#(q(x1)) → s#(s(s(s(s(s(p(p(x1)))))))) (22)
s#(q(x1)) → s#(s(s(s(s(p(p(x1))))))) (23)
s#(q(x1)) → s#(s(s(s(p(p(x1)))))) (24)
s#(q(x1)) → s#(s(s(p(p(x1))))) (25)
s#(q(x1)) → s#(s(p(p(x1)))) (26)
s#(q(x1)) → s#(p(p(x1))) (28)
and no rules could be deleted.

1.1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.