R
↳Dependency Pair Analysis
ACTIVE(add(s(X), Y)) -> S(add(X, Y))
ACTIVE(add(s(X), Y)) -> ADD(X, Y)
ACTIVE(first(s(X), cons(Y, Z))) -> CONS(Y, first(X, Z))
ACTIVE(first(s(X), cons(Y, Z))) -> FIRST(X, Z)
ACTIVE(from(X)) -> CONS(X, from(s(X)))
ACTIVE(from(X)) -> FROM(s(X))
ACTIVE(from(X)) -> S(X)
ACTIVE(and(X1, X2)) -> AND(active(X1), X2)
ACTIVE(and(X1, X2)) -> ACTIVE(X1)
ACTIVE(if(X1, X2, X3)) -> IF(active(X1), X2, X3)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(add(X1, X2)) -> ADD(active(X1), X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(first(X1, X2)) -> FIRST(active(X1), X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(first(X1, X2)) -> FIRST(X1, active(X2))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
AND(mark(X1), X2) -> AND(X1, X2)
AND(ok(X1), ok(X2)) -> AND(X1, X2)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
ADD(mark(X1), X2) -> ADD(X1, X2)
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
FIRST(mark(X1), X2) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
PROPER(and(X1, X2)) -> AND(proper(X1), proper(X2))
PROPER(and(X1, X2)) -> PROPER(X1)
PROPER(and(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(add(X1, X2)) -> ADD(proper(X1), proper(X2))
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(s(X)) -> S(proper(X))
PROPER(s(X)) -> PROPER(X)
PROPER(first(X1, X2)) -> FIRST(proper(X1), proper(X2))
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> CONS(proper(X1), proper(X2))
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(from(X)) -> FROM(proper(X))
PROPER(from(X)) -> PROPER(X)
S(ok(X)) -> S(X)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
FROM(ok(X)) -> FROM(X)
TOP(mark(X)) -> TOP(proper(X))
TOP(mark(X)) -> PROPER(X)
TOP(ok(X)) -> TOP(active(X))
TOP(ok(X)) -> ACTIVE(X)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
S(ok(X)) -> S(X)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 11
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
S(ok(X)) -> S(X)
none
innermost
|
|
trivial
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(X1, X2)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 12
↳Size-Change Principle
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(X1, X2)
none
innermost
|
|
|
|
trivial
mark(x1) -> mark(x1)
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 13
↳Size-Change Principle
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
none
innermost
|
|
trivial
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳Usable Rules (Innermost)
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(X1, X2)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 14
↳Size-Change Principle
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(X1, X2)
none
innermost
|
|
|
|
|
|
trivial
mark(x1) -> mark(x1)
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳Usable Rules (Innermost)
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
AND(ok(X1), ok(X2)) -> AND(X1, X2)
AND(mark(X1), X2) -> AND(X1, X2)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 15
↳Size-Change Principle
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
AND(ok(X1), ok(X2)) -> AND(X1, X2)
AND(mark(X1), X2) -> AND(X1, X2)
none
innermost
|
|
|
|
trivial
mark(x1) -> mark(x1)
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳Usable Rules (Innermost)
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 16
↳Size-Change Principle
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
none
innermost
|
|
|
|
trivial
mark(x1) -> mark(x1)
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳Usable Rules (Innermost)
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
FROM(ok(X)) -> FROM(X)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 17
↳Size-Change Principle
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
FROM(ok(X)) -> FROM(X)
none
innermost
|
|
trivial
ok(x1) -> ok(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳Usable Rules (Innermost)
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(and(X1, X2)) -> ACTIVE(X1)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 18
↳Size-Change Principle
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(and(X1, X2)) -> ACTIVE(X1)
none
innermost
|
|
trivial
and(x1, x2) -> and(x1, x2)
if(x1, x2, x3) -> if(x1, x2, x3)
first(x1, x2) -> first(x1, x2)
add(x1, x2) -> add(x1, x2)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳Usable Rules (Innermost)
→DP Problem 10
↳UsableRules
PROPER(from(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(if(X1, X2, X3)) -> PROPER(X3)
PROPER(if(X1, X2, X3)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> PROPER(X1)
PROPER(and(X1, X2)) -> PROPER(X2)
PROPER(and(X1, X2)) -> PROPER(X1)
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 19
↳Size-Change Principle
→DP Problem 10
↳UsableRules
PROPER(from(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(if(X1, X2, X3)) -> PROPER(X3)
PROPER(if(X1, X2, X3)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> PROPER(X1)
PROPER(and(X1, X2)) -> PROPER(X2)
PROPER(and(X1, X2)) -> PROPER(X1)
none
innermost
|
|
trivial
from(x1) -> from(x1)
and(x1, x2) -> and(x1, x2)
if(x1, x2, x3) -> if(x1, x2, x3)
first(x1, x2) -> first(x1, x2)
cons(x1, x2) -> cons(x1, x2)
s(x1) -> s(x1)
add(x1, x2) -> add(x1, x2)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳Usable Rules (Innermost)
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
active(and(true, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(from(X)) -> mark(cons(X, from(s(X))))
active(and(X1, X2)) -> and(active(X1), X2)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
add(mark(X1), X2) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
proper(and(X1, X2)) -> and(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(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(0) -> ok(0)
proper(s(X)) -> s(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
→DP Problem 20
↳Negative Polynomial Order
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(true) -> ok(true)
proper(false) -> ok(false)
proper(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(and(X1, X2)) -> and(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(s(X)) -> s(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(0) -> ok(0)
innermost
TOP(mark(X)) -> TOP(proper(X))
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(true) -> ok(true)
proper(false) -> ok(false)
proper(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(and(X1, X2)) -> and(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(s(X)) -> s(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(0) -> ok(0)
POL( TOP(x1) ) = x1
POL( mark(x1) ) = x1 + 1
POL( proper(x1) ) = x1
POL( ok(x1) ) = x1
POL( active(x1) ) = x1
POL( and(x1, x2) ) = x1 + x2 + 1
POL( if(x1, ..., x3) ) = x1 + x2 + x3
POL( add(x1, x2) ) = x1 + x2 + 1
POL( s(x1) ) = 0
POL( false ) = 1
POL( from(x1) ) = 1
POL( cons(x1, x2) ) = 0
POL( first(x1, x2) ) = x1 + x2 + 1
POL( 0 ) = 0
POL( nil ) = 0
POL( true ) = 1
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
→DP Problem 20
↳Neg POLO
...
→DP Problem 21
↳Usable Rules (Innermost)
TOP(ok(X)) -> TOP(active(X))
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(true) -> ok(true)
proper(false) -> ok(false)
proper(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(and(X1, X2)) -> and(proper(X1), proper(X2))
proper(from(X)) -> from(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(s(X)) -> s(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(0) -> ok(0)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
→DP Problem 20
↳Neg POLO
...
→DP Problem 22
↳Negative Polynomial Order
TOP(ok(X)) -> TOP(active(X))
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
innermost
TOP(ok(X)) -> TOP(active(X))
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
POL( TOP(x1) ) = x1
POL( ok(x1) ) = x1 + 1
POL( active(x1) ) = x1
POL( and(x1, x2) ) = x2
POL( mark(x1) ) = 0
POL( if(x1, ..., x3) ) = x3
POL( add(x1, x2) ) = x2
POL( first(x1, x2) ) = x2
POL( s(x1) ) = x1
POL( cons(x1, x2) ) = x2
POL( from(x1) ) = x1
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 6
↳UsableRules
→DP Problem 7
↳UsableRules
→DP Problem 8
↳UsableRules
→DP Problem 9
↳UsableRules
→DP Problem 10
↳UsableRules
→DP Problem 20
↳Neg POLO
...
→DP Problem 23
↳Dependency Graph
active(and(true, X)) -> mark(X)
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(add(X1, X2)) -> add(active(X1), X2)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(add(0, X)) -> mark(X)
active(and(false, Y)) -> mark(false)
active(and(X1, X2)) -> and(active(X1), X2)
active(from(X)) -> mark(cons(X, from(s(X))))
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(0, X)) -> mark(nil)
active(first(X1, X2)) -> first(X1, active(X2))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
and(mark(X1), X2) -> mark(and(X1, X2))
and(ok(X1), ok(X2)) -> ok(and(X1, X2))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
first(mark(X1), X2) -> mark(first(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
add(mark(X1), X2) -> mark(add(X1, X2))
s(ok(X)) -> ok(s(X))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
from(ok(X)) -> ok(from(X))
innermost