R
↳Dependency Pair Analysis
A(f, a(f, x)) -> A(x, g)
A(x, g) -> A(f, a(g, a(f, x)))
A(x, g) -> A(g, a(f, x))
A(x, g) -> A(f, x)
R
↳DPs
→DP Problem 1
↳Narrowing Transformation
A(x, g) -> A(f, x)
A(x, g) -> A(g, a(f, x))
A(x, g) -> A(f, a(g, a(f, x)))
A(f, a(f, x)) -> A(x, g)
a(f, a(f, x)) -> a(x, g)
a(x, g) -> a(f, a(g, a(f, x)))
innermost
two new Dependency Pairs are created:
A(x, g) -> A(f, a(g, a(f, x)))
A(a(f, x''), g) -> A(f, a(g, a(x'', g)))
A(g, g) -> A(f, a(g, a(f, a(g, a(f, f)))))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Narrowing Transformation
A(g, g) -> A(f, a(g, a(f, a(g, a(f, f)))))
A(x, g) -> A(g, a(f, x))
A(f, a(f, x)) -> A(x, g)
A(x, g) -> A(f, x)
a(f, a(f, x)) -> a(x, g)
a(x, g) -> a(f, a(g, a(f, x)))
innermost
two new Dependency Pairs are created:
A(x, g) -> A(g, a(f, x))
A(a(f, x''), g) -> A(g, a(x'', g))
A(g, g) -> A(g, a(f, a(g, a(f, f))))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 3
↳Polynomial Ordering
A(x, g) -> A(f, x)
A(f, a(f, x)) -> A(x, g)
a(f, a(f, x)) -> a(x, g)
a(x, g) -> a(f, a(g, a(f, x)))
innermost
A(x, g) -> A(f, x)
POL(g) = 1 POL(a(x1, x2)) = 1 + x2 POL(A(x1, x2)) = x1 + x2 POL(f) = 0
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 5
↳Dependency Graph
A(f, a(f, x)) -> A(x, g)
a(f, a(f, x)) -> a(x, g)
a(x, g) -> a(f, a(g, a(f, x)))
innermost
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 4
↳Narrowing Transformation
A(g, g) -> A(g, a(f, a(g, a(f, f))))
a(f, a(f, x)) -> a(x, g)
a(x, g) -> a(f, a(g, a(f, x)))
innermost
no new Dependency Pairs are created.
A(g, g) -> A(g, a(f, a(g, a(f, f))))