YES O(n^2) TRS: { f(f(X)) -> f(a(b(f(X)))), f(a(g(X))) -> b(X), b(X) -> a(X)} DUP: We consider a non-duplicating system. Trs: { f(f(X)) -> f(a(b(f(X)))), f(a(g(X))) -> b(X), b(X) -> a(X)} Matrix Interpretation: Interpretation class: triangular [X1] [1 0][X1] [2] [g]([X0]) = [0 0][X0] + [0] [X1] [1 0][X1] [1] [b]([X0]) = [0 0][X0] + [0] [X1] [1 0][X1] [0] [a]([X0]) = [0 0][X0] + [0] [X1] [1 3][X1] [0] [f]([X0]) = [0 1][X0] + [3] Qed