YES

We show the termination of the TRS R:

  active(from(X)) -> mark(cons(X,from(s(X))))
  active(length(nil())) -> mark(|0|())
  active(length(cons(X,Y))) -> mark(s(length1(Y)))
  active(length1(X)) -> mark(length(X))
  mark(from(X)) -> active(from(mark(X)))
  mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
  mark(s(X)) -> active(s(mark(X)))
  mark(length(X)) -> active(length(X))
  mark(nil()) -> active(nil())
  mark(|0|()) -> active(|0|())
  mark(length1(X)) -> active(length1(X))
  from(mark(X)) -> from(X)
  from(active(X)) -> from(X)
  cons(mark(X1),X2) -> cons(X1,X2)
  cons(X1,mark(X2)) -> cons(X1,X2)
  cons(active(X1),X2) -> cons(X1,X2)
  cons(X1,active(X2)) -> cons(X1,X2)
  s(mark(X)) -> s(X)
  s(active(X)) -> s(X)
  length(mark(X)) -> length(X)
  length(active(X)) -> length(X)
  length1(mark(X)) -> length1(X)
  length1(active(X)) -> length1(X)

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: active#(from(X)) -> cons#(X,from(s(X)))
p3: active#(from(X)) -> from#(s(X))
p4: active#(from(X)) -> s#(X)
p5: active#(length(nil())) -> mark#(|0|())
p6: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p7: active#(length(cons(X,Y))) -> s#(length1(Y))
p8: active#(length(cons(X,Y))) -> length1#(Y)
p9: active#(length1(X)) -> mark#(length(X))
p10: active#(length1(X)) -> length#(X)
p11: mark#(from(X)) -> active#(from(mark(X)))
p12: mark#(from(X)) -> from#(mark(X))
p13: mark#(from(X)) -> mark#(X)
p14: mark#(cons(X1,X2)) -> active#(cons(mark(X1),X2))
p15: mark#(cons(X1,X2)) -> cons#(mark(X1),X2)
p16: mark#(cons(X1,X2)) -> mark#(X1)
p17: mark#(s(X)) -> active#(s(mark(X)))
p18: mark#(s(X)) -> s#(mark(X))
p19: mark#(s(X)) -> mark#(X)
p20: mark#(length(X)) -> active#(length(X))
p21: mark#(nil()) -> active#(nil())
p22: mark#(|0|()) -> active#(|0|())
p23: mark#(length1(X)) -> active#(length1(X))
p24: from#(mark(X)) -> from#(X)
p25: from#(active(X)) -> from#(X)
p26: cons#(mark(X1),X2) -> cons#(X1,X2)
p27: cons#(X1,mark(X2)) -> cons#(X1,X2)
p28: cons#(active(X1),X2) -> cons#(X1,X2)
p29: cons#(X1,active(X2)) -> cons#(X1,X2)
p30: s#(mark(X)) -> s#(X)
p31: s#(active(X)) -> s#(X)
p32: length#(mark(X)) -> length#(X)
p33: length#(active(X)) -> length#(X)
p34: length1#(mark(X)) -> length1#(X)
p35: length1#(active(X)) -> length1#(X)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p6, p9, p11, p13, p14, p16, p17, p19, p20, p23}
  {p26, p27, p28, p29}
  {p24, p25}
  {p30, p31}
  {p34, p35}
  {p32, p33}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: mark#(length1(X)) -> active#(length1(X))
p3: active#(length1(X)) -> mark#(length(X))
p4: mark#(length(X)) -> active#(length(X))
p5: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p6: mark#(s(X)) -> mark#(X)
p7: mark#(s(X)) -> active#(s(mark(X)))
p8: mark#(cons(X1,X2)) -> mark#(X1)
p9: mark#(cons(X1,X2)) -> active#(cons(mark(X1),X2))
p10: mark#(from(X)) -> mark#(X)
p11: mark#(from(X)) -> active#(from(mark(X)))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      active#_A(x1) = x1
      from_A(x1) = 2
      mark#_A(x1) = 2
      cons_A(x1,x2) = 2
      s_A(x1) = 1
      length1_A(x1) = 2
      length_A(x1) = 2
      mark_A(x1) = 1
      active_A(x1) = 1
      nil_A() = 1
      |0|_A() = 1

