Certification Problem

Input (TPDB SRS_Standard/Secret_05_SRS/aprove3)

The rewrite relation of the following TRS is considered.

p(0(x1)) → s(s(0(s(s(p(x1)))))) (1)
p(s(0(x1))) → 0(x1) (2)
p(s(s(x1))) → s(p(s(x1))) (3)
f(s(x1)) → g(q(i(x1))) (4)
g(x1) → f(p(p(x1))) (5)
q(i(x1)) → q(s(x1)) (6)
q(s(x1)) → s(s(x1)) (7)
i(x1) → s(x1) (8)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by matchbox @ termCOMP 2023)

1 String Reversal

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

1.1 Dependency Pair Transformation

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

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
[i(x1)] = x1 +
0
[g(x1)] = x1 +
1
[f(x1)] = x1 +
1
[s(x1)] = x1 +
0
[q(x1)] = x1 +
0
[p(x1)] = x1 +
0
[0#(x1)] = x1 +
2
[i#(x1)] = x1 +
1
[g#(x1)] = x1 +
0
[s#(x1)] = x1 +
1
together with the usable rules
0(p(x1)) → p(s(s(0(s(s(x1)))))) (9)
0(s(p(x1))) → 0(x1) (10)
s(s(p(x1))) → s(p(s(x1))) (11)
s(f(x1)) → i(q(g(x1))) (12)
g(x1) → p(p(f(x1))) (13)
i(q(x1)) → s(q(x1)) (14)
s(q(x1)) → s(s(x1)) (15)
i(x1) → s(x1) (8)
(w.r.t. the implicit argument filter of the reduction pair), the pairs
0#(p(x1)) → s#(x1) (18)
0#(p(x1)) → s#(0(s(s(x1)))) (19)
0#(p(x1)) → s#(s(x1)) (20)
0#(p(x1)) → s#(s(0(s(s(x1))))) (21)
s#(f(x1)) → g#(x1) (25)
and no rules could be deleted.

1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.