(0) Obligation:

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

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

Q is empty.

(1) Overlay + Local Confluence (EQUIVALENT transformation)

The TRS is overlay and locally confluent. By [NOC] we can switch to innermost.

(2) Obligation:

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

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

(3) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(4) Obligation:

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

LE(s(x), s(y)) → LE(x, y)
EQ(s(x), s(y)) → EQ(x, y)
MINSORT(cons(x, xs)) → MIN(cons(x, xs))
MINSORT(cons(x, xs)) → MINSORT(rm(min(cons(x, xs)), cons(x, xs)))
MINSORT(cons(x, xs)) → RM(min(cons(x, xs)), cons(x, xs))
MIN(cons(x, cons(y, xs))) → IF1(le(x, y), x, y, xs)
MIN(cons(x, cons(y, xs))) → LE(x, y)
IF1(true, x, y, xs) → MIN(cons(x, xs))
IF1(false, x, y, xs) → MIN(cons(y, xs))
RM(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
RM(x, cons(y, xs)) → EQ(x, y)
IF2(true, x, y, xs) → RM(x, xs)
IF2(false, x, y, xs) → RM(x, xs)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 5 SCCs with 4 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

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

EQ(s(x), s(y)) → EQ(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(8) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(9) Obligation:

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

EQ(s(x), s(y)) → EQ(x, y)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(10) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

(11) Obligation:

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

EQ(s(x), s(y)) → EQ(x, y)

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

(12) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • EQ(s(x), s(y)) → EQ(x, y)
    The graph contains the following edges 1 > 1, 2 > 2

(13) YES

(14) Obligation:

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

RM(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
IF2(true, x, y, xs) → RM(x, xs)
IF2(false, x, y, xs) → RM(x, xs)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(15) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(16) Obligation:

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

RM(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
IF2(true, x, y, xs) → RM(x, xs)
IF2(false, x, y, xs) → RM(x, xs)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(17) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

(18) Obligation:

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

RM(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
IF2(true, x, y, xs) → RM(x, xs)
IF2(false, x, y, xs) → RM(x, xs)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)

The set Q consists of the following terms:

eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))

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

(19) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • RM(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
    The graph contains the following edges 1 >= 2, 2 > 3, 2 > 4

  • IF2(true, x, y, xs) → RM(x, xs)
    The graph contains the following edges 2 >= 1, 4 >= 2

  • IF2(false, x, y, xs) → RM(x, xs)
    The graph contains the following edges 2 >= 1, 4 >= 2

(20) YES

(21) Obligation:

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

LE(s(x), s(y)) → LE(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(22) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(23) Obligation:

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

LE(s(x), s(y)) → LE(x, y)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(24) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

(25) Obligation:

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

LE(s(x), s(y)) → LE(x, y)

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

(26) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LE(s(x), s(y)) → LE(x, y)
    The graph contains the following edges 1 > 1, 2 > 2

(27) YES

(28) Obligation:

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

MIN(cons(x, cons(y, xs))) → IF1(le(x, y), x, y, xs)
IF1(true, x, y, xs) → MIN(cons(x, xs))
IF1(false, x, y, xs) → MIN(cons(y, xs))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(29) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(30) Obligation:

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

MIN(cons(x, cons(y, xs))) → IF1(le(x, y), x, y, xs)
IF1(true, x, y, xs) → MIN(cons(x, xs))
IF1(false, x, y, xs) → MIN(cons(y, xs))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(31) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

(32) Obligation:

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

MIN(cons(x, cons(y, xs))) → IF1(le(x, y), x, y, xs)
IF1(true, x, y, xs) → MIN(cons(x, xs))
IF1(false, x, y, xs) → MIN(cons(y, xs))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))

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

(33) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MIN(cons(x, cons(y, xs))) → IF1(le(x, y), x, y, xs)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(IF1(x1, x2, x3, x4)) = 1 + x2 + x3 + x4   
POL(MIN(x1)) = x1   
POL(cons(x1, x2)) = 1 + x1 + x2   
POL(false) = 0   
POL(le(x1, x2)) = 0   
POL(s(x1)) = 0   
POL(true) = 0   

The following usable rules [FROCOS05] were oriented: none

(34) Obligation:

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

IF1(true, x, y, xs) → MIN(cons(x, xs))
IF1(false, x, y, xs) → MIN(cons(y, xs))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))

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

(35) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 2 less nodes.

(36) TRUE

(37) Obligation:

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

MINSORT(cons(x, xs)) → MINSORT(rm(min(cons(x, xs)), cons(x, xs)))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
minsort(nil) → nil
minsort(cons(x, xs)) → cons(min(cons(x, xs)), minsort(rm(min(cons(x, xs)), cons(x, xs))))
min(nil) → 0
min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, nil) → nil
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
if2(false, x, y, xs) → cons(y, rm(x, xs))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(38) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(39) Obligation:

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

