YES TRS: active(f(X)) -> mark(g(h(f(X)))) active(f(X)) -> f(active(X)) active(h(X)) -> h(active(X)) f(mark(X)) -> mark(f(X)) h(mark(X)) -> mark(h(X)) proper(f(X)) -> f(proper(X)) proper(g(X)) -> g(proper(X)) proper(h(X)) -> h(proper(X)) f(ok(X)) -> ok(f(X)) g(ok(X)) -> ok(g(X)) h(ok(X)) -> ok(h(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) linear polynomial interpretations on N: active_A(x1) = x1 + 7 active#_A(x1) = x1 + 7 f_A(x1) = x1 + 3 f#_A(x1) = x1 + 2 mark_A(x1) = x1 + 5 mark#_A(x1) = x1 + 3 g_A(x1) = x1 + 1 g#_A(x1) = x1 h_A(x1) = x1 + 1 h#_A(x1) = x1 proper_A(x1) = x1 + 1 proper#_A(x1) = x1 + 1 ok_A(x1) = x1 + 10 ok#_A(x1) = x1 + 8 top_A(x1) = x1 top#_A(x1) = 9 precedence: ok > top > active = proper > f = g > mark > h