The next rules are strictly ordered:

  p7

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: mark#(length1(X)) -> active#(length1(X))
p3: active#(length1(X)) -> mark#(length(X))
p4: mark#(length(X)) -> active#(length(X))
p5: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p6: mark#(s(X)) -> mark#(X)
p7: mark#(cons(X1,X2)) -> mark#(X1)
p8: mark#(cons(X1,X2)) -> active#(cons(mark(X1),X2))
p9: mark#(from(X)) -> mark#(X)
p10: mark#(from(X)) -> active#(from(mark(X)))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3, p4, p5, p6, p7, p8, p9, p10}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: mark#(from(X)) -> active#(from(mark(X)))
p3: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p4: mark#(from(X)) -> mark#(X)
p5: mark#(cons(X1,X2)) -> active#(cons(mark(X1),X2))
p6: active#(length1(X)) -> mark#(length(X))
p7: mark#(cons(X1,X2)) -> mark#(X1)
p8: mark#(s(X)) -> mark#(X)
p9: mark#(length(X)) -> active#(length(X))
p10: mark#(length1(X)) -> active#(length1(X))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      active#_A(x1) = x1
      from_A(x1) = 2
      mark#_A(x1) = 2
      cons_A(x1,x2) = 1
      s_A(x1) = 1
      mark_A(x1) = 1
      length_A(x1) = 2
      length1_A(x1) = 2
      active_A(x1) = 1
      nil_A() = 1
      |0|_A() = 1

The next rules are strictly ordered:

  p5

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: mark#(from(X)) -> active#(from(mark(X)))
p3: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p4: mark#(from(X)) -> mark#(X)
p5: active#(length1(X)) -> mark#(length(X))
p6: mark#(cons(X1,X2)) -> mark#(X1)
p7: mark#(s(X)) -> mark#(X)
p8: mark#(length(X)) -> active#(length(X))
p9: mark#(length1(X)) -> active#(length1(X))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3, p4, p5, p6, p7, p8, p9}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(from(X)) -> mark#(cons(X,from(s(X))))
p2: mark#(length1(X)) -> active#(length1(X))
p3: active#(length1(X)) -> mark#(length(X))
p4: mark#(length(X)) -> active#(length(X))
p5: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p6: mark#(s(X)) -> mark#(X)
p7: mark#(cons(X1,X2)) -> mark#(X1)
p8: mark#(from(X)) -> mark#(X)
p9: mark#(from(X)) -> active#(from(mark(X)))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      active#_A(x1) = x1
      from_A(x1) = x1 + 1
      mark#_A(x1) = x1
      cons_A(x1,x2) = x1
      s_A(x1) = x1
      length1_A(x1) = 1
      length_A(x1) = 1
      mark_A(x1) = x1
      active_A(x1) = x1
      nil_A() = 1
      |0|_A() = 1

The next rules are strictly ordered:

  p1, p8

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: active#(length1(X)) -> mark#(length(X))
p3: mark#(length(X)) -> active#(length(X))
p4: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p5: mark#(s(X)) -> mark#(X)
p6: mark#(cons(X1,X2)) -> mark#(X1)
p7: mark#(from(X)) -> active#(from(mark(X)))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3, p4, p5, p6, p7}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p3: mark#(from(X)) -> active#(from(mark(X)))
p4: active#(length1(X)) -> mark#(length(X))
p5: mark#(cons(X1,X2)) -> mark#(X1)
p6: mark#(s(X)) -> mark#(X)
p7: mark#(length(X)) -> active#(length(X))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      mark#_A(x1) = 2
      length1_A(x1) = 2
      active#_A(x1) = x1
      length_A(x1) = 2
      cons_A(x1,x2) = x2
      s_A(x1) = 1
      from_A(x1) = 1
      mark_A(x1) = x1 + 1
      active_A(x1) = x1 + 1
      nil_A() = 1
      |0|_A() = 1