MINSORT(cons(x, xs)) → MINSORT(rm(min(cons(x, xs)), cons(x, xs)))

The TRS R consists of the following rules:

min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(false, x, y, xs) → cons(y, rm(x, xs))
rm(x, nil) → nil
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
minsort(nil)
minsort(cons(x0, x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(40) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

minsort(nil)
minsort(cons(x0, x1))

(41) Obligation:

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

MINSORT(cons(x, xs)) → MINSORT(rm(min(cons(x, xs)), cons(x, xs)))

The TRS R consists of the following rules:

min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(false, x, y, xs) → cons(y, rm(x, xs))
rm(x, nil) → nil
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(42) Induction-Processor (SOUND transformation)


This DP could be deleted by the Induction-Processor:
MINSORT(cons(x, xs)) → MINSORT(rm(min(cons(x, xs)), cons(x, xs)))


This order was computed:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(MINSORT(x1)) = 2·x1   
POL(cons(x1, x2)) = 2 + x1 + 2·x2   
POL(eq(x1, x2)) = 0   
POL(false) = 0   
POL(if1(x1, x2, x3, x4)) = 2 + x2 + x3 + 3·x4   
POL(if2(x1, x2, x3, x4)) = 2 + x3 + 2·x4   
POL(le(x1, x2)) = 0   
POL(min(x1)) = x1   
POL(nil) = 0   
POL(rm(x1, x2)) = x2   
POL(s(x1)) = 0   
POL(true) = 0   

At least one of these decreasing rules is always used after the deleted DP:
if2(true, x633, y523, xs323) → rm(x633, xs323)


The following formula is valid:
z0:sort[a34].(¬(z0 =nil)→rm'(min(z0 ), z0 )=true)


The transformed set:
rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true


The proof given by the theorem prover:
The following program was given to the internal theorem prover:
   [x, x0, x1, x2, x3, x63, y52, xs32, x126, y105, y41, xs25, x139, x50, x11, y8, xs4, y73, x100, x113, y94, y126, x164, x177, y147, x24, y19, x37, y30, xs11, xs18]
   equal_bool(true, false) -> false
   equal_bool(false, true) -> false
   equal_bool(true, true) -> true
   equal_bool(false, false) -> true
   true and x -> x
   false and x -> false
   true or x -> true
   false or x -> x
   not(false) -> true
   not(true) -> false
   isa_true(true) -> true
   isa_true(false) -> false
   isa_false(true) -> false
   isa_false(false) -> true
   equal_sort[a0](0, 0) -> true
   equal_sort[a0](0, s(x0)) -> false
   equal_sort[a0](s(x0), 0) -> false
   equal_sort[a0](s(x0), s(x1)) -> equal_sort[a0](x0, x1)
   equal_sort[a34](cons(x0, x1), cons(x2, x3)) -> equal_sort[a34](x0, x2) and equal_sort[a34](x1, x3)
   equal_sort[a34](cons(x0, x1), nil) -> false
   equal_sort[a34](nil, cons(x0, x1)) -> false
   equal_sort[a34](nil, nil) -> true
   equal_sort[a60](witness_sort[a60], witness_sort[a60]) -> true
   if2'(true, x63, y52, xs32) -> true
   if2'(false, x126, y105, cons(y41, xs25)) -> if2'(eq(x126, y41), x126, y41, xs25)
   if2'(false, x126, y105, nil) -> false
   rm'(x139, nil) -> false
   equal_bool(eq(x50, y41), true) -> true | rm'(x50, cons(y41, xs25)) -> true
   equal_bool(eq(x50, y41), true) -> false | rm'(x50, cons(y41, xs25)) -> rm'(x50, xs25)
   min(cons(x, nil)) -> x
   min(nil) -> 0
   equal_bool(le(x11, y8), true) -> true | min(cons(x11, cons(y8, xs4))) -> min(cons(x11, xs4))
   equal_bool(le(x11, y8), true) -> false | min(cons(x11, cons(y8, xs4))) -> min(cons(y8, xs4))
   eq(0, 0) -> true
   eq(0, s(y73)) -> false
   eq(s(x100), 0) -> false
   eq(s(x113), s(y94)) -> eq(x113, y94)
   rm(x139, nil) -> nil
   equal_bool(eq(x50, y41), true) -> true | rm(x50, cons(y41, xs25)) -> rm(x50, xs25)
   equal_bool(eq(x50, y41), true) -> false | rm(x50, cons(y41, xs25)) -> cons(y41, rm(x50, xs25))
   le(0, y126) -> true
   le(s(x164), 0) -> false
   le(s(x177), s(y147)) -> le(x177, y147)
   if1(true, x24, y19, nil) -> x24
   if1(true, x24, y19, cons(y8, xs4)) -> if1(le(x24, y8), x24, y8, xs4)
   if1(false, x37, y30, nil) -> y30
   if1(false, x37, y30, cons(y8, xs4)) -> if1(le(y30, y8), y30, y8, xs4)
   if1(true, x24, y19, xs11) -> 0
   if1(false, x37, y30, xs18) -> 0
   if2(true, x63, y52, cons(y41, xs25)) -> if2(eq(x63, y41), x63, y41, xs25)
   if2(true, x63, y52, nil) -> nil
   if2(false, x126, y105, cons(y41, xs25)) -> cons(y105, if2(eq(x126, y41), x126, y41, xs25))
   if2(false, x126, y105, nil) -> cons(y105, nil)


The following output was given by the internal theorem prover:
proof of internal
# AProVE Commit ID: 9a00b172b26c9abb2d4c4d5eaf341e919eb0fbf1 nowonder 20100222 unpublished dirty


Partial correctness of the following Program

   [x, x0, x1, x2, x3, x63, y52, xs32, x126, y105, y41, xs25, x139, x50, x11, y8, xs4, y73, x100, x113, y94, y126, x164, x177, y147, x24, y19, x37, y30, xs11, xs18]
   equal_bool(true, false) -> false
   equal_bool(false, true) -> false
   equal_bool(true, true) -> true
   equal_bool(false, false) -> true
   true and x -> x
   false and x -> false
   true or x -> true
   false or x -> x
   not(false) -> true
   not(true) -> false
   isa_true(true) -> true
   isa_true(false) -> false
   isa_false(true) -> false
   isa_false(false) -> true
   equal_sort[a0](0, 0) -> true
   equal_sort[a0](0, s(x0)) -> false
   equal_sort[a0](s(x0), 0) -> false
   equal_sort[a0](s(x0), s(x1)) -> equal_sort[a0](x0, x1)
   equal_sort[a34](cons(x0, x1), cons(x2, x3)) -> equal_sort[a34](x0, x2) and equal_sort[a34](x1, x3)
   equal_sort[a34](cons(x0, x1), nil) -> false
   equal_sort[a34](nil, cons(x0, x1)) -> false
   equal_sort[a34](nil, nil) -> true
   equal_sort[a60](witness_sort[a60], witness_sort[a60]) -> true
   if2'(true, x63, y52, xs32) -> true
   if2'(false, x126, y105, cons(y41, xs25)) -> if2'(eq(x126, y41), x126, y41, xs25)
   if2'(false, x126, y105, nil) -> false
   rm'(x139, nil) -> false
   equal_bool(eq(x50, y41), true) -> true | rm'(x50, cons(y41, xs25)) -> true
   equal_bool(eq(x50, y41), true) -> false | rm'(x50, cons(y41, xs25)) -> rm'(x50, xs25)
   min(cons(x, nil)) -> x
   min(nil) -> 0
   equal_bool(le(x11, y8), true) -> true | min(cons(x11, cons(y8, xs4))) -> min(cons(x11, xs4))
   equal_bool(le(x11, y8), true) -> false | min(cons(x11, cons(y8, xs4))) -> min(cons(y8, xs4))
   eq(0, 0) -> true
   eq(0, s(y73)) -> false
   eq(s(x100), 0) -> false
   eq(s(x113), s(y94)) -> eq(x113, y94)
   rm(x139, nil) -> nil
   equal_bool(eq(x50, y41), true) -> true | rm(x50, cons(y41, xs25)) -> rm(x50, xs25)
   equal_bool(eq(x50, y41), true) -> false | rm(x50, cons(y41, xs25)) -> cons(y41, rm(x50, xs25))
   le(0, y126) -> true
   le(s(x164), 0) -> false
   le(s(x177), s(y147)) -> le(x177, y147)
   if1(true, x24, y19, nil) -> x24
   if1(true, x24, y19, cons(y8, xs4)) -> if1(le(x24, y8), x24, y8, xs4)
   if1(false, x37, y30, nil) -> y30
   if1(false, x37, y30, cons(y8, xs4)) -> if1(le(y30, y8), y30, y8, xs4)
   if1(true, x24, y19, xs11) -> 0
   if1(false, x37, y30, xs18) -> 0
   if2(true, x63, y52, cons(y41, xs25)) -> if2(eq(x63, y41), x63, y41, xs25)
   if2(true, x63, y52, nil) -> nil
   if2(false, x126, y105, cons(y41, xs25)) -> cons(y105, if2(eq(x126, y41), x126, y41, xs25))
   if2(false, x126, y105, nil) -> cons(y105, nil)

using the following formula:
z0:sort[a34].(~(z0=nil)->rm'(min(z0), z0)=true)

could be successfully shown:
(0) Formula
(1) Induction by algorithm [EQUIVALENT]
(2) AND
    (3) Formula
        (4) Symbolic evaluation [EQUIVALENT]
        (5) Formula
        (6) Induction by data structure [EQUIVALENT]
        (7) AND
            (8) Formula
                (9) Symbolic evaluation [EQUIVALENT]
                (10) YES
            (11) Formula
                (12) Conditional Evaluation [EQUIVALENT]
                (13) AND
                    (14) Formula
                        (15) Symbolic evaluation [EQUIVALENT]
                        (16) YES
                    (17) Formula
                        (18) Symbolic evaluation [EQUIVALENT]
                        (19) Formula
                        (20) Hypothesis Lifting [EQUIVALENT]
                        (21) Formula
                        (22) Symbolic evaluation under hypothesis [SOUND]
                        (23) Formula
                        (24) Hypothesis Lifting [EQUIVALENT]
                        (25) Formula
                        (26) Hypothesis Lifting [EQUIVALENT]
                        (27) Formula
                        (28) Conditional Evaluation [EQUIVALENT]
                        (29) AND
                            (30) Formula
                                (31) Symbolic evaluation under hypothesis [EQUIVALENT]
                                (32) YES
                            (33) Formula
                                (34) Symbolic evaluation [EQUIVALENT]
                                (35) YES
    (36) Formula
        (37) Symbolic evaluation [EQUIVALENT]
        (38) YES
    (39) Formula
        (40) Symbolic evaluation [EQUIVALENT]
        (41) Formula
        (42) Conditional Evaluation [EQUIVALENT]
        (43) Formula
        (44) Conditional Evaluation [EQUIVALENT]
        (45) AND
            (46) Formula
                (47) Symbolic evaluation [EQUIVALENT]
                (48) YES
            (49) Formula
                (50) Conditional Evaluation [EQUIVALENT]
                (51) AND
                    (52) Formula
                        (53) Symbolic evaluation [EQUIVALENT]
                        (54) YES
                    (55) Formula
                        (56) Hypothesis Lifting [EQUIVALENT]
                        (57) Formula
                        (58) Conditional Evaluation [EQUIVALENT]
                        (59) Formula
                        (60) Symbolic evaluation [EQUIVALENT]
                        (61) YES
    (62) Formula
        (63) Symbolic evaluation [EQUIVALENT]
        (64) Formula
        (65) Conditional Evaluation [EQUIVALENT]
        (66) Formula
        (67) Conditional Evaluation [EQUIVALENT]
        (68) AND
            (69) Formula
                (70) Symbolic evaluation [EQUIVALENT]
                (71) YES
            (72) Formula
                (73) Symbolic evaluation under hypothesis [EQUIVALENT]
                (74) YES


----------------------------------------

(0)
Obligation:
Formula:
z0:sort[a34].(~(z0=nil)->rm'(min(z0), z0)=true)

There are no hypotheses.




----------------------------------------

(1) Induction by algorithm (EQUIVALENT)
Induction by algorithm min(z0) generates the following cases:

1. Base Case:
Formula:
x:sort[a0].(~(cons(x, nil)=nil)->rm'(min(cons(x, nil)), cons(x, nil))=true)

There are no hypotheses.





2. Base Case:
Formula:
(~(nil=nil)->rm'(min(nil), nil)=true)

There are no hypotheses.





1. Step Case:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].(~(cons(x11, cons(y8, xs4))=nil)->rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true)

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true





2. Step Case:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].(~(cons(x11, cons(y8, xs4))=nil)->rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true)

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false






----------------------------------------

(2)
Complex Obligation (AND)

----------------------------------------

(3)
Obligation:
Formula:
x:sort[a0].(~(cons(x, nil)=nil)->rm'(min(cons(x, nil)), cons(x, nil))=true)

There are no hypotheses.




----------------------------------------

(4) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
x:sort[a0].rm'(x, cons(x, nil))=true
----------------------------------------

(5)
Obligation:
Formula:
x:sort[a0].rm'(x, cons(x, nil))=true

There are no hypotheses.




----------------------------------------

(6) Induction by data structure (EQUIVALENT)
Induction by data structure sort[a0] generates the following cases:



1. Base Case:
Formula:
rm'(0, cons(0, nil))=true

There are no hypotheses.





1. Step Case:
Formula:
n:sort[a0].rm'(s(n), cons(s(n), nil))=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true






----------------------------------------

(7)
Complex Obligation (AND)

----------------------------------------

(8)
Obligation:
Formula:
rm'(0, cons(0, nil))=true

There are no hypotheses.




----------------------------------------

(9) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(10)
YES

----------------------------------------

(11)
Obligation:
Formula:
n:sort[a0].rm'(s(n), cons(s(n), nil))=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true




----------------------------------------

(12) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
true=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=true





Formula:
n:sort[a0].rm'(s(n), nil)=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false






----------------------------------------

(13)
Complex Obligation (AND)

----------------------------------------

(14)
Obligation:
Formula:
true=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=true




----------------------------------------

(15) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(16)
YES

----------------------------------------

(17)
Obligation:
Formula:
n:sort[a0].rm'(s(n), nil)=true

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false




----------------------------------------

(18) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
False
----------------------------------------

(19)
Obligation:
Formula:
False

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false




----------------------------------------

(20) Hypothesis Lifting (EQUIVALENT)
Formula could be generalised by hypothesis lifting to the following new obligation:
Formula:
n:sort[a0].((rm'(n, cons(n, nil))=true/\equal_bool(eq(s(n), s(n)), true)=false)->False)

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false




----------------------------------------

(21)
Obligation:
Formula:
n:sort[a0].((rm'(n, cons(n, nil))=true/\equal_bool(eq(s(n), s(n)), true)=false)->False)

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false




----------------------------------------

(22) Symbolic evaluation under hypothesis (SOUND)
Could be reduced by symbolic evaluation under hypothesis to:
n:sort[a0].~(equal_bool(eq(n, n), true)=false)

By using the following hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true

----------------------------------------

(23)
Obligation:
Formula:
n:sort[a0].~(equal_bool(eq(n, n), true)=false)

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true
n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false




----------------------------------------

(24) Hypothesis Lifting (EQUIVALENT)
Formula could be generalised by hypothesis lifting to the following new obligation:
Formula:
n:sort[a0].(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false))

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true




----------------------------------------

(25)
Obligation:
Formula:
n:sort[a0].(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false))

Hypotheses:
n:sort[a0].rm'(n, cons(n, nil))=true




----------------------------------------

(26) Hypothesis Lifting (EQUIVALENT)
Formula could be generalised by hypothesis lifting to the following new obligation:
Formula:
n:sort[a0].(rm'(n, cons(n, nil))=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

There are no hypotheses.




----------------------------------------

(27)
Obligation:
Formula:
n:sort[a0].(rm'(n, cons(n, nil))=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

There are no hypotheses.




----------------------------------------

(28) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
n:sort[a0].(true=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

Hypotheses:
n:sort[a0].equal_bool(eq(n, n), true)=true





Formula:
n:sort[a0].(rm'(n, nil)=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

Hypotheses:
n:sort[a0].equal_bool(eq(n, n), true)=false






----------------------------------------

(29)
Complex Obligation (AND)

----------------------------------------

(30)
Obligation:
Formula:
n:sort[a0].(true=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

Hypotheses:
n:sort[a0].equal_bool(eq(n, n), true)=true




----------------------------------------

(31) Symbolic evaluation under hypothesis (EQUIVALENT)
Could be shown using symbolic evaluation under hypothesis, by using the following hypotheses:

n:sort[a0].equal_bool(eq(n, n), true)=true

----------------------------------------

(32)
YES

----------------------------------------

(33)
Obligation:
Formula:
n:sort[a0].(rm'(n, nil)=true->(equal_bool(eq(n, n), true)=false->~(equal_bool(eq(n, n), true)=false)))

Hypotheses:
n:sort[a0].equal_bool(eq(n, n), true)=false




----------------------------------------

(34) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(35)
YES

----------------------------------------

(36)
Obligation:
Formula:
(~(nil=nil)->rm'(min(nil), nil)=true)

There are no hypotheses.




----------------------------------------

(37) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(38)
YES

----------------------------------------

(39)
Obligation:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].(~(cons(x11, cons(y8, xs4))=nil)->rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true)

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true




----------------------------------------

(40) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true
----------------------------------------

(41)
Obligation:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true




----------------------------------------

(42) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
x11:sort[a0],xs4:sort[a34],y8:sort[a0].rm'(min(cons(x11, xs4)), cons(x11, cons(y8, xs4)))=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true






----------------------------------------

(43)
Obligation:
Formula:
x11:sort[a0],xs4:sort[a34],y8:sort[a0].rm'(min(cons(x11, xs4)), cons(x11, cons(y8, xs4)))=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true




----------------------------------------

(44) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
true=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=true





Formula:
x11:sort[a0],xs4:sort[a34],y8:sort[a0].rm'(min(cons(x11, xs4)), cons(y8, xs4))=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false






----------------------------------------

(45)
Complex Obligation (AND)

----------------------------------------

(46)
Obligation:
Formula:
true=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=true




----------------------------------------

(47) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(48)
YES

----------------------------------------

(49)
Obligation:
Formula:
x11:sort[a0],xs4:sort[a34],y8:sort[a0].rm'(min(cons(x11, xs4)), cons(y8, xs4))=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false




----------------------------------------

(50) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
true=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=true





Formula:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), xs4)=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false






----------------------------------------

(51)
Complex Obligation (AND)

----------------------------------------

(52)
Obligation:
Formula:
true=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=true




----------------------------------------

(53) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(54)
YES

----------------------------------------

(55)
Obligation:
Formula:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), xs4)=true

Hypotheses:
x11:sort[a0],xs4:sort[a34].rm'(min(cons(x11, xs4)), cons(x11, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false




----------------------------------------

(56) Hypothesis Lifting (EQUIVALENT)
Formula could be generalised by hypothesis lifting to the following new obligation:
Formula:
x11:sort[a0],xs4:sort[a34].(rm'(min(cons(x11, xs4)), cons(x11, xs4))=true->rm'(min(cons(x11, xs4)), xs4)=true)

Hypotheses:
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false




----------------------------------------

(57)
Obligation:
Formula:
x11:sort[a0],xs4:sort[a34].(rm'(min(cons(x11, xs4)), cons(x11, xs4))=true->rm'(min(cons(x11, xs4)), xs4)=true)

Hypotheses:
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false




----------------------------------------

(58) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
x11:sort[a0],xs4:sort[a34].(rm'(min(cons(x11, xs4)), xs4)=true->rm'(min(cons(x11, xs4)), xs4)=true)

Hypotheses:
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false






----------------------------------------

(59)
Obligation:
Formula:
x11:sort[a0],xs4:sort[a34].(rm'(min(cons(x11, xs4)), xs4)=true->rm'(min(cons(x11, xs4)), xs4)=true)

Hypotheses:
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=true
x11:sort[a0],xs4:sort[a34].equal_bool(eq(min(cons(x11, xs4)), x11), true)=false
x11:sort[a0],xs4:sort[a34],y8:sort[a0].equal_bool(eq(min(cons(x11, xs4)), y8), true)=false




----------------------------------------

(60) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(61)
YES

----------------------------------------

(62)
Obligation:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].(~(cons(x11, cons(y8, xs4))=nil)->rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true)

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false




----------------------------------------

(63) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true
----------------------------------------

(64)
Obligation:
Formula:
x11:sort[a0],y8:sort[a0],xs4:sort[a34].rm'(min(cons(x11, cons(y8, xs4))), cons(x11, cons(y8, xs4)))=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false




----------------------------------------

(65) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
y8:sort[a0],xs4:sort[a34],x11:sort[a0].rm'(min(cons(y8, xs4)), cons(x11, cons(y8, xs4)))=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false






----------------------------------------

(66)
Obligation:
Formula:
y8:sort[a0],xs4:sort[a34],x11:sort[a0].rm'(min(cons(y8, xs4)), cons(x11, cons(y8, xs4)))=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false




----------------------------------------

(67) Conditional Evaluation (EQUIVALENT)
The formula could be reduced to the following new obligations by conditional evaluation:
Formula:
true=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false
y8:sort[a0],xs4:sort[a34],x11:sort[a0].equal_bool(eq(min(cons(y8, xs4)), x11), true)=true





Formula:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false
y8:sort[a0],xs4:sort[a34],x11:sort[a0].equal_bool(eq(min(cons(y8, xs4)), x11), true)=false






----------------------------------------

(68)
Complex Obligation (AND)

----------------------------------------

(69)
Obligation:
Formula:
true=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false
y8:sort[a0],xs4:sort[a34],x11:sort[a0].equal_bool(eq(min(cons(y8, xs4)), x11), true)=true




----------------------------------------

(70) Symbolic evaluation (EQUIVALENT)
Could be reduced to the following new obligation by simple symbolic evaluation:
True
----------------------------------------

(71)
YES

----------------------------------------

(72)
Obligation:
Formula:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true

Hypotheses:
y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true
x11:sort[a0],y8:sort[a0].equal_bool(le(x11, y8), true)=false
y8:sort[a0],xs4:sort[a34],x11:sort[a0].equal_bool(eq(min(cons(y8, xs4)), x11), true)=false




----------------------------------------

(73) Symbolic evaluation under hypothesis (EQUIVALENT)
Could be shown using symbolic evaluation under hypothesis, by using the following hypotheses:

y8:sort[a0],xs4:sort[a34].rm'(min(cons(y8, xs4)), cons(y8, xs4))=true

----------------------------------------

(74)
YES

(43) Complex Obligation (AND)

(44) Obligation:

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

min(cons(x, nil)) → x
min(cons(x, cons(y, xs))) → if1(le(x, y), x, y, xs)
if1(true, x, y, xs) → min(cons(x, xs))
if1(false, x, y, xs) → min(cons(y, xs))
rm(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → rm(x, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(false, x, y, xs) → cons(y, rm(x, xs))
rm(x, nil) → nil
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
min(nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, nil)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)

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

(45) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(46) YES

(47) Obligation:

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

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

Q is empty.

(48) Overlay + Local Confluence (EQUIVALENT transformation)

The TRS is overlay and locally confluent. By [NOC] we can switch to innermost.

(49) Obligation:

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

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(50) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(51) Obligation:

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

RM'(x50, cons(y41, xs25)) → IF2'(eq(x50, y41), x50, y41, xs25)
RM'(x50, cons(y41, xs25)) → EQ(x50, y41)
IF2'(false, x126, y105, xs63) → RM'(x126, xs63)
MIN(cons(x11, cons(y8, xs4))) → IF1(le(x11, y8), x11, y8, xs4)
MIN(cons(x11, cons(y8, xs4))) → LE(x11, y8)
IF1(true, x24, y19, xs11) → MIN(cons(x24, xs11))
IF1(false, x37, y30, xs18) → MIN(cons(y30, xs18))
RM(x50, cons(y41, xs25)) → IF2(eq(x50, y41), x50, y41, xs25)
RM(x50, cons(y41, xs25)) → EQ(x50, y41)
IF2(true, x63, y52, xs32) → RM(x63, xs32)
EQ(s(x113), s(y94)) → EQ(x113, y94)
IF2(false, x126, y105, xs63) → RM(x126, xs63)
LE(s(x177), s(y147)) → LE(x177, y147)
EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → AND(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x0, x2)
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x1, x3)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(52) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 7 SCCs with 4 less nodes.

(53) Complex Obligation (AND)

(54) Obligation:

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

EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x1, x3)
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x0, x2)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(55) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(56) Obligation:

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

EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x1, x3)
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x0, x2)

R is empty.
The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(57) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(58) Obligation:

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

EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x1, x3)
EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x0, x2)

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

(59) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x1, x3)
    The graph contains the following edges 1 > 1, 2 > 2

  • EQUAL_SORT[A34](cons(x0, x1), cons(x2, x3)) → EQUAL_SORT[A34](x0, x2)
    The graph contains the following edges 1 > 1, 2 > 2

(60) YES

(61) Obligation:

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

EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(62) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(63) Obligation:

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

EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)

R is empty.
The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(64) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(65) Obligation:

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

EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)

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

