YES

We show the termination of the TRS R:

  f(X) -> g(n__h(n__f(X)))
  h(X) -> n__h(X)
  f(X) -> n__f(X)
  activate(n__h(X)) -> h(activate(X))
  activate(n__f(X)) -> f(activate(X))
  activate(X) -> X

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: activate#(n__h(X)) -> h#(activate(X))
p2: activate#(n__h(X)) -> activate#(X)
p3: activate#(n__f(X)) -> f#(activate(X))
p4: activate#(n__f(X)) -> activate#(X)

and R consists of:

r1: f(X) -> g(n__h(n__f(X)))
r2: h(X) -> n__h(X)
r3: f(X) -> n__f(X)
r4: activate(n__h(X)) -> h(activate(X))
r5: activate(n__f(X)) -> f(activate(X))
r6: activate(X) -> X

The estimated dependency graph contains the following SCCs:

  {p2, p4}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: activate#(n__h(X)) -> activate#(X)
p2: activate#(n__f(X)) -> activate#(X)

and R consists of:

r1: f(X) -> g(n__h(n__f(X)))
r2: h(X) -> n__h(X)
r3: f(X) -> n__f(X)
r4: activate(n__h(X)) -> h(activate(X))
r5: activate(n__f(X)) -> f(activate(X))
r6: activate(X) -> X

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  lexicographic path order with precedence:
  
    precedence:
    
      activate# > n__f > n__h
    
    argument filter:
  
      pi(activate#) = 1
      pi(n__h) = [1]
      pi(n__f) = [1]

The next rules are strictly ordered:

  p1, p2
  r1, r2, r3, r4, r5, r6

We remove them from the problem.  Then no dependency pair remains.