YES TRS: f(0()) -> 1() f(s(x)) -> g(x,s(x)) g(0(),y) -> y g(s(x),y) -> g(x,+(y,s(x))) +(x,0()) -> x +(x,s(y)) -> s(+(x,y)) g(s(x),y) -> g(x,s(+(y,x))) max/plus interpretations on N: f_A(x1) = max{5, 4} f#_A(x1) = max{2, -4} 0_A = 1 0#_A = 0 1_A = 5 1#_A = 1 s_A(x1) = max{1, 3} s#_A(x1) = max{0, -5} g_A(x1,x2) = max{5, 0, x2} g#_A(x1,x2) = max{1, -2, -4 + x2} +_A(x1,x2) = max{5, x1, 4} +#_A(x1,x2) = max{0, 0, -3} precedence: f > g > 0 = + > 1 = s