(66) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)
    The graph contains the following edges 1 > 1, 2 > 2

(67) YES

(68) Obligation:

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

LE(s(x177), s(y147)) → LE(x177, y147)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(69) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(70) Obligation:

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

LE(s(x177), s(y147)) → LE(x177, y147)

R is empty.
The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(71) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(72) Obligation:

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

LE(s(x177), s(y147)) → LE(x177, y147)

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

(73) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LE(s(x177), s(y147)) → LE(x177, y147)
    The graph contains the following edges 1 > 1, 2 > 2

(74) YES

(75) Obligation:

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

EQ(s(x113), s(y94)) → EQ(x113, y94)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(76) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(77) Obligation:

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

EQ(s(x113), s(y94)) → EQ(x113, y94)

R is empty.
The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(78) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(79) Obligation:

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

EQ(s(x113), s(y94)) → EQ(x113, y94)

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

(80) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • EQ(s(x113), s(y94)) → EQ(x113, y94)
    The graph contains the following edges 1 > 1, 2 > 2

(81) YES

(82) Obligation:

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

IF2(true, x63, y52, xs32) → RM(x63, xs32)
RM(x50, cons(y41, xs25)) → IF2(eq(x50, y41), x50, y41, xs25)
IF2(false, x126, y105, xs63) → RM(x126, xs63)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(83) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(84) Obligation:

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

