YES TRS: terms(N) -> cons(recip(sqr(N)),n__terms(n__s(N))) sqr(0()) -> 0() sqr(s(X)) -> s(add(sqr(X),dbl(X))) dbl(0()) -> 0() dbl(s(X)) -> s(s(dbl(X))) add(0(),X) -> X add(s(X),Y) -> s(add(X,Y)) first(0(),X) -> nil() first(s(X),cons(Y,Z)) -> cons(Y,n__first(X,activate(Z))) terms(X) -> n__terms(X) s(X) -> n__s(X) first(X1,X2) -> n__first(X1,X2) activate(n__terms(X)) -> terms(activate(X)) activate(n__s(X)) -> s(activate(X)) activate(n__first(X1,X2)) -> first(activate(X1),activate(X2)) activate(X) -> X max/plus interpretations on N: terms_A(x1) = max{9, 14 + x1} terms#_A(x1) = max{14, 17} cons_A(x1,x2) = max{2, -9 + x1, -3 + x2} cons#_A(x1,x2) = max{13, -2, 12} recip_A(x1) = max{23, 19} recip#_A(x1) = max{15, x1} sqr_A(x1) = max{2, 4} sqr#_A(x1) = max{0, 17} n__terms_A(x1) = max{8, 14 + x1} n__terms#_A(x1) = max{0, 3} n__s_A(x1) = max{3, x1} n__s#_A(x1) = max{0, 2} 0_A = 3 0#_A = 15 s_A(x1) = max{3, x1} s#_A(x1) = max{3, 1} add_A(x1,x2) = max{3, 2, 1 + x2} add#_A(x1,x2) = max{4, 4, 4} dbl_A(x1) = max{3, 2} dbl#_A(x1) = max{16, 13} first_A(x1,x2) = max{16, 16 + x1, 10 + x2} first#_A(x1,x2) = max{3, 13, 8 + x2} nil_A = 19 nil#_A = 14 n__first_A(x1,x2) = max{8, 16 + x1, 10 + x2} n__first#_A(x1,x2) = max{12, 9, -2} activate_A(x1) = max{0, x1} activate#_A(x1) = max{11, 4 + x1} precedence: n__s = add = first > cons = s > activate > terms = n__first > recip = sqr = n__terms > dbl > 0 > nil