WORST_CASE(?,O(n^1)) * Step 1: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: goal(xs) -> ordered(xs) notEmpty(Cons(x,xs)) -> True() notEmpty(Nil()) -> False() ordered(Cons(x,Nil())) -> True() ordered(Cons(x',Cons(x,xs))) -> ordered[Ite](<(x',x),Cons(x',Cons(x,xs))) ordered(Nil()) -> True() - Weak TRS: <(x,0()) -> False() <(0(),S(y)) -> True() <(S(x),S(y)) -> <(x,y) ordered[Ite](False(),xs) -> False() ordered[Ite](True(),Cons(x',Cons(x,xs))) -> ordered(xs) - Signature: { [1] = ordered(xs) notEmpty(Cons(x,xs)) = [3] x + [3] xs + [15] > [0] = True() notEmpty(Nil()) = [15] > [0] = False() ordered(Cons(x,Nil())) = [1] > [0] = True() ordered(Nil()) = [1] > [0] = True() Following rules are (at-least) weakly oriented: <(x,0()) = [8] >= [0] = False() <(0(),S(y)) = [8] >= [0] = True() <(S(x),S(y)) = [8] >= [8] = <(x,y) ordered(Cons(x',Cons(x,xs))) = [1] >= [14] = ordered[Ite](<(x',x),Cons(x',Cons(x,xs))) ordered[Ite](False(),xs) = [6] >= [0] = False() ordered[Ite](True(),Cons(x',Cons(x,xs))) = [6] >= [1] = ordered(xs) Further, it can be verified that all rules not oriented are covered by the weightgap condition. * Step 2: NaturalMI WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: ordered(Cons(x',Cons(x,xs))) -> ordered[Ite](<(x',x),Cons(x',Cons(x,xs))) - Weak TRS: <(x,0()) -> False() <(0(),S(y)) -> True() <(S(x),S(y)) -> <(x,y) goal(xs) -> ordered(xs) notEmpty(Cons(x,xs)) -> True() notEmpty(Nil()) -> False() ordered(Cons(x,Nil())) -> True() ordered(Nil()) -> True() ordered[Ite](False(),xs) -> False() ordered[Ite](True(),Cons(x',Cons(x,xs))) -> ordered(xs) - Signature: { [4] x + [4] x' + [4] xs + [8] = ordered[Ite](<(x',x),Cons(x',Cons(x,xs))) Following rules are (at-least) weakly oriented: <(x,0()) = [0] >= [0] = False() <(0(),S(y)) = [0] >= [0] = True() <(S(x),S(y)) = [0] >= [0] = <(x,y) goal(xs) = [4] xs + [12] >= [4] xs + [8] = ordered(xs) notEmpty(Cons(x,xs)) = [10] >= [0] = True() notEmpty(Nil()) = [10] >= [0] = False() ordered(Cons(x,Nil())) = [4] x + [20] >= [0] = True() ordered(Nil()) = [16] >= [0] = True() ordered[Ite](False(),xs) = [4] xs + [0] >= [0] = False() ordered[Ite](True(),Cons(x',Cons(x,xs))) = [4] x + [4] x' + [4] xs + [8] >= [4] xs + [8] = ordered(xs) * Step 3: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak TRS: <(x,0()) -> False() <(0(),S(y)) -> True() <(S(x),S(y)) -> <(x,y) goal(xs) -> ordered(xs) notEmpty(Cons(x,xs)) -> True() notEmpty(Nil()) -> False() ordered(Cons(x,Nil())) -> True() ordered(Cons(x',Cons(x,xs))) -> ordered[Ite](<(x',x),Cons(x',Cons(x,xs))) ordered(Nil()) -> True() ordered[Ite](False(),xs) -> False() ordered[Ite](True(),Cons(x',Cons(x,xs))) -> ordered(xs) - Signature: {