IF2(true, x63, y52, xs32) → RM(x63, xs32)
RM(x50, cons(y41, xs25)) → IF2(eq(x50, y41), x50, y41, xs25)
IF2(false, x126, y105, xs63) → RM(x126, xs63)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(85) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(86) Obligation:

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

IF2(true, x63, y52, xs32) → RM(x63, xs32)
RM(x50, cons(y41, xs25)) → IF2(eq(x50, y41), x50, y41, xs25)
IF2(false, x126, y105, xs63) → RM(x126, xs63)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)

The set Q consists of the following terms:

eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))

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

(87) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • RM(x50, cons(y41, xs25)) → IF2(eq(x50, y41), x50, y41, xs25)
    The graph contains the following edges 1 >= 2, 2 > 3, 2 > 4

  • IF2(true, x63, y52, xs32) → RM(x63, xs32)
    The graph contains the following edges 2 >= 1, 4 >= 2

  • IF2(false, x126, y105, xs63) → RM(x126, xs63)
    The graph contains the following edges 2 >= 1, 4 >= 2

(88) YES

(89) Obligation:

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

IF1(true, x24, y19, xs11) → MIN(cons(x24, xs11))
MIN(cons(x11, cons(y8, xs4))) → IF1(le(x11, y8), x11, y8, xs4)
IF1(false, x37, y30, xs18) → MIN(cons(y30, xs18))

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(90) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(91) Obligation:

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

