YES

We show the termination of the TRS R:

  g(s(x)) -> f(x)
  f(|0|()) -> s(|0|())
  f(s(x)) -> s(s(g(x)))
  g(|0|()) -> |0|()

-- SCC decomposition.

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

p1: g#(s(x)) -> f#(x)
p2: f#(s(x)) -> g#(x)

and R consists of:

r1: g(s(x)) -> f(x)
r2: f(|0|()) -> s(|0|())
r3: f(s(x)) -> s(s(g(x)))
r4: g(|0|()) -> |0|()

The estimated dependency graph contains the following SCCs:

  {p1, p2}


-- Reduction pair.

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

p1: g#(s(x)) -> f#(x)
p2: f#(s(x)) -> g#(x)

and R consists of:

r1: g(s(x)) -> f(x)
r2: f(|0|()) -> s(|0|())
r3: f(s(x)) -> s(s(g(x)))
r4: g(|0|()) -> |0|()

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  lexicographic path order with precedence:
  
    precedence:
    
      s > g# > f#
    
    argument filter:
  
      pi(g#) = [1]
      pi(s) = [1]
      pi(f#) = 1

The next rules are strictly ordered:

  p1, p2
  r1, r2, r3, r4

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