The next rules are strictly ordered:

  p3

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p3: active#(length1(X)) -> mark#(length(X))
p4: mark#(cons(X1,X2)) -> mark#(X1)
p5: mark#(s(X)) -> mark#(X)
p6: mark#(length(X)) -> active#(length(X))

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3, p4, p5, p6}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: active#(length1(X)) -> mark#(length(X))
p3: mark#(length(X)) -> active#(length(X))
p4: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p5: mark#(s(X)) -> mark#(X)
p6: mark#(cons(X1,X2)) -> mark#(X1)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r18, r19, r20, r21, r22, r23

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      mark#_A(x1) = x1
      length1_A(x1) = x1 + 2
      active#_A(x1) = x1
      length_A(x1) = x1 + 1
      cons_A(x1,x2) = x1 + x2 + 1
      s_A(x1) = x1
      mark_A(x1) = x1
      active_A(x1) = x1

The next rules are strictly ordered:

  p2, p6
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: mark#(length(X)) -> active#(length(X))
p3: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p4: mark#(s(X)) -> mark#(X)

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3, p4}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length1(X)) -> active#(length1(X))
p2: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p3: mark#(s(X)) -> mark#(X)
p4: mark#(length(X)) -> active#(length(X))

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      mark#_A(x1) = 2
      length1_A(x1) = 1
      active#_A(x1) = x1
      length_A(x1) = 2
      cons_A(x1,x2) = x2 + 1
      s_A(x1) = 1
      mark_A(x1) = x1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p2: mark#(s(X)) -> mark#(X)
p3: mark#(length(X)) -> active#(length(X))

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: active#(length(cons(X,Y))) -> mark#(s(length1(Y)))
p2: mark#(length(X)) -> active#(length(X))
p3: mark#(s(X)) -> mark#(X)

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The set of usable rules consists of

  r1, r2, r3, r4, r5, r6

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      active#_A(x1) = x1
      length_A(x1) = x1 + 1
      cons_A(x1,x2) = x2 + 1
      mark#_A(x1) = x1
      s_A(x1) = x1
      length1_A(x1) = x1 + 1
      mark_A(x1) = x1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(length(X)) -> active#(length(X))
p2: mark#(s(X)) -> mark#(X)

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p2}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: mark#(s(X)) -> mark#(X)

and R consists of:

r1: s(mark(X)) -> s(X)
r2: s(active(X)) -> s(X)
r3: length(mark(X)) -> length(X)
r4: length(active(X)) -> length(X)
r5: length1(mark(X)) -> length1(X)
r6: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      mark#_A(x1) = x1
      s_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6

We remove them from the problem.  Then no dependency pair remains.

-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(mark(X1),X2) -> cons#(X1,X2)
p2: cons#(X1,active(X2)) -> cons#(X1,X2)
p3: cons#(active(X1),X2) -> cons#(X1,X2)
p4: cons#(X1,mark(X2)) -> cons#(X1,X2)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      cons#_A(x1,x2) = x2
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p4

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(mark(X1),X2) -> cons#(X1,X2)
p2: cons#(X1,active(X2)) -> cons#(X1,X2)
p3: cons#(active(X1),X2) -> cons#(X1,X2)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The estimated dependency graph contains the following SCCs:

  {p1, p2, p3}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(mark(X1),X2) -> cons#(X1,X2)
