(0) Obligation:

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

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

and weight map:

a=3
n__a=1
f_1=3
g_1=1
n__f_1=3
activate_1=4

The variable weight is 1

(2) TRUE