R
↳Dependency Pair Analysis
FIB(N) -> SEL(N, fib1(s(0), s(0)))
FIB(N) -> FIB1(s(0), s(0))
FIB1(X, Y) -> FIB1(Y, add(X, Y))
FIB1(X, Y) -> ADD(X, Y)
ADD(s(X), Y) -> ADD(X, Y)
SEL(s(N), cons(X, XS)) -> SEL(N, XS)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
SEL(s(N), cons(X, XS)) -> SEL(N, XS)
fib(N) -> sel(N, fib1(s(0), s(0)))
fib1(X, Y) -> cons(X, fib1(Y, add(X, Y)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, XS)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 4
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
SEL(s(N), cons(X, XS)) -> SEL(N, XS)
none
innermost
|
|
trivial
cons(x1, x2) -> cons(x1, x2)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
ADD(s(X), Y) -> ADD(X, Y)
fib(N) -> sel(N, fib1(s(0), s(0)))
fib1(X, Y) -> cons(X, fib1(Y, add(X, Y)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, XS)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 5
↳Size-Change Principle
→DP Problem 3
↳UsableRules
ADD(s(X), Y) -> ADD(X, Y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
FIB1(X, Y) -> FIB1(Y, add(X, Y))
fib(N) -> sel(N, fib1(s(0), s(0)))
fib1(X, Y) -> cons(X, fib1(Y, add(X, Y)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, XS)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Non Termination
FIB1(X, Y) -> FIB1(Y, add(X, Y))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
innermost
FIB1(X, Y) -> FIB1(Y, add(X, Y))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))