R
↳Dependency Pair Analysis
TERMS(N) -> SQR(N)
SQR(s(X)) -> ADD(sqr(X), dbl(X))
SQR(s(X)) -> SQR(X)
SQR(s(X)) -> DBL(X)
DBL(s(X)) -> DBL(X)
ADD(s(X), Y) -> ADD(X, Y)
FIRST(s(X), cons(Y, Z)) -> ACTIVATE(Z)
HALF(s(s(X))) -> HALF(X)
ACTIVATE(nterms(X)) -> TERMS(X)
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
ADD(s(X), Y) -> ADD(X, Y)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
ADD(s(X), Y) -> ADD(X, Y)
ADD(s(s(X'')), Y'') -> ADD(s(X''), Y'')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 6
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
ADD(s(s(X'')), Y'') -> ADD(s(X''), Y'')
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
ADD(s(s(X'')), Y'') -> ADD(s(X''), Y'')
ADD(s(s(s(X''''))), Y'''') -> ADD(s(s(X'''')), Y'''')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 6
↳FwdInst
...
→DP Problem 7
↳Polynomial Ordering
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
ADD(s(s(s(X''''))), Y'''') -> ADD(s(s(X'''')), Y'''')
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
ADD(s(s(s(X''''))), Y'''') -> ADD(s(s(X'''')), Y'''')
POL(s(x1)) = 1 + x1 POL(ADD(x1, x2)) = 1 + x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 6
↳FwdInst
...
→DP Problem 8
↳Dependency Graph
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Forward Instantiation Transformation
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
DBL(s(X)) -> DBL(X)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
DBL(s(X)) -> DBL(X)
DBL(s(s(X''))) -> DBL(s(X''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳Forward Instantiation Transformation
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
DBL(s(s(X''))) -> DBL(s(X''))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
DBL(s(s(X''))) -> DBL(s(X''))
DBL(s(s(s(X'''')))) -> DBL(s(s(X'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳FwdInst
...
→DP Problem 10
↳Polynomial Ordering
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
DBL(s(s(s(X'''')))) -> DBL(s(s(X'''')))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
DBL(s(s(s(X'''')))) -> DBL(s(s(X'''')))
POL(s(x1)) = 1 + x1 POL(DBL(x1)) = 1 + x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳FwdInst
...
→DP Problem 11
↳Dependency Graph
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Forward Instantiation Transformation
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
HALF(s(s(X))) -> HALF(X)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
HALF(s(s(X))) -> HALF(X)
HALF(s(s(s(s(X''))))) -> HALF(s(s(X'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 12
↳Forward Instantiation Transformation
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
HALF(s(s(s(s(X''))))) -> HALF(s(s(X'')))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
HALF(s(s(s(s(X''))))) -> HALF(s(s(X'')))
HALF(s(s(s(s(s(s(X''''))))))) -> HALF(s(s(s(s(X'''')))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 12
↳FwdInst
...
→DP Problem 13
↳Polynomial Ordering
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
HALF(s(s(s(s(s(s(X''''))))))) -> HALF(s(s(s(s(X'''')))))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
HALF(s(s(s(s(s(s(X''''))))))) -> HALF(s(s(s(s(X'''')))))
POL(HALF(x1)) = 1 + x1 POL(s(x1)) = 1 + x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 12
↳FwdInst
...
→DP Problem 14
↳Dependency Graph
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳Forward Instantiation Transformation
→DP Problem 5
↳FwdInst
SQR(s(X)) -> SQR(X)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
SQR(s(X)) -> SQR(X)
SQR(s(s(X''))) -> SQR(s(X''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 15
↳Forward Instantiation Transformation
→DP Problem 5
↳FwdInst
SQR(s(s(X''))) -> SQR(s(X''))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
SQR(s(s(X''))) -> SQR(s(X''))
SQR(s(s(s(X'''')))) -> SQR(s(s(X'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 15
↳FwdInst
...
→DP Problem 16
↳Polynomial Ordering
→DP Problem 5
↳FwdInst
SQR(s(s(s(X'''')))) -> SQR(s(s(X'''')))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
SQR(s(s(s(X'''')))) -> SQR(s(s(X'''')))
POL(s(x1)) = 1 + x1 POL(SQR(x1)) = 1 + x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 15
↳FwdInst
...
→DP Problem 17
↳Dependency Graph
→DP Problem 5
↳FwdInst
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳Forward Instantiation Transformation
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
FIRST(s(X), cons(Y, Z)) -> ACTIVATE(Z)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
FIRST(s(X), cons(Y, Z)) -> ACTIVATE(Z)
FIRST(s(X), cons(Y, nfirst(X1'', X2''))) -> ACTIVATE(nfirst(X1'', X2''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
→DP Problem 18
↳Forward Instantiation Transformation
FIRST(s(X), cons(Y, nfirst(X1'', X2''))) -> ACTIVATE(nfirst(X1'', X2''))
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
ACTIVATE(nfirst(s(X''), cons(Y'', nfirst(X1'''', X2'''')))) -> FIRST(s(X''), cons(Y'', nfirst(X1'''', X2'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
→DP Problem 18
↳FwdInst
...
→DP Problem 19
↳Forward Instantiation Transformation
ACTIVATE(nfirst(s(X''), cons(Y'', nfirst(X1'''', X2'''')))) -> FIRST(s(X''), cons(Y'', nfirst(X1'''', X2'''')))
FIRST(s(X), cons(Y, nfirst(X1'', X2''))) -> ACTIVATE(nfirst(X1'', X2''))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
FIRST(s(X), cons(Y, nfirst(X1'', X2''))) -> ACTIVATE(nfirst(X1'', X2''))
FIRST(s(X), cons(Y, nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))) -> ACTIVATE(nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
→DP Problem 18
↳FwdInst
...
→DP Problem 20
↳Forward Instantiation Transformation
FIRST(s(X), cons(Y, nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))) -> ACTIVATE(nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))
ACTIVATE(nfirst(s(X''), cons(Y'', nfirst(X1'''', X2'''')))) -> FIRST(s(X''), cons(Y'', nfirst(X1'''', X2'''')))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
one new Dependency Pair is created:
ACTIVATE(nfirst(s(X''), cons(Y'', nfirst(X1'''', X2'''')))) -> FIRST(s(X''), cons(Y'', nfirst(X1'''', X2'''')))
ACTIVATE(nfirst(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))) -> FIRST(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
→DP Problem 18
↳FwdInst
...
→DP Problem 21
↳Polynomial Ordering
ACTIVATE(nfirst(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))) -> FIRST(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))
FIRST(s(X), cons(Y, nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))) -> ACTIVATE(nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
ACTIVATE(nfirst(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))) -> FIRST(s(X'''), cons(Y''', nfirst(s(X''''''), cons(Y'''''', nfirst(X1'''''''', X2'''''''')))))
POL(cons(x1, x2)) = x2 POL(FIRST(x1, x2)) = x2 POL(s(x1)) = 1 POL(ACTIVATE(x1)) = x1 POL(n__first(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳FwdInst
→DP Problem 4
↳FwdInst
→DP Problem 5
↳FwdInst
→DP Problem 18
↳FwdInst
...
→DP Problem 22
↳Dependency Graph
FIRST(s(X), cons(Y, nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))) -> ACTIVATE(nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))
terms(N) -> cons(recip(sqr(N)), nterms(s(N)))
terms(X) -> nterms(X)
sqr(0) -> 0
sqr(s(X)) -> s(add(sqr(X), dbl(X)))
dbl(0) -> 0
dbl(s(X)) -> s(s(dbl(X)))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
first(0, X) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
half(0) -> 0
half(s(0)) -> 0
half(s(s(X))) -> s(half(X))
half(dbl(X)) -> X
activate(nterms(X)) -> terms(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost