YES O(n^3) TRS: {g(x, a(), b()) -> g(b(), b(), a())} DUP: We consider a non-duplicating system. Trs: {g(x, a(), b()) -> g(b(), b(), a())} Matrix Interpretation: Interpretation class: triangular [0] [a] = [1] [0] [0] [b] = [0] [0] [X8] [X5] [X2] [1 0 0][X8] [1 1 0][X5] [1 0 0][X2] [0] [g]([X7], [X4], [X1]) = [0 0 0][X7] + [0 0 0][X4] + [0 0 0][X1] + [0] [X6] [X3] [X0] [0 0 0][X6] [0 0 0][X3] [0 0 0][X0] [0] Qed