0 QTRS
↳1 Overlay + Local Confluence (⇔)
↳2 QTRS
↳3 DependencyPairsProof (⇔)
↳4 QDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 QDP
↳8 UsableRulesProof (⇔)
↳9 QDP
↳10 QReductionProof (⇔)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 YES
↳14 QDP
↳15 UsableRulesProof (⇔)
↳16 QDP
↳17 QReductionProof (⇔)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 YES
↳21 QDP
↳22 UsableRulesProof (⇔)
↳23 QDP
↳24 QReductionProof (⇔)
↳25 QDP
↳26 QDPSizeChangeProof (⇔)
↳27 YES
↳28 QDP
↳29 UsableRulesProof (⇔)
↳30 QDP
↳31 QReductionProof (⇔)
↳32 QDP
↳33 QDPOrderProof (⇔)
↳34 QDP
↳35 DependencyGraphProof (⇔)
↳36 TRUE
↳37 QDP
↳38 UsableRulesProof (⇔)
↳39 QDP
↳40 QReductionProof (⇔)
↳41 QDP
↳42 Induction-Processor (⇐)
↳43 AND
↳44 QDP
↳45 PisEmptyProof (⇔)
↳46 YES
↳47 QTRS
↳48 Overlay + Local Confluence (⇔)
↳49 QTRS
↳50 DependencyPairsProof (⇔)
↳51 QDP
↳52 DependencyGraphProof (⇔)
↳53 AND
↳54 QDP
↳55 UsableRulesProof (⇔)
↳56 QDP
↳57 QReductionProof (⇔)
↳58 QDP
↳59 QDPSizeChangeProof (⇔)
↳60 YES
↳61 QDP
↳62 UsableRulesProof (⇔)
↳63 QDP
↳64 QReductionProof (⇔)
↳65 QDP
↳66 QDPSizeChangeProof (⇔)
↳67 YES
↳68 QDP
↳69 UsableRulesProof (⇔)
↳70 QDP
↳71 QReductionProof (⇔)
↳72 QDP
↳73 QDPSizeChangeProof (⇔)
↳74 YES
↳75 QDP
↳76 UsableRulesProof (⇔)
↳77 QDP
↳78 QReductionProof (⇔)
↳79 QDP
↳80 QDPSizeChangeProof (⇔)
↳81 YES
↳82 QDP
↳83 UsableRulesProof (⇔)
↳84 QDP
↳85 QReductionProof (⇔)
↳86 QDP
↳87 QDPSizeChangeProof (⇔)
↳88 YES
↳89 QDP
↳90 UsableRulesProof (⇔)
↳91 QDP
↳92 QReductionProof (⇔)
↳93 QDP
↳94 QDPOrderProof (⇔)
↳95 QDP
↳96 DependencyGraphProof (⇔)
↳97 TRUE
↳98 QDP
↳99 UsableRulesProof (⇔)
↳100 QDP
↳101 QReductionProof (⇔)
↳102 QDP
↳103 QDPSizeChangeProof (⇔)
↳104 YES
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
MAX(cons(x, cons(y, xs))) → IF1(ge(x, y), x, y, xs)
MAX(cons(x, cons(y, xs))) → GE(x, y)
IF1(true, x, y, xs) → MAX(cons(x, xs))
IF1(false, x, y, xs) → MAX(cons(y, xs))
DEL(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
DEL(x, cons(y, xs)) → EQ(x, y)
IF2(false, x, y, xs) → DEL(x, xs)
EQ(s(x), s(y)) → EQ(x, y)
SORT(cons(x, xs)) → MAX(cons(x, xs))
SORT(cons(x, xs)) → SORT(del(max(cons(x, xs)), cons(x, xs)))
SORT(cons(x, xs)) → DEL(max(cons(x, xs)), cons(x, xs))
GE(s(x), s(y)) → GE(x, y)
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
GE(s(x), s(y)) → GE(x, y)
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
GE(s(x), s(y)) → GE(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
GE(s(x), s(y)) → GE(x, y)
From the DPs we obtained the following set of size-change graphs:
EQ(s(x), s(y)) → EQ(x, y)
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
EQ(s(x), s(y)) → EQ(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
EQ(s(x), s(y)) → EQ(x, y)
From the DPs we obtained the following set of size-change graphs:
IF2(false, x, y, xs) → DEL(x, xs)
DEL(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
IF2(false, x, y, xs) → DEL(x, xs)
DEL(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
IF2(false, x, y, xs) → DEL(x, xs)
DEL(x, cons(y, xs)) → IF2(eq(x, y), x, y, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
From the DPs we obtained the following set of size-change graphs:
IF1(true, x, y, xs) → MAX(cons(x, xs))
MAX(cons(x, cons(y, xs))) → IF1(ge(x, y), x, y, xs)
IF1(false, x, y, xs) → MAX(cons(y, xs))
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
IF1(true, x, y, xs) → MAX(cons(x, xs))
MAX(cons(x, cons(y, xs))) → IF1(ge(x, y), x, y, xs)
IF1(false, x, y, xs) → MAX(cons(y, xs))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
IF1(true, x, y, xs) → MAX(cons(x, xs))
MAX(cons(x, cons(y, xs))) → IF1(ge(x, y), x, y, xs)
IF1(false, x, y, xs) → MAX(cons(y, xs))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF1(true, x, y, xs) → MAX(cons(x, xs))
IF1(false, x, y, xs) → MAX(cons(y, xs))
POL(IF1(x1, x2, x3, x4)) = 1 +
[ 0, 0 ] · x1 +
[ 0, 0 ] · x2 +
[ 0, 0 ] · x3 +
[ 0, 1 ] · x4
POL(true) =
/ 0 \ \ 1 /
POL(MAX(x1)) = 0 +
[ 1, 0 ] · x1
POL(cons(x1, x2)) =
/ 0 \ \ 1 / +
/ 0 0 \ \ 0 0 / · x1 +
/ 0 1 \ \ 0 1 / · x2
POL(ge(x1, x2)) =
/ 0 \ \ 0 / +
/ 0 1 \ \ 1 0 / · x1 +
/ 0 1 \ \ 1 0 / · x2
POL(false) =
/ 0 \ \ 1 /
POL(0) =
/ 0 \ \ 0 /
POL(s(x1)) =
/ 0 \ \ 0 / +
/ 0 1 \ \ 0 0 / · x1
MAX(cons(x, cons(y, xs))) → IF1(ge(x, y), x, y, xs)
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
SORT(cons(x, xs)) → SORT(del(max(cons(x, xs)), cons(x, xs)))
max(nil) → 0
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, nil) → nil
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
sort(nil) → nil
sort(cons(x, xs)) → cons(max(cons(x, xs)), sort(del(max(cons(x, xs)), cons(x, xs))))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
SORT(cons(x, xs)) → SORT(del(max(cons(x, xs)), cons(x, xs)))
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
del(x, nil) → nil
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
sort(nil)
sort(cons(x0, x1))
SORT(cons(x, xs)) → SORT(del(max(cons(x, xs)), cons(x, xs)))
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
del(x, nil) → nil
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
POL(0) = 0
POL(SORT(x1)) = 2·x1
POL(cons(x1, x2)) = 1 + 2·x1 + x2
POL(del(x1, x2)) = x2
POL(eq(x1, x2)) = 0
POL(false) = 0
POL(ge(x1, x2)) = 0
POL(if1(x1, x2, x3, x4)) = 1 + 2·x2 + 2·x3 + x4
POL(if2(x1, x2, x3, x4)) = 1 + 2·x3 + x4
POL(max(x1)) = x1
POL(nil) = 0
POL(s(x1)) = 0
POL(true) = 0
[x, x0, x1, x2, x3, x122, y85, xs56, x136, y95, y37, xs25, x150, x54, x12, y7, xs4, y56, x94, x108, y75, x164, x178, x192, y132, x26, y17, x40, y27, 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, x122, y85, xs56) -> true if2'(false, x136, y95, cons(y37, xs25)) -> if2'(eq(x136, y37), x136, y37, xs25) if2'(false, x136, y95, nil) -> false del'(x150, nil) -> false equal_bool(eq(x54, y37), true) -> true | del'(x54, cons(y37, xs25)) -> true equal_bool(eq(x54, y37), true) -> false | del'(x54, cons(y37, xs25)) -> del'(x54, xs25) max(cons(x, nil)) -> x max(nil) -> 0 equal_bool(ge(x12, y7), true) -> true | max(cons(x12, cons(y7, xs4))) -> max(cons(x12, xs4)) equal_bool(ge(x12, y7), true) -> false | max(cons(x12, cons(y7, xs4))) -> max(cons(y7, xs4)) eq(0, 0) -> true eq(0, s(y56)) -> false eq(s(x94), 0) -> false eq(s(x108), s(y75)) -> eq(x108, y75) if2(true, x122, y85, xs56) -> xs56 if2(false, x136, y95, cons(y37, xs25)) -> cons(y95, if2(eq(x136, y37), x136, y37, xs25)) if2(false, x136, y95, nil) -> cons(y95, nil) del(x150, nil) -> nil equal_bool(eq(x54, y37), true) -> true | del(x54, cons(y37, xs25)) -> xs25 equal_bool(eq(x54, y37), true) -> false | del(x54, cons(y37, xs25)) -> cons(y37, del(x54, xs25)) ge(x164, 0) -> true ge(0, s(x178)) -> false ge(s(x192), s(y132)) -> ge(x192, y132) if1(true, x26, y17, nil) -> x26 if1(true, x26, y17, cons(y7, xs4)) -> if1(ge(x26, y7), x26, y7, xs4) if1(false, x40, y27, nil) -> y27 if1(false, x40, y27, cons(y7, xs4)) -> if1(ge(y27, y7), y27, y7, xs4) if1(true, x26, y17, xs11) -> 0 if1(false, x40, y27, xs18) -> 0
proof of internal # AProVE Commit ID: 9a00b172b26c9abb2d4c4d5eaf341e919eb0fbf1 nowonder 20100222 unpublished dirty Partial correctness of the following Program [x, x0, x1, x2, x3, x122, y85, xs56, x136, y95, y37, xs25, x150, x54, x12, y7, xs4, y56, x94, x108, y75, x164, x178, x192, y132, x26, y17, x40, y27, 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, x122, y85, xs56) -> true if2'(false, x136, y95, cons(y37, xs25)) -> if2'(eq(x136, y37), x136, y37, xs25) if2'(false, x136, y95, nil) -> false del'(x150, nil) -> false equal_bool(eq(x54, y37), true) -> true | del'(x54, cons(y37, xs25)) -> true equal_bool(eq(x54, y37), true) -> false | del'(x54, cons(y37, xs25)) -> del'(x54, xs25) max(cons(x, nil)) -> x max(nil) -> 0 equal_bool(ge(x12, y7), true) -> true | max(cons(x12, cons(y7, xs4))) -> max(cons(x12, xs4)) equal_bool(ge(x12, y7), true) -> false | max(cons(x12, cons(y7, xs4))) -> max(cons(y7, xs4)) eq(0, 0) -> true eq(0, s(y56)) -> false eq(s(x94), 0) -> false eq(s(x108), s(y75)) -> eq(x108, y75) if2(true, x122, y85, xs56) -> xs56 if2(false, x136, y95, cons(y37, xs25)) -> cons(y95, if2(eq(x136, y37), x136, y37, xs25)) if2(false, x136, y95, nil) -> cons(y95, nil) del(x150, nil) -> nil equal_bool(eq(x54, y37), true) -> true | del(x54, cons(y37, xs25)) -> xs25 equal_bool(eq(x54, y37), true) -> false | del(x54, cons(y37, xs25)) -> cons(y37, del(x54, xs25)) ge(x164, 0) -> true ge(0, s(x178)) -> false ge(s(x192), s(y132)) -> ge(x192, y132) if1(true, x26, y17, nil) -> x26 if1(true, x26, y17, cons(y7, xs4)) -> if1(ge(x26, y7), x26, y7, xs4) if1(false, x40, y27, nil) -> y27 if1(false, x40, y27, cons(y7, xs4)) -> if1(ge(y27, y7), y27, y7, xs4) if1(true, x26, y17, xs11) -> 0 if1(false, x40, y27, xs18) -> 0 using the following formula: z0:sort[a34].(~(z0=nil)->del'(max(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)->del'(max(z0), z0)=true) There are no hypotheses. ---------------------------------------- (1) Induction by algorithm (EQUIVALENT) Induction by algorithm max(z0) generates the following cases: 1. Base Case: Formula: x:sort[a0].(~(cons(x, nil)=nil)->del'(max(cons(x, nil)), cons(x, nil))=true) There are no hypotheses. 2. Base Case: Formula: (~(nil=nil)->del'(max(nil), nil)=true) There are no hypotheses. 1. Step Case: Formula: x12:sort[a0],y7:sort[a0],xs4:sort[a34].(~(cons(x12, cons(y7, xs4))=nil)->del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true) Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true 2. Step Case: Formula: x12:sort[a0],y7:sort[a0],xs4:sort[a34].(~(cons(x12, cons(y7, xs4))=nil)->del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true) Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false ---------------------------------------- (2) Complex Obligation (AND) ---------------------------------------- (3) Obligation: Formula: x:sort[a0].(~(cons(x, nil)=nil)->del'(max(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].del'(x, cons(x, nil))=true ---------------------------------------- (5) Obligation: Formula: x:sort[a0].del'(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: del'(0, cons(0, nil))=true There are no hypotheses. 1. Step Case: Formula: n:sort[a0].del'(s(n), cons(s(n), nil))=true Hypotheses: n:sort[a0].del'(n, cons(n, nil))=true ---------------------------------------- (7) Complex Obligation (AND) ---------------------------------------- (8) Obligation: Formula: del'(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].del'(s(n), cons(s(n), nil))=true Hypotheses: n:sort[a0].del'(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].del'(n, cons(n, nil))=true n:sort[a0].equal_bool(eq(s(n), s(n)), true)=true Formula: n:sort[a0].del'(s(n), nil)=true Hypotheses: n:sort[a0].del'(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].del'(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].del'(s(n), nil)=true Hypotheses: n:sort[a0].del'(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].del'(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].((del'(n, cons(n, nil))=true/\equal_bool(eq(s(n), s(n)), true)=false)->False) Hypotheses: n:sort[a0].del'(n, cons(n, nil))=true n:sort[a0].equal_bool(eq(s(n), s(n)), true)=false ---------------------------------------- (21) Obligation: Formula: n:sort[a0].((del'(n, cons(n, nil))=true/\equal_bool(eq(s(n), s(n)), true)=false)->False) Hypotheses: n:sort[a0].del'(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].del'(n, cons(n, nil))=true ---------------------------------------- (23) Obligation: Formula: n:sort[a0].~(equal_bool(eq(n, n), true)=false) Hypotheses: n:sort[a0].del'(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].del'(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].del'(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].(del'(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].(del'(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].(del'(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].(del'(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)->del'(max(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: x12:sort[a0],y7:sort[a0],xs4:sort[a34].(~(cons(x12, cons(y7, xs4))=nil)->del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true) Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true ---------------------------------------- (40) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: x12:sort[a0],y7:sort[a0],xs4:sort[a34].del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true ---------------------------------------- (41) Obligation: Formula: x12:sort[a0],y7:sort[a0],xs4:sort[a34].del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true ---------------------------------------- (42) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: x12:sort[a0],xs4:sort[a34],y7:sort[a0].del'(max(cons(x12, xs4)), cons(x12, cons(y7, xs4)))=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true ---------------------------------------- (43) Obligation: Formula: x12:sort[a0],xs4:sort[a34],y7:sort[a0].del'(max(cons(x12, xs4)), cons(x12, cons(y7, xs4)))=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true ---------------------------------------- (44) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: true=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=true Formula: x12:sort[a0],xs4:sort[a34],y7:sort[a0].del'(max(cons(x12, xs4)), cons(y7, xs4))=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false ---------------------------------------- (45) Complex Obligation (AND) ---------------------------------------- (46) Obligation: Formula: true=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=true ---------------------------------------- (47) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (48) YES ---------------------------------------- (49) Obligation: Formula: x12:sort[a0],xs4:sort[a34],y7:sort[a0].del'(max(cons(x12, xs4)), cons(y7, xs4))=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false ---------------------------------------- (50) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: true=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=true Formula: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), xs4)=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (51) Complex Obligation (AND) ---------------------------------------- (52) Obligation: Formula: true=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=true ---------------------------------------- (53) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (54) YES ---------------------------------------- (55) Obligation: Formula: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), xs4)=true Hypotheses: x12:sort[a0],xs4:sort[a34].del'(max(cons(x12, xs4)), cons(x12, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (56) Hypothesis Lifting (EQUIVALENT) Formula could be generalised by hypothesis lifting to the following new obligation: Formula: x12:sort[a0],xs4:sort[a34].(del'(max(cons(x12, xs4)), cons(x12, xs4))=true->del'(max(cons(x12, xs4)), xs4)=true) Hypotheses: x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (57) Obligation: Formula: x12:sort[a0],xs4:sort[a34].(del'(max(cons(x12, xs4)), cons(x12, xs4))=true->del'(max(cons(x12, xs4)), xs4)=true) Hypotheses: x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (58) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: x12:sort[a0],xs4:sort[a34].(del'(max(cons(x12, xs4)), xs4)=true->del'(max(cons(x12, xs4)), xs4)=true) Hypotheses: x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (59) Obligation: Formula: x12:sort[a0],xs4:sort[a34].(del'(max(cons(x12, xs4)), xs4)=true->del'(max(cons(x12, xs4)), xs4)=true) Hypotheses: x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=true x12:sort[a0],xs4:sort[a34].equal_bool(eq(max(cons(x12, xs4)), x12), true)=false x12:sort[a0],xs4:sort[a34],y7:sort[a0].equal_bool(eq(max(cons(x12, xs4)), y7), true)=false ---------------------------------------- (60) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (61) YES ---------------------------------------- (62) Obligation: Formula: x12:sort[a0],y7:sort[a0],xs4:sort[a34].(~(cons(x12, cons(y7, xs4))=nil)->del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true) Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false ---------------------------------------- (63) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: x12:sort[a0],y7:sort[a0],xs4:sort[a34].del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true ---------------------------------------- (64) Obligation: Formula: x12:sort[a0],y7:sort[a0],xs4:sort[a34].del'(max(cons(x12, cons(y7, xs4))), cons(x12, cons(y7, xs4)))=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false ---------------------------------------- (65) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: y7:sort[a0],xs4:sort[a34],x12:sort[a0].del'(max(cons(y7, xs4)), cons(x12, cons(y7, xs4)))=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false ---------------------------------------- (66) Obligation: Formula: y7:sort[a0],xs4:sort[a34],x12:sort[a0].del'(max(cons(y7, xs4)), cons(x12, cons(y7, xs4)))=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false ---------------------------------------- (67) Conditional Evaluation (EQUIVALENT) The formula could be reduced to the following new obligations by conditional evaluation: Formula: true=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false y7:sort[a0],xs4:sort[a34],x12:sort[a0].equal_bool(eq(max(cons(y7, xs4)), x12), true)=true Formula: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false y7:sort[a0],xs4:sort[a34],x12:sort[a0].equal_bool(eq(max(cons(y7, xs4)), x12), true)=false ---------------------------------------- (68) Complex Obligation (AND) ---------------------------------------- (69) Obligation: Formula: true=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false y7:sort[a0],xs4:sort[a34],x12:sort[a0].equal_bool(eq(max(cons(y7, xs4)), x12), true)=true ---------------------------------------- (70) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (71) YES ---------------------------------------- (72) Obligation: Formula: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true Hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true x12:sort[a0],y7:sort[a0].equal_bool(ge(x12, y7), true)=false y7:sort[a0],xs4:sort[a34],x12:sort[a0].equal_bool(eq(max(cons(y7, xs4)), x12), true)=false ---------------------------------------- (73) Symbolic evaluation under hypothesis (EQUIVALENT) Could be shown using symbolic evaluation under hypothesis, by using the following hypotheses: y7:sort[a0],xs4:sort[a34].del'(max(cons(y7, xs4)), cons(y7, xs4))=true ---------------------------------------- (74) YES
max(cons(x, nil)) → x
max(cons(x, cons(y, xs))) → if1(ge(x, y), x, y, xs)
if1(true, x, y, xs) → max(cons(x, xs))
if1(false, x, y, xs) → max(cons(y, xs))
del(x, cons(y, xs)) → if2(eq(x, y), x, y, xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if2(true, x, y, xs) → xs
if2(false, x, y, xs) → cons(y, del(x, xs))
del(x, nil) → nil
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
max(nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, nil)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
DEL'(x54, cons(y37, xs25)) → IF2'(eq(x54, y37), x54, y37, xs25)
DEL'(x54, cons(y37, xs25)) → EQ(x54, y37)
IF2'(false, x136, y95, xs63) → DEL'(x136, xs63)
MAX(cons(x12, cons(y7, xs4))) → IF1(ge(x12, y7), x12, y7, xs4)
MAX(cons(x12, cons(y7, xs4))) → GE(x12, y7)
IF1(true, x26, y17, xs11) → MAX(cons(x26, xs11))
IF1(false, x40, y27, xs18) → MAX(cons(y27, xs18))
DEL(x54, cons(y37, xs25)) → IF2(eq(x54, y37), x54, y37, xs25)
DEL(x54, cons(y37, xs25)) → EQ(x54, y37)
EQ(s(x108), s(y75)) → EQ(x108, y75)
IF2(false, x136, y95, xs63) → DEL(x136, xs63)
GE(s(x192), s(y132)) → GE(x192, y132)
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)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
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)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
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)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
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)
From the DPs we obtained the following set of size-change graphs:
EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
EQUAL_SORT[A0](s(x0), s(x1)) → EQUAL_SORT[A0](x0, x1)
From the DPs we obtained the following set of size-change graphs:
GE(s(x192), s(y132)) → GE(x192, y132)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
GE(s(x192), s(y132)) → GE(x192, y132)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
GE(s(x192), s(y132)) → GE(x192, y132)
From the DPs we obtained the following set of size-change graphs:
EQ(s(x108), s(y75)) → EQ(x108, y75)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
EQ(s(x108), s(y75)) → EQ(x108, y75)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
EQ(s(x108), s(y75)) → EQ(x108, y75)
From the DPs we obtained the following set of size-change graphs:
IF2(false, x136, y95, xs63) → DEL(x136, xs63)
DEL(x54, cons(y37, xs25)) → IF2(eq(x54, y37), x54, y37, xs25)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
IF2(false, x136, y95, xs63) → DEL(x136, xs63)
DEL(x54, cons(y37, xs25)) → IF2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
IF2(false, x136, y95, xs63) → DEL(x136, xs63)
DEL(x54, cons(y37, xs25)) → IF2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
From the DPs we obtained the following set of size-change graphs:
IF1(true, x26, y17, xs11) → MAX(cons(x26, xs11))
MAX(cons(x12, cons(y7, xs4))) → IF1(ge(x12, y7), x12, y7, xs4)
IF1(false, x40, y27, xs18) → MAX(cons(y27, xs18))
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
IF1(true, x26, y17, xs11) → MAX(cons(x26, xs11))
MAX(cons(x12, cons(y7, xs4))) → IF1(ge(x12, y7), x12, y7, xs4)
IF1(false, x40, y27, xs18) → MAX(cons(y27, xs18))
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
max(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])
IF1(true, x26, y17, xs11) → MAX(cons(x26, xs11))
MAX(cons(x12, cons(y7, xs4))) → IF1(ge(x12, y7), x12, y7, xs4)
IF1(false, x40, y27, xs18) → MAX(cons(y27, xs18))
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF1(true, x26, y17, xs11) → MAX(cons(x26, xs11))
IF1(false, x40, y27, xs18) → MAX(cons(y27, xs18))
POL(IF1(x1, x2, x3, x4)) = 1 +
[ 0, 0 ] · x1 +
[ 0, 0 ] · x2 +
[ 0, 0 ] · x3 +
[ 0, 1 ] · x4
POL(true) =
/ 0 \ \ 1 /
POL(MAX(x1)) = 0 +
[ 1, 0 ] · x1
POL(cons(x1, x2)) =
/ 0 \ \ 1 / +
/ 0 0 \ \ 0 0 / · x1 +
/ 0 1 \ \ 0 1 / · x2
POL(ge(x1, x2)) =
/ 0 \ \ 0 / +
/ 0 1 \ \ 1 0 / · x1 +
/ 0 1 \ \ 1 0 / · x2
POL(false) =
/ 0 \ \ 1 /
POL(0) =
/ 0 \ \ 0 /
POL(s(x1)) =
/ 0 \ \ 0 / +
/ 0 1 \ \ 0 0 / · x1
MAX(cons(x12, cons(y7, xs4))) → IF1(ge(x12, y7), x12, y7, xs4)
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
IF2'(false, x136, y95, xs63) → DEL'(x136, xs63)
DEL'(x54, cons(y37, xs25)) → IF2'(eq(x54, y37), x54, y37, xs25)
del'(x54, cons(y37, xs25)) → if2'(eq(x54, y37), x54, y37, xs25)
if2'(true, x122, y85, xs56) → true
if2'(false, x136, y95, xs63) → del'(x136, xs63)
del'(x150, nil) → false
max(cons(x, nil)) → x
max(cons(x12, cons(y7, xs4))) → if1(ge(x12, y7), x12, y7, xs4)
if1(true, x26, y17, xs11) → max(cons(x26, xs11))
if1(false, x40, y27, xs18) → max(cons(y27, xs18))
del(x54, cons(y37, xs25)) → if2(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
if2(true, x122, y85, xs56) → xs56
if2(false, x136, y95, xs63) → cons(y95, del(x136, xs63))
del(x150, nil) → nil
ge(x164, 0) → true
ge(0, s(x178)) → false
ge(s(x192), s(y132)) → ge(x192, y132)
max(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
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
IF2'(false, x136, y95, xs63) → DEL'(x136, xs63)
DEL'(x54, cons(y37, xs25)) → IF2'(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
del'(x0, cons(x1, x2))
if2'(true, x0, x1, x2)
if2'(false, x0, x1, x2)
del'(x0, nil)
max(cons(x0, nil))
max(cons(x0, cons(x1, x2)))
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
del(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
del(x0, nil)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
max(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])
IF2'(false, x136, y95, xs63) → DEL'(x136, xs63)
DEL'(x54, cons(y37, xs25)) → IF2'(eq(x54, y37), x54, y37, xs25)
eq(0, 0) → true
eq(0, s(y56)) → false
eq(s(x94), 0) → false
eq(s(x108), s(y75)) → eq(x108, y75)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
From the DPs we obtained the following set of size-change graphs: