We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , notEmpty(Nil()) -> False()
  , notEmpty(Cons(x, xs)) -> True() }
Weak Trs:
  { part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We add the following dependency tuples:

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
        >^#(x', x))
  , app^#(Nil(), ys) -> c_3()
  , app^#(Cons(x, xs), ys) -> c_4(app^#(xs, ys))
  , quicksort^#(Nil()) -> c_5()
  , quicksort^#(Cons(x, Nil())) -> c_6()
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_7(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_8(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs))
  , notEmpty^#(Nil()) -> c_9()
  , notEmpty^#(Cons(x, xs)) -> c_10() }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_13(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
         <^#(x', x))
  , >^#(S(x), S(y)) -> c_15(>^#(x, y))
  , >^#(S(x), 0()) -> c_16()
  , >^#(0(), y) -> c_17()
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_11(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_12(part^#(x', xs, xs1, xs2))
  , <^#(x, 0()) -> c_18()
  , <^#(S(x), S(y)) -> c_19(<^#(x, y))
  , <^#(0(), S(y)) -> c_20() }

and mark the set of starting terms.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
        >^#(x', x))
  , app^#(Nil(), ys) -> c_3()
  , app^#(Cons(x, xs), ys) -> c_4(app^#(xs, ys))
  , quicksort^#(Nil()) -> c_5()
  , quicksort^#(Cons(x, Nil())) -> c_6()
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_7(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_8(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs))
  , notEmpty^#(Nil()) -> c_9()
  , notEmpty^#(Cons(x, xs)) -> c_10() }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_13(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
         <^#(x', x))
  , >^#(S(x), S(y)) -> c_15(>^#(x, y))
  , >^#(S(x), 0()) -> c_16()
  , >^#(0(), y) -> c_17()
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_11(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_12(part^#(x', xs, xs1, xs2))
  , <^#(x, 0()) -> c_18()
  , <^#(S(x), S(y)) -> c_19(<^#(x, y))
  , <^#(0(), S(y)) -> c_20() }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True()
  , notEmpty(Nil()) -> False()
  , notEmpty(Cons(x, xs)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We estimate the number of application of {3,5,6,9,10} by
applications of Pre({3,5,6,9,10}) = {1,4,8}. Here rules are labeled
as follows:

  DPs:
    { 1: part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
    , 2: part^#(x', Cons(x, xs), xs1, xs2) ->
         c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
             >^#(x', x))
    , 3: app^#(Nil(), ys) -> c_3()
    , 4: app^#(Cons(x, xs), ys) -> c_4(app^#(xs, ys))
    , 5: quicksort^#(Nil()) -> c_5()
    , 6: quicksort^#(Cons(x, Nil())) -> c_6()
    , 7: quicksort^#(Cons(x, Cons(x', xs))) ->
         c_7(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
             part^#(x, Cons(x', xs), Nil(), Nil()))
    , 8: qs^#(x', Cons(x, xs)) ->
         c_8(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
             quicksort^#(xs))
    , 9: notEmpty^#(Nil()) -> c_9()
    , 10: notEmpty^#(Cons(x, xs)) -> c_10()
    , 11: part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
          c_13(part^#(x', xs, Cons(x, xs1), xs2))
    , 12: part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
          c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
               <^#(x', x))
    , 13: >^#(S(x), S(y)) -> c_15(>^#(x, y))
    , 14: >^#(S(x), 0()) -> c_16()
    , 15: >^#(0(), y) -> c_17()
    , 16: part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
          c_11(part^#(x', xs, xs1, Cons(x, xs2)))
    , 17: part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
          c_12(part^#(x', xs, xs1, xs2))
    , 18: <^#(x, 0()) -> c_18()
    , 19: <^#(S(x), S(y)) -> c_19(<^#(x, y))
    , 20: <^#(0(), S(y)) -> c_20() }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
        >^#(x', x))
  , app^#(Cons(x, xs), ys) -> c_4(app^#(xs, ys))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_7(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_8(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }
Weak DPs:
  { app^#(Nil(), ys) -> c_3()
  , part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_13(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
         <^#(x', x))
  , >^#(S(x), S(y)) -> c_15(>^#(x, y))
  , >^#(S(x), 0()) -> c_16()
  , >^#(0(), y) -> c_17()
  , quicksort^#(Nil()) -> c_5()
  , quicksort^#(Cons(x, Nil())) -> c_6()
  , notEmpty^#(Nil()) -> c_9()
  , notEmpty^#(Cons(x, xs)) -> c_10()
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_11(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_12(part^#(x', xs, xs1, xs2))
  , <^#(x, 0()) -> c_18()
  , <^#(S(x), S(y)) -> c_19(<^#(x, y))
  , <^#(0(), S(y)) -> c_20() }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True()
  , notEmpty(Nil()) -> False()
  , notEmpty(Cons(x, xs)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ app^#(Nil(), ys) -> c_3()
, >^#(S(x), S(y)) -> c_15(>^#(x, y))
, >^#(S(x), 0()) -> c_16()
, >^#(0(), y) -> c_17()
, quicksort^#(Nil()) -> c_5()
, quicksort^#(Cons(x, Nil())) -> c_6()
, notEmpty^#(Nil()) -> c_9()
, notEmpty^#(Cons(x, xs)) -> c_10()
, <^#(x, 0()) -> c_18()
, <^#(S(x), S(y)) -> c_19(<^#(x, y))
, <^#(0(), S(y)) -> c_20() }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
        >^#(x', x))
  , app^#(Cons(x, xs), ys) -> c_4(app^#(xs, ys))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_7(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_8(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_13(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
         <^#(x', x))
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_11(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_12(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True()
  , notEmpty(Nil()) -> False()
  , notEmpty(Cons(x, xs)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

Due to missing edges in the dependency-graph, the right-hand sides
of following rules could be simplified:

  { part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2),
        >^#(x', x))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_14(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2),
         <^#(x', x)) }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True()
  , notEmpty(Nil()) -> False()
  , notEmpty(Cons(x, xs)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
    , part(x', Cons(x, xs), xs1, xs2) ->
      part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
    , app(Nil(), ys) -> ys
    , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
    , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, Cons(x, xs2))
    , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , quicksort(Nil()) -> Nil()
    , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
    , quicksort(Cons(x, Cons(x', xs))) ->
      qs(x, part(x, Cons(x', xs), Nil(), Nil()))
    , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, Cons(x, xs1), xs2)
    , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
    , qs(x', Cons(x, xs)) ->
      app(Cons(x, Nil()), Cons(x', quicksort(xs)))
    , >(S(x), S(y)) -> >(x, y)
    , >(S(x), 0()) -> True()
    , >(0(), y) -> False()
    , <(x, 0()) -> False()
    , <(S(x), S(y)) -> <(x, y)
    , <(0(), S(y)) -> True() }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^2)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We decompose the input problem according to the dependency graph
into the upper component

  { quicksort^#(Cons(x, Cons(x', xs))) ->
    c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }

and lower component

  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
  , part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }

Further, following extension rules are added to the lower
component.

{ quicksort^#(Cons(x, Cons(x', xs))) ->
  part^#(x, Cons(x', xs), Nil(), Nil())
, quicksort^#(Cons(x, Cons(x', xs))) ->
  qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
, qs^#(x', Cons(x, xs)) ->
  app^#(Cons(x, Nil()), Cons(x', quicksort(xs)))
, qs^#(x', Cons(x, xs)) -> quicksort^#(xs) }

TcT solves the upper component with certificate YES(O(1),O(n^1)).

Sub-proof:
----------
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(n^1)).
  
  Strict DPs:
    { quicksort^#(Cons(x, Cons(x', xs))) ->
      c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
          part^#(x, Cons(x', xs), Nil(), Nil()))
    , qs^#(x', Cons(x, xs)) ->
      c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
          quicksort^#(xs)) }
  Weak Trs:
    { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
    , part(x', Cons(x, xs), xs1, xs2) ->
      part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
    , app(Nil(), ys) -> ys
    , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
    , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, Cons(x, xs2))
    , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , quicksort(Nil()) -> Nil()
    , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
    , quicksort(Cons(x, Cons(x', xs))) ->
      qs(x, part(x, Cons(x', xs), Nil(), Nil()))
    , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, Cons(x, xs1), xs2)
    , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
    , qs(x', Cons(x, xs)) ->
      app(Cons(x, Nil()), Cons(x', quicksort(xs)))
    , >(S(x), S(y)) -> >(x, y)
    , >(S(x), 0()) -> True()
    , >(0(), y) -> False()
    , <(x, 0()) -> False()
    , <(S(x), S(y)) -> <(x, y)
    , <(0(), S(y)) -> True() }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(n^1))
  
  We use the processor 'matrix interpretation of dimension 1' to
  orient following rules strictly.
  
  DPs:
    { 1: quicksort^#(Cons(x, Cons(x', xs))) ->
         c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
             part^#(x, Cons(x', xs), Nil(), Nil())) }
  Trs:
    { part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
    , quicksort(Cons(x, Cons(x', xs))) ->
      qs(x, part(x, Cons(x', xs), Nil(), Nil()))
    , qs(x', Cons(x, xs)) ->
      app(Cons(x, Nil()), Cons(x', quicksort(xs))) }
  
  Sub-proof:
  ----------
    The following argument positions are usable:
      Uargs(c_4) = {1}, Uargs(c_5) = {1, 2}
    
    TcT has computed the following constructor-based matrix
    interpretation satisfying not(EDA).
    
                      [part](x1, x2, x3, x4) = [1] x2 + [1] x3 + [1] x4 + [0]         
                                                                                      
                                      [True] = [0]                                    
                                                                                      
                               [app](x1, x2) = [1] x1 + [1] x2 + [0]                  
                                                                                      
                                       [Nil] = [0]                                    
                                                                                      
      [part[False][Ite]](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [1] x5 + [0]         
                                                                                      
                             [quicksort](x1) = [4] x1 + [0]                           
                                                                                      
             [part[Ite]](x1, x2, x3, x4, x5) = [1] x1 + [1] x3 + [1] x4 + [1] x5 + [0]
                                                                                      
                                [qs](x1, x2) = [4] x2 + [0]                           
                                                                                      
                              [>](x1, x2) = [0]                                    
                                                                                      
                              [<](x1, x2) = [0]                                    
                                                                                      
                                     [S](x1) = [1] x1 + [4]                           
                                                                                      
                              [Cons](x1, x2) = [1] x2 + [1]                           
                                                                                      
                                         [0] = [4]                                    
                                                                                      
                                     [False] = [0]                                    
                                                                                      
                    [part^#](x1, x2, x3, x4) = [1]                                    
                                                                                      
                             [app^#](x1, x2) = [0]                                    
                                                                                      
                           [quicksort^#](x1) = [3] x1 + [3]                           
                                                                                      
                              [qs^#](x1, x2) = [3] x2 + [1]                           
                                                                                      
                               [c_4](x1, x2) = [1] x1 + [4] x2 + [0]                  
                                                                                      
                               [c_5](x1, x2) = [3] x1 + [1] x2 + [1]                  
    
    The order satisfies the following ordering constraints:
    
                                  [part(x, Nil(), xs1, xs2)] =  [1] xs1 + [1] xs2 + [0]                                   
                                                             >= [1] xs1 + [1] xs2 + [0]                                   
                                                             =  [app(xs1, xs2)]                                           
                                                                                                                          
                           [part(x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             =  [part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)]       
                                                                                                                          
                                            [app(Nil(), ys)] =  [1] ys + [0]                                              
                                                             >= [1] ys + [0]                                              
                                                             =  [ys]                                                      
                                                                                                                          
                                      [app(Cons(x, xs), ys)] =  [1] xs + [1] ys + [1]                                     
                                                             >= [1] xs + [1] ys + [1]                                     
                                                             =  [Cons(x, app(xs, ys))]                                    
                                                                                                                          
       [part[False][Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             =  [part(x', xs, xs1, Cons(x, xs2))]                         
                                                                                                                          
      [part[False][Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             >  [1] xs + [1] xs1 + [1] xs2 + [0]                          
                                                             =  [part(x', xs, xs1, xs2)]                                  
                                                                                                                          
                                          [quicksort(Nil())] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [Nil()]                                                   
                                                                                                                          
                                 [quicksort(Cons(x, Nil()))] =  [4]                                                       
                                                             >  [1]                                                       
                                                             =  [Cons(x, Nil())]                                          
                                                                                                                          
                          [quicksort(Cons(x, Cons(x', xs)))] =  [4] xs + [8]                                              
                                                             >  [4] xs + [4]                                              
                                                             =  [qs(x, part(x, Cons(x', xs), Nil(), Nil()))]              
                                                                                                                          
              [part[Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             =  [part(x', xs, Cons(x, xs1), xs2)]                         
                                                                                                                          
             [part[Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                          
                                                             =  [part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)]
                                                                                                                          
                                       [qs(x', Cons(x, xs))] =  [4] xs + [4]                                              
                                                             >  [4] xs + [2]                                              
                                                             =  [app(Cons(x, Nil()), Cons(x', quicksort(xs)))]            
                                                                                                                          
                                          [>(S(x), S(y))] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [>(x, y)]                                              
                                                                                                                          
                                           [>(S(x), 0())] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [True()]                                                  
                                                                                                                          
                                              [>(0(), y)] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [False()]                                                 
                                                                                                                          
                                              [<(x, 0())] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [False()]                                                 
                                                                                                                          
                                          [<(S(x), S(y))] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [<(x, y)]                                              
                                                                                                                          
                                           [<(0(), S(y))] =  [0]                                                       
                                                             >= [0]                                                       
                                                             =  [True()]                                                  
                                                                                                                          
                        [quicksort^#(Cons(x, Cons(x', xs)))] =  [3] xs + [9]                                              
                                                             >  [3] xs + [8]                                              
                                                             =  [c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),        
                                                                     part^#(x, Cons(x', xs), Nil(), Nil()))]              
                                                                                                                          
                                     [qs^#(x', Cons(x, xs))] =  [3] xs + [4]                                              
                                                             >= [3] xs + [4]                                              
                                                             =  [c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),      
                                                                     quicksort^#(xs))]                                    
                                                                                                                          
  
  We return to the main proof. Consider the set of all dependency
  pairs
  
  :
    { 1: quicksort^#(Cons(x, Cons(x', xs))) ->
         c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
             part^#(x, Cons(x', xs), Nil(), Nil()))
    , 2: qs^#(x', Cons(x, xs)) ->
         c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
             quicksort^#(xs)) }
  
  Processor 'matrix interpretation of dimension 1' induces the
  complexity certificate YES(?,O(n^1)) on application of dependency
  pairs {1}. These cover all (indirect) predecessors of dependency
  pairs {1,2}, their number of application is equally bounded. The
  dependency pairs are shifted into the weak component.
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Weak DPs:
    { quicksort^#(Cons(x, Cons(x', xs))) ->
      c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
          part^#(x, Cons(x', xs), Nil(), Nil()))
    , qs^#(x', Cons(x, xs)) ->
      c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
          quicksort^#(xs)) }
  Weak Trs:
    { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
    , part(x', Cons(x, xs), xs1, xs2) ->
      part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
    , app(Nil(), ys) -> ys
    , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
    , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, Cons(x, xs2))
    , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , quicksort(Nil()) -> Nil()
    , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
    , quicksort(Cons(x, Cons(x', xs))) ->
      qs(x, part(x, Cons(x', xs), Nil(), Nil()))
    , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, Cons(x, xs1), xs2)
    , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
    , qs(x', Cons(x, xs)) ->
      app(Cons(x, Nil()), Cons(x', quicksort(xs)))
    , >(S(x), S(y)) -> >(x, y)
    , >(S(x), 0()) -> True()
    , >(0(), y) -> False()
    , <(x, 0()) -> False()
    , <(S(x), S(y)) -> <(x, y)
    , <(0(), S(y)) -> True() }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  The following weak DPs constitute a sub-graph of the DG that is
  closed under successors. The DPs are removed.
  
  { quicksort^#(Cons(x, Cons(x', xs))) ->
    c_4(qs^#(x, part(x, Cons(x', xs), Nil(), Nil())),
        part^#(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    c_5(app^#(Cons(x, Nil()), Cons(x', quicksort(xs))),
        quicksort^#(xs)) }
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Weak Trs:
    { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
    , part(x', Cons(x, xs), xs1, xs2) ->
      part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
    , app(Nil(), ys) -> ys
    , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
    , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, Cons(x, xs2))
    , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , quicksort(Nil()) -> Nil()
    , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
    , quicksort(Cons(x, Cons(x', xs))) ->
      qs(x, part(x, Cons(x', xs), Nil(), Nil()))
    , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, Cons(x, xs1), xs2)
    , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
    , qs(x', Cons(x, xs)) ->
      app(Cons(x, Nil()), Cons(x', quicksort(xs)))
    , >(S(x), S(y)) -> >(x, y)
    , >(S(x), 0()) -> True()
    , >(0(), y) -> False()
    , <(x, 0()) -> False()
    , <(S(x), S(y)) -> <(x, y)
    , <(0(), S(y)) -> True() }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  No rule is usable, rules are removed from the input problem.
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Rules: Empty
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  Empty rules are trivially bounded

We return to the main proof.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    part^#(x, Cons(x', xs), Nil(), Nil())
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    app^#(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We use the processor 'matrix interpretation of dimension 1' to
orient following rules strictly.

DPs:
  { 1: part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , 3: app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
  , 6: quicksort^#(Cons(x, Cons(x', xs))) ->
       part^#(x, Cons(x', xs), Nil(), Nil())
  , 8: qs^#(x', Cons(x, xs)) ->
       app^#(Cons(x, Nil()), Cons(x', quicksort(xs))) }
Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , app(Nil(), ys) -> ys
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(0(), S(y)) -> True() }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_2) = {1}, Uargs(c_3) = {1},
    Uargs(c_6) = {1}, Uargs(c_7) = {1}, Uargs(c_8) = {1},
    Uargs(c_9) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
                      [part](x1, x2, x3, x4) = [1] x2 + [1] x3 + [1] x4 + [0]
                                                                             
                                      [True] = [1]                           
                                                                             
                               [app](x1, x2) = [1] x1 + [1] x2 + [0]         
                                                                             
                                       [Nil] = [1]                           
                                                                             
      [part[False][Ite]](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [1] x5 + [0]
                                                                             
                             [quicksort](x1) = [0]                           
                                                                             
             [part[Ite]](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [1] x5 + [0]
                                                                             
                                [qs](x1, x2) = [0]                           
                                                                             
                              [>](x1, x2) = [1]                           
                                                                             
                              [<](x1, x2) = [4]                           
                                                                             
                                     [S](x1) = [1] x1 + [4]                  
                                                                             
                              [Cons](x1, x2) = [1] x2 + [1]                  
                                                                             
                                         [0] = [6]                           
                                                                             
                                     [False] = [0]                           
                                                                             
                    [part^#](x1, x2, x3, x4) = [1] x2 + [1] x3 + [4]         
                                                                             
                             [app^#](x1, x2) = [1] x1 + [4]                  
                                                                             
           [part[Ite]^#](x1, x2, x3, x4, x5) = [1] x1 + [1] x3 + [1] x4 + [3]
                                                                             
                           [quicksort^#](x1) = [1] x1 + [7]                  
                                                                             
                              [qs^#](x1, x2) = [1] x2 + [6]                  
                                                                             
    [part[False][Ite]^#](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [3]         
                                                                             
                                   [c_1](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_2](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_3](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_6](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_7](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_8](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_9](x1) = [1] x1 + [0]                  
  
  The order satisfies the following ordering constraints:
  
                                  [part(x, Nil(), xs1, xs2)] =  [1] xs1 + [1] xs2 + [1]                                          
                                                             >  [1] xs1 + [1] xs2 + [0]                                          
                                                             =  [app(xs1, xs2)]                                                  
                                                                                                                                 
                           [part(x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             =  [part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)]              
                                                                                                                                 
                                            [app(Nil(), ys)] =  [1] ys + [1]                                                     
                                                             >  [1] ys + [0]                                                     
                                                             =  [ys]                                                             
                                                                                                                                 
                                      [app(Cons(x, xs), ys)] =  [1] xs + [1] ys + [1]                                            
                                                             >= [1] xs + [1] ys + [1]                                            
                                                             =  [Cons(x, app(xs, ys))]                                           
                                                                                                                                 
       [part[False][Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             =  [part(x', xs, xs1, Cons(x, xs2))]                                
                                                                                                                                 
      [part[False][Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             >  [1] xs + [1] xs1 + [1] xs2 + [0]                                 
                                                             =  [part(x', xs, xs1, xs2)]                                         
                                                                                                                                 
                                          [quicksort(Nil())] =  [0]                                                              
                                                             ?  [1]                                                              
                                                             =  [Nil()]                                                          
                                                                                                                                 
                                 [quicksort(Cons(x, Nil()))] =  [0]                                                              
                                                             ?  [2]                                                              
                                                             =  [Cons(x, Nil())]                                                 
                                                                                                                                 
                          [quicksort(Cons(x, Cons(x', xs)))] =  [0]                                                              
                                                             >= [0]                                                              
                                                             =  [qs(x, part(x, Cons(x', xs), Nil(), Nil()))]                     
                                                                                                                                 
              [part[Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             =  [part(x', xs, Cons(x, xs1), xs2)]                                
                                                                                                                                 
             [part[Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             >= [1] xs + [1] xs1 + [1] xs2 + [1]                                 
                                                             =  [part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)]       
                                                                                                                                 
                                       [qs(x', Cons(x, xs))] =  [0]                                                              
                                                             ?  [3]                                                              
                                                             =  [app(Cons(x, Nil()), Cons(x', quicksort(xs)))]                   
                                                                                                                                 
                                          [>(S(x), S(y))] =  [1]                                                              
                                                             >= [1]                                                              
                                                             =  [>(x, y)]                                                     
                                                                                                                                 
                                           [>(S(x), 0())] =  [1]                                                              
                                                             >= [1]                                                              
                                                             =  [True()]                                                         
                                                                                                                                 
                                              [>(0(), y)] =  [1]                                                              
                                                             >  [0]                                                              
                                                             =  [False()]                                                        
                                                                                                                                 
                                              [<(x, 0())] =  [4]                                                              
                                                             >  [0]                                                              
                                                             =  [False()]                                                        
                                                                                                                                 
                                          [<(S(x), S(y))] =  [4]                                                              
                                                             >= [4]                                                              
                                                             =  [<(x, y)]                                                     
                                                                                                                                 
                                           [<(0(), S(y))] =  [4]                                                              
                                                             >  [1]                                                              
                                                             =  [True()]                                                         
                                                                                                                                 
                                [part^#(x, Nil(), xs1, xs2)] =  [1] xs1 + [5]                                                    
                                                             >  [1] xs1 + [4]                                                    
                                                             =  [c_1(app^#(xs1, xs2))]                                           
                                                                                                                                 
                         [part^#(x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [5]                                           
                                                             >= [1] xs + [1] xs1 + [5]                                           
                                                             =  [c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))]       
                                                                                                                                 
                                    [app^#(Cons(x, xs), ys)] =  [1] xs + [5]                                                     
                                                             >  [1] xs + [4]                                                     
                                                             =  [c_3(app^#(xs, ys))]                                             
                                                                                                                                 
            [part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [5]                                           
                                                             >= [1] xs + [1] xs1 + [5]                                           
                                                             =  [c_6(part^#(x', xs, Cons(x, xs1), xs2))]                         
                                                                                                                                 
           [part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [4]                                           
                                                             >= [1] xs + [1] xs1 + [4]                                           
                                                             =  [c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))]
                                                                                                                                 
                        [quicksort^#(Cons(x, Cons(x', xs)))] =  [1] xs + [9]                                                     
                                                             >  [1] xs + [6]                                                     
                                                             =  [part^#(x, Cons(x', xs), Nil(), Nil())]                          
                                                                                                                                 
                        [quicksort^#(Cons(x, Cons(x', xs)))] =  [1] xs + [9]                                                     
                                                             >= [1] xs + [9]                                                     
                                                             =  [qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))]                   
                                                                                                                                 
                                     [qs^#(x', Cons(x, xs))] =  [1] xs + [7]                                                     
                                                             >  [6]                                                              
                                                             =  [app^#(Cons(x, Nil()), Cons(x', quicksort(xs)))]                 
                                                                                                                                 
                                     [qs^#(x', Cons(x, xs))] =  [1] xs + [7]                                                     
                                                             >= [1] xs + [7]                                                     
                                                             =  [quicksort^#(xs)]                                                
                                                                                                                                 
     [part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [4]                                           
                                                             >= [1] xs + [1] xs1 + [4]                                           
                                                             =  [c_8(part^#(x', xs, xs1, Cons(x, xs2)))]                         
                                                                                                                                 
    [part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2)] =  [1] xs + [1] xs1 + [4]                                           
                                                             >= [1] xs + [1] xs1 + [4]                                           
                                                             =  [c_9(part^#(x', xs, xs1, xs2))]                                  
                                                                                                                                 

The strictly oriented rules are moved into the weak component.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict DPs:
  { part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2)) }
Weak DPs:
  { part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
  , app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
  , part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    part^#(x, Cons(x', xs), Nil(), Nil())
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) ->
    app^#(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ part^#(x, Nil(), xs1, xs2) -> c_1(app^#(xs1, xs2))
, app^#(Cons(x, xs), ys) -> c_3(app^#(xs, ys))
, qs^#(x', Cons(x, xs)) ->
  app^#(Cons(x, Nil()), Cons(x', quicksort(xs))) }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict DPs:
  { part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    part^#(x, Cons(x', xs), Nil(), Nil())
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , quicksort(Nil()) -> Nil()
  , quicksort(Cons(x, Nil())) -> Cons(x, Nil())
  , quicksort(Cons(x, Cons(x', xs))) ->
    qs(x, part(x, Cons(x', xs), Nil(), Nil()))
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , qs(x', Cons(x, xs)) ->
    app(Cons(x, Nil()), Cons(x', quicksort(xs)))
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
    , part(x', Cons(x, xs), xs1, xs2) ->
      part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
    , app(Nil(), ys) -> ys
    , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
    , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, Cons(x, xs2))
    , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, xs1, xs2)
    , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
      part(x', xs, Cons(x, xs1), xs2)
    , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
      part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
    , >(S(x), S(y)) -> >(x, y)
    , >(S(x), 0()) -> True()
    , >(0(), y) -> False()
    , <(x, 0()) -> False()
    , <(S(x), S(y)) -> <(x, y)
    , <(0(), S(y)) -> True() }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict DPs:
  { part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2)) }
Weak DPs:
  { part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    part^#(x, Cons(x', xs), Nil(), Nil())
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We use the processor 'matrix interpretation of dimension 1' to
orient following rules strictly.

DPs:
  { 1: part^#(x', Cons(x, xs), xs1, xs2) ->
       c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , 4: quicksort^#(Cons(x, Cons(x', xs))) ->
       part^#(x, Cons(x', xs), Nil(), Nil()) }
Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , app(Nil(), ys) -> ys
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(S(x), S(y)) -> <(x, y) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_2) = {1}, Uargs(c_6) = {1}, Uargs(c_7) = {1},
    Uargs(c_8) = {1}, Uargs(c_9) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
                      [part](x1, x2, x3, x4) = [1] x2 + [1] x3 + [1] x4 + [2]
                                                                             
                                      [True] = [5]                           
                                                                             
                               [app](x1, x2) = [1] x1 + [1] x2 + [0]         
                                                                             
                                       [Nil] = [1]                           
                                                                             
      [part[False][Ite]](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [1] x5 + [2]
                                                                             
                             [quicksort](x1) = [0]                           
                                                                             
             [part[Ite]](x1, x2, x3, x4, x5) = [1] x3 + [1] x4 + [1] x5 + [2]
                                                                             
                                [qs](x1, x2) = [0]                           
                                                                             
                              [>](x1, x2) = [4] x1 + [1] x2 + [1]         
                                                                             
                              [<](x1, x2) = [4] x1 + [1] x2 + [0]         
                                                                             
                                     [S](x1) = [1] x1 + [1]                  
                                                                             
                              [Cons](x1, x2) = [1] x1 + [1] x2 + [2]         
                                                                             
                                         [0] = [1]                           
                                                                             
                                     [False] = [3]                           
                                                                             
                    [part^#](x1, x2, x3, x4) = [1] x2 + [2]                  
                                                                             
                             [app^#](x1, x2) = [0]                           
                                                                             
           [part[Ite]^#](x1, x2, x3, x4, x5) = [1] x3 + [0]                  
                                                                             
                           [quicksort^#](x1) = [1] x1 + [4]                  
                                                                             
                              [qs^#](x1, x2) = [1] x2 + [2]                  
                                                                             
    [part[False][Ite]^#](x1, x2, x3, x4, x5) = [1] x3 + [0]                  
                                                                             
                                   [c_1](x1) = [0]                           
                                                                             
                                   [c_2](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_3](x1) = [0]                           
                                                                             
                                   [c_6](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_7](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_8](x1) = [1] x1 + [0]                  
                                                                             
                                   [c_9](x1) = [1] x1 + [0]                  
  
  The order satisfies the following ordering constraints:
  
                                  [part(x, Nil(), xs1, xs2)] =  [1] xs1 + [1] xs2 + [3]                                          
                                                             >  [1] xs1 + [1] xs2 + [0]                                          
                                                             =  [app(xs1, xs2)]                                                  
                                                                                                                                 
                           [part(x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             >= [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             =  [part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)]              
                                                                                                                                 
                                            [app(Nil(), ys)] =  [1] ys + [1]                                                     
                                                             >  [1] ys + [0]                                                     
                                                             =  [ys]                                                             
                                                                                                                                 
                                      [app(Cons(x, xs), ys)] =  [1] x + [1] xs + [1] ys + [2]                                    
                                                             >= [1] x + [1] xs + [1] ys + [2]                                    
                                                             =  [Cons(x, app(xs, ys))]                                           
                                                                                                                                 
       [part[False][Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             >= [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             =  [part(x', xs, xs1, Cons(x, xs2))]                                
                                                                                                                                 
      [part[False][Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             >  [1] xs + [1] xs1 + [1] xs2 + [2]                                 
                                                             =  [part(x', xs, xs1, xs2)]                                         
                                                                                                                                 
              [part[Ite](True(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             >= [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             =  [part(x', xs, Cons(x, xs1), xs2)]                                
                                                                                                                                 
             [part[Ite](False(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             >= [1] x + [1] xs + [1] xs1 + [1] xs2 + [4]                         
                                                             =  [part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)]       
                                                                                                                                 
                                          [>(S(x), S(y))] =  [4] x + [1] y + [6]                                              
                                                             >  [4] x + [1] y + [1]                                              
                                                             =  [>(x, y)]                                                     
                                                                                                                                 
                                           [>(S(x), 0())] =  [4] x + [6]                                                      
                                                             >  [5]                                                              
                                                             =  [True()]                                                         
                                                                                                                                 
                                              [>(0(), y)] =  [1] y + [5]                                                      
                                                             >  [3]                                                              
                                                             =  [False()]                                                        
                                                                                                                                 
                                              [<(x, 0())] =  [4] x + [1]                                                      
                                                             ?  [3]                                                              
                                                             =  [False()]                                                        
                                                                                                                                 
                                          [<(S(x), S(y))] =  [4] x + [1] y + [5]                                              
                                                             >  [4] x + [1] y + [0]                                              
                                                             =  [<(x, y)]                                                     
                                                                                                                                 
                                           [<(0(), S(y))] =  [1] y + [5]                                                      
                                                             >= [5]                                                              
                                                             =  [True()]                                                         
                                                                                                                                 
                         [part^#(x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [4]                                             
                                                             >  [1] x + [1] xs + [2]                                             
                                                             =  [c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))]       
                                                                                                                                 
            [part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [2]                                             
                                                             >= [1] xs + [2]                                                     
                                                             =  [c_6(part^#(x', xs, Cons(x, xs1), xs2))]                         
                                                                                                                                 
           [part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [2]                                             
                                                             >= [1] x + [1] xs + [2]                                             
                                                             =  [c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))]
                                                                                                                                 
                        [quicksort^#(Cons(x, Cons(x', xs)))] =  [1] x' + [1] x + [1] xs + [8]                                    
                                                             >  [1] x' + [1] xs + [4]                                            
                                                             =  [part^#(x, Cons(x', xs), Nil(), Nil())]                          
                                                                                                                                 
                        [quicksort^#(Cons(x, Cons(x', xs)))] =  [1] x' + [1] x + [1] xs + [8]                                    
                                                             >= [1] x' + [1] xs + [8]                                            
                                                             =  [qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))]                   
                                                                                                                                 
                                     [qs^#(x', Cons(x, xs))] =  [1] x + [1] xs + [4]                                             
                                                             >= [1] xs + [4]                                                     
                                                             =  [quicksort^#(xs)]                                                
                                                                                                                                 
     [part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [2]                                             
                                                             >= [1] xs + [2]                                                     
                                                             =  [c_8(part^#(x', xs, xs1, Cons(x, xs2)))]                         
                                                                                                                                 
    [part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2)] =  [1] x + [1] xs + [2]                                             
                                                             >= [1] xs + [2]                                                     
                                                             =  [c_9(part^#(x', xs, xs1, xs2))]                                  
                                                                                                                                 

We return to the main proof. Consider the set of all dependency
pairs

:
  { 1: part^#(x', Cons(x, xs), xs1, xs2) ->
       c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , 2: part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
       c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , 3: part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
       c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , 4: quicksort^#(Cons(x, Cons(x', xs))) ->
       part^#(x, Cons(x', xs), Nil(), Nil())
  , 5: quicksort^#(Cons(x, Cons(x', xs))) ->
       qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , 6: qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , 7: part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
       c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , 8: part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
       c_9(part^#(x', xs, xs1, xs2)) }

Processor 'matrix interpretation of dimension 1' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {1,4}. These cover all (indirect) predecessors of dependency
pairs {1,2,3,4,7,8}, their number of application is equally
bounded. The dependency pairs are shifted into the weak component.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(1)).

Weak DPs:
  { part^#(x', Cons(x, xs), xs1, xs2) ->
    c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
  , part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_6(part^#(x', xs, Cons(x, xs1), xs2))
  , part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    part^#(x, Cons(x', xs), Nil(), Nil())
  , quicksort^#(Cons(x, Cons(x', xs))) ->
    qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
  , qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
  , part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
    c_8(part^#(x', xs, xs1, Cons(x, xs2)))
  , part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
    c_9(part^#(x', xs, xs1, xs2)) }
Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ part^#(x', Cons(x, xs), xs1, xs2) ->
  c_2(part[Ite]^#(>(x', x), x', Cons(x, xs), xs1, xs2))
, part[Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
  c_6(part^#(x', xs, Cons(x, xs1), xs2))
, part[Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
  c_7(part[False][Ite]^#(<(x', x), x', Cons(x, xs), xs1, xs2))
, quicksort^#(Cons(x, Cons(x', xs))) ->
  part^#(x, Cons(x', xs), Nil(), Nil())
, quicksort^#(Cons(x, Cons(x', xs))) ->
  qs^#(x, part(x, Cons(x', xs), Nil(), Nil()))
, qs^#(x', Cons(x, xs)) -> quicksort^#(xs)
, part[False][Ite]^#(True(), x', Cons(x, xs), xs1, xs2) ->
  c_8(part^#(x', xs, xs1, Cons(x, xs2)))
, part[False][Ite]^#(False(), x', Cons(x, xs), xs1, xs2) ->
  c_9(part^#(x', xs, xs1, xs2)) }

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(1)).

Weak Trs:
  { part(x, Nil(), xs1, xs2) -> app(xs1, xs2)
  , part(x', Cons(x, xs), xs1, xs2) ->
    part[Ite](>(x', x), x', Cons(x, xs), xs1, xs2)
  , app(Nil(), ys) -> ys
  , app(Cons(x, xs), ys) -> Cons(x, app(xs, ys))
  , part[False][Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, Cons(x, xs2))
  , part[False][Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, xs1, xs2)
  , part[Ite](True(), x', Cons(x, xs), xs1, xs2) ->
    part(x', xs, Cons(x, xs1), xs2)
  , part[Ite](False(), x', Cons(x, xs), xs1, xs2) ->
    part[False][Ite](<(x', x), x', Cons(x, xs), xs1, xs2)
  , >(S(x), S(y)) -> >(x, y)
  , >(S(x), 0()) -> True()
  , >(0(), y) -> False()
  , <(x, 0()) -> False()
  , <(S(x), S(y)) -> <(x, y)
  , <(0(), S(y)) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

No rule is usable, rules are removed from the input problem.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(1)).

Rules: Empty
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

Empty rules are trivially bounded

Hurray, we answered YES(O(1),O(n^2))