IF1(true, x24, y19, xs11) → MIN(cons(x24, xs11))
MIN(cons(x11, cons(y8, xs4))) → IF1(le(x11, y8), x11, y8, xs4)
IF1(false, x37, y30, xs18) → MIN(cons(y30, xs18))

The TRS R consists of the following rules:

le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(92) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(93) Obligation:

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

IF1(true, x24, y19, xs11) → MIN(cons(x24, xs11))
MIN(cons(x11, cons(y8, xs4))) → IF1(le(x11, y8), x11, y8, xs4)
IF1(false, x37, y30, xs18) → MIN(cons(y30, xs18))

The TRS R consists of the following rules:

le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))

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

(94) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


IF1(true, x24, y19, xs11) → MIN(cons(x24, xs11))
IF1(false, x37, y30, xs18) → MIN(cons(y30, xs18))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:

POL( IF1(x1, ..., x4) ) = max{0, x1 + x2 + x3 + 2x4 - 1}


POL( le(x1, x2) ) = x2 + 2


POL( 0 ) = 1


POL( true ) = 2


POL( s(x1) ) = 2x1 + 2


POL( false ) = 2


POL( MIN(x1) ) = max{0, x1 - 2}


POL( cons(x1, x2) ) = x1 + 2x2 + 1



The following usable rules [FROCOS05] were oriented:

