R
↳Dependency Pair Analysis
F(cons(f(cons(nil, y)), z)) -> COPY(n, y, z)
COPY(0, y, z) -> F(z)
COPY(s(x), y, z) -> COPY(x, y, cons(f(y), z))
COPY(s(x), y, z) -> F(y)
R
↳DPs
→DP Problem 1
↳Argument Filtering and Ordering
COPY(s(x), y, z) -> COPY(x, y, cons(f(y), z))
f(cons(nil, y)) -> y
f(cons(f(cons(nil, y)), z)) -> copy(n, y, z)
copy(0, y, z) -> f(z)
copy(s(x), y, z) -> copy(x, y, cons(f(y), z))
COPY(s(x), y, z) -> COPY(x, y, cons(f(y), z))
f(cons(nil, y)) -> y
f(cons(f(cons(nil, y)), z)) -> copy(n, y, z)
copy(0, y, z) -> f(z)
copy(s(x), y, z) -> copy(x, y, cons(f(y), z))
POL(COPY(x1, x2, x3)) = x1 + x2 + x3 POL(s(x1)) = 1 + x1 POL(f(x1)) = x1
COPY(x1, x2, x3) -> COPY(x1, x2, x3)
s(x1) -> s(x1)
cons(x1, x2) -> x2
f(x1) -> f(x1)
copy(x1, x2, x3) -> x3
R
↳DPs
→DP Problem 1
↳AFS
→DP Problem 2
↳Dependency Graph
f(cons(nil, y)) -> y
f(cons(f(cons(nil, y)), z)) -> copy(n, y, z)
copy(0, y, z) -> f(z)
copy(s(x), y, z) -> copy(x, y, cons(f(y), z))