R
↳Dependency Pair Analysis
LEQ(s(X), s(Y)) -> LEQ(X, Y)
IF(true, X, Y) -> ACTIVATE(X)
IF(false, X, Y) -> ACTIVATE(Y)
DIFF(X, Y) -> IF(leq(X, Y), n0, ns(diff(p(X), Y)))
DIFF(X, Y) -> LEQ(X, Y)
DIFF(X, Y) -> DIFF(p(X), Y)
DIFF(X, Y) -> P(X)
ACTIVATE(n0) -> 0'
ACTIVATE(ns(X)) -> S(X)
R
↳DPs
→DP Problem 1
↳Size-Change Principle
→DP Problem 2
↳MRR
LEQ(s(X), s(Y)) -> LEQ(X, Y)
p(0) -> 0
p(s(X)) -> X
leq(0, Y) -> true
leq(s(X), 0) -> false
leq(s(X), s(Y)) -> leq(X, Y)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
diff(X, Y) -> if(leq(X, Y), n0, ns(diff(p(X), Y)))
0 -> n0
s(X) -> ns(X)
activate(n0) -> 0
activate(ns(X)) -> s(X)
activate(X) -> X
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳SCP
→DP Problem 2
↳Modular Removal of Rules
DIFF(X, Y) -> DIFF(p(X), Y)
p(0) -> 0
p(s(X)) -> X
leq(0, Y) -> true
leq(s(X), 0) -> false
leq(s(X), s(Y)) -> leq(X, Y)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
diff(X, Y) -> if(leq(X, Y), n0, ns(diff(p(X), Y)))
0 -> n0
s(X) -> ns(X)
activate(n0) -> 0
activate(ns(X)) -> s(X)
activate(X) -> X
To remove rules and DPs from this DP problem we used the following monotonic and CE-compatible order: Polynomial ordering.
p(0) -> 0
p(s(X)) -> X
0 -> n0
POL(DIFF(x1, x2)) = x1 + x2 POL(0) = 0 POL(s(x1)) = x1 POL(n__0) = 0 POL(p(x1)) = x1
10 non usable rules have been deleted.
p(s(X)) -> X
R
↳DPs
→DP Problem 1
↳SCP
→DP Problem 2
↳MRR
→DP Problem 3
↳Modular Removal of Rules
DIFF(X, Y) -> DIFF(p(X), Y)
p(0) -> 0
0 -> n0
To remove rules and DPs from this DP problem we used the following monotonic and CE-compatible order: Polynomial ordering.
p(0) -> 0
0 -> n0
POL(DIFF(x1, x2)) = 1 + x1 + x2 POL(0) = 1 POL(n__0) = 0 POL(p(x1)) = x1
0 -> n0
R
↳DPs
→DP Problem 1
↳SCP
→DP Problem 2
↳MRR
→DP Problem 3
↳MRR
...
→DP Problem 4
↳Non-Overlappingness Check
DIFF(X, Y) -> DIFF(p(X), Y)
p(0) -> 0
R
↳DPs
→DP Problem 1
↳SCP
→DP Problem 2
↳MRR
→DP Problem 3
↳MRR
...
→DP Problem 5
↳Non Termination
DIFF(X, Y) -> DIFF(p(X), Y)
p(0) -> 0
innermost
DIFF(X, Y) -> DIFF(p(X), Y)
p(0) -> 0