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 Narrowing (⇔)
↳34 QDP
↳35 DependencyGraphProof (⇔)
↳36 QDP
↳37 Narrowing (⇔)
↳38 QDP
↳39 DependencyGraphProof (⇔)
↳40 QDP
↳41 Narrowing (⇔)
↳42 QDP
↳43 Instantiation (⇔)
↳44 QDP
↳45 Instantiation (⇔)
↳46 QDP
↳47 Rewriting (⇔)
↳48 QDP
↳49 Induction-Processor (⇐)
↳50 AND
↳51 QDP
↳52 DependencyGraphProof (⇔)
↳53 TRUE
↳54 QTRS
↳55 QTRSRRRProof (⇔)
↳56 QTRS
↳57 QTRSRRRProof (⇔)
↳58 QTRS
↳59 RisEmptyProof (⇔)
↳60 YES
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
MINUS(s(x), y) → IF(gt(s(x), y), x, y)
MINUS(s(x), y) → GT(s(x), y)
IF(true, x, y) → MINUS(x, y)
GE(s(x), s(y)) → GE(x, y)
GT(s(x), s(y)) → GT(x, y)
DIV(x, y) → IF1(ge(x, y), x, y)
DIV(x, y) → GE(x, y)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
IF1(true, x, y) → GT(y, 0)
IF2(true, x, y) → DIV(minus(x, y), y)
IF2(true, x, y) → MINUS(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
GT(s(x), s(y)) → GT(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
GT(s(x), s(y)) → GT(x, y)
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
GT(s(x), s(y)) → GT(x, y)
From the DPs we obtained the following set of size-change graphs:
GE(s(x), s(y)) → GE(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
GE(s(x), s(y)) → GE(x, y)
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
GE(s(x), s(y)) → GE(x, y)
From the DPs we obtained the following set of size-change graphs:
IF(true, x, y) → MINUS(x, y)
MINUS(s(x), y) → IF(gt(s(x), y), x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
IF(true, x, y) → MINUS(x, y)
MINUS(s(x), y) → IF(gt(s(x), y), x, y)
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
gt(0, y) → false
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
IF(true, x, y) → MINUS(x, y)
MINUS(s(x), y) → IF(gt(s(x), y), x, y)
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
gt(0, y) → false
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
From the DPs we obtained the following set of size-change graphs:
IF2(true, x, y) → DIV(minus(x, y), y)
DIV(x, y) → IF1(ge(x, y), x, y)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
gt(0, y) → false
gt(s(x), 0) → true
gt(s(x), s(y)) → gt(x, y)
div(x, y) → if1(ge(x, y), x, y)
if1(true, x, y) → if2(gt(y, 0), x, y)
if1(false, x, y) → 0
if2(true, x, y) → s(div(minus(x, y), y))
if2(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
IF2(true, x, y) → DIV(minus(x, y), y)
DIV(x, y) → IF1(ge(x, y), x, y)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
div(x0, x1)
if1(true, x0, x1)
if1(false, x0, x1)
if2(true, x0, x1)
if2(false, x0, x1)
IF2(true, x, y) → DIV(minus(x, y), y)
DIV(x, y) → IF1(ge(x, y), x, y)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
DIV(x0, 0) → IF1(true, x0, 0)
DIV(0, s(x0)) → IF1(false, 0, s(x0))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF2(true, x, y) → DIV(minus(x, y), y)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
DIV(x0, 0) → IF1(true, x0, 0)
DIV(0, s(x0)) → IF1(false, 0, s(x0))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
DIV(x0, 0) → IF1(true, x0, 0)
IF1(true, x, y) → IF2(gt(y, 0), x, y)
IF2(true, x, y) → DIV(minus(x, y), y)
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
IF1(true, y0, 0) → IF2(false, y0, 0)
IF1(true, y0, s(x0)) → IF2(true, y0, s(x0))
DIV(x0, 0) → IF1(true, x0, 0)
IF2(true, x, y) → DIV(minus(x, y), y)
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, y0, 0) → IF2(false, y0, 0)
IF1(true, y0, s(x0)) → IF2(true, y0, s(x0))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, y0, s(x0)) → IF2(true, y0, s(x0))
IF2(true, x, y) → DIV(minus(x, y), y)
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
IF2(true, s(x0), x1) → DIV(if(gt(s(x0), x1), x0, x1), x1)
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, y0, s(x0)) → IF2(true, y0, s(x0))
IF2(true, s(x0), x1) → DIV(if(gt(s(x0), x1), x0, x1), x1)
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
IF1(true, s(z0), s(z1)) → IF2(true, s(z0), s(z1))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF2(true, s(x0), x1) → DIV(if(gt(s(x0), x1), x0, x1), x1)
IF1(true, s(z0), s(z1)) → IF2(true, s(z0), s(z1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
IF2(true, s(z0), s(z1)) → DIV(if(gt(s(z0), s(z1)), z0, s(z1)), s(z1))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, s(z0), s(z1)) → IF2(true, s(z0), s(z1))
IF2(true, s(z0), s(z1)) → DIV(if(gt(s(z0), s(z1)), z0, s(z1)), s(z1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
IF2(true, s(z0), s(z1)) → DIV(if(gt(z0, z1), z0, s(z1)), s(z1))
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, s(z0), s(z1)) → IF2(true, s(z0), s(z1))
IF2(true, s(z0), s(z1)) → DIV(if(gt(z0, z1), z0, s(z1)), s(z1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
POL(0) = 0
POL(DIV(x1, x2)) = x1
POL(IF1(x1, x2, x3)) = x2
POL(IF2(x1, x2, x3)) = x2
POL(false) = 1
POL(ge(x1, x2)) = 1 + x1 + x2
POL(gt(x1, x2)) = 1
POL(if(x1, x2, x3)) = x1 + x2
POL(minus(x1, x2)) = x1
POL(s(x1)) = 1 + x1
POL(true) = 1
[x, x0, x1, x68, y50, x41, y43, y29, y, x5, x50, y36, x14, x23, x32, y22] 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[a23](0, 0) -> true equal_sort[a23](0, s(x0)) -> false equal_sort[a23](s(x0), 0) -> false equal_sort[a23](s(x0), s(x1)) -> equal_sort[a23](x0, x1) equal_sort[a40](witness_sort[a40], witness_sort[a40]) -> true if'(false, x68, y50) -> true if'(true, s(x41), y43) -> if'(gt(s(x41), y43), x41, y43) if'(true, 0, y43) -> false minus'(0, x1) -> false equal_bool(gt(s(x41), y29), true) -> true | minus'(s(x41), y29) -> minus'(x41, y29) equal_bool(gt(s(x41), y29), true) -> false | minus'(s(x41), y29) -> true gt(0, y) -> false gt(s(x5), 0) -> true gt(s(x50), s(y36)) -> gt(x50, y36) ge(x14, 0) -> true ge(0, s(x23)) -> false ge(s(x32), s(y22)) -> ge(x32, y22) if(false, x68, y50) -> 0 if(true, s(x41), y43) -> s(if(gt(s(x41), y43), x41, y43)) if(true, 0, y43) -> s(0) minus(0, x1) -> 0 equal_bool(gt(s(x41), y29), true) -> true | minus(s(x41), y29) -> s(minus(x41, y29)) equal_bool(gt(s(x41), y29), true) -> false | minus(s(x41), y29) -> 0
proof of internal # AProVE Commit ID: 9a00b172b26c9abb2d4c4d5eaf341e919eb0fbf1 nowonder 20100222 unpublished dirty Partial correctness of the following Program [x, x0, x1, x68, y50, x41, y43, y29, y, x5, x50, y36, x14, x23, x32, y22] 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[a23](0, 0) -> true equal_sort[a23](0, s(x0)) -> false equal_sort[a23](s(x0), 0) -> false equal_sort[a23](s(x0), s(x1)) -> equal_sort[a23](x0, x1) equal_sort[a40](witness_sort[a40], witness_sort[a40]) -> true if'(false, x68, y50) -> true if'(true, s(x41), y43) -> if'(gt(s(x41), y43), x41, y43) if'(true, 0, y43) -> false minus'(0, x1) -> false equal_bool(gt(s(x41), y29), true) -> true | minus'(s(x41), y29) -> minus'(x41, y29) equal_bool(gt(s(x41), y29), true) -> false | minus'(s(x41), y29) -> true gt(0, y) -> false gt(s(x5), 0) -> true gt(s(x50), s(y36)) -> gt(x50, y36) ge(x14, 0) -> true ge(0, s(x23)) -> false ge(s(x32), s(y22)) -> ge(x32, y22) if(false, x68, y50) -> 0 if(true, s(x41), y43) -> s(if(gt(s(x41), y43), x41, y43)) if(true, 0, y43) -> s(0) minus(0, x1) -> 0 equal_bool(gt(s(x41), y29), true) -> true | minus(s(x41), y29) -> s(minus(x41, y29)) equal_bool(gt(s(x41), y29), true) -> false | minus(s(x41), y29) -> 0 using the following formula: z0':sort[a23],z1':sort[a23].if'(gt(z0', z1'), z0', s(z1'))=true could be successfully shown: (0) Formula (1) Induction by algorithm [EQUIVALENT] (2) AND (3) Formula (4) Symbolic evaluation [EQUIVALENT] (5) YES (6) Formula (7) Symbolic evaluation [EQUIVALENT] (8) Formula (9) Induction by data structure [EQUIVALENT] (10) AND (11) Formula (12) Symbolic evaluation [EQUIVALENT] (13) YES (14) Formula (15) Symbolic evaluation under hypothesis [EQUIVALENT] (16) YES (17) Formula (18) Symbolic evaluation [EQUIVALENT] (19) Formula (20) Hypothesis Lifting [EQUIVALENT] (21) Formula (22) Inverse Substitution [SOUND] (23) Formula (24) Inverse Substitution [SOUND] (25) Formula (26) Induction by algorithm [EQUIVALENT] (27) AND (28) Formula (29) Symbolic evaluation [EQUIVALENT] (30) YES (31) Formula (32) Symbolic evaluation [EQUIVALENT] (33) YES (34) Formula (35) Symbolic evaluation under hypothesis [EQUIVALENT] (36) YES ---------------------------------------- (0) Obligation: Formula: z0':sort[a23],z1':sort[a23].if'(gt(z0', z1'), z0', s(z1'))=true There are no hypotheses. ---------------------------------------- (1) Induction by algorithm (EQUIVALENT) Induction by algorithm gt(z0', z1') generates the following cases: 1. Base Case: Formula: y:sort[a23].if'(gt(0, y), 0, s(y))=true There are no hypotheses. 2. Base Case: Formula: x5:sort[a23].if'(gt(s(x5), 0), s(x5), s(0))=true There are no hypotheses. 1. Step Case: Formula: x50:sort[a23],y36:sort[a23].if'(gt(s(x50), s(y36)), s(x50), s(s(y36)))=true Hypotheses: x50:sort[a23],y36:sort[a23].if'(gt(x50, y36), x50, s(y36))=true ---------------------------------------- (2) Complex Obligation (AND) ---------------------------------------- (3) Obligation: Formula: y:sort[a23].if'(gt(0, y), 0, s(y))=true There are no hypotheses. ---------------------------------------- (4) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (5) YES ---------------------------------------- (6) Obligation: Formula: x5:sort[a23].if'(gt(s(x5), 0), s(x5), s(0))=true There are no hypotheses. ---------------------------------------- (7) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: x5:sort[a23].if'(gt(x5, 0), x5, s(0))=true ---------------------------------------- (8) Obligation: Formula: x5:sort[a23].if'(gt(x5, 0), x5, s(0))=true There are no hypotheses. ---------------------------------------- (9) Induction by data structure (EQUIVALENT) Induction by data structure sort[a23] generates the following cases: 1. Base Case: Formula: if'(gt(0, 0), 0, s(0))=true There are no hypotheses. 1. Step Case: Formula: n:sort[a23].if'(gt(s(n), 0), s(n), s(0))=true Hypotheses: n:sort[a23].if'(gt(n, 0), n, s(0))=true ---------------------------------------- (10) Complex Obligation (AND) ---------------------------------------- (11) Obligation: Formula: if'(gt(0, 0), 0, s(0))=true There are no hypotheses. ---------------------------------------- (12) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (13) YES ---------------------------------------- (14) Obligation: Formula: n:sort[a23].if'(gt(s(n), 0), s(n), s(0))=true Hypotheses: n:sort[a23].if'(gt(n, 0), n, s(0))=true ---------------------------------------- (15) Symbolic evaluation under hypothesis (EQUIVALENT) Could be shown using symbolic evaluation under hypothesis, by using the following hypotheses: n:sort[a23].if'(gt(n, 0), n, s(0))=true ---------------------------------------- (16) YES ---------------------------------------- (17) Obligation: Formula: x50:sort[a23],y36:sort[a23].if'(gt(s(x50), s(y36)), s(x50), s(s(y36)))=true Hypotheses: x50:sort[a23],y36:sort[a23].if'(gt(x50, y36), x50, s(y36))=true ---------------------------------------- (18) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: x50:sort[a23],y36:sort[a23].if'(gt(x50, y36), s(x50), s(s(y36)))=true ---------------------------------------- (19) Obligation: Formula: x50:sort[a23],y36:sort[a23].if'(gt(x50, y36), s(x50), s(s(y36)))=true Hypotheses: x50:sort[a23],y36:sort[a23].if'(gt(x50, y36), x50, s(y36))=true ---------------------------------------- (20) Hypothesis Lifting (EQUIVALENT) Formula could be generalised by hypothesis lifting to the following new obligation: Formula: x50:sort[a23],y36:sort[a23].(if'(gt(x50, y36), x50, s(y36))=true->if'(gt(x50, y36), s(x50), s(s(y36)))=true) There are no hypotheses. ---------------------------------------- (21) Obligation: Formula: x50:sort[a23],y36:sort[a23].(if'(gt(x50, y36), x50, s(y36))=true->if'(gt(x50, y36), s(x50), s(s(y36)))=true) There are no hypotheses. ---------------------------------------- (22) Inverse Substitution (SOUND) The formula could be generalised by inverse substitution to: n:bool,x50:sort[a23],y36:sort[a23].(if'(n, x50, s(y36))=true->if'(n, s(x50), s(s(y36)))=true) Inverse substitution used: [gt(x50, y36)/n] ---------------------------------------- (23) Obligation: Formula: n:bool,x50:sort[a23],y36:sort[a23].(if'(n, x50, s(y36))=true->if'(n, s(x50), s(s(y36)))=true) There are no hypotheses. ---------------------------------------- (24) Inverse Substitution (SOUND) The formula could be generalised by inverse substitution to: n:bool,x50:sort[a23],n':sort[a23].(if'(n, x50, n')=true->if'(n, s(x50), s(n'))=true) Inverse substitution used: [s(y36)/n'] ---------------------------------------- (25) Obligation: Formula: n:bool,x50:sort[a23],n':sort[a23].(if'(n, x50, n')=true->if'(n, s(x50), s(n'))=true) There are no hypotheses. ---------------------------------------- (26) Induction by algorithm (EQUIVALENT) Induction by algorithm if'(n, x50, n') generates the following cases: 1. Base Case: Formula: x68:sort[a23],y50:sort[a23].(if'(false, x68, y50)=true->if'(false, s(x68), s(y50))=true) There are no hypotheses. 2. Base Case: Formula: y43:sort[a23].(if'(true, 0, y43)=true->if'(true, s(0), s(y43))=true) There are no hypotheses. 1. Step Case: Formula: x41:sort[a23],y43:sort[a23].(if'(true, s(x41), y43)=true->if'(true, s(s(x41)), s(y43))=true) Hypotheses: x41:sort[a23],y43:sort[a23].(if'(gt(s(x41), y43), x41, y43)=true->if'(gt(s(x41), y43), s(x41), s(y43))=true) ---------------------------------------- (27) Complex Obligation (AND) ---------------------------------------- (28) Obligation: Formula: x68:sort[a23],y50:sort[a23].(if'(false, x68, y50)=true->if'(false, s(x68), s(y50))=true) There are no hypotheses. ---------------------------------------- (29) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (30) YES ---------------------------------------- (31) Obligation: Formula: y43:sort[a23].(if'(true, 0, y43)=true->if'(true, s(0), s(y43))=true) There are no hypotheses. ---------------------------------------- (32) Symbolic evaluation (EQUIVALENT) Could be reduced to the following new obligation by simple symbolic evaluation: True ---------------------------------------- (33) YES ---------------------------------------- (34) Obligation: Formula: x41:sort[a23],y43:sort[a23].(if'(true, s(x41), y43)=true->if'(true, s(s(x41)), s(y43))=true) Hypotheses: x41:sort[a23],y43:sort[a23].(if'(gt(s(x41), y43), x41, y43)=true->if'(gt(s(x41), y43), s(x41), s(y43))=true) ---------------------------------------- (35) Symbolic evaluation under hypothesis (EQUIVALENT) Could be shown using symbolic evaluation under hypothesis, by using the following hypotheses: x41:sort[a23],y43:sort[a23].(if'(gt(s(x41), y43), x41, y43)=true->if'(gt(s(x41), y43), s(x41), s(y43))=true) ---------------------------------------- (36) YES
DIV(s(x0), s(x1)) → IF1(ge(x0, x1), s(x0), s(x1))
IF1(true, s(z0), s(z1)) → IF2(true, s(z0), s(z1))
gt(0, y) → false
gt(s(x), 0) → true
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
minus(s(x), y) → if(gt(s(x), y), x, y)
gt(s(x), s(y)) → gt(x, y)
if(true, x, y) → s(minus(x, y))
if(false, x, y) → 0
minus(s(x0), x1)
if(true, x0, x1)
if(false, x0, x1)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
gt(0, x0)
gt(s(x0), 0)
gt(s(x0), s(x1))
minus'(s(x41), y29) → if'(gt(s(x41), y29), x41, y29)
if'(true, x59, y43) → minus'(x59, y43)
if'(false, x68, y50) → true
minus'(0, x1) → false
gt(0, y) → false
gt(s(x5), 0) → true
ge(x14, 0) → true
ge(0, s(x23)) → false
ge(s(x32), s(y22)) → ge(x32, y22)
minus(s(x41), y29) → if(gt(s(x41), y29), x41, y29)
gt(s(x50), s(y36)) → gt(x50, y36)
if(true, x59, y43) → s(minus(x59, y43))
if(false, x68, y50) → 0
minus(0, x1) → 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[a23](0, 0) → true
equal_sort[a23](0, s(x0)) → false
equal_sort[a23](s(x0), 0) → false
equal_sort[a23](s(x0), s(x1)) → equal_sort[a23](x0, x1)
equal_sort[a40](witness_sort[a40], witness_sort[a40]) → true
and2 > [minus'2, if'3, false, 0] > [true, ge2, equalbool2] > [minus2, if3] > [s1, gt2, equalsort[a23]2]
or2 > [true, ge2, equalbool2] > [minus2, if3] > [s1, gt2, equalsort[a23]2]
not1 > [minus'2, if'3, false, 0] > [true, ge2, equalbool2] > [minus2, if3] > [s1, gt2, equalsort[a23]2]
isafalse1 > [minus'2, if'3, false, 0] > [true, ge2, equalbool2] > [minus2, if3] > [s1, gt2, equalsort[a23]2]
equalsort[a40]2 > [true, ge2, equalbool2] > [minus2, if3] > [s1, gt2, equalsort[a23]2]
minus'2: [2,1]
s1: multiset
if'3: [3,2,1]
gt2: [1,2]
true: multiset
false: multiset
0: multiset
ge2: [2,1]
minus2: [1,2]
if3: [2,3,1]
equalbool2: multiset
and2: [1,2]
or2: [2,1]
not1: [1]
isafalse1: [1]
equalsort[a23]2: multiset
equalsort[a40]2: multiset
witnesssort[a40]: multiset
minus'(s(x41), y29) → if'(gt(s(x41), y29), x41, y29)
if'(true, x59, y43) → minus'(x59, y43)
if'(false, x68, y50) → true
minus'(0, x1) → false
gt(0, y) → false
gt(s(x5), 0) → true
ge(x14, 0) → true
ge(0, s(x23)) → false
ge(s(x32), s(y22)) → ge(x32, y22)
minus(s(x41), y29) → if(gt(s(x41), y29), x41, y29)
gt(s(x50), s(y36)) → gt(x50, y36)
if(true, x59, y43) → s(minus(x59, y43))
if(false, x68, y50) → 0
minus(0, x1) → 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_false(true) → false
isa_false(false) → true
equal_sort[a23](0, 0) → true
equal_sort[a23](0, s(x0)) → false
equal_sort[a23](s(x0), 0) → false
equal_sort[a23](s(x0), s(x1)) → equal_sort[a23](x0, x1)
equal_sort[a40](witness_sort[a40], witness_sort[a40]) → true
isa_true(true) → true
isa_true(false) → false
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(false) = 1
POL(isa_true(x1)) = 2 + 2·x1
POL(true) = 1
isa_true(true) → true
isa_true(false) → false