YES O(n^4) 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] [0] [a] = [0] [1] [0] [0] [b] = [1] [0] [X11] [X7] [X3] [1 0 0 0][X11] [1 0 0 0][X7] [1 0 1 0][X3] [0] [X10] [X6] [X2] [0 0 0 0][X10] [0 0 0 1][X6] [0 0 1 0][X2] [0] [g]([ X9], [X5], [X1]) = [0 0 0 0][X9] + [0 0 0 0][X5] + [0 0 0 0][X1] + [0] [ X8] [X4] [X0] [0 0 0 0][X8] [0 0 0 0][X4] [0 0 0 0][X0] [0] Qed