YES

The TRS could be proven terminating. The proof took 86 ms.

The following DP Processors were used


Problem 1 was processed with processor DependencyGraph (67ms).
 | – Problem 2 was processed with processor SubtermCriterion (1ms).
 | – Problem 3 was processed with processor SubtermCriterion (1ms).

Problem 1: DependencyGraph



Dependency Pair Problem

Dependency Pairs

f#(s(s(x)))p#(h(g(x)))g#(s(x))h#(g(x))
f#(s(s(x)))+#(p(g(x)), q(g(x)))f#(s(s(x)))p#(g(x))
f#(s(s(x)))h#(g(x))g#(s(x))q#(g(x))
g#(s(x))g#(x)h#(x)p#(x)
h#(x)+#(p(x), q(x))f#(s(s(x)))q#(g(x))
h#(x)q#(x)+#(x, s(y))+#(x, y)
g#(s(x))+#(p(g(x)), q(g(x)))g#(s(x))p#(g(x))
f#(s(s(x)))g#(x)

Rewrite Rules

f(0)0f(s(0))s(0)
f(s(s(x)))p(h(g(x)))g(0)pair(s(0), s(0))
g(s(x))h(g(x))h(x)pair(+(p(x), q(x)), p(x))
p(pair(x, y))xq(pair(x, y))y
+(x, 0)x+(x, s(y))s(+(x, y))
f(s(s(x)))+(p(g(x)), q(g(x)))g(s(x))pair(+(p(g(x)), q(g(x))), p(g(x)))

Original Signature

Termination of terms over the following signature is verified: f, g, 0, s, pair, q, p, +, h

Strategy


The following SCCs where found

+#(x, s(y)) → +#(x, y)

g#(s(x)) → g#(x)

Problem 2: SubtermCriterion



Dependency Pair Problem

Dependency Pairs

+#(x, s(y))+#(x, y)

Rewrite Rules

f(0)0f(s(0))s(0)
f(s(s(x)))p(h(g(x)))g(0)pair(s(0), s(0))
g(s(x))h(g(x))h(x)pair(+(p(x), q(x)), p(x))
p(pair(x, y))xq(pair(x, y))y
+(x, 0)x+(x, s(y))s(+(x, y))
f(s(s(x)))+(p(g(x)), q(g(x)))g(s(x))pair(+(p(g(x)), q(g(x))), p(g(x)))

Original Signature

Termination of terms over the following signature is verified: f, g, 0, s, pair, q, p, +, h

Strategy


Projection

The following projection was used:

Thus, the following dependency pairs are removed:

+#(x, s(y))+#(x, y)

Problem 3: SubtermCriterion



Dependency Pair Problem

Dependency Pairs

g#(s(x))g#(x)

Rewrite Rules

f(0)0f(s(0))s(0)
f(s(s(x)))p(h(g(x)))g(0)pair(s(0), s(0))
g(s(x))h(g(x))h(x)pair(+(p(x), q(x)), p(x))
p(pair(x, y))xq(pair(x, y))y
+(x, 0)x+(x, s(y))s(+(x, y))
f(s(s(x)))+(p(g(x)), q(g(x)))g(s(x))pair(+(p(g(x)), q(g(x))), p(g(x)))

Original Signature

Termination of terms over the following signature is verified: f, g, 0, s, pair, q, p, +, h

Strategy


Projection

The following projection was used:

Thus, the following dependency pairs are removed:

g#(s(x))g#(x)