Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

APP(descending_sort, l) → APP(sort, max)
APP(app(min, app(s, x)), app(s, y)) → APP(app(min, x), y)
APP(app(min, app(s, x)), app(s, y)) → APP(min, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
APP(app(app(app(insert, f), g), nil), x) → APP(app(cons, x), nil)
APP(ascending_sort, l) → APP(app(sort, min), max)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(insert, f), g)
APP(descending_sort, l) → APP(app(app(sort, max), min), l)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(app(insert, f), g), t)
APP(app(max, app(s, x)), app(s, y)) → APP(max, x)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(insert, f), g), app(app(app(sort, f), g), t))
APP(ascending_sort, l) → APP(app(app(sort, min), max), l)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(f, x), h)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(insert, f)
APP(app(app(app(insert, f), g), nil), x) → APP(cons, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(g, x), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(f, x)
APP(app(max, app(s, x)), app(s, y)) → APP(app(max, x), y)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(app(app(insert, f), g), t), app(app(g, x), h))
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(sort, f), g), t)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(g, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(cons, app(app(f, x), h))
APP(ascending_sort, l) → APP(sort, min)
APP(descending_sort, l) → APP(app(sort, max), min)

The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

APP(descending_sort, l) → APP(sort, max)
APP(app(min, app(s, x)), app(s, y)) → APP(app(min, x), y)
APP(app(min, app(s, x)), app(s, y)) → APP(min, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
APP(app(app(app(insert, f), g), nil), x) → APP(app(cons, x), nil)
APP(ascending_sort, l) → APP(app(sort, min), max)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(insert, f), g)
APP(descending_sort, l) → APP(app(app(sort, max), min), l)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(app(insert, f), g), t)
APP(app(max, app(s, x)), app(s, y)) → APP(max, x)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(insert, f), g), app(app(app(sort, f), g), t))
APP(ascending_sort, l) → APP(app(app(sort, min), max), l)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(f, x), h)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(insert, f)
APP(app(app(app(insert, f), g), nil), x) → APP(cons, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(g, x), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(f, x)
APP(app(max, app(s, x)), app(s, y)) → APP(app(max, x), y)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(app(app(insert, f), g), t), app(app(g, x), h))
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(sort, f), g), t)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(g, x)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(cons, app(app(f, x), h))
APP(ascending_sort, l) → APP(sort, min)
APP(descending_sort, l) → APP(app(sort, max), min)

The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 3 SCCs with 14 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

APP(app(min, app(s, x)), app(s, y)) → APP(app(min, x), y)

The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


APP(app(min, app(s, x)), app(s, y)) → APP(app(min, x), y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial interpretation [25,35]:

POL(APP(x1, x2)) = (3)x_2   
POL(app(x1, x2)) = 2 + (2)x_2   
POL(s) = 0   
POL(min) = 0   
The value of delta used in the strict ordering is 6.
The following usable rules [17] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

APP(app(max, app(s, x)), app(s, y)) → APP(app(max, x), y)

The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


APP(app(max, app(s, x)), app(s, y)) → APP(app(max, x), y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial interpretation [25,35]:

POL(APP(x1, x2)) = (3)x_2   
POL(max) = 0   
POL(app(x1, x2)) = 2 + (2)x_2   
POL(s) = 0   
The value of delta used in the strict ordering is 6.
The following usable rules [17] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ PisEmptyProof
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

APP(descending_sort, l) → APP(app(app(sort, max), min), l)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(sort, f), g), t)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(g, x), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(app(app(insert, f), g), t), app(app(g, x), h))
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(g, x)
APP(app(app(sort, f), g), app(app(cons, h), t)) → APP(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(f, x)
APP(ascending_sort, l) → APP(app(app(sort, min), max), l)
APP(app(app(app(insert, f), g), app(app(cons, h), t)), x) → APP(app(f, x), h)

The TRS R consists of the following rules:

app(app(max, 0), x) → x
app(app(max, x), 0) → x
app(app(max, app(s, x)), app(s, y)) → app(app(max, x), y)
app(app(min, 0), x) → 0
app(app(min, x), 0) → 0
app(app(min, app(s, x)), app(s, y)) → app(app(min, x), y)
app(app(app(app(insert, f), g), nil), x) → app(app(cons, x), nil)
app(app(app(app(insert, f), g), app(app(cons, h), t)), x) → app(app(cons, app(app(f, x), h)), app(app(app(app(insert, f), g), t), app(app(g, x), h)))
app(app(app(sort, f), g), nil) → nil
app(app(app(sort, f), g), app(app(cons, h), t)) → app(app(app(app(insert, f), g), app(app(app(sort, f), g), t)), h)
app(ascending_sort, l) → app(app(app(sort, min), max), l)
app(descending_sort, l) → app(app(app(sort, max), min), l)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.