Consider the TRS R consisting of the rewrite rule

1: f(f(x,a),a) -> f(f(f(x,a),f(a,a)),a)

There are 3 dependency pairs:

2: F(f(x,a),a) -> F(f(f(x,a),f(a,a)),a)
3: F(f(x,a),a) -> F(f(x,a),f(a,a))
4: F(f(x,a),a) -> F(a,a)

The approximated dependency graph contains one SCC:
{2,3}.

- Consider the SCC {2,3}.
By taking the polynomial interpretation
[f](x,y) = 0,
[a] = 1
and [F](x,y) = x + y + 1,
the rules in {1,2}
are weakly decreasing and
rule 3
is strictly decreasing.
There is one new SCC.

- Consider the SCC {2}.
By taking the polynomial interpretation
[a] = 2,
[F](x,y) = x
and [f](x,y) = y - 1,
we obtain a quasi-model of RR.
Furthermore, dependency pair 2
is strictly decreasing.


Hence the TRS is terminating.