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