(0) Obligation:

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

f(f(a)) → c(n__f(n__g(n__f(n__a))))
f(X) → n__f(X)
g(X) → n__g(X)
an__a
activate(n__f(X)) → f(activate(X))
activate(n__g(X)) → g(activate(X))
activate(n__a) → a
activate(X) → 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:
activate1 > f1 > c1 > a > nf1 > g1 > ng1 > na

and weight map:

a=4
n__a=1
f_1=2
c_1=1
n__f_1=2
n__g_1=2
g_1=2
activate_1=3

The variable weight is 1

(2) TRUE