(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

f(f(x)) → g(f(x))
g(g(x)) → f(x)

Q is empty.

(1) DirectTerminationProof (EQUIVALENT transformation)

We use [DIRECT_TERMINATION] with the following order to prove termination.

Knuth-Bendix order [KBO] with precedence:
g1 > f1

and weight map:

f_1=2
g_1=1

The variable weight is 1

(2) TRUE