YES TRS: terms(N) -> cons(recip(sqr(N)),n__terms(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))) half(0()) -> 0() half(s(0())) -> 0() half(s(s(X))) -> s(half(X)) half(dbl(X)) -> X terms(X) -> n__terms(X) first(X1,X2) -> n__first(X1,X2) activate(n__terms(X)) -> terms(X) activate(n__first(X1,X2)) -> first(X1,X2) activate(X) -> X max/plus interpretations on N: terms_A(x1) = max{63, 18 + x1} terms#_A(x1) = max{10, 12 + x1} cons_A(x1,x2) = max{1, 3, 4 + x2} cons#_A(x1,x2) = max{8, 3, 6} recip_A(x1) = max{1, -136 + x1} recip#_A(x1) = max{11, -126 + x1} sqr_A(x1) = max{137, -3 + x1} sqr#_A(x1) = max{12, -33 + x1} n__terms_A(x1) = max{19, 14 + x1} n__terms#_A(x1) = max{0, 9} s_A(x1) = max{45, x1} s#_A(x1) = max{7, 9} 0_A = 93 0#_A = 8 add_A(x1,x2) = max{43, 45, 44 + x2} add#_A(x1,x2) = max{11, 11, 12} dbl_A(x1) = max{93, -47 + x1} dbl#_A(x1) = max{12, -32} first_A(x1,x2) = max{64, 43 + x1, 64 + x2} first#_A(x1,x2) = max{7, 9, 1 + x2} nil_A = 65 nil#_A = 2 n__first_A(x1,x2) = max{0, 1 + x1, 21 + x2} n__first#_A(x1,x2) = max{0, 9, -55 + x2} activate_A(x1) = max{63, 43 + x1} activate#_A(x1) = max{9, -1 + x1} half_A(x1) = max{44, 47 + x1} half#_A(x1) = max{0, -45} precedence: first > cons = n__first = half > s = activate > terms > recip = sqr = n__terms > add = dbl > 0 > nil