le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)

(95) Obligation:

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

MIN(cons(x11, cons(y8, xs4))) → IF1(le(x11, y8), x11, y8, xs4)

The TRS R consists of the following rules:

le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))

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

(96) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(97) TRUE

(98) Obligation:

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

IF2'(false, x126, y105, xs63) → RM'(x126, xs63)
RM'(x50, cons(y41, xs25)) → IF2'(eq(x50, y41), x50, y41, xs25)

The TRS R consists of the following rules:

rm'(x50, cons(y41, xs25)) → if2'(eq(x50, y41), x50, y41, xs25)
if2'(true, x63, y52, xs32) → true
if2'(false, x126, y105, xs63) → rm'(x126, xs63)
rm'(x139, nil) → false
min(cons(x, nil)) → x
min(cons(x11, cons(y8, xs4))) → if1(le(x11, y8), x11, y8, xs4)
if1(true, x24, y19, xs11) → min(cons(x24, xs11))
if1(false, x37, y30, xs18) → min(cons(y30, xs18))
rm(x50, cons(y41, xs25)) → if2(eq(x50, y41), x50, y41, xs25)
if2(true, x63, y52, xs32) → rm(x63, xs32)
eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)
if2(false, x126, y105, xs63) → cons(y105, rm(x126, xs63))
rm(x139, nil) → nil
le(0, y126) → true
le(s(x164), 0) → false
le(s(x177), s(y147)) → le(x177, y147)
min(nil) → 0
equal_bool(true, false) → false
equal_bool(false, true) → false
equal_bool(true, true) → true
equal_bool(false, false) → true
and(true, x) → x
and(false, x) → false
or(true, x) → true
or(false, x) → x
not(false) → true
not(true) → false
isa_true(true) → true
isa_true(false) → false
isa_false(true) → false
isa_false(false) → true
equal_sort[a0](0, 0) → true
equal_sort[a0](0, s(x0)) → false
equal_sort[a0](s(x0), 0) → false
equal_sort[a0](s(x0), s(x1)) → equal_sort[a0](x0, x1)
equal_sort[a34](cons(x0, x1), cons(x2, x3)) → and(equal_sort[a34](x0, x2), equal_sort[a34](x1, x3))
equal_sort[a34](cons(x0, x1), nil) → false
equal_sort[a34](nil, cons(x0, x1)) → false
equal_sort[a34](nil, nil) → true
equal_sort[a60](witness_sort[a60], witness_sort[a60]) → true

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(99) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(100) Obligation:

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

