YES

We show the termination of the TRS R:

  a__f(f(a())) -> a__f(g(f(a())))
  mark(f(X)) -> a__f(mark(X))
  mark(a()) -> a()
  mark(g(X)) -> g(X)
  a__f(X) -> f(X)

-- SCC decomposition.

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

p1: a__f#(f(a())) -> a__f#(g(f(a())))
p2: mark#(f(X)) -> a__f#(mark(X))
p3: mark#(f(X)) -> mark#(X)

and R consists of:

r1: a__f(f(a())) -> a__f(g(f(a())))
r2: mark(f(X)) -> a__f(mark(X))
r3: mark(a()) -> a()
r4: mark(g(X)) -> g(X)
r5: a__f(X) -> f(X)

The estimated dependency graph contains the following SCCs:

  {p3}


-- Reduction pair.

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

p1: mark#(f(X)) -> mark#(X)

and R consists of:

r1: a__f(f(a())) -> a__f(g(f(a())))
r2: mark(f(X)) -> a__f(mark(X))
r3: mark(a()) -> a()
r4: mark(g(X)) -> g(X)
r5: a__f(X) -> f(X)

The set of usable rules consists of

  (no rules)

Take the reduction pair:

  lexicographic combination of reduction pairs:
  
    1. matrix interpretations:
    
      carrier: N^1
      order: standard order
      interpretations:
        mark#_A(x1) = x1
        f_A(x1) = x1 + 1
    
    2. matrix interpretations:
    
      carrier: N^1
      order: standard order
      interpretations:
        mark#_A(x1) = 0
        f_A(x1) = x1 + 1
    

The next rules are strictly ordered:

  p1

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