R
↳Overlay and local confluence Check
R
↳OC
→TRS2
↳Dependency Pair Analysis
GE(s(x), s(y)) -> GE(x, y)
MINUS(s(x), s(y)) -> MINUS(x, y)
DIV(x, y) -> IFY(ge(y, s(0)), x, y)
DIV(x, y) -> GE(y, s(0))
IFY(true, x, y) -> IF(ge(x, y), x, y)
IFY(true, x, y) -> GE(x, y)
IF(true, x, y) -> DIV(minus(x, y), y)
IF(true, x, y) -> MINUS(x, y)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
GE(s(x), s(y)) -> GE(x, y)
ge(x, 0) -> true
ge(0, s(x)) -> false
ge(s(x), s(y)) -> ge(x, y)
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
div(x, y) -> ify(ge(y, s(0)), x, y)
ify(false, x, y) -> divByZeroError
ify(true, x, y) -> if(ge(x, y), x, y)
if(false, x, y) -> 0
if(true, x, y) -> s(div(minus(x, y), y))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
...
→DP Problem 4
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
GE(s(x), s(y)) -> GE(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
MINUS(s(x), s(y)) -> MINUS(x, y)
ge(x, 0) -> true
ge(0, s(x)) -> false
ge(s(x), s(y)) -> ge(x, y)
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
div(x, y) -> ify(ge(y, s(0)), x, y)
ify(false, x, y) -> divByZeroError
ify(true, x, y) -> if(ge(x, y), x, y)
if(false, x, y) -> 0
if(true, x, y) -> s(div(minus(x, y), y))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
...
→DP Problem 5
↳Size-Change Principle
→DP Problem 3
↳UsableRules
MINUS(s(x), s(y)) -> MINUS(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
IF(true, x, y) -> DIV(minus(x, y), y)
IFY(true, x, y) -> IF(ge(x, y), x, y)
DIV(x, y) -> IFY(ge(y, s(0)), x, y)
ge(x, 0) -> true
ge(0, s(x)) -> false
ge(s(x), s(y)) -> ge(x, y)
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
div(x, y) -> ify(ge(y, s(0)), x, y)
ify(false, x, y) -> divByZeroError
ify(true, x, y) -> if(ge(x, y), x, y)
if(false, x, y) -> 0
if(true, x, y) -> s(div(minus(x, y), y))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 6
↳Narrowing Transformation
IF(true, x, y) -> DIV(minus(x, y), y)
IFY(true, x, y) -> IF(ge(x, y), x, y)
DIV(x, y) -> IFY(ge(y, s(0)), x, y)
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
three new Dependency Pairs are created:
IFY(true, x, y) -> IF(ge(x, y), x, y)
IFY(true, x'', 0) -> IF(true, x'', 0)
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
IFY(true, 0, s(x'')) -> IF(false, 0, s(x''))
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 7
↳Narrowing Transformation
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
IFY(true, x'', 0) -> IF(true, x'', 0)
DIV(x, y) -> IFY(ge(y, s(0)), x, y)
IF(true, x, y) -> DIV(minus(x, y), y)
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
two new Dependency Pairs are created:
DIV(x, y) -> IFY(ge(y, s(0)), x, y)
DIV(x, s(x'')) -> IFY(ge(x'', 0), x, s(x''))
DIV(x, 0) -> IFY(false, x, 0)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 8
↳Rewriting Transformation
DIV(x, s(x'')) -> IFY(ge(x'', 0), x, s(x''))
IF(true, x, y) -> DIV(minus(x, y), y)
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
one new Dependency Pair is created:
DIV(x, s(x'')) -> IFY(ge(x'', 0), x, s(x''))
DIV(x, s(x'')) -> IFY(true, x, s(x''))
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 9
↳Instantiation Transformation
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
DIV(x, s(x'')) -> IFY(true, x, s(x''))
IF(true, x, y) -> DIV(minus(x, y), y)
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
one new Dependency Pair is created:
IF(true, x, y) -> DIV(minus(x, y), y)
IF(true, s(x'''''), s(y'''')) -> DIV(minus(s(x'''''), s(y'''')), s(y''''))
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 10
↳Rewriting Transformation
DIV(x, s(x'')) -> IFY(true, x, s(x''))
IF(true, s(x'''''), s(y'''')) -> DIV(minus(s(x'''''), s(y'''')), s(y''''))
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
one new Dependency Pair is created:
IF(true, s(x'''''), s(y'''')) -> DIV(minus(s(x'''''), s(y'''')), s(y''''))
IF(true, s(x'''''), s(y'''')) -> DIV(minus(x''''', y''''), s(y''''))
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 11
↳Negative Polynomial Order
IF(true, s(x'''''), s(y'''')) -> DIV(minus(x''''', y''''), s(y''''))
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
DIV(x, s(x'')) -> IFY(true, x, s(x''))
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost
IF(true, s(x'''''), s(y'''')) -> DIV(minus(x''''', y''''), s(y''''))
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
POL( IF(x1, ..., x3) ) = x2
POL( s(x1) ) = x1 + 1
POL( DIV(x1, x2) ) = x1
POL( minus(x1, x2) ) = x1
POL( IFY(x1, ..., x3) ) = x2
POL( ge(x1, x2) ) = 0
POL( true ) = 0
POL( false ) = 0
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 12
↳Dependency Graph
IFY(true, s(x''), s(y'')) -> IF(ge(x'', y''), s(x''), s(y''))
DIV(x, s(x'')) -> IFY(true, x, s(x''))
minus(s(x), s(y)) -> minus(x, y)
minus(x, 0) -> x
ge(x, 0) -> true
ge(s(x), s(y)) -> ge(x, y)
ge(0, s(x)) -> false
innermost