Term Rewriting System R:
[x, y]
-(x, 0) -> x
-(0, s(y)) -> 0
-(s(x), s(y)) -> -(x, y)
lt(x, 0) -> false
lt(0, s(y)) -> true
lt(s(x), s(y)) -> lt(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
div(x, 0) -> 0
div(0, y) -> 0
div(s(x), s(y)) -> if(lt(x, y), 0, s(div(-(x, y), s(y))))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

-'(s(x), s(y)) -> -'(x, y)
LT(s(x), s(y)) -> LT(x, y)
DIV(s(x), s(y)) -> IF(lt(x, y), 0, s(div(-(x, y), s(y))))
DIV(s(x), s(y)) -> LT(x, y)
DIV(s(x), s(y)) -> DIV(-(x, y), s(y))
DIV(s(x), s(y)) -> -'(x, y)

Furthermore, R contains three SCCs.


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)




The following remains to be proven:

Termination of R could not be shown.
Duration:
0:00 minutes