p2: cons#(active(X1),X2) -> cons#(X1,X2)
p3: cons#(X1,active(X2)) -> cons#(X1,X2)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      cons#_A(x1,x2) = x1 + x2
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(active(X1),X2) -> cons#(X1,X2)
p2: cons#(X1,active(X2)) -> cons#(X1,X2)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1, p2}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(active(X1),X2) -> cons#(X1,X2)
p2: cons#(X1,active(X2)) -> cons#(X1,X2)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      cons#_A(x1,x2) = x2
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p2

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(active(X1),X2) -> cons#(X1,X2)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: cons#(active(X1),X2) -> cons#(X1,X2)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      cons#_A(x1,x2) = x1
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1

We remove them from the problem.  Then no dependency pair remains.

-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: from#(mark(X)) -> from#(X)
p2: from#(active(X)) -> from#(X)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      from#_A(x1) = x1
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: from#(active(X)) -> from#(X)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: from#(active(X)) -> from#(X)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      from#_A(x1) = x1
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1

We remove them from the problem.  Then no dependency pair remains.

-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: s#(mark(X)) -> s#(X)
p2: s#(active(X)) -> s#(X)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      s#_A(x1) = x1
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: s#(active(X)) -> s#(X)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: s#(active(X)) -> s#(X)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      s#_A(x1) = x1
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1

We remove them from the problem.  Then no dependency pair remains.

-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: length1#(mark(X)) -> length1#(X)
p2: length1#(active(X)) -> length1#(X)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      length1#_A(x1) = x1
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: length1#(active(X)) -> length1#(X)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: length1#(active(X)) -> length1#(X)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      length1#_A(x1) = x1
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1

We remove them from the problem.  Then no dependency pair remains.

-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: length#(mark(X)) -> length#(X)
p2: length#(active(X)) -> length#(X)

and R consists of:

r1: active(from(X)) -> mark(cons(X,from(s(X))))
r2: active(length(nil())) -> mark(|0|())
r3: active(length(cons(X,Y))) -> mark(s(length1(Y)))
r4: active(length1(X)) -> mark(length(X))
r5: mark(from(X)) -> active(from(mark(X)))
r6: mark(cons(X1,X2)) -> active(cons(mark(X1),X2))
r7: mark(s(X)) -> active(s(mark(X)))
r8: mark(length(X)) -> active(length(X))
r9: mark(nil()) -> active(nil())
r10: mark(|0|()) -> active(|0|())
r11: mark(length1(X)) -> active(length1(X))
r12: from(mark(X)) -> from(X)
r13: from(active(X)) -> from(X)
r14: cons(mark(X1),X2) -> cons(X1,X2)
r15: cons(X1,mark(X2)) -> cons(X1,X2)
r16: cons(active(X1),X2) -> cons(X1,X2)
r17: cons(X1,active(X2)) -> cons(X1,X2)
r18: s(mark(X)) -> s(X)
r19: s(active(X)) -> s(X)
r20: length(mark(X)) -> length(X)
r21: length(active(X)) -> length(X)
r22: length1(mark(X)) -> length1(X)
r23: length1(active(X)) -> length1(X)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      length#_A(x1) = x1
      mark_A(x1) = x1 + 1
      active_A(x1) = x1

The next rules are strictly ordered:

  p1
  r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23

We remove them from the problem.

-- SCC decomposition.

Consider the dependency pair problem (P, R), where P consists of

p1: length#(active(X)) -> length#(X)

and R consists of:

  (no rules)

The estimated dependency graph contains the following SCCs:

  {p1}


-- Reduction pair.

Consider the dependency pair problem (P, R), where P consists of

p1: length#(active(X)) -> length#(X)

and R consists of:

  (no rules)

The set of usable rules consists of

  (no rules)

Take the monotone reduction pair:

  matrix interpretations:
  
    carrier: N^1
    order: standard order
    interpretations:
      length#_A(x1) = x1
      active_A(x1) = x1 + 1

The next rules are strictly ordered:

  p1

We remove them from the problem.  Then no dependency pair remains.