YES TRS: and(true(),X) -> activate(X) and(false(),Y) -> false() if(true(),X,Y) -> activate(X) if(false(),X,Y) -> activate(Y) add(0(),X) -> activate(X) add(s(X),Y) -> s(n__add(activate(X),activate(Y))) first(0(),X) -> nil() first(s(X),cons(Y,Z)) -> cons(activate(Y),n__first(activate(X),activate(Z))) from(X) -> cons(activate(X),n__from(n__s(activate(X)))) add(X1,X2) -> n__add(X1,X2) first(X1,X2) -> n__first(X1,X2) from(X) -> n__from(X) s(X) -> n__s(X) activate(n__add(X1,X2)) -> add(activate(X1),X2) activate(n__first(X1,X2)) -> first(activate(X1),activate(X2)) activate(n__from(X)) -> from(X) activate(n__s(X)) -> s(X) activate(X) -> X max/plus interpretations on N: and_A(x1,x2) = max{0, 1, x2} and#_A(x1,x2) = max{0, 7, 1 + x2} true_A = 1 true#_A = 0 activate_A(x1) = max{0, x1} activate#_A(x1) = max{7, 1 + x1} false_A = 1 false#_A = 8 if_A(x1,x2,x3) = max{0, -1, x2, x3} if#_A(x1,x2,x3) = max{7, 0, 1 + x2, 1 + x3} add_A(x1,x2) = max{16, 11 + x1, 9 + x2} add#_A(x1,x2) = max{9, 5 + x1, 3 + x2} 0_A = 3 0#_A = 10 s_A(x1) = max{0, x1} s#_A(x1) = max{6, -7 + x1} n__add_A(x1,x2) = max{16, 11 + x1, 9 + x2} n__add#_A(x1,x2) = max{8, 2 + x1, 2} first_A(x1,x2) = max{12, 8 + x1, 8 + x2} first#_A(x1,x2) = max{8, 8 + x1, 8 + x2} nil_A = 12 nil#_A = 9 cons_A(x1,x2) = max{13, 22 + x1, x2} cons#_A(x1,x2) = max{0, 22, 0} n__first_A(x1,x2) = max{12, 8 + x1, 8 + x2} n__first#_A(x1,x2) = max{6, 8, 0} from_A(x1) = max{21, 23 + x1} from#_A(x1) = max{23, 1 + x1} n__from_A(x1) = max{1, 23 + x1} n__from#_A(x1) = max{0, 22} n__s_A(x1) = max{0, x1} n__s#_A(x1) = max{5, -7 + x1} precedence: first > and = if = n__add = n__first = from > activate = false = n__from > true = add = 0 = cons > s = nil > n__s