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