YES

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

The following DP Processors were used


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

Problem 1: DependencyGraph



Dependency Pair Problem

Dependency Pairs

f#(f(x)) → f#(x)f#(f(x)) → f#(d(f(x)))
f#(f(x)) → f#(c(f(x)))g#(c(0)) → g#(d(1))
g#(c(1)) → g#(d(0))

Rewrite Rules

f(f(x)) → f(c(f(x)))f(f(x)) → f(d(f(x)))
g(c(x)) → xg(d(x)) → x
g(c(0)) → g(d(1))g(c(1)) → g(d(0))

Original Signature

Termination of terms over the following signature is verified: f, g, d, 1, 0, c

Strategy


The following SCCs where found

f#(f(x)) → f#(x)

Problem 2: SubtermCriterion



Dependency Pair Problem

Dependency Pairs

f#(f(x)) → f#(x)

Rewrite Rules

f(f(x)) → f(c(f(x)))f(f(x)) → f(d(f(x)))
g(c(x)) → xg(d(x)) → x
g(c(0)) → g(d(1))g(c(1)) → g(d(0))

Original Signature

Termination of terms over the following signature is verified: f, g, d, 1, 0, c

Strategy


Projection

The following projection was used:

Thus, the following dependency pairs are removed:

f#(f(x)) → f#(x)