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 AProVE @ 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 Switch to Innermost Termination

The TRS is overlay and locally confluent:

10

Hence, it suffices to show innermost termination in the following.

1.1.1 Dependency Pair Transformation

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

1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.