(0) Obligation:

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

g(x, y) → x
g(x, y) → y
f(s(x), y, y) → f(y, x, s(x))

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

F(s(x), y, y) → F(y, x, s(x))

The TRS R consists of the following rules:

g(x, y) → x
g(x, y) → y
f(s(x), y, y) → f(y, x, s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.