R
↳Dependency Pair Analysis
AFROM(X) -> MARK(X)
AHEAD(cons(X, XS)) -> MARK(X)
A2ND(cons(X, XS)) -> AHEAD(mark(XS))
A2ND(cons(X, XS)) -> MARK(XS)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
ASEL(0, cons(X, XS)) -> MARK(X)
ASEL(s(N), cons(X, XS)) -> ASEL(mark(N), mark(XS))
ASEL(s(N), cons(X, XS)) -> MARK(N)
ASEL(s(N), cons(X, XS)) -> MARK(XS)
MARK(from(X)) -> AFROM(mark(X))
MARK(from(X)) -> MARK(X)
MARK(head(X)) -> AHEAD(mark(X))
MARK(head(X)) -> MARK(X)
MARK(2nd(X)) -> A2ND(mark(X))
MARK(2nd(X)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X1)
MARK(take(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(sel(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(s(X)) -> MARK(X)
R
↳DPs
→DP Problem 1
↳Narrowing Transformation
ASEL(s(N), cons(X, XS)) -> MARK(XS)
ASEL(s(N), cons(X, XS)) -> MARK(N)
ASEL(s(N), cons(X, XS)) -> ASEL(mark(N), mark(XS))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(0, cons(X, XS)) -> MARK(X)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(2nd(X)) -> MARK(X)
A2ND(cons(X, XS)) -> MARK(XS)
A2ND(cons(X, XS)) -> AHEAD(mark(XS))
MARK(2nd(X)) -> A2ND(mark(X))
MARK(head(X)) -> MARK(X)
AHEAD(cons(X, XS)) -> MARK(X)
MARK(head(X)) -> AHEAD(mark(X))
MARK(from(X)) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
AFROM(X) -> MARK(X)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
nine new Dependency Pairs are created:
A2ND(cons(X, XS)) -> AHEAD(mark(XS))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
A2ND(cons(X, s(X''))) -> AHEAD(s(mark(X'')))
A2ND(cons(X, 0)) -> AHEAD(0)
A2ND(cons(X, nil)) -> AHEAD(nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Narrowing Transformation
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
ASEL(s(N), cons(X, XS)) -> MARK(N)
ASEL(s(N), cons(X, XS)) -> ASEL(mark(N), mark(XS))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(0, cons(X, XS)) -> MARK(X)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(2nd(X)) -> MARK(X)
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(X)) -> A2ND(mark(X))
MARK(head(X)) -> MARK(X)
AHEAD(cons(X, XS)) -> MARK(X)
MARK(head(X)) -> AHEAD(mark(X))
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
18 new Dependency Pairs are created:
ASEL(s(N), cons(X, XS)) -> ASEL(mark(N), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(cons(X1', X2')), cons(X, XS)) -> ASEL(cons(mark(X1'), X2'), mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(nil), cons(X, XS)) -> ASEL(nil, mark(XS))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
ASEL(s(N), cons(X, s(X''))) -> ASEL(mark(N), s(mark(X'')))
ASEL(s(N), cons(X, 0)) -> ASEL(mark(N), 0)
ASEL(s(N), cons(X, nil)) -> ASEL(mark(N), nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 3
↳Narrowing Transformation
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
ASEL(s(N), cons(X, XS)) -> MARK(N)
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(0, cons(X, XS)) -> MARK(X)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(2nd(X)) -> MARK(X)
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(X)) -> A2ND(mark(X))
MARK(head(X)) -> MARK(X)
MARK(head(X)) -> AHEAD(mark(X))
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
AHEAD(cons(X, XS)) -> MARK(X)
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
nine new Dependency Pairs are created:
MARK(head(X)) -> AHEAD(mark(X))
MARK(head(from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(head(head(X''))) -> AHEAD(ahead(mark(X'')))
MARK(head(2nd(X''))) -> AHEAD(a2nd(mark(X'')))
MARK(head(take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
MARK(head(sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
MARK(head(cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
MARK(head(s(X''))) -> AHEAD(s(mark(X'')))
MARK(head(0)) -> AHEAD(0)
MARK(head(nil)) -> AHEAD(nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 4
↳Narrowing Transformation
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
ASEL(s(N), cons(X, XS)) -> MARK(N)
MARK(head(cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
MARK(head(sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
MARK(head(take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
MARK(head(2nd(X''))) -> AHEAD(a2nd(mark(X'')))
MARK(head(head(X''))) -> AHEAD(ahead(mark(X'')))
MARK(head(from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(0, cons(X, XS)) -> MARK(X)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(2nd(X)) -> MARK(X)
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(X)) -> A2ND(mark(X))
MARK(head(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
AHEAD(cons(X, XS)) -> MARK(X)
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
nine new Dependency Pairs are created:
MARK(2nd(X)) -> A2ND(mark(X))
MARK(2nd(from(X''))) -> A2ND(afrom(mark(X'')))
MARK(2nd(head(X''))) -> A2ND(ahead(mark(X'')))
MARK(2nd(2nd(X''))) -> A2ND(a2nd(mark(X'')))
MARK(2nd(take(X1', X2'))) -> A2ND(atake(mark(X1'), mark(X2')))
MARK(2nd(sel(X1', X2'))) -> A2ND(asel(mark(X1'), mark(X2')))
MARK(2nd(cons(X1', X2'))) -> A2ND(cons(mark(X1'), X2'))
MARK(2nd(s(X''))) -> A2ND(s(mark(X'')))
MARK(2nd(0)) -> A2ND(0)
MARK(2nd(nil)) -> A2ND(nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 5
↳Narrowing Transformation
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
ASEL(s(N), cons(X, XS)) -> MARK(N)
MARK(2nd(cons(X1', X2'))) -> A2ND(cons(mark(X1'), X2'))
MARK(2nd(sel(X1', X2'))) -> A2ND(asel(mark(X1'), mark(X2')))
MARK(2nd(take(X1', X2'))) -> A2ND(atake(mark(X1'), mark(X2')))
MARK(2nd(2nd(X''))) -> A2ND(a2nd(mark(X'')))
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(2nd(head(X''))) -> A2ND(ahead(mark(X'')))
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(from(X''))) -> A2ND(afrom(mark(X'')))
MARK(head(cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
MARK(head(sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
MARK(head(take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
MARK(head(2nd(X''))) -> AHEAD(a2nd(mark(X'')))
MARK(head(head(X''))) -> AHEAD(ahead(mark(X'')))
MARK(head(from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(0, cons(X, XS)) -> MARK(X)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(2nd(X)) -> MARK(X)
MARK(head(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
AHEAD(cons(X, XS)) -> MARK(X)
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
18 new Dependency Pairs are created:
MARK(take(X1, X2)) -> ATAKE(mark(X1), mark(X2))
MARK(take(from(X'), X2)) -> ATAKE(afrom(mark(X')), mark(X2))
MARK(take(head(X'), X2)) -> ATAKE(ahead(mark(X')), mark(X2))
MARK(take(2nd(X'), X2)) -> ATAKE(a2nd(mark(X')), mark(X2))
MARK(take(take(X1'', X2''), X2)) -> ATAKE(atake(mark(X1''), mark(X2'')), mark(X2))
MARK(take(sel(X1'', X2''), X2)) -> ATAKE(asel(mark(X1''), mark(X2'')), mark(X2))
MARK(take(cons(X1'', X2''), X2)) -> ATAKE(cons(mark(X1''), X2''), mark(X2))
MARK(take(s(X'), X2)) -> ATAKE(s(mark(X')), mark(X2))
MARK(take(0, X2)) -> ATAKE(0, mark(X2))
MARK(take(nil, X2)) -> ATAKE(nil, mark(X2))
MARK(take(X1, from(X'))) -> ATAKE(mark(X1), afrom(mark(X')))
MARK(take(X1, head(X'))) -> ATAKE(mark(X1), ahead(mark(X')))
MARK(take(X1, 2nd(X'))) -> ATAKE(mark(X1), a2nd(mark(X')))
MARK(take(X1, take(X1'', X2''))) -> ATAKE(mark(X1), atake(mark(X1''), mark(X2'')))
MARK(take(X1, sel(X1'', X2''))) -> ATAKE(mark(X1), asel(mark(X1''), mark(X2'')))
MARK(take(X1, cons(X1'', X2''))) -> ATAKE(mark(X1), cons(mark(X1''), X2''))
MARK(take(X1, s(X'))) -> ATAKE(mark(X1), s(mark(X')))
MARK(take(X1, 0)) -> ATAKE(mark(X1), 0)
MARK(take(X1, nil)) -> ATAKE(mark(X1), nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 6
↳Narrowing Transformation
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
MARK(take(X1, cons(X1'', X2''))) -> ATAKE(mark(X1), cons(mark(X1''), X2''))
MARK(take(X1, sel(X1'', X2''))) -> ATAKE(mark(X1), asel(mark(X1''), mark(X2'')))
MARK(take(X1, take(X1'', X2''))) -> ATAKE(mark(X1), atake(mark(X1''), mark(X2'')))
MARK(take(X1, 2nd(X'))) -> ATAKE(mark(X1), a2nd(mark(X')))
MARK(take(X1, head(X'))) -> ATAKE(mark(X1), ahead(mark(X')))
MARK(take(X1, from(X'))) -> ATAKE(mark(X1), afrom(mark(X')))
MARK(take(s(X'), X2)) -> ATAKE(s(mark(X')), mark(X2))
MARK(take(sel(X1'', X2''), X2)) -> ATAKE(asel(mark(X1''), mark(X2'')), mark(X2))
MARK(take(take(X1'', X2''), X2)) -> ATAKE(atake(mark(X1''), mark(X2'')), mark(X2))
MARK(take(2nd(X'), X2)) -> ATAKE(a2nd(mark(X')), mark(X2))
MARK(take(head(X'), X2)) -> ATAKE(ahead(mark(X')), mark(X2))
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(from(X'), X2)) -> ATAKE(afrom(mark(X')), mark(X2))
MARK(2nd(cons(X1', X2'))) -> A2ND(cons(mark(X1'), X2'))
MARK(2nd(sel(X1', X2'))) -> A2ND(asel(mark(X1'), mark(X2')))
MARK(2nd(take(X1', X2'))) -> A2ND(atake(mark(X1'), mark(X2')))
MARK(2nd(2nd(X''))) -> A2ND(a2nd(mark(X'')))
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(2nd(head(X''))) -> A2ND(ahead(mark(X'')))
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(from(X''))) -> A2ND(afrom(mark(X'')))
MARK(head(cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
MARK(head(sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
MARK(head(take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
MARK(head(2nd(X''))) -> AHEAD(a2nd(mark(X'')))
MARK(head(head(X''))) -> AHEAD(ahead(mark(X'')))
AHEAD(cons(X, XS)) -> MARK(X)
MARK(head(from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
ASEL(s(N), cons(X, XS)) -> MARK(N)
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
MARK(2nd(X)) -> MARK(X)
MARK(head(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
ASEL(0, cons(X, XS)) -> MARK(X)
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil
18 new Dependency Pairs are created:
MARK(sel(X1, X2)) -> ASEL(mark(X1), mark(X2))
MARK(sel(from(X'), X2)) -> ASEL(afrom(mark(X')), mark(X2))
MARK(sel(head(X'), X2)) -> ASEL(ahead(mark(X')), mark(X2))
MARK(sel(2nd(X'), X2)) -> ASEL(a2nd(mark(X')), mark(X2))
MARK(sel(take(X1'', X2''), X2)) -> ASEL(atake(mark(X1''), mark(X2'')), mark(X2))
MARK(sel(sel(X1'', X2''), X2)) -> ASEL(asel(mark(X1''), mark(X2'')), mark(X2))
MARK(sel(cons(X1'', X2''), X2)) -> ASEL(cons(mark(X1''), X2''), mark(X2))
MARK(sel(s(X'), X2)) -> ASEL(s(mark(X')), mark(X2))
MARK(sel(0, X2)) -> ASEL(0, mark(X2))
MARK(sel(nil, X2)) -> ASEL(nil, mark(X2))
MARK(sel(X1, from(X'))) -> ASEL(mark(X1), afrom(mark(X')))
MARK(sel(X1, head(X'))) -> ASEL(mark(X1), ahead(mark(X')))
MARK(sel(X1, 2nd(X'))) -> ASEL(mark(X1), a2nd(mark(X')))
MARK(sel(X1, take(X1'', X2''))) -> ASEL(mark(X1), atake(mark(X1''), mark(X2'')))
MARK(sel(X1, sel(X1'', X2''))) -> ASEL(mark(X1), asel(mark(X1''), mark(X2'')))
MARK(sel(X1, cons(X1'', X2''))) -> ASEL(mark(X1), cons(mark(X1''), X2''))
MARK(sel(X1, s(X'))) -> ASEL(mark(X1), s(mark(X')))
MARK(sel(X1, 0)) -> ASEL(mark(X1), 0)
MARK(sel(X1, nil)) -> ASEL(mark(X1), nil)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 7
↳Remaining Obligation(s)
MARK(sel(X1, cons(X1'', X2''))) -> ASEL(mark(X1), cons(mark(X1''), X2''))
MARK(sel(X1, sel(X1'', X2''))) -> ASEL(mark(X1), asel(mark(X1''), mark(X2'')))
MARK(sel(X1, take(X1'', X2''))) -> ASEL(mark(X1), atake(mark(X1''), mark(X2'')))
MARK(sel(X1, 2nd(X'))) -> ASEL(mark(X1), a2nd(mark(X')))
MARK(sel(X1, head(X'))) -> ASEL(mark(X1), ahead(mark(X')))
MARK(sel(X1, from(X'))) -> ASEL(mark(X1), afrom(mark(X')))
MARK(sel(0, X2)) -> ASEL(0, mark(X2))
MARK(sel(s(X'), X2)) -> ASEL(s(mark(X')), mark(X2))
MARK(sel(sel(X1'', X2''), X2)) -> ASEL(asel(mark(X1''), mark(X2'')), mark(X2))
MARK(sel(take(X1'', X2''), X2)) -> ASEL(atake(mark(X1''), mark(X2'')), mark(X2))
ASEL(s(N), cons(X, cons(X1', X2'))) -> ASEL(mark(N), cons(mark(X1'), X2'))
ASEL(s(N), cons(X, take(X1', X2'))) -> ASEL(mark(N), atake(mark(X1'), mark(X2')))
ASEL(s(N), cons(X, 2nd(X''))) -> ASEL(mark(N), a2nd(mark(X'')))
ASEL(s(N), cons(X, head(X''))) -> ASEL(mark(N), ahead(mark(X'')))
ASEL(s(N), cons(X, from(X''))) -> ASEL(mark(N), afrom(mark(X'')))
ASEL(s(0), cons(X, XS)) -> ASEL(0, mark(XS))
ASEL(s(s(X'')), cons(X, XS)) -> ASEL(s(mark(X'')), mark(XS))
ASEL(s(sel(X1', X2')), cons(X, XS)) -> ASEL(asel(mark(X1'), mark(X2')), mark(XS))
ASEL(s(take(X1', X2')), cons(X, XS)) -> ASEL(atake(mark(X1'), mark(X2')), mark(XS))
ASEL(s(2nd(X'')), cons(X, XS)) -> ASEL(a2nd(mark(X'')), mark(XS))
ASEL(s(head(X'')), cons(X, XS)) -> ASEL(ahead(mark(X'')), mark(XS))
ASEL(s(from(X'')), cons(X, XS)) -> ASEL(afrom(mark(X'')), mark(XS))
MARK(sel(2nd(X'), X2)) -> ASEL(a2nd(mark(X')), mark(X2))
ASEL(s(N), cons(X, XS)) -> MARK(XS)
MARK(sel(head(X'), X2)) -> ASEL(ahead(mark(X')), mark(X2))
ASEL(s(N), cons(X, XS)) -> MARK(N)
MARK(sel(from(X'), X2)) -> ASEL(afrom(mark(X')), mark(X2))
MARK(take(X1, cons(X1'', X2''))) -> ATAKE(mark(X1), cons(mark(X1''), X2''))
MARK(take(X1, sel(X1'', X2''))) -> ATAKE(mark(X1), asel(mark(X1''), mark(X2'')))
MARK(take(X1, take(X1'', X2''))) -> ATAKE(mark(X1), atake(mark(X1''), mark(X2'')))
MARK(take(X1, 2nd(X'))) -> ATAKE(mark(X1), a2nd(mark(X')))
MARK(take(X1, head(X'))) -> ATAKE(mark(X1), ahead(mark(X')))
MARK(take(X1, from(X'))) -> ATAKE(mark(X1), afrom(mark(X')))
MARK(take(s(X'), X2)) -> ATAKE(s(mark(X')), mark(X2))
MARK(take(sel(X1'', X2''), X2)) -> ATAKE(asel(mark(X1''), mark(X2'')), mark(X2))
MARK(take(take(X1'', X2''), X2)) -> ATAKE(atake(mark(X1''), mark(X2'')), mark(X2))
MARK(take(2nd(X'), X2)) -> ATAKE(a2nd(mark(X')), mark(X2))
MARK(take(head(X'), X2)) -> ATAKE(ahead(mark(X')), mark(X2))
ATAKE(s(N), cons(X, XS)) -> MARK(X)
MARK(take(from(X'), X2)) -> ATAKE(afrom(mark(X')), mark(X2))
MARK(2nd(cons(X1', X2'))) -> A2ND(cons(mark(X1'), X2'))
MARK(2nd(sel(X1', X2'))) -> A2ND(asel(mark(X1'), mark(X2')))
MARK(2nd(take(X1', X2'))) -> A2ND(atake(mark(X1'), mark(X2')))
MARK(2nd(2nd(X''))) -> A2ND(a2nd(mark(X'')))
A2ND(cons(X, cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
A2ND(cons(X, sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
A2ND(cons(X, take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
A2ND(cons(X, 2nd(X''))) -> AHEAD(a2nd(mark(X'')))
A2ND(cons(X, head(X''))) -> AHEAD(ahead(mark(X'')))
A2ND(cons(X, from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(2nd(head(X''))) -> A2ND(ahead(mark(X'')))
A2ND(cons(X, XS)) -> MARK(XS)
MARK(2nd(from(X''))) -> A2ND(afrom(mark(X'')))
MARK(head(cons(X1', X2'))) -> AHEAD(cons(mark(X1'), X2'))
MARK(head(sel(X1', X2'))) -> AHEAD(asel(mark(X1'), mark(X2')))
MARK(head(take(X1', X2'))) -> AHEAD(atake(mark(X1'), mark(X2')))
MARK(head(2nd(X''))) -> AHEAD(a2nd(mark(X'')))
MARK(head(head(X''))) -> AHEAD(ahead(mark(X'')))
AHEAD(cons(X, XS)) -> MARK(X)
MARK(head(from(X''))) -> AHEAD(afrom(mark(X'')))
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(sel(X1, X2)) -> MARK(X2)
MARK(sel(X1, X2)) -> MARK(X1)
MARK(take(X1, X2)) -> MARK(X2)
MARK(take(X1, X2)) -> MARK(X1)
MARK(2nd(X)) -> MARK(X)
MARK(head(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
ASEL(0, cons(X, XS)) -> MARK(X)
ASEL(s(N), cons(X, sel(X1', X2'))) -> ASEL(mark(N), asel(mark(X1'), mark(X2')))
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
ahead(cons(X, XS)) -> mark(X)
ahead(X) -> head(X)
a2nd(cons(X, XS)) -> ahead(mark(XS))
a2nd(X) -> 2nd(X)
atake(0, XS) -> nil
atake(s(N), cons(X, XS)) -> cons(mark(X), take(N, XS))
atake(X1, X2) -> take(X1, X2)
asel(0, cons(X, XS)) -> mark(X)
asel(s(N), cons(X, XS)) -> asel(mark(N), mark(XS))
asel(X1, X2) -> sel(X1, X2)
mark(from(X)) -> afrom(mark(X))
mark(head(X)) -> ahead(mark(X))
mark(2nd(X)) -> a2nd(mark(X))
mark(take(X1, X2)) -> atake(mark(X1), mark(X2))
mark(sel(X1, X2)) -> asel(mark(X1), mark(X2))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
mark(0) -> 0
mark(nil) -> nil