R
↳Dependency Pair Analysis
+'(X, s(Y)) -> +'(X, Y)
F(0, s(0), X) -> F(X, +(X, X), X)
F(0, s(0), X) -> +'(X, X)
R
↳DPs
→DP Problem 1
↳Polynomial Ordering
→DP Problem 2
↳Nar
+'(X, s(Y)) -> +'(X, Y)
+(X, 0) -> X
+(X, s(Y)) -> s(+(X, Y))
f(0, s(0), X) -> f(X, +(X, X), X)
g(X, Y) -> X
g(X, Y) -> Y
innermost
+'(X, s(Y)) -> +'(X, Y)
POL(s(x1)) = 1 + x1 POL(+'(x1, x2)) = x2
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 3
↳Dependency Graph
→DP Problem 2
↳Nar
+(X, 0) -> X
+(X, s(Y)) -> s(+(X, Y))
f(0, s(0), X) -> f(X, +(X, X), X)
g(X, Y) -> X
g(X, Y) -> Y
innermost
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Narrowing Transformation
F(0, s(0), X) -> F(X, +(X, X), X)
+(X, 0) -> X
+(X, s(Y)) -> s(+(X, Y))
f(0, s(0), X) -> f(X, +(X, X), X)
g(X, Y) -> X
g(X, Y) -> Y
innermost
two new Dependency Pairs are created:
F(0, s(0), X) -> F(X, +(X, X), X)
F(0, s(0), 0) -> F(0, 0, 0)
F(0, s(0), s(Y')) -> F(s(Y'), s(+(s(Y'), Y')), s(Y'))