YES Problem: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Proof: DP Processor: DPs: active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(from(X)) -> s#(X) active#(from(X)) -> from#(s(X)) active#(from(X)) -> cons#(X,from(s(X))) active#(first(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> first#(active(X1),X2) active#(first(X1,X2)) -> active#(X2) active#(first(X1,X2)) -> first#(X1,active(X2)) active#(s(X)) -> active#(X) active#(s(X)) -> s#(active(X)) active#(cons(X1,X2)) -> active#(X1) active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(from(X)) -> active#(X) active#(from(X)) -> from#(active(X)) first#(mark(X1),X2) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) s#(mark(X)) -> s#(X) cons#(mark(X1),X2) -> cons#(X1,X2) from#(mark(X)) -> from#(X) proper#(first(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(s(X)) -> proper#(X) proper#(s(X)) -> s#(proper(X)) proper#(cons(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(from(X)) -> proper#(X) proper#(from(X)) -> from#(proper(X)) first#(ok(X1),ok(X2)) -> first#(X1,X2) s#(ok(X)) -> s#(X) cons#(ok(X1),ok(X2)) -> cons#(X1,X2) from#(ok(X)) -> from#(X) top#(mark(X)) -> proper#(X) top#(mark(X)) -> top#(proper(X)) top#(ok(X)) -> active#(X) top#(ok(X)) -> top#(active(X)) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) EDG Processor: DPs: active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(from(X)) -> s#(X) active#(from(X)) -> from#(s(X)) active#(from(X)) -> cons#(X,from(s(X))) active#(first(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> first#(active(X1),X2) active#(first(X1,X2)) -> active#(X2) active#(first(X1,X2)) -> first#(X1,active(X2)) active#(s(X)) -> active#(X) active#(s(X)) -> s#(active(X)) active#(cons(X1,X2)) -> active#(X1) active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(from(X)) -> active#(X) active#(from(X)) -> from#(active(X)) first#(mark(X1),X2) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) s#(mark(X)) -> s#(X) cons#(mark(X1),X2) -> cons#(X1,X2) from#(mark(X)) -> from#(X) proper#(first(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(s(X)) -> proper#(X) proper#(s(X)) -> s#(proper(X)) proper#(cons(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(from(X)) -> proper#(X) proper#(from(X)) -> from#(proper(X)) first#(ok(X1),ok(X2)) -> first#(X1,X2) s#(ok(X)) -> s#(X) cons#(ok(X1),ok(X2)) -> cons#(X1,X2) from#(ok(X)) -> from#(X) top#(mark(X)) -> proper#(X) top#(mark(X)) -> top#(proper(X)) top#(ok(X)) -> active#(X) top#(ok(X)) -> top#(active(X)) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) graph: top#(ok(X)) -> top#(active(X)) -> top#(mark(X)) -> proper#(X) top#(ok(X)) -> top#(active(X)) -> top#(mark(X)) -> top#(proper(X)) top#(ok(X)) -> top#(active(X)) -> top#(ok(X)) -> active#(X) top#(ok(X)) -> top#(active(X)) -> top#(ok(X)) -> top#(active(X)) top#(ok(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) top#(ok(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) top#(ok(X)) -> active#(X) -> active#(from(X)) -> s#(X) top#(ok(X)) -> active#(X) -> active#(from(X)) -> from#(s(X)) top#(ok(X)) -> active#(X) -> active#(from(X)) -> cons#(X,from(s(X))) top#(ok(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X1) top#(ok(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(active(X1),X2) top#(ok(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X2) top#(ok(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(X1,active(X2)) top#(ok(X)) -> active#(X) -> active#(s(X)) -> active#(X) top#(ok(X)) -> active#(X) -> active#(s(X)) -> s#(active(X)) top#(ok(X)) -> active#(X) -> active#(cons(X1,X2)) -> active#(X1) top#(ok(X)) -> active#(X) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) top#(ok(X)) -> active#(X) -> active#(from(X)) -> active#(X) top#(ok(X)) -> active#(X) -> active#(from(X)) -> from#(active(X)) top#(mark(X)) -> top#(proper(X)) -> top#(mark(X)) -> proper#(X) top#(mark(X)) -> top#(proper(X)) -> top#(mark(X)) -> top#(proper(X)) top#(mark(X)) -> top#(proper(X)) -> top#(ok(X)) -> active#(X) top#(mark(X)) -> top#(proper(X)) -> top#(ok(X)) -> top#(active(X)) top#(mark(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X2) top#(mark(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X1) top#(mark(X)) -> proper#(X) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) top#(mark(X)) -> proper#(X) -> proper#(s(X)) -> proper#(X) top#(mark(X)) -> proper#(X) -> proper#(s(X)) -> s#(proper(X)) top#(mark(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X2) top#(mark(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X1) top#(mark(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) top#(mark(X)) -> proper#(X) -> proper#(from(X)) -> proper#(X) top#(mark(X)) -> proper#(X) -> proper#(from(X)) -> from#(proper(X)) proper#(from(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X2) proper#(from(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X1) proper#(from(X)) -> proper#(X) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(from(X)) -> proper#(X) -> proper#(s(X)) -> proper#(X) proper#(from(X)) -> proper#(X) -> proper#(s(X)) -> s#(proper(X)) proper#(from(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(from(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(from(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(from(X)) -> proper#(X) -> proper#(from(X)) -> proper#(X) proper#(from(X)) -> proper#(X) -> proper#(from(X)) -> from#(proper(X)) proper#(from(X)) -> from#(proper(X)) -> from#(mark(X)) -> from#(X) proper#(from(X)) -> from#(proper(X)) -> from#(ok(X)) -> from#(X) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(s(X)) -> proper#(X) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(s(X)) -> s#(proper(X)) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(from(X)) -> proper#(X) proper#(cons(X1,X2)) -> proper#(X2) -> proper#(from(X)) -> from#(proper(X)) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(s(X)) -> proper#(X) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(s(X)) -> s#(proper(X)) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(from(X)) -> proper#(X) proper#(cons(X1,X2)) -> proper#(X1) -> proper#(from(X)) -> from#(proper(X)) proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) -> cons#(mark(X1),X2) -> cons#(X1,X2) proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) -> cons#(ok(X1),ok(X2)) -> cons#(X1,X2) proper#(s(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X2) proper#(s(X)) -> proper#(X) -> proper#(first(X1,X2)) -> proper#(X1) proper#(s(X)) -> proper#(X) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(s(X)) -> proper#(X) -> proper#(s(X)) -> proper#(X) proper#(s(X)) -> proper#(X) -> proper#(s(X)) -> s#(proper(X)) proper#(s(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(s(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(s(X)) -> proper#(X) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(s(X)) -> proper#(X) -> proper#(from(X)) -> proper#(X) proper#(s(X)) -> proper#(X) -> proper#(from(X)) -> from#(proper(X)) proper#(s(X)) -> s#(proper(X)) -> s#(mark(X)) -> s#(X) proper#(s(X)) -> s#(proper(X)) -> s#(ok(X)) -> s#(X) proper#(first(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X2) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(first(X1,X2)) -> proper#(X2) -> proper#(s(X)) -> proper#(X) proper#(first(X1,X2)) -> proper#(X2) -> proper#(s(X)) -> s#(proper(X)) proper#(first(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X2) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(first(X1,X2)) -> proper#(X2) -> proper#(from(X)) -> proper#(X) proper#(first(X1,X2)) -> proper#(X2) -> proper#(from(X)) -> from#(proper(X)) proper#(first(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X1) -> proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) proper#(first(X1,X2)) -> proper#(X1) -> proper#(s(X)) -> proper#(X) proper#(first(X1,X2)) -> proper#(X1) -> proper#(s(X)) -> s#(proper(X)) proper#(first(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X1) -> proper#(cons(X1,X2)) -> cons#(proper(X1),proper(X2)) proper#(first(X1,X2)) -> proper#(X1) -> proper#(from(X)) -> proper#(X) proper#(first(X1,X2)) -> proper#(X1) -> proper#(from(X)) -> from#(proper(X)) proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) -> first#(mark(X1),X2) -> first#(X1,X2) proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) -> first#(X1,mark(X2)) -> first#(X1,X2) proper#(first(X1,X2)) -> first#(proper(X1),proper(X2)) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) from#(ok(X)) -> from#(X) -> from#(mark(X)) -> from#(X) from#(ok(X)) -> from#(X) -> from#(ok(X)) -> from#(X) from#(mark(X)) -> from#(X) -> from#(mark(X)) -> from#(X) from#(mark(X)) -> from#(X) -> from#(ok(X)) -> from#(X) s#(ok(X)) -> s#(X) -> s#(mark(X)) -> s#(X) s#(ok(X)) -> s#(X) -> s#(ok(X)) -> s#(X) s#(mark(X)) -> s#(X) -> s#(mark(X)) -> s#(X) s#(mark(X)) -> s#(X) -> s#(ok(X)) -> s#(X) cons#(ok(X1),ok(X2)) -> cons#(X1,X2) -> cons#(mark(X1),X2) -> cons#(X1,X2) cons#(ok(X1),ok(X2)) -> cons#(X1,X2) -> cons#(ok(X1),ok(X2)) -> cons#(X1,X2) cons#(mark(X1),X2) -> cons#(X1,X2) -> cons#(mark(X1),X2) -> cons#(X1,X2) cons#(mark(X1),X2) -> cons#(X1,X2) -> cons#(ok(X1),ok(X2)) -> cons#(X1,X2) first#(ok(X1),ok(X2)) -> first#(X1,X2) -> first#(mark(X1),X2) -> first#(X1,X2) first#(ok(X1),ok(X2)) -> first#(X1,X2) -> first#(X1,mark(X2)) -> first#(X1,X2) first#(ok(X1),ok(X2)) -> first#(X1,X2) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) first#(mark(X1),X2) -> first#(X1,X2) -> first#(mark(X1),X2) -> first#(X1,X2) first#(mark(X1),X2) -> first#(X1,X2) -> first#(X1,mark(X2)) -> first#(X1,X2) first#(mark(X1),X2) -> first#(X1,X2) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) -> first#(mark(X1),X2) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) -> first#(X1,mark(X2)) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) active#(from(X)) -> from#(active(X)) -> from#(mark(X)) -> from#(X) active#(from(X)) -> from#(active(X)) -> from#(ok(X)) -> from#(X) active#(from(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(from(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(from(X)) -> active#(X) -> active#(from(X)) -> s#(X) active#(from(X)) -> active#(X) -> active#(from(X)) -> from#(s(X)) active#(from(X)) -> active#(X) -> active#(from(X)) -> cons#(X,from(s(X))) active#(from(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X1) active#(from(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(active(X1),X2) active#(from(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X2) active#(from(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(X1,active(X2)) active#(from(X)) -> active#(X) -> active#(s(X)) -> active#(X) active#(from(X)) -> active#(X) -> active#(s(X)) -> s#(active(X)) active#(from(X)) -> active#(X) -> active#(cons(X1,X2)) -> active#(X1) active#(from(X)) -> active#(X) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(from(X)) -> active#(X) -> active#(from(X)) -> active#(X) active#(from(X)) -> active#(X) -> active#(from(X)) -> from#(active(X)) active#(cons(X1,X2)) -> cons#(active(X1),X2) -> cons#(mark(X1),X2) -> cons#(X1,X2) active#(cons(X1,X2)) -> cons#(active(X1),X2) -> cons#(ok(X1),ok(X2)) -> cons#(X1,X2) active#(cons(X1,X2)) -> active#(X1) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(cons(X1,X2)) -> active#(X1) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(cons(X1,X2)) -> active#(X1) -> active#(from(X)) -> s#(X) active#(cons(X1,X2)) -> active#(X1) -> active#(from(X)) -> from#(s(X)) active#(cons(X1,X2)) -> active#(X1) -> active#(from(X)) -> cons#(X,from(s(X))) active#(cons(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> active#(X1) active#(cons(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> first#(active(X1),X2) active#(cons(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> active#(X2) active#(cons(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> first#(X1,active(X2)) active#(cons(X1,X2)) -> active#(X1) -> active#(s(X)) -> active#(X) active#(cons(X1,X2)) -> active#(X1) -> active#(s(X)) -> s#(active(X)) active#(cons(X1,X2)) -> active#(X1) -> active#(cons(X1,X2)) -> active#(X1) active#(cons(X1,X2)) -> active#(X1) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(cons(X1,X2)) -> active#(X1) -> active#(from(X)) -> active#(X) active#(cons(X1,X2)) -> active#(X1) -> active#(from(X)) -> from#(active(X)) active#(s(X)) -> s#(active(X)) -> s#(mark(X)) -> s#(X) active#(s(X)) -> s#(active(X)) -> s#(ok(X)) -> s#(X) active#(s(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(s(X)) -> active#(X) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(s(X)) -> active#(X) -> active#(from(X)) -> s#(X) active#(s(X)) -> active#(X) -> active#(from(X)) -> from#(s(X)) active#(s(X)) -> active#(X) -> active#(from(X)) -> cons#(X,from(s(X))) active#(s(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X1) active#(s(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(active(X1),X2) active#(s(X)) -> active#(X) -> active#(first(X1,X2)) -> active#(X2) active#(s(X)) -> active#(X) -> active#(first(X1,X2)) -> first#(X1,active(X2)) active#(s(X)) -> active#(X) -> active#(s(X)) -> active#(X) active#(s(X)) -> active#(X) -> active#(s(X)) -> s#(active(X)) active#(s(X)) -> active#(X) -> active#(cons(X1,X2)) -> active#(X1) active#(s(X)) -> active#(X) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(s(X)) -> active#(X) -> active#(from(X)) -> active#(X) active#(s(X)) -> active#(X) -> active#(from(X)) -> from#(active(X)) active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) -> cons#(ok(X1),ok(X2)) -> cons#(X1,X2) active#(first(s(X),cons(Y,Z))) -> first#(X,Z) -> first#(X1,mark(X2)) -> first#(X1,X2) active#(first(X1,X2)) -> first#(active(X1),X2) -> first#(mark(X1),X2) -> first#(X1,X2) active#(first(X1,X2)) -> first#(active(X1),X2) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) active#(first(X1,X2)) -> first#(X1,active(X2)) -> first#(X1,mark(X2)) -> first#(X1,X2) active#(first(X1,X2)) -> first#(X1,active(X2)) -> first#(ok(X1),ok(X2)) -> first#(X1,X2) active#(first(X1,X2)) -> active#(X2) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(first(X1,X2)) -> active#(X2) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(first(X1,X2)) -> active#(X2) -> active#(from(X)) -> s#(X) active#(first(X1,X2)) -> active#(X2) -> active#(from(X)) -> from#(s(X)) active#(first(X1,X2)) -> active#(X2) -> active#(from(X)) -> cons#(X,from(s(X))) active#(first(X1,X2)) -> active#(X2) -> active#(first(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> active#(X2) -> active#(first(X1,X2)) -> first#(active(X1),X2) active#(first(X1,X2)) -> active#(X2) -> active#(first(X1,X2)) -> active#(X2) active#(first(X1,X2)) -> active#(X2) -> active#(first(X1,X2)) -> first#(X1,active(X2)) active#(first(X1,X2)) -> active#(X2) -> active#(s(X)) -> active#(X) active#(first(X1,X2)) -> active#(X2) -> active#(s(X)) -> s#(active(X)) active#(first(X1,X2)) -> active#(X2) -> active#(cons(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> active#(X2) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(first(X1,X2)) -> active#(X2) -> active#(from(X)) -> active#(X) active#(first(X1,X2)) -> active#(X2) -> active#(from(X)) -> from#(active(X)) active#(first(X1,X2)) -> active#(X1) -> active#(first(s(X),cons(Y,Z))) -> first#(X,Z) active#(first(X1,X2)) -> active#(X1) -> active#(first(s(X),cons(Y,Z))) -> cons#(Y,first(X,Z)) active#(first(X1,X2)) -> active#(X1) -> active#(from(X)) -> s#(X) active#(first(X1,X2)) -> active#(X1) -> active#(from(X)) -> from#(s(X)) active#(first(X1,X2)) -> active#(X1) -> active#(from(X)) -> cons#(X,from(s(X))) active#(first(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> first#(active(X1),X2) active#(first(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> active#(X2) active#(first(X1,X2)) -> active#(X1) -> active#(first(X1,X2)) -> first#(X1,active(X2)) active#(first(X1,X2)) -> active#(X1) -> active#(s(X)) -> active#(X) active#(first(X1,X2)) -> active#(X1) -> active#(s(X)) -> s#(active(X)) active#(first(X1,X2)) -> active#(X1) -> active#(cons(X1,X2)) -> active#(X1) active#(first(X1,X2)) -> active#(X1) -> active#(cons(X1,X2)) -> cons#(active(X1),X2) active#(first(X1,X2)) -> active#(X1) -> active#(from(X)) -> active#(X) active#(first(X1,X2)) -> active#(X1) -> active#(from(X)) -> from#(active(X)) SCC Processor: #sccs: 7 #rules: 22 #arcs: 210/1444 DPs: top#(ok(X)) -> top#(active(X)) top#(mark(X)) -> top#(proper(X)) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [top#](x0) = x0, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0 + 1, [cons](x0, x1) = x0, [s](x0) = x0 + 1, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0 + x1, [0] = 1 orientation: top#(ok(X)) = X >= X = top#(active(X)) top#(mark(X)) = X + 1 >= X = top#(proper(X)) active(first(0(),X)) = X + 1 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 1 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(X1,active(X2)) active(s(X)) = X + 1 >= X + 1 = s(active(X)) active(cons(X1,X2)) = X1 >= X1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) s(mark(X)) = X + 2 >= X + 2 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 2 >= X + 2 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 1 >= X + 1 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 >= X1 + X2 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: top#(ok(X)) -> top#(active(X)) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [top#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0 + 1, [proper](x0) = x0 + 1, [from](x0) = x0 + 1, [cons](x0, x1) = x1, [s](x0) = x0, [mark](x0) = 0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0, [0] = 0 orientation: top#(ok(X)) = X + 2 >= X + 1 = top#(active(X)) active(first(0(),X)) = 0 >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = X >= 0 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= 0 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 >= X1 = first(active(X1),X2) active(first(X1,X2)) = X1 >= X1 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X2 >= X2 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = 0 >= 0 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 >= 0 = mark(first(X1,X2)) s(mark(X)) = 0 >= 0 = mark(s(X)) cons(mark(X1),X2) = X2 >= 0 = mark(cons(X1,X2)) from(mark(X)) = 1 >= 0 = mark(from(X)) proper(first(X1,X2)) = X1 + 1 >= X1 + 1 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X2 + 1 >= X2 + 1 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 2 >= X + 2 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + 1 >= X1 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(cons(X1,X2)) from(ok(X)) = X + 2 >= X + 2 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: proper#(from(X)) -> proper#(X) proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X2) proper#(s(X)) -> proper#(X) proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [proper#](x0) = x0 + 1, [top](x0) = 0, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0 + 1, [cons](x0, x1) = x0 + x1, [s](x0) = x0 + 1, [mark](x0) = 1, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0 + x1, [0] = 1 orientation: proper#(from(X)) = X + 2 >= X + 1 = proper#(X) proper#(cons(X1,X2)) = X1 + X2 + 1 >= X1 + 1 = proper#(X1) proper#(cons(X1,X2)) = X1 + X2 + 1 >= X2 + 1 = proper#(X2) proper#(s(X)) = X + 2 >= X + 1 = proper#(X) proper#(first(X1,X2)) = X1 + X2 + 1 >= X1 + 1 = proper#(X1) proper#(first(X1,X2)) = X1 + X2 + 1 >= X2 + 1 = proper#(X2) active(first(0(),X)) = X + 1 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + Z + 1 >= 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(X1,active(X2)) active(s(X)) = X + 1 >= X + 1 = s(active(X)) active(cons(X1,X2)) = X1 + X2 >= X1 + X2 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X2 + 1 >= 1 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + 1 >= 1 = mark(first(X1,X2)) s(mark(X)) = 2 >= 1 = mark(s(X)) cons(mark(X1),X2) = X2 + 1 >= 1 = mark(cons(X1,X2)) from(mark(X)) = 2 >= 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 + X2 >= X1 + X2 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 1 >= X + 1 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 >= X1 + X2 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 + X2 >= X1 + X2 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: proper#(cons(X1,X2)) -> proper#(X1) proper#(cons(X1,X2)) -> proper#(X2) proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [proper#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = 0, [proper](x0) = x0, [from](x0) = 0, [cons](x0, x1) = x0 + x1 + 1, [s](x0) = 0, [mark](x0) = 0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0 + x1, [0] = 0 orientation: proper#(cons(X1,X2)) = X1 + X2 + 2 >= X1 + 1 = proper#(X1) proper#(cons(X1,X2)) = X1 + X2 + 2 >= X2 + 1 = proper#(X2) proper#(first(X1,X2)) = X1 + X2 + 1 >= X1 + 1 = proper#(X1) proper#(first(X1,X2)) = X1 + X2 + 1 >= X2 + 1 = proper#(X2) active(first(0(),X)) = X >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = Y + Z + 1 >= 0 = mark(cons(Y,first(X,Z))) active(from(X)) = 0 >= 0 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(X1,active(X2)) active(s(X)) = 0 >= 0 = s(active(X)) active(cons(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = cons(active(X1),X2) active(from(X)) = 0 >= 0 = from(active(X)) first(mark(X1),X2) = X2 >= 0 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 >= 0 = mark(first(X1,X2)) s(mark(X)) = 0 >= 0 = mark(s(X)) cons(mark(X1),X2) = X2 + 1 >= 0 = mark(cons(X1,X2)) from(mark(X)) = 0 >= 0 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 >= X1 + X2 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = 0 >= 0 = s(proper(X)) proper(cons(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = cons(proper(X1),proper(X2)) proper(from(X)) = 0 >= 0 = from(proper(X)) first(ok(X1),ok(X2)) = 0 >= 0 = ok(first(X1,X2)) s(ok(X)) = 0 >= 0 = ok(s(X)) cons(ok(X1),ok(X2)) = 1 >= 0 = ok(cons(X1,X2)) from(ok(X)) = 0 >= 0 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: proper#(first(X1,X2)) -> proper#(X1) proper#(first(X1,X2)) -> proper#(X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [proper#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = 1, [cons](x0, x1) = x1, [s](x0) = x0, [mark](x0) = x0, [nil] = 1, [active](x0) = x0, [first](x0, x1) = x0 + x1 + 1, [0] = 0 orientation: proper#(first(X1,X2)) = X1 + X2 + 2 >= X1 + 1 = proper#(X1) proper#(first(X1,X2)) = X1 + X2 + 2 >= X2 + 1 = proper#(X2) active(first(0(),X)) = X + 1 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Z + 1 >= X + Z + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = 1 >= 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X2 >= X2 = cons(active(X1),X2) active(from(X)) = 1 >= 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) s(mark(X)) = X >= X = mark(s(X)) cons(mark(X1),X2) = X2 >= X2 = mark(cons(X1,X2)) from(mark(X)) = 1 >= 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = X >= X = s(proper(X)) proper(cons(X1,X2)) = X2 >= X2 = cons(proper(X1),proper(X2)) proper(from(X)) = 1 >= 1 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X >= X = ok(s(X)) cons(ok(X1),ok(X2)) = X2 >= X2 = ok(cons(X1,X2)) from(ok(X)) = 1 >= 1 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: active#(from(X)) -> active#(X) active#(cons(X1,X2)) -> active#(X1) active#(s(X)) -> active#(X) active#(first(X1,X2)) -> active#(X2) active#(first(X1,X2)) -> active#(X1) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [active#](x0) = x0 + 1, [top](x0) = 0, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0 + 1, [cons](x0, x1) = x0, [s](x0) = x0, [mark](x0) = 0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0 + x1 + 1, [0] = 0 orientation: active#(from(X)) = X + 2 >= X + 1 = active#(X) active#(cons(X1,X2)) = X1 + 1 >= X1 + 1 = active#(X1) active#(s(X)) = X + 1 >= X + 1 = active#(X) active#(first(X1,X2)) = X1 + X2 + 2 >= X2 + 1 = active#(X2) active#(first(X1,X2)) = X1 + X2 + 2 >= X1 + 1 = active#(X1) active(first(0(),X)) = X + 1 >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 1 >= 0 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= 0 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X1 >= X1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X2 + 1 >= 0 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + 1 >= 0 = mark(first(X1,X2)) s(mark(X)) = 0 >= 0 = mark(s(X)) cons(mark(X1),X2) = 0 >= 0 = mark(cons(X1,X2)) from(mark(X)) = 1 >= 0 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X >= X = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 1 >= X + 1 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X >= X = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: active#(cons(X1,X2)) -> active#(X1) active#(s(X)) -> active#(X) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [active#](x0) = x0 + 1, [top](x0) = 0, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = 0, [cons](x0, x1) = x0 + 1, [s](x0) = x0 + 1, [mark](x0) = 0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = 0, [0] = 0 orientation: active#(cons(X1,X2)) = X1 + 2 >= X1 + 1 = active#(X1) active#(s(X)) = X + 2 >= X + 1 = active#(X) active(first(0(),X)) = 0 >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = 0 >= 0 = mark(cons(Y,first(X,Z))) active(from(X)) = 0 >= 0 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = 0 >= 0 = first(active(X1),X2) active(first(X1,X2)) = 0 >= 0 = first(X1,active(X2)) active(s(X)) = X + 1 >= X + 1 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = 0 >= 0 = from(active(X)) first(mark(X1),X2) = 0 >= 0 = mark(first(X1,X2)) first(X1,mark(X2)) = 0 >= 0 = mark(first(X1,X2)) s(mark(X)) = 1 >= 0 = mark(s(X)) cons(mark(X1),X2) = 1 >= 0 = mark(cons(X1,X2)) from(mark(X)) = 0 >= 0 = mark(from(X)) proper(first(X1,X2)) = 0 >= 0 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(proper(X1),proper(X2)) proper(from(X)) = 0 >= 0 = from(proper(X)) first(ok(X1),ok(X2)) = 0 >= 0 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 + 1 >= X1 + 1 = ok(cons(X1,X2)) from(ok(X)) = 0 >= 0 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: first#(ok(X1),ok(X2)) -> first#(X1,X2) first#(X1,mark(X2)) -> first#(X1,X2) first#(mark(X1),X2) -> first#(X1,X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [first#](x0, x1) = x1 + 1, [top](x0) = 0, [ok](x0) = x0 + 1, [proper](x0) = x0 + 1, [from](x0) = x0, [cons](x0, x1) = x0 + 1, [s](x0) = x0, [mark](x0) = x0, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x1, [0] = 1 orientation: first#(ok(X1),ok(X2)) = X2 + 2 >= X2 + 1 = first#(X1,X2) first#(X1,mark(X2)) = X2 + 1 >= X2 + 1 = first#(X1,X2) first#(mark(X1),X2) = X2 + 1 >= X2 + 1 = first#(X1,X2) active(first(0(),X)) = X + 1 >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = Y + 2 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X2 + 1 >= X2 = first(active(X1),X2) active(first(X1,X2)) = X2 + 1 >= X2 + 1 = first(X1,active(X2)) active(s(X)) = X + 1 >= X + 1 = s(active(X)) active(cons(X1,X2)) = X1 + 2 >= X1 + 2 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X2 >= X2 = mark(first(X1,X2)) first(X1,mark(X2)) = X2 >= X2 = mark(first(X1,X2)) s(mark(X)) = X >= X = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X >= X = mark(from(X)) proper(first(X1,X2)) = X2 + 1 >= X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 2 >= 2 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 + 2 >= X1 + 2 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 1 >= X + 1 = from(proper(X)) first(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 + 2 >= X1 + 2 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: first#(X1,mark(X2)) -> first#(X1,X2) first#(mark(X1),X2) -> first#(X1,X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [first#](x0, x1) = x1, [top](x0) = 0, [ok](x0) = 0, [proper](x0) = 0, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x0 + x1, [0] = 0 orientation: first#(X1,mark(X2)) = X2 + 1 >= X2 = first#(X1,X2) first#(mark(X1),X2) = X2 >= X2 = first#(X1,X2) active(first(0(),X)) = X + 1 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 1 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(X1,active(X2)) active(s(X)) = X + 1 >= X + 1 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = mark(first(X1,X2)) s(mark(X)) = X + 1 >= X + 1 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 1 >= X + 1 = mark(from(X)) proper(first(X1,X2)) = 0 >= 0 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = 0 >= 0 = s(proper(X)) proper(cons(X1,X2)) = 0 >= 0 = cons(proper(X1),proper(X2)) proper(from(X)) = 0 >= 0 = from(proper(X)) first(ok(X1),ok(X2)) = 0 >= 0 = ok(first(X1,X2)) s(ok(X)) = 0 >= 0 = ok(s(X)) cons(ok(X1),ok(X2)) = 0 >= 0 = ok(cons(X1,X2)) from(ok(X)) = 0 >= 0 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: first#(mark(X1),X2) -> first#(X1,X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [first#](x0, x1) = x0 + 1, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0 + 1, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x0 + x1 + 1, [0] = 0 orientation: first#(mark(X1),X2) = X1 + 2 >= X1 + 1 = first#(X1,X2) active(first(0(),X)) = X + 2 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 3 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(X1,active(X2)) active(s(X)) = X + 2 >= X + 2 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) s(mark(X)) = X + 2 >= X + 2 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 1 >= X + 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X >= X = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X >= X = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: s#(ok(X)) -> s#(X) s#(mark(X)) -> s#(X) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [s#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0 + 1, [proper](x0) = 1, [from](x0) = x0, [cons](x0, x1) = x1, [s](x0) = x0, [mark](x0) = x0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x1, [0] = 0 orientation: s#(ok(X)) = X + 2 >= X + 1 = s#(X) s#(mark(X)) = X + 1 >= X + 1 = s#(X) active(first(0(),X)) = X >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = Z >= Z = mark(cons(Y,first(X,Z))) active(from(X)) = X >= X = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X2 >= X2 = first(active(X1),X2) active(first(X1,X2)) = X2 >= X2 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X2 >= X2 = cons(active(X1),X2) active(from(X)) = X >= X = from(active(X)) first(mark(X1),X2) = X2 >= X2 = mark(first(X1,X2)) first(X1,mark(X2)) = X2 >= X2 = mark(first(X1,X2)) s(mark(X)) = X >= X = mark(s(X)) cons(mark(X1),X2) = X2 >= X2 = mark(cons(X1,X2)) from(mark(X)) = X >= X = mark(from(X)) proper(first(X1,X2)) = 1 >= 1 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = 1 >= 1 = s(proper(X)) proper(cons(X1,X2)) = 1 >= 1 = cons(proper(X1),proper(X2)) proper(from(X)) = 1 >= 1 = from(proper(X)) first(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: s#(mark(X)) -> s#(X) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [s#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0 + 1, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x0 + x1 + 1, [0] = 1 orientation: s#(mark(X)) = X + 2 >= X + 1 = s#(X) active(first(0(),X)) = X + 3 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 3 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(X1,active(X2)) active(s(X)) = X + 2 >= X + 2 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) s(mark(X)) = X + 2 >= X + 2 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 1 >= X + 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X >= X = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X >= X = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: cons#(ok(X1),ok(X2)) -> cons#(X1,X2) cons#(mark(X1),X2) -> cons#(X1,X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [cons#](x0, x1) = x1 + 1, [top](x0) = 0, [ok](x0) = x0 + 1, [proper](x0) = x0 + 1, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0, [mark](x0) = 0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x0 + 1, [0] = 0 orientation: cons#(ok(X1),ok(X2)) = X2 + 2 >= X2 + 1 = cons#(X1,X2) cons#(mark(X1),X2) = X2 + 1 >= X2 + 1 = cons#(X1,X2) active(first(0(),X)) = 1 >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + 1 >= 0 = mark(cons(Y,first(X,Z))) active(from(X)) = X >= 0 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + 1 >= X1 + 1 = first(active(X1),X2) active(first(X1,X2)) = X1 + 1 >= X1 + 1 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X1 >= X1 = cons(active(X1),X2) active(from(X)) = X >= X = from(active(X)) first(mark(X1),X2) = 1 >= 0 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + 1 >= 0 = mark(first(X1,X2)) s(mark(X)) = 0 >= 0 = mark(s(X)) cons(mark(X1),X2) = 0 >= 0 = mark(cons(X1,X2)) from(mark(X)) = 0 >= 0 = mark(from(X)) proper(first(X1,X2)) = X1 + 2 >= X1 + 2 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(proper(X1),proper(X2)) proper(from(X)) = X + 1 >= X + 1 = from(proper(X)) first(ok(X1),ok(X2)) = X1 + 2 >= X1 + 2 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 + 1 >= X1 + 1 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 0 >= 0 = top(proper(X)) top(ok(X)) = 0 >= 0 = top(active(X)) problem: DPs: cons#(mark(X1),X2) -> cons#(X1,X2) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [cons#](x0, x1) = x0 + 1, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0 + 1, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x0 + x1 + 1, [0] = 0 orientation: cons#(mark(X1),X2) = X1 + 2 >= X1 + 1 = cons#(X1,X2) active(first(0(),X)) = X + 2 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 3 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(X1,active(X2)) active(s(X)) = X + 2 >= X + 2 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) s(mark(X)) = X + 2 >= X + 2 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 1 >= X + 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 0 >= 0 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X >= X = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X >= X = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed DPs: from#(ok(X)) -> from#(X) from#(mark(X)) -> from#(X) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [from#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0 + 1, [proper](x0) = 1, [from](x0) = x0, [cons](x0, x1) = x1, [s](x0) = x0, [mark](x0) = x0, [nil] = 0, [active](x0) = x0, [first](x0, x1) = x1, [0] = 0 orientation: from#(ok(X)) = X + 2 >= X + 1 = from#(X) from#(mark(X)) = X + 1 >= X + 1 = from#(X) active(first(0(),X)) = X >= 0 = mark(nil()) active(first(s(X),cons(Y,Z))) = Z >= Z = mark(cons(Y,first(X,Z))) active(from(X)) = X >= X = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X2 >= X2 = first(active(X1),X2) active(first(X1,X2)) = X2 >= X2 = first(X1,active(X2)) active(s(X)) = X >= X = s(active(X)) active(cons(X1,X2)) = X2 >= X2 = cons(active(X1),X2) active(from(X)) = X >= X = from(active(X)) first(mark(X1),X2) = X2 >= X2 = mark(first(X1,X2)) first(X1,mark(X2)) = X2 >= X2 = mark(first(X1,X2)) s(mark(X)) = X >= X = mark(s(X)) cons(mark(X1),X2) = X2 >= X2 = mark(cons(X1,X2)) from(mark(X)) = X >= X = mark(from(X)) proper(first(X1,X2)) = 1 >= 1 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 1 >= 1 = ok(nil()) proper(s(X)) = 1 >= 1 = s(proper(X)) proper(cons(X1,X2)) = 1 >= 1 = cons(proper(X1),proper(X2)) proper(from(X)) = 1 >= 1 = from(proper(X)) first(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X2 + 1 >= X2 + 1 = ok(cons(X1,X2)) from(ok(X)) = X + 1 >= X + 1 = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: from#(mark(X)) -> from#(X) TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Matrix Interpretation Processor: dimension: 1 interpretation: [from#](x0) = x0 + 1, [top](x0) = 1, [ok](x0) = x0, [proper](x0) = x0, [from](x0) = x0, [cons](x0, x1) = x0, [s](x0) = x0 + 1, [mark](x0) = x0 + 1, [nil] = 0, [active](x0) = x0 + 1, [first](x0, x1) = x0 + x1 + 1, [0] = 1 orientation: from#(mark(X)) = X + 2 >= X + 1 = from#(X) active(first(0(),X)) = X + 3 >= 1 = mark(nil()) active(first(s(X),cons(Y,Z))) = X + Y + 3 >= Y + 1 = mark(cons(Y,first(X,Z))) active(from(X)) = X + 1 >= X + 1 = mark(cons(X,from(s(X)))) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(active(X1),X2) active(first(X1,X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = first(X1,active(X2)) active(s(X)) = X + 2 >= X + 2 = s(active(X)) active(cons(X1,X2)) = X1 + 1 >= X1 + 1 = cons(active(X1),X2) active(from(X)) = X + 1 >= X + 1 = from(active(X)) first(mark(X1),X2) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) first(X1,mark(X2)) = X1 + X2 + 2 >= X1 + X2 + 2 = mark(first(X1,X2)) s(mark(X)) = X + 2 >= X + 2 = mark(s(X)) cons(mark(X1),X2) = X1 + 1 >= X1 + 1 = mark(cons(X1,X2)) from(mark(X)) = X + 1 >= X + 1 = mark(from(X)) proper(first(X1,X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = first(proper(X1),proper(X2)) proper(0()) = 1 >= 1 = ok(0()) proper(nil()) = 0 >= 0 = ok(nil()) proper(s(X)) = X + 1 >= X + 1 = s(proper(X)) proper(cons(X1,X2)) = X1 >= X1 = cons(proper(X1),proper(X2)) proper(from(X)) = X >= X = from(proper(X)) first(ok(X1),ok(X2)) = X1 + X2 + 1 >= X1 + X2 + 1 = ok(first(X1,X2)) s(ok(X)) = X + 1 >= X + 1 = ok(s(X)) cons(ok(X1),ok(X2)) = X1 >= X1 = ok(cons(X1,X2)) from(ok(X)) = X >= X = ok(from(X)) top(mark(X)) = 1 >= 1 = top(proper(X)) top(ok(X)) = 1 >= 1 = top(active(X)) problem: DPs: TRS: active(first(0(),X)) -> mark(nil()) active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) active(from(X)) -> mark(cons(X,from(s(X)))) active(first(X1,X2)) -> first(active(X1),X2) active(first(X1,X2)) -> first(X1,active(X2)) active(s(X)) -> s(active(X)) active(cons(X1,X2)) -> cons(active(X1),X2) active(from(X)) -> from(active(X)) first(mark(X1),X2) -> mark(first(X1,X2)) first(X1,mark(X2)) -> mark(first(X1,X2)) s(mark(X)) -> mark(s(X)) cons(mark(X1),X2) -> mark(cons(X1,X2)) from(mark(X)) -> mark(from(X)) proper(first(X1,X2)) -> first(proper(X1),proper(X2)) proper(0()) -> ok(0()) proper(nil()) -> ok(nil()) proper(s(X)) -> s(proper(X)) proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) proper(from(X)) -> from(proper(X)) first(ok(X1),ok(X2)) -> ok(first(X1,X2)) s(ok(X)) -> ok(s(X)) cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) from(ok(X)) -> ok(from(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Qed