YES O(n^4) TRS: { app(app(app(curry(), f), x), y) -> app(app(f, x), y), app(app(plus(), app(s(), x)), y) -> app(s(), app(app(plus(), x), y)), app(app(plus(), 0()), y) -> y, add() -> app(curry(), plus()) } DUP: We consider a non-duplicating system. Trs: { app(app(app(curry(), f), x), y) -> app(app(f, x), y), app(app(plus(), app(s(), x)), y) -> app(s(), app(app(plus(), x), y)), app(app(plus(), 0()), y) -> y, add() -> app(curry(), plus()) } Matrix Interpretation: Interpretation class: triangular [1] [0] [add] = [0] [1] [0] [0] [curry] = [0] [0] [0] [0] [s] = [0] [0] [0] [0] [0] = [0] [0] [0] [0] [plus] = [0] [0] [X7] [X3] [1 0 0 1][X7] [1 0 0 0][X3] [0] [X6] [X2] [0 0 0 0][X6] [0 1 0 0][X2] [0] [app]([X5], [X1]) = [0 0 0 0][X5] + [0 0 1 0][X1] + [0] [X4] [X0] [0 0 0 1][X4] [0 0 0 1][X0] [1] Qed