Term Rewriting System R:
[x, n, h, t, m, pid, st1, in2, st2, in3, st3]
fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

FSTSPLIT(s(n), cons(h, t)) -> FSTSPLIT(n, t)
SNDSPLIT(s(n), cons(h, t)) -> SNDSPLIT(n, t)
LEQ(s(n), s(m)) -> LEQ(n, m)
LENGTH(cons(h, t)) -> LENGTH(t)
APP(cons(h, t), x) -> APP(t, x)
MAPF(pid, cons(h, t)) -> APP(f(pid, h), mapf(pid, t))
MAPF(pid, cons(h, t)) -> MAPF(pid, t)
RING(st1, in2, st2, in3, st3, m) -> IF1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
RING(st1, in2, st2, in3, st3, m) -> EMPTY(fstsplit(m, st1))
RING(st1, in2, st2, in3, st3, m) -> FSTSPLIT(m, st1)
RING(st1, in2, st2, in3, st3, m) -> IF2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
RING(st1, in2, st2, in3, st3, m) -> LEQ(m, length(st2))
RING(st1, in2, st2, in3, st3, m) -> LENGTH(st2)
RING(st1, in2, st2, in3, st3, m) -> IF5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
RING(st1, in2, st2, in3, st3, m) -> EMPTY(mapf(two, head(in2)))
RING(st1, in2, st2, in3, st3, m) -> MAPF(two, head(in2))
RING(st1, in2, st2, in3, st3, m) -> HEAD(in2)
RING(st1, in2, st2, in3, st3, m) -> IF6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
RING(st1, in2, st2, in3, st3, m) -> LEQ(m, length(st3))
RING(st1, in2, st2, in3, st3, m) -> LENGTH(st3)
RING(st1, in2, st2, in3, st3, m) -> IF9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
RING(st1, in2, st2, in3, st3, m) -> EMPTY(mapf(three, head(in3)))
RING(st1, in2, st2, in3, st3, m) -> MAPF(three, head(in3))
RING(st1, in2, st2, in3, st3, m) -> HEAD(in3)
IF1(st1, in2, st2, in3, st3, m, false) -> RING(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
IF1(st1, in2, st2, in3, st3, m, false) -> SNDSPLIT(m, st1)
IF1(st1, in2, st2, in3, st3, m, false) -> FSTSPLIT(m, st1)
IF2(st1, in2, st2, in3, st3, m, true) -> IF3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
IF2(st1, in2, st2, in3, st3, m, true) -> EMPTY(fstsplit(m, st2))
IF2(st1, in2, st2, in3, st3, m, true) -> FSTSPLIT(m, st2)
IF2(st1, in2, st2, in3, st3, m, false) -> IF4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
IF2(st1, in2, st2, in3, st3, m, false) -> EMPTY(fstsplit(m, app(mapf(two, head(in2)), st2)))
IF2(st1, in2, st2, in3, st3, m, false) -> FSTSPLIT(m, app(mapf(two, head(in2)), st2))
IF2(st1, in2, st2, in3, st3, m, false) -> APP(mapf(two, head(in2)), st2)
IF2(st1, in2, st2, in3, st3, m, false) -> MAPF(two, head(in2))
IF2(st1, in2, st2, in3, st3, m, false) -> HEAD(in2)
IF3(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
IF3(st1, in2, st2, in3, st3, m, false) -> SNDSPLIT(m, st2)
IF3(st1, in2, st2, in3, st3, m, false) -> FSTSPLIT(m, st2)
IF4(st1, in2, st2, in3, st3, m, false) -> RING(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
IF4(st1, in2, st2, in3, st3, m, false) -> TAIL(in2)
IF4(st1, in2, st2, in3, st3, m, false) -> SNDSPLIT(m, app(mapf(two, head(in2)), st2))
IF4(st1, in2, st2, in3, st3, m, false) -> APP(mapf(two, head(in2)), st2)
IF4(st1, in2, st2, in3, st3, m, false) -> MAPF(two, head(in2))
IF4(st1, in2, st2, in3, st3, m, false) -> HEAD(in2)
IF4(st1, in2, st2, in3, st3, m, false) -> FSTSPLIT(m, app(mapf(two, head(in2)), st2))
IF5(st1, in2, st2, in3, st3, m, true) -> RING(st1, tail(in2), st2, in3, st3, m)
IF5(st1, in2, st2, in3, st3, m, true) -> TAIL(in2)
IF6(st1, in2, st2, in3, st3, m, true) -> IF7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
IF6(st1, in2, st2, in3, st3, m, true) -> EMPTY(fstsplit(m, st3))
IF6(st1, in2, st2, in3, st3, m, true) -> FSTSPLIT(m, st3)
IF6(st1, in2, st2, in3, st3, m, false) -> IF8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
IF6(st1, in2, st2, in3, st3, m, false) -> EMPTY(fstsplit(m, app(mapf(three, head(in3)), st3)))
IF6(st1, in2, st2, in3, st3, m, false) -> FSTSPLIT(m, app(mapf(three, head(in3)), st3))
IF6(st1, in2, st2, in3, st3, m, false) -> APP(mapf(three, head(in3)), st3)
IF6(st1, in2, st2, in3, st3, m, false) -> MAPF(three, head(in3))
IF6(st1, in2, st2, in3, st3, m, false) -> HEAD(in3)
IF7(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, st2, in3, sndsplit(m, st3), m)
IF7(st1, in2, st2, in3, st3, m, false) -> SNDSPLIT(m, st3)
IF8(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
IF8(st1, in2, st2, in3, st3, m, false) -> TAIL(in3)
IF8(st1, in2, st2, in3, st3, m, false) -> SNDSPLIT(m, app(mapf(three, head(in3)), st3))
IF8(st1, in2, st2, in3, st3, m, false) -> APP(mapf(three, head(in3)), st3)
IF8(st1, in2, st2, in3, st3, m, false) -> MAPF(three, head(in3))
IF8(st1, in2, st2, in3, st3, m, false) -> HEAD(in3)
IF9(st1, in2, st2, in3, st3, m, true) -> RING(st1, in2, st2, tail(in3), st3, m)
IF9(st1, in2, st2, in3, st3, m, true) -> TAIL(in3)

Furthermore, R contains seven SCCs.


   R
DPs
       →DP Problem 1
Polynomial Ordering
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:

FSTSPLIT(s(n), cons(h, t)) -> FSTSPLIT(n, t)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

FSTSPLIT(s(n), cons(h, t)) -> FSTSPLIT(n, t)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(cons(x1, x2))=  0  
  POL(FSTSPLIT(x1, x2))=  x1  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 8
Dependency Graph
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polynomial Ordering
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:

SNDSPLIT(s(n), cons(h, t)) -> SNDSPLIT(n, t)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

SNDSPLIT(s(n), cons(h, t)) -> SNDSPLIT(n, t)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(SNDSPLIT(x1, x2))=  x1  
  POL(cons(x1, x2))=  0  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
           →DP Problem 9
Dependency Graph
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polynomial Ordering
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:

LEQ(s(n), s(m)) -> LEQ(n, m)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

LEQ(s(n), s(m)) -> LEQ(n, m)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(LEQ(x1, x2))=  x1  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
           →DP Problem 10
Dependency Graph
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polynomial Ordering
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:

LENGTH(cons(h, t)) -> LENGTH(t)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

LENGTH(cons(h, t)) -> LENGTH(t)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(cons(x1, x2))=  1 + x2  
  POL(LENGTH(x1))=  x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
           →DP Problem 11
Dependency Graph
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polynomial Ordering
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:

APP(cons(h, t), x) -> APP(t, x)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

APP(cons(h, t), x) -> APP(t, x)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(cons(x1, x2))=  1 + x2  
  POL(APP(x1, x2))=  x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
           →DP Problem 12
Dependency Graph
       →DP Problem 6
Polo
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polynomial Ordering
       →DP Problem 7
Remaining


Dependency Pair:

MAPF(pid, cons(h, t)) -> MAPF(pid, t)


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





The following dependency pair can be strictly oriented:

MAPF(pid, cons(h, t)) -> MAPF(pid, t)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(MAP_F(x1, x2))=  x2  
  POL(cons(x1, x2))=  1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
           →DP Problem 13
Dependency Graph
       →DP Problem 7
Remaining


Dependency Pair:


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
       →DP Problem 5
Polo
       →DP Problem 6
Polo
       →DP Problem 7
Remaining Obligation(s)




The following remains to be proven:
Dependency Pairs:

IF4(st1, in2, st2, in3, st3, m, false) -> RING(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
IF2(st1, in2, st2, in3, st3, m, false) -> IF4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
IF8(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
IF6(st1, in2, st2, in3, st3, m, false) -> IF8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
IF9(st1, in2, st2, in3, st3, m, true) -> RING(st1, in2, st2, tail(in3), st3, m)
RING(st1, in2, st2, in3, st3, m) -> IF9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
IF7(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, st2, in3, sndsplit(m, st3), m)
IF6(st1, in2, st2, in3, st3, m, true) -> IF7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
RING(st1, in2, st2, in3, st3, m) -> IF6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
IF5(st1, in2, st2, in3, st3, m, true) -> RING(st1, tail(in2), st2, in3, st3, m)
RING(st1, in2, st2, in3, st3, m) -> IF5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
IF3(st1, in2, st2, in3, st3, m, false) -> RING(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
IF2(st1, in2, st2, in3, st3, m, true) -> IF3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
RING(st1, in2, st2, in3, st3, m) -> IF2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
IF1(st1, in2, st2, in3, st3, m, false) -> RING(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
RING(st1, in2, st2, in3, st3, m) -> IF1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))


Rules:


fstsplit(0, x) -> nil
fstsplit(s(n), nil) -> nil
fstsplit(s(n), cons(h, t)) -> cons(h, fstsplit(n, t))
sndsplit(0, x) -> x
sndsplit(s(n), nil) -> nil
sndsplit(s(n), cons(h, t)) -> sndsplit(n, t)
empty(nil) -> true
empty(cons(h, t)) -> false
leq(0, m) -> true
leq(s(n), 0) -> false
leq(s(n), s(m)) -> leq(n, m)
length(nil) -> 0
length(cons(h, t)) -> s(length(t))
app(nil, x) -> x
app(cons(h, t), x) -> cons(h, app(t, x))
mapf(pid, nil) -> nil
mapf(pid, cons(h, t)) -> app(f(pid, h), mapf(pid, t))
head(cons(h, t)) -> h
tail(cons(h, t)) -> t
ring(st1, in2, st2, in3, st3, m) -> if1(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st1)))
ring(st1, in2, st2, in3, st3, m) -> if2(st1, in2, st2, in3, st3, m, leq(m, length(st2)))
ring(st1, in2, st2, in3, st3, m) -> if5(st1, in2, st2, in3, st3, m, empty(mapf(two, head(in2))))
ring(st1, in2, st2, in3, st3, m) -> if6(st1, in2, st2, in3, st3, m, leq(m, length(st3)))
ring(st1, in2, st2, in3, st3, m) -> if9(st1, in2, st2, in3, st3, m, empty(mapf(three, head(in3))))
if1(st1, in2, st2, in3, st3, m, false) -> ring(sndsplit(m, st1), cons(fstsplit(m, st1), in2), st2, in3, st3, m)
if2(st1, in2, st2, in3, st3, m, true) -> if3(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st2)))
if2(st1, in2, st2, in3, st3, m, false) -> if4(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(two, head(in2)), st2))))
if3(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, sndsplit(m, st2), cons(fstsplit(m, st2), in3), st3, m)
if4(st1, in2, st2, in3, st3, m, false) -> ring(st1, tail(in2), sndsplit(m, app(mapf(two, head(in2)), st2)), cons(fstsplit(m, app(mapf(two, head(in2)), st2)), in3), st3, m)
if5(st1, in2, st2, in3, st3, m, true) -> ring(st1, tail(in2), st2, in3, st3, m)
if6(st1, in2, st2, in3, st3, m, true) -> if7(st1, in2, st2, in3, st3, m, empty(fstsplit(m, st3)))
if6(st1, in2, st2, in3, st3, m, false) -> if8(st1, in2, st2, in3, st3, m, empty(fstsplit(m, app(mapf(three, head(in3)), st3))))
if7(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, in3, sndsplit(m, st3), m)
if8(st1, in2, st2, in3, st3, m, false) -> ring(st1, in2, st2, tail(in3), sndsplit(m, app(mapf(three, head(in3)), st3)), m)
if9(st1, in2, st2, in3, st3, m, true) -> ring(st1, in2, st2, tail(in3), st3, m)




Termination of R could not be shown.
Duration:
0:56 minutes