YES

We show the termination of the relative TRS R/S:

  R:
  g(s(x),y) -> g(f(x,y),y)

  S:
  f(x,y) -> x
  f(x,y) -> f(x,s(y))

-- SCC decomposition.

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

p1: g#(s(x),y) -> g#(f(x,y),y)

and R consists of:

r1: g(s(x),y) -> g(f(x,y),y)
r2: f(x,y) -> x
r3: f(x,y) -> f(x,s(y))

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

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

p1: g#(s(x),y) -> g#(f(x,y),y)

and R consists of:

r1: g(s(x),y) -> g(f(x,y),y)
r2: f(x,y) -> x
r3: f(x,y) -> f(x,s(y))

The set of usable rules consists of

  r1, r2, r3

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^2
    order: standard order
    interpretations:
      g#_A(x1,x2) = ((0,1),(0,1)) x1
      s_A(x1) = ((1,1),(1,1)) x1 + (0,1)
      f_A(x1,x2) = ((1,1),(1,1)) x1
      g_A(x1,x2) = ((0,0),(1,0)) x1

The next rules are strictly ordered:

  p1

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