R
↳Dependency Pair Analysis
MINUS(s(x), s(y)) -> MINUS(x, y)
F(s(x)) -> MINUS(s(x), g(f(x)))
F(s(x)) -> G(f(x))
F(s(x)) -> F(x)
G(s(x)) -> MINUS(s(x), f(g(x)))
G(s(x)) -> F(g(x))
G(s(x)) -> G(x)
R
↳DPs
→DP Problem 1
↳Polynomial Ordering
→DP Problem 2
↳Nar
MINUS(s(x), s(y)) -> MINUS(x, y)
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))
MINUS(s(x), s(y)) -> MINUS(x, y)
POL(MINUS(x1, x2)) = x1 POL(s(x1)) = 1 + x1
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 3
↳Dependency Graph
→DP Problem 2
↳Nar
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Narrowing Transformation
G(s(x)) -> G(x)
F(s(x)) -> F(x)
G(s(x)) -> F(g(x))
F(s(x)) -> G(f(x))
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))
two new Dependency Pairs are created:
F(s(x)) -> G(f(x))
F(s(0)) -> G(s(0))
F(s(s(x''))) -> G(minus(s(x''), g(f(x''))))
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Nar
→DP Problem 4
↳Narrowing Transformation
F(s(s(x''))) -> G(minus(s(x''), g(f(x''))))
F(s(0)) -> G(s(0))
F(s(x)) -> F(x)
G(s(x)) -> F(g(x))
G(s(x)) -> G(x)
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))
two new Dependency Pairs are created:
G(s(x)) -> F(g(x))
G(s(0)) -> F(0)
G(s(s(x''))) -> F(minus(s(x''), f(g(x''))))
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Nar
→DP Problem 4
↳Nar
...
→DP Problem 5
↳Polynomial Ordering
F(s(0)) -> G(s(0))
F(s(x)) -> F(x)
G(s(s(x''))) -> F(minus(s(x''), f(g(x''))))
G(s(x)) -> G(x)
F(s(s(x''))) -> G(minus(s(x''), g(f(x''))))
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))
F(s(x)) -> F(x)
G(s(s(x''))) -> F(minus(s(x''), f(g(x''))))
G(s(x)) -> G(x)
F(s(s(x''))) -> G(minus(s(x''), g(f(x''))))
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
POL(0) = 0 POL(g(x1)) = 0 POL(G(x1)) = x1 POL(minus(x1, x2)) = x1 POL(s(x1)) = 1 + x1 POL(f(x1)) = 0 POL(F(x1)) = x1
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Nar
→DP Problem 4
↳Nar
...
→DP Problem 6
↳Dependency Graph
F(s(0)) -> G(s(0))
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))