Term Rewriting System R:
[X, Y, X1, X2, X3]
active(p(0)) -> mark(0)
active(p(s(X))) -> mark(X)
active(leq(0, Y)) -> mark(true)
active(leq(s(X), 0)) -> mark(false)
active(leq(s(X), s(Y))) -> mark(leq(X, Y))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(diff(X, Y)) -> mark(if(leq(X, Y), 0, s(diff(p(X), Y))))
active(p(X)) -> p(active(X))
active(s(X)) -> s(active(X))
active(leq(X1, X2)) -> leq(active(X1), X2)
active(leq(X1, X2)) -> leq(X1, active(X2))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(diff(X1, X2)) -> diff(active(X1), X2)
active(diff(X1, X2)) -> diff(X1, active(X2))
p(mark(X)) -> mark(p(X))
p(ok(X)) -> ok(p(X))
s(mark(X)) -> mark(s(X))
s(ok(X)) -> ok(s(X))
leq(mark(X1), X2) -> mark(leq(X1, X2))
leq(X1, mark(X2)) -> mark(leq(X1, X2))
leq(ok(X1), ok(X2)) -> ok(leq(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
diff(mark(X1), X2) -> mark(diff(X1, X2))
diff(X1, mark(X2)) -> mark(diff(X1, X2))
diff(ok(X1), ok(X2)) -> ok(diff(X1, X2))
proper(p(X)) -> p(proper(X))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(leq(X1, X2)) -> leq(proper(X1), proper(X2))
proper(true) -> ok(true)
proper(false) -> ok(false)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(diff(X1, X2)) -> diff(proper(X1), proper(X2))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

ACTIVE(leq(s(X), s(Y))) -> LEQ(X, Y)
ACTIVE(diff(X, Y)) -> IF(leq(X, Y), 0, s(diff(p(X), Y)))
ACTIVE(diff(X, Y)) -> LEQ(X, Y)
ACTIVE(diff(X, Y)) -> S(diff(p(X), Y))
ACTIVE(diff(X, Y)) -> DIFF(p(X), Y)
ACTIVE(diff(X, Y)) -> P(X)
ACTIVE(p(X)) -> P(active(X))
ACTIVE(p(X)) -> ACTIVE(X)
ACTIVE(s(X)) -> S(active(X))
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(leq(X1, X2)) -> LEQ(active(X1), X2)
ACTIVE(leq(X1, X2)) -> ACTIVE(X1)
ACTIVE(leq(X1, X2)) -> LEQ(X1, active(X2))
ACTIVE(leq(X1, X2)) -> ACTIVE(X2)
ACTIVE(if(X1, X2, X3)) -> IF(active(X1), X2, X3)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(diff(X1, X2)) -> DIFF(active(X1), X2)
ACTIVE(diff(X1, X2)) -> ACTIVE(X1)
ACTIVE(diff(X1, X2)) -> DIFF(X1, active(X2))
ACTIVE(diff(X1, X2)) -> ACTIVE(X2)
P(mark(X)) -> P(X)
P(ok(X)) -> P(X)
S(mark(X)) -> S(X)
S(ok(X)) -> S(X)
LEQ(mark(X1), X2) -> LEQ(X1, X2)
LEQ(X1, mark(X2)) -> LEQ(X1, X2)
LEQ(ok(X1), ok(X2)) -> LEQ(X1, X2)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
DIFF(mark(X1), X2) -> DIFF(X1, X2)
DIFF(X1, mark(X2)) -> DIFF(X1, X2)
DIFF(ok(X1), ok(X2)) -> DIFF(X1, X2)
PROPER(p(X)) -> P(proper(X))
PROPER(p(X)) -> PROPER(X)
PROPER(s(X)) -> S(proper(X))
PROPER(s(X)) -> PROPER(X)
PROPER(leq(X1, X2)) -> LEQ(proper(X1), proper(X2))
PROPER(leq(X1, X2)) -> PROPER(X1)
PROPER(leq(X1, X2)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> IF(proper(X1), proper(X2), proper(X3))
PROPER(if(X1, X2, X3)) -> PROPER(X1)
PROPER(if(X1, X2, X3)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> PROPER(X3)
PROPER(diff(X1, X2)) -> DIFF(proper(X1), proper(X2))
PROPER(diff(X1, X2)) -> PROPER(X1)
PROPER(diff(X1, X2)) -> PROPER(X2)
TOP(mark(X)) -> TOP(proper(X))
TOP(mark(X)) -> PROPER(X)
TOP(ok(X)) -> TOP(active(X))
TOP(ok(X)) -> ACTIVE(X)

Furthermore, R contains eight SCCs.


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
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)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)




The following remains to be proven:

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