R
↳Dependency Pair Analysis
PLUS(x, s(y)) -> PLUS(x, y)
F(0, s(0), x) -> F(x, plus(x, x), x)
F(0, s(0), x) -> PLUS(x, x)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
PLUS(x, s(y)) -> PLUS(x, y)
plus(x, 0) -> x
plus(x, s(y)) -> s(plus(x, y))
f(0, s(0), x) -> f(x, plus(x, x), x)
g(x, y) -> x
g(x, y) -> y
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 3
↳Size-Change Principle
→DP Problem 2
↳UsableRules
PLUS(x, s(y)) -> PLUS(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
F(0, s(0), x) -> F(x, plus(x, x), x)
plus(x, 0) -> x
plus(x, s(y)) -> s(plus(x, y))
f(0, s(0), x) -> f(x, plus(x, x), x)
g(x, y) -> x
g(x, y) -> y
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 4
↳Narrowing Transformation
F(0, s(0), x) -> F(x, plus(x, x), x)
plus(x, s(y)) -> s(plus(x, y))
plus(x, 0) -> x
innermost
two new Dependency Pairs are created:
F(0, s(0), x) -> F(x, plus(x, x), x)
F(0, s(0), s(y')) -> F(s(y'), s(plus(s(y'), y')), s(y'))
F(0, s(0), 0) -> F(0, 0, 0)