YES Problem: fst(0(),Z) -> nil() fst(s(X),cons(Y,Z)) -> cons(Y,n__fst(activate(X),activate(Z))) from(X) -> cons(X,n__from(s(X))) add(0(),X) -> X add(s(X),Y) -> s(n__add(activate(X),Y)) len(nil()) -> 0() len(cons(X,Z)) -> s(n__len(activate(Z))) fst(X1,X2) -> n__fst(X1,X2) from(X) -> n__from(X) add(X1,X2) -> n__add(X1,X2) len(X) -> n__len(X) activate(n__fst(X1,X2)) -> fst(X1,X2) activate(n__from(X)) -> from(X) activate(n__add(X1,X2)) -> add(X1,X2) activate(n__len(X)) -> len(X) activate(X) -> X Proof: DP Processor: DPs: fst#(s(X),cons(Y,Z)) -> activate#(Z) fst#(s(X),cons(Y,Z)) -> activate#(X) add#(s(X),Y) -> activate#(X) len#(cons(X,Z)) -> activate#(Z) activate#(n__fst(X1,X2)) -> fst#(X1,X2) activate#(n__from(X)) -> from#(X) activate#(n__add(X1,X2)) -> add#(X1,X2) activate#(n__len(X)) -> len#(X) TRS: fst(0(),Z) -> nil() fst(s(X),cons(Y,Z)) -> cons(Y,n__fst(activate(X),activate(Z))) from(X) -> cons(X,n__from(s(X))) add(0(),X) -> X add(s(X),Y) -> s(n__add(activate(X),Y)) len(nil()) -> 0() len(cons(X,Z)) -> s(n__len(activate(Z))) fst(X1,X2) -> n__fst(X1,X2) from(X) -> n__from(X) add(X1,X2) -> n__add(X1,X2) len(X) -> n__len(X) activate(n__fst(X1,X2)) -> fst(X1,X2) activate(n__from(X)) -> from(X) activate(n__add(X1,X2)) -> add(X1,X2) activate(n__len(X)) -> len(X) activate(X) -> X Matrix Interpretation Processor: dim=1 interpretation: [len#](x0) = x0 + 5, [add#](x0, x1) = 2x0 + 5, [from#](x0) = 0, [activate#](x0) = 2x0 + 4, [fst#](x0, x1) = 2x0 + 2x1 + 5, [n__len](x0) = x0 + 1, [len](x0) = 4x0 + 4, [n__add](x0, x1) = x0 + x1 + 1, [add](x0, x1) = 4x0 + 4x1 + 4, [n__from](x0) = 0, [from](x0) = 0, [n__fst](x0, x1) = x0 + x1 + 1, [activate](x0) = 4x0, [cons](x0, x1) = 4x1, [s](x0) = 4x0, [nil] = 6, [fst](x0, x1) = 4x0 + 4x1 + 4, [0] = 5 orientation: fst#(s(X),cons(Y,Z)) = 8X + 8Z + 5 >= 2Z + 4 = activate#(Z) fst#(s(X),cons(Y,Z)) = 8X + 8Z + 5 >= 2X + 4 = activate#(X) add#(s(X),Y) = 8X + 5 >= 2X + 4 = activate#(X) len#(cons(X,Z)) = 4Z + 5 >= 2Z + 4 = activate#(Z) activate#(n__fst(X1,X2)) = 2X1 + 2X2 + 6 >= 2X1 + 2X2 + 5 = fst#(X1,X2) activate#(n__from(X)) = 4 >= 0 = from#(X) activate#(n__add(X1,X2)) = 2X1 + 2X2 + 6 >= 2X1 + 5 = add#(X1,X2) activate#(n__len(X)) = 2X + 6 >= X + 5 = len#(X) fst(0(),Z) = 4Z + 24 >= 6 = nil() fst(s(X),cons(Y,Z)) = 16X + 16Z + 4 >= 16X + 16Z + 4 = cons(Y,n__fst(activate(X),activate(Z))) from(X) = 0 >= 0 = cons(X,n__from(s(X))) add(0(),X) = 4X + 24 >= X = X add(s(X),Y) = 16X + 4Y + 4 >= 16X + 4Y + 4 = s(n__add(activate(X),Y)) len(nil()) = 28 >= 5 = 0() len(cons(X,Z)) = 16Z + 4 >= 16Z + 4 = s(n__len(activate(Z))) fst(X1,X2) = 4X1 + 4X2 + 4 >= X1 + X2 + 1 = n__fst(X1,X2) from(X) = 0 >= 0 = n__from(X) add(X1,X2) = 4X1 + 4X2 + 4 >= X1 + X2 + 1 = n__add(X1,X2) len(X) = 4X + 4 >= X + 1 = n__len(X) activate(n__fst(X1,X2)) = 4X1 + 4X2 + 4 >= 4X1 + 4X2 + 4 = fst(X1,X2) activate(n__from(X)) = 0 >= 0 = from(X) activate(n__add(X1,X2)) = 4X1 + 4X2 + 4 >= 4X1 + 4X2 + 4 = add(X1,X2) activate(n__len(X)) = 4X + 4 >= 4X + 4 = len(X) activate(X) = 4X >= X = X problem: DPs: TRS: fst(0(),Z) -> nil() fst(s(X),cons(Y,Z)) -> cons(Y,n__fst(activate(X),activate(Z))) from(X) -> cons(X,n__from(s(X))) add(0(),X) -> X add(s(X),Y) -> s(n__add(activate(X),Y)) len(nil()) -> 0() len(cons(X,Z)) -> s(n__len(activate(Z))) fst(X1,X2) -> n__fst(X1,X2) from(X) -> n__from(X) add(X1,X2) -> n__add(X1,X2) len(X) -> n__len(X) activate(n__fst(X1,X2)) -> fst(X1,X2) activate(n__from(X)) -> from(X) activate(n__add(X1,X2)) -> add(X1,X2) activate(n__len(X)) -> len(X) activate(X) -> X Qed