R
↳Dependency Pair Analysis
ACTIVE(f(X)) -> IF(X, c, f(true))
ACTIVE(f(X)) -> F(true)
ACTIVE(f(X)) -> F(active(X))
ACTIVE(f(X)) -> ACTIVE(X)
ACTIVE(if(X1, X2, X3)) -> IF(active(X1), X2, X3)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(if(X1, X2, X3)) -> IF(X1, active(X2), X3)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X2)
F(mark(X)) -> F(X)
F(ok(X)) -> F(X)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
IF(X1, mark(X2), X3) -> IF(X1, X2, X3)
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
PROPER(f(X)) -> F(proper(X))
PROPER(f(X)) -> PROPER(X)
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)
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
F(ok(X)) -> F(X)
F(mark(X)) -> F(X)
active(f(X)) -> mark(if(X, c, f(true)))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
f(mark(X)) -> mark(f(X))
f(ok(X)) -> ok(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
proper(f(X)) -> f(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(c) -> ok(c)
proper(true) -> ok(true)
proper(false) -> ok(false)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 6
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
F(ok(X)) -> F(X)
F(mark(X)) -> F(X)
none
innermost
|
|
trivial
mark(x1) -> mark(x1)
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
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
IF(X1, mark(X2), X3) -> IF(X1, X2, X3)
IF(mark(X1), X2, X3) -> IF(X1, X2, X3)
active(f(X)) -> mark(if(X, c, f(true)))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
f(mark(X)) -> mark(f(X))
f(ok(X)) -> ok(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
proper(f(X)) -> f(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(c) -> ok(c)
proper(true) -> ok(true)
proper(false) -> ok(false)
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 7
↳Size-Change Principle
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
IF(ok(X1), ok(X2), ok(X3)) -> IF(X1, X2, X3)
IF(X1, mark(X2), 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
↳Usable Rules (Innermost)
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X2)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(f(X)) -> ACTIVE(X)
active(f(X)) -> mark(if(X, c, f(true)))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
f(mark(X)) -> mark(f(X))
f(ok(X)) -> ok(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
proper(f(X)) -> f(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(c) -> ok(c)
proper(true) -> ok(true)
proper(false) -> ok(false)
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 8
↳Size-Change Principle
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X2)
ACTIVE(if(X1, X2, X3)) -> ACTIVE(X1)
ACTIVE(f(X)) -> ACTIVE(X)
none
innermost
|
|
trivial
if(x1, x2, x3) -> if(x1, x2, x3)
f(x1) -> f(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
PROPER(if(X1, X2, X3)) -> PROPER(X3)
PROPER(if(X1, X2, X3)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> PROPER(X1)
PROPER(f(X)) -> PROPER(X)
active(f(X)) -> mark(if(X, c, f(true)))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
f(mark(X)) -> mark(f(X))
f(ok(X)) -> ok(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
proper(f(X)) -> f(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(c) -> ok(c)
proper(true) -> ok(true)
proper(false) -> ok(false)
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 9
↳Size-Change Principle
→DP Problem 5
↳UsableRules
PROPER(if(X1, X2, X3)) -> PROPER(X3)
PROPER(if(X1, X2, X3)) -> PROPER(X2)
PROPER(if(X1, X2, X3)) -> PROPER(X1)
PROPER(f(X)) -> PROPER(X)
none
innermost
|
|
trivial
if(x1, x2, x3) -> if(x1, x2, x3)
f(x1) -> f(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)
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
active(f(X)) -> mark(if(X, c, f(true)))
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
f(mark(X)) -> mark(f(X))
f(ok(X)) -> ok(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
proper(f(X)) -> f(proper(X))
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(c) -> ok(c)
proper(true) -> ok(true)
proper(false) -> ok(false)
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 10
↳Modular Removal of Rules
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
proper(c) -> ok(c)
proper(f(X)) -> f(proper(X))
proper(true) -> ok(true)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(false) -> ok(false)
innermost
To remove rules and DPs from this DP problem we used the following monotonic and CE-compatible order: Polynomial ordering.
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(if(false, X, Y)) -> mark(Y)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
proper(c) -> ok(c)
proper(f(X)) -> f(proper(X))
proper(true) -> ok(true)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(false) -> ok(false)
POL(active(x1)) = x1 POL(proper(x1)) = x1 POL(if(x1, x2, x3)) = x1 + x2 + x3 POL(c) = 0 POL(false) = 1 POL(true) = 0 POL(mark(x1)) = x1 POL(TOP(x1)) = x1 POL(ok(x1)) = x1 POL(f(x1)) = x1
active(if(false, X, Y)) -> mark(Y)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 10
↳MRR
...
→DP Problem 11
↳Negative Polynomial Order
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
proper(c) -> ok(c)
proper(f(X)) -> f(proper(X))
proper(true) -> ok(true)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(false) -> ok(false)
innermost
TOP(mark(X)) -> TOP(proper(X))
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
active(if(true, X, Y)) -> mark(X)
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
active(f(X)) -> mark(if(X, c, f(true)))
proper(c) -> ok(c)
proper(f(X)) -> f(proper(X))
proper(true) -> ok(true)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(false) -> ok(false)
POL( TOP(x1) ) = x1
POL( mark(x1) ) = x1 + 1
POL( proper(x1) ) = x1
POL( ok(x1) ) = x1
POL( active(x1) ) = x1
POL( f(x1) ) = x1 + 1
POL( if(x1, ..., x3) ) = x1 + x2
POL( true ) = 1
POL( c ) = 0
POL( false ) = 0
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
→DP Problem 5
↳UsableRules
→DP Problem 10
↳MRR
...
→DP Problem 12
↳Usable Rules (Innermost)
TOP(ok(X)) -> TOP(active(X))
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
proper(c) -> ok(c)
proper(f(X)) -> f(proper(X))
proper(true) -> ok(true)
proper(if(X1, X2, X3)) -> if(proper(X1), proper(X2), proper(X3))
proper(false) -> ok(false)
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 10
↳MRR
...
→DP Problem 13
↳Modular Removal of Rules
TOP(ok(X)) -> TOP(active(X))
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
innermost
To remove rules and DPs from this DP problem we used the following monotonic and CE-compatible order: Polynomial ordering.
active(f(X)) -> f(active(X))
active(if(X1, X2, X3)) -> if(active(X1), X2, X3)
active(if(X1, X2, X3)) -> if(X1, active(X2), X3)
active(if(true, X, Y)) -> mark(X)
active(f(X)) -> mark(if(X, c, f(true)))
f(ok(X)) -> ok(f(X))
f(mark(X)) -> mark(f(X))
if(mark(X1), X2, X3) -> mark(if(X1, X2, X3))
if(ok(X1), ok(X2), ok(X3)) -> ok(if(X1, X2, X3))
if(X1, mark(X2), X3) -> mark(if(X1, X2, X3))
POL(active(x1)) = x1 POL(if(x1, x2, x3)) = x1 + x2 + x3 POL(c) = 0 POL(true) = 0 POL(mark(x1)) = x1 POL(TOP(x1)) = 1 + x1 POL(ok(x1)) = 1 + x1 POL(f(x1)) = x1
TOP(ok(X)) -> TOP(active(X))
Innermost Termination of R successfully shown.
Duration:
0:04 minutes