R
↳Dependency Pair Analysis
FIRST(s(X), cons(Y, Z)) -> ACTIVATE(Z)
SEL(s(X), cons(Y, Z)) -> SEL(X, activate(Z))
SEL(s(X), cons(Y, Z)) -> ACTIVATE(Z)
ACTIVATE(nfrom(X)) -> FROM(X)
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
FIRST(s(X), cons(Y, Z)) -> ACTIVATE(Z)
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(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 3
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
FIRST(s(X), cons(Y, nfirst(X1'', X2''))) -> ACTIVATE(nfirst(X1'', X2''))
ACTIVATE(nfirst(X1, X2)) -> FIRST(X1, X2)
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(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 3
↳FwdInst
...
→DP Problem 4
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
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''))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(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 3
↳FwdInst
...
→DP Problem 5
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
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'''')))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(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 3
↳FwdInst
...
→DP Problem 6
↳Argument Filtering and Ordering
→DP Problem 2
↳Nar
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''''''))))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(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'''''''')))))
FIRST(s(X), cons(Y, nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))) -> ACTIVATE(nfirst(s(X''''), cons(Y'''', nfirst(X1'''''', X2''''''))))
FIRST(x1, x2) -> x2
cons(x1, x2) -> cons(x1, x2)
ACTIVATE(x1) -> x1
nfirst(x1, x2) -> nfirst(x1, x2)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 3
↳FwdInst
...
→DP Problem 7
↳Dependency Graph
→DP Problem 2
↳Nar
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Narrowing Transformation
SEL(s(X), cons(Y, Z)) -> SEL(X, activate(Z))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
three new Dependency Pairs are created:
SEL(s(X), cons(Y, Z)) -> SEL(X, activate(Z))
SEL(s(X), cons(Y, nfrom(X''))) -> SEL(X, from(X''))
SEL(s(X), cons(Y, nfirst(X1', X2'))) -> SEL(X, first(X1', X2'))
SEL(s(X), cons(Y, Z')) -> SEL(X, Z')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Narrowing Transformation
SEL(s(X), cons(Y, Z')) -> SEL(X, Z')
SEL(s(X), cons(Y, nfirst(X1', X2'))) -> SEL(X, first(X1', X2'))
SEL(s(X), cons(Y, nfrom(X''))) -> SEL(X, from(X''))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
two new Dependency Pairs are created:
SEL(s(X), cons(Y, nfrom(X''))) -> SEL(X, from(X''))
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, cons(X''', nfrom(s(X'''))))
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, nfrom(X'''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 9
↳Narrowing Transformation
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, cons(X''', nfrom(s(X'''))))
SEL(s(X), cons(Y, nfirst(X1', X2'))) -> SEL(X, first(X1', X2'))
SEL(s(X), cons(Y, Z')) -> SEL(X, Z')
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
three new Dependency Pairs are created:
SEL(s(X), cons(Y, nfirst(X1', X2'))) -> SEL(X, first(X1', X2'))
SEL(s(X), cons(Y, nfirst(0, X2''))) -> SEL(X, nil)
SEL(s(X), cons(Y, nfirst(s(X''), cons(Y'', Z')))) -> SEL(X, cons(Y'', nfirst(X'', activate(Z'))))
SEL(s(X), cons(Y, nfirst(X1'', X2''))) -> SEL(X, nfirst(X1'', X2''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 10
↳Forward Instantiation Transformation
SEL(s(X), cons(Y, nfirst(s(X''), cons(Y'', Z')))) -> SEL(X, cons(Y'', nfirst(X'', activate(Z'))))
SEL(s(X), cons(Y, Z')) -> SEL(X, Z')
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, cons(X''', nfrom(s(X'''))))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
three new Dependency Pairs are created:
SEL(s(X), cons(Y, Z')) -> SEL(X, Z')
SEL(s(s(X'')), cons(Y, cons(Y'', Z'''))) -> SEL(s(X''), cons(Y'', Z'''))
SEL(s(s(X'')), cons(Y, cons(Y'', nfrom(X''''')))) -> SEL(s(X''), cons(Y'', nfrom(X''''')))
SEL(s(s(X'')), cons(Y, cons(Y'', nfirst(s(X''''), cons(Y'''', Z'''))))) -> SEL(s(X''), cons(Y'', nfirst(s(X''''), cons(Y'''', Z'''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 11
↳Argument Filtering and Ordering
SEL(s(X), cons(Y, nfirst(s(X''), cons(Y'', Z')))) -> SEL(X, cons(Y'', nfirst(X'', activate(Z'))))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
SEL(s(X), cons(Y, nfirst(s(X''), cons(Y'', Z')))) -> SEL(X, cons(Y'', nfirst(X'', activate(Z'))))
SEL(x1, x2) -> SEL(x1, x2)
s(x1) -> s(x1)
cons(x1, x2) -> x2
nfirst(x1, x2) -> x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 14
↳Dependency Graph
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 12
↳Argument Filtering and Ordering
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, cons(X''', nfrom(s(X'''))))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
SEL(s(X), cons(Y, nfrom(X'''))) -> SEL(X, cons(X''', nfrom(s(X'''))))
SEL(x1, x2) -> SEL(x1, x2)
s(x1) -> s(x1)
cons(x1, x2) -> x2
nfrom(x1) -> nfrom
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 8
↳Nar
...
→DP Problem 13
↳Argument Filtering and Ordering
SEL(s(s(X'')), cons(Y, cons(Y'', Z'''))) -> SEL(s(X''), cons(Y'', Z'''))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
first(0, Z) -> nil
first(s(X), cons(Y, Z)) -> cons(Y, nfirst(X, activate(Z)))
first(X1, X2) -> nfirst(X1, X2)
sel(0, cons(X, Z)) -> X
sel(s(X), cons(Y, Z)) -> sel(X, activate(Z))
activate(nfrom(X)) -> from(X)
activate(nfirst(X1, X2)) -> first(X1, X2)
activate(X) -> X
innermost
SEL(s(s(X'')), cons(Y, cons(Y'', Z'''))) -> SEL(s(X''), cons(Y'', Z'''))
SEL(x1, x2) -> SEL(x1, x2)
s(x1) -> s(x1)
cons(x1, x2) -> cons(x1, x2)