IF2'(false, x126, y105, xs63) → RM'(x126, xs63)
RM'(x50, cons(y41, xs25)) → IF2'(eq(x50, y41), x50, y41, xs25)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)

The set Q consists of the following terms:

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

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

(101) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

rm'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
rm'(x0, nil)
min(cons(x0, nil))
min(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
rm(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
rm(x0, nil)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
min(nil)
equal_bool(true, false)
equal_bool(false, true)
equal_bool(true, true)
equal_bool(false, false)
and(true, x0)
and(false, x0)
or(true, x0)
or(false, x0)
not(false)
not(true)
isa_true(true)
isa_true(false)
isa_false(true)
isa_false(false)
equal_sort[a0](0, 0)
equal_sort[a0](0, s(x0))
equal_sort[a0](s(x0), 0)
equal_sort[a0](s(x0), s(x1))
equal_sort[a34](cons(x0, x1), cons(x2, x3))
equal_sort[a34](cons(x0, x1), nil)
equal_sort[a34](nil, cons(x0, x1))
equal_sort[a34](nil, nil)
equal_sort[a60](witness_sort[a60], witness_sort[a60])

(102) Obligation:

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

IF2'(false, x126, y105, xs63) → RM'(x126, xs63)
RM'(x50, cons(y41, xs25)) → IF2'(eq(x50, y41), x50, y41, xs25)

The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(y73)) → false
eq(s(x100), 0) → false
eq(s(x113), s(y94)) → eq(x113, y94)

The set Q consists of the following terms:

eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))

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

(103) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • RM'(x50, cons(y41, xs25)) → IF2'(eq(x50, y41), x50, y41, xs25)
    The graph contains the following edges 1 >= 2, 2 > 3, 2 > 4

  • IF2'(false, x126, y105, xs63) → RM'(x126, xs63)
    The graph contains the following edges 2 >= 1, 4 >= 2

(104) YES