(0) Obligation:

The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, n^1).


The TRS R consists of the following rules:

active(from(X)) → mark(cons(X, from(s(X))))
active(2ndspos(0, Z)) → mark(rnil)
active(2ndspos(s(N), cons(X, Z))) → mark(2ndspos(s(N), cons2(X, Z)))
active(2ndspos(s(N), cons2(X, cons(Y, Z)))) → mark(rcons(posrecip(Y), 2ndsneg(N, Z)))
active(2ndsneg(0, Z)) → mark(rnil)
active(2ndsneg(s(N), cons(X, Z))) → mark(2ndsneg(s(N), cons2(X, Z)))
active(2ndsneg(s(N), cons2(X, cons(Y, Z)))) → mark(rcons(negrecip(Y), 2ndspos(N, Z)))
active(pi(X)) → mark(2ndspos(X, from(0)))
active(plus(0, Y)) → mark(Y)
active(plus(s(X), Y)) → mark(s(plus(X, Y)))
active(times(0, Y)) → mark(0)
active(times(s(X), Y)) → mark(plus(Y, times(X, Y)))
active(square(X)) → mark(times(X, X))
active(s(X)) → s(active(X))
active(posrecip(X)) → posrecip(active(X))
active(negrecip(X)) → negrecip(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(cons2(X1, X2)) → cons2(X1, active(X2))
active(rcons(X1, X2)) → rcons(active(X1), X2)
active(rcons(X1, X2)) → rcons(X1, active(X2))
active(from(X)) → from(active(X))
active(2ndspos(X1, X2)) → 2ndspos(active(X1), X2)
active(2ndspos(X1, X2)) → 2ndspos(X1, active(X2))
active(2ndsneg(X1, X2)) → 2ndsneg(active(X1), X2)
active(2ndsneg(X1, X2)) → 2ndsneg(X1, active(X2))
active(pi(X)) → pi(active(X))
active(plus(X1, X2)) → plus(active(X1), X2)
active(plus(X1, X2)) → plus(X1, active(X2))
active(times(X1, X2)) → times(active(X1), X2)
active(times(X1, X2)) → times(X1, active(X2))
active(square(X)) → square(active(X))
s(mark(X)) → mark(s(X))
posrecip(mark(X)) → mark(posrecip(X))
negrecip(mark(X)) → mark(negrecip(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons2(X1, mark(X2)) → mark(cons2(X1, X2))
rcons(mark(X1), X2) → mark(rcons(X1, X2))
rcons(X1, mark(X2)) → mark(rcons(X1, X2))
from(mark(X)) → mark(from(X))
2ndspos(mark(X1), X2) → mark(2ndspos(X1, X2))
2ndspos(X1, mark(X2)) → mark(2ndspos(X1, X2))
2ndsneg(mark(X1), X2) → mark(2ndsneg(X1, X2))
2ndsneg(X1, mark(X2)) → mark(2ndsneg(X1, X2))
pi(mark(X)) → mark(pi(X))
plus(mark(X1), X2) → mark(plus(X1, X2))
plus(X1, mark(X2)) → mark(plus(X1, X2))
times(mark(X1), X2) → mark(times(X1, X2))
times(X1, mark(X2)) → mark(times(X1, X2))
square(mark(X)) → mark(square(X))
proper(0) → ok(0)
proper(s(X)) → s(proper(X))
proper(posrecip(X)) → posrecip(proper(X))
proper(negrecip(X)) → negrecip(proper(X))
proper(nil) → ok(nil)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(cons2(X1, X2)) → cons2(proper(X1), proper(X2))
proper(rnil) → ok(rnil)
proper(rcons(X1, X2)) → rcons(proper(X1), proper(X2))
proper(from(X)) → from(proper(X))
proper(2ndspos(X1, X2)) → 2ndspos(proper(X1), proper(X2))
proper(2ndsneg(X1, X2)) → 2ndsneg(proper(X1), proper(X2))
proper(pi(X)) → pi(proper(X))
proper(plus(X1, X2)) → plus(proper(X1), proper(X2))
proper(times(X1, X2)) → times(proper(X1), proper(X2))
proper(square(X)) → square(proper(X))
s(ok(X)) → ok(s(X))
posrecip(ok(X)) → ok(posrecip(X))
negrecip(ok(X)) → ok(negrecip(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
cons2(ok(X1), ok(X2)) → ok(cons2(X1, X2))
rcons(ok(X1), ok(X2)) → ok(rcons(X1, X2))
from(ok(X)) → ok(from(X))
2ndspos(ok(X1), ok(X2)) → ok(2ndspos(X1, X2))
2ndsneg(ok(X1), ok(X2)) → ok(2ndsneg(X1, X2))
pi(ok(X)) → ok(pi(X))
plus(ok(X1), ok(X2)) → ok(plus(X1, X2))
times(ok(X1), ok(X2)) → ok(times(X1, X2))
square(ok(X)) → ok(square(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Rewrite Strategy: INNERMOST

(1) NestedDefinedSymbolProof (BOTH BOUNDS(ID, ID) transformation)

The following defined symbols can occur below the 0th argument of top: proper, active
The following defined symbols can occur below the 0th argument of proper: proper, active
The following defined symbols can occur below the 0th argument of active: proper, active

Hence, the left-hand sides of the following rules are not basic-reachable and can be removed:
active(from(X)) → mark(cons(X, from(s(X))))
active(2ndspos(0, Z)) → mark(rnil)
active(2ndspos(s(N), cons(X, Z))) → mark(2ndspos(s(N), cons2(X, Z)))
active(2ndspos(s(N), cons2(X, cons(Y, Z)))) → mark(rcons(posrecip(Y), 2ndsneg(N, Z)))
active(2ndsneg(0, Z)) → mark(rnil)
active(2ndsneg(s(N), cons(X, Z))) → mark(2ndsneg(s(N), cons2(X, Z)))
active(2ndsneg(s(N), cons2(X, cons(Y, Z)))) → mark(rcons(negrecip(Y), 2ndspos(N, Z)))
active(pi(X)) → mark(2ndspos(X, from(0)))
active(plus(0, Y)) → mark(Y)
active(plus(s(X), Y)) → mark(s(plus(X, Y)))
active(times(0, Y)) → mark(0)
active(times(s(X), Y)) → mark(plus(Y, times(X, Y)))
active(square(X)) → mark(times(X, X))
active(s(X)) → s(active(X))
active(posrecip(X)) → posrecip(active(X))
active(negrecip(X)) → negrecip(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(cons2(X1, X2)) → cons2(X1, active(X2))
active(rcons(X1, X2)) → rcons(active(X1), X2)
active(rcons(X1, X2)) → rcons(X1, active(X2))
active(from(X)) → from(active(X))
active(2ndspos(X1, X2)) → 2ndspos(active(X1), X2)
active(2ndspos(X1, X2)) → 2ndspos(X1, active(X2))
active(2ndsneg(X1, X2)) → 2ndsneg(active(X1), X2)
active(2ndsneg(X1, X2)) → 2ndsneg(X1, active(X2))
active(pi(X)) → pi(active(X))
active(plus(X1, X2)) → plus(active(X1), X2)
active(plus(X1, X2)) → plus(X1, active(X2))
active(times(X1, X2)) → times(active(X1), X2)
active(times(X1, X2)) → times(X1, active(X2))
active(square(X)) → square(active(X))
proper(s(X)) → s(proper(X))
proper(posrecip(X)) → posrecip(proper(X))
proper(negrecip(X)) → negrecip(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(cons2(X1, X2)) → cons2(proper(X1), proper(X2))
proper(rcons(X1, X2)) → rcons(proper(X1), proper(X2))
proper(from(X)) → from(proper(X))
proper(2ndspos(X1, X2)) → 2ndspos(proper(X1), proper(X2))
proper(2ndsneg(X1, X2)) → 2ndsneg(proper(X1), proper(X2))
proper(pi(X)) → pi(proper(X))
proper(plus(X1, X2)) → plus(proper(X1), proper(X2))
proper(times(X1, X2)) → times(proper(X1), proper(X2))
proper(square(X)) → square(proper(X))

(2) Obligation:

The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, n^1).


The TRS R consists of the following rules:

negrecip(mark(X)) → mark(negrecip(X))
times(ok(X1), ok(X2)) → ok(times(X1, X2))
top(ok(X)) → top(active(X))
posrecip(mark(X)) → mark(posrecip(X))
from(ok(X)) → ok(from(X))
from(mark(X)) → mark(from(X))
cons2(ok(X1), ok(X2)) → ok(cons2(X1, X2))
rcons(mark(X1), X2) → mark(rcons(X1, X2))
negrecip(ok(X)) → ok(negrecip(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
rcons(ok(X1), ok(X2)) → ok(rcons(X1, X2))
2ndsneg(X1, mark(X2)) → mark(2ndsneg(X1, X2))
square(mark(X)) → mark(square(X))
2ndspos(ok(X1), ok(X2)) → ok(2ndspos(X1, X2))
posrecip(ok(X)) → ok(posrecip(X))
square(ok(X)) → ok(square(X))
proper(rnil) → ok(rnil)
times(X1, mark(X2)) → mark(times(X1, X2))
times(mark(X1), X2) → mark(times(X1, X2))
pi(ok(X)) → ok(pi(X))
plus(ok(X1), ok(X2)) → ok(plus(X1, X2))
plus(X1, mark(X2)) → mark(plus(X1, X2))
pi(mark(X)) → mark(pi(X))
proper(nil) → ok(nil)
2ndsneg(ok(X1), ok(X2)) → ok(2ndsneg(X1, X2))
rcons(X1, mark(X2)) → mark(rcons(X1, X2))
cons2(X1, mark(X2)) → mark(cons2(X1, X2))
2ndspos(mark(X1), X2) → mark(2ndspos(X1, X2))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
2ndspos(X1, mark(X2)) → mark(2ndspos(X1, X2))
plus(mark(X1), X2) → mark(plus(X1, X2))
proper(0) → ok(0)
cons(mark(X1), X2) → mark(cons(X1, X2))
2ndsneg(mark(X1), X2) → mark(2ndsneg(X1, X2))
top(mark(X)) → top(proper(X))

Rewrite Strategy: INNERMOST

(3) CpxTrsMatchBoundsTAProof (EQUIVALENT transformation)

A linear upper bound on the runtime complexity of the TRS R could be shown with a Match-Bound[TAB_LEFTLINEAR,TAB_NONLEFTLINEAR] (for contructor-based start-terms) of 2.

The compatible tree automaton used to show the Match-Boundedness (for constructor-based start-terms) is represented by:
final states : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
transitions:
mark0(0) → 0
ok0(0) → 0
active0(0) → 0
rnil0() → 0
nil0() → 0
00() → 0
negrecip0(0) → 1
times0(0, 0) → 2
top0(0) → 3
posrecip0(0) → 4
from0(0) → 5
cons20(0, 0) → 6
rcons0(0, 0) → 7
cons0(0, 0) → 8
2ndsneg0(0, 0) → 9
square0(0) → 10
2ndspos0(0, 0) → 11
proper0(0) → 12
pi0(0) → 13
plus0(0, 0) → 14
s0(0) → 15
negrecip1(0) → 16
mark1(16) → 1
times1(0, 0) → 17
ok1(17) → 2
active1(0) → 18
top1(18) → 3
posrecip1(0) → 19
mark1(19) → 4
from1(0) → 20
ok1(20) → 5
from1(0) → 21
mark1(21) → 5
cons21(0, 0) → 22
ok1(22) → 6
rcons1(0, 0) → 23
mark1(23) → 7
negrecip1(0) → 24
ok1(24) → 1
cons1(0, 0) → 25
ok1(25) → 8
rcons1(0, 0) → 26
ok1(26) → 7
2ndsneg1(0, 0) → 27
mark1(27) → 9
square1(0) → 28
mark1(28) → 10
2ndspos1(0, 0) → 29
ok1(29) → 11
posrecip1(0) → 30
ok1(30) → 4
square1(0) → 31
ok1(31) → 10
rnil1() → 32
ok1(32) → 12
times1(0, 0) → 33
mark1(33) → 2
pi1(0) → 34
ok1(34) → 13
plus1(0, 0) → 35
ok1(35) → 14
plus1(0, 0) → 36
mark1(36) → 14
pi1(0) → 37
mark1(37) → 13
nil1() → 38
ok1(38) → 12
2ndsneg1(0, 0) → 39
ok1(39) → 9
cons21(0, 0) → 40
mark1(40) → 6
2ndspos1(0, 0) → 41
mark1(41) → 11
s1(0) → 42
ok1(42) → 15
s1(0) → 43
mark1(43) → 15
01() → 44
ok1(44) → 12
cons1(0, 0) → 45
mark1(45) → 8
proper1(0) → 46
top1(46) → 3
mark1(16) → 16
mark1(16) → 24
ok1(17) → 17
ok1(17) → 33
mark1(19) → 19
mark1(19) → 30
ok1(20) → 20
ok1(20) → 21
mark1(21) → 20
mark1(21) → 21
ok1(22) → 22
ok1(22) → 40
mark1(23) → 23
mark1(23) → 26
ok1(24) → 16
ok1(24) → 24
ok1(25) → 25
ok1(25) → 45
ok1(26) → 23
ok1(26) → 26
mark1(27) → 27
mark1(27) → 39
mark1(28) → 28
mark1(28) → 31
ok1(29) → 29
ok1(29) → 41
ok1(30) → 19
ok1(30) → 30
ok1(31) → 28
ok1(31) → 31
ok1(32) → 46
mark1(33) → 17
mark1(33) → 33
ok1(34) → 34
ok1(34) → 37
ok1(35) → 35
ok1(35) → 36
mark1(36) → 35
mark1(36) → 36
mark1(37) → 34
mark1(37) → 37
ok1(38) → 46
ok1(39) → 27
ok1(39) → 39
mark1(40) → 22
mark1(40) → 40
mark1(41) → 29
mark1(41) → 41
ok1(42) → 42
ok1(42) → 43
mark1(43) → 42
mark1(43) → 43
ok1(44) → 46
mark1(45) → 25
mark1(45) → 45
active2(32) → 47
top2(47) → 3
active2(38) → 47
active2(44) → 47

(4) BOUNDS(1, n^1)

(5) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)

Converted Cpx (relative) TRS to CDT

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

negrecip(mark(z0)) → mark(negrecip(z0))
negrecip(ok(z0)) → ok(negrecip(z0))
times(ok(z0), ok(z1)) → ok(times(z0, z1))
times(z0, mark(z1)) → mark(times(z0, z1))
times(mark(z0), z1) → mark(times(z0, z1))
top(ok(z0)) → top(active(z0))
top(mark(z0)) → top(proper(z0))
posrecip(mark(z0)) → mark(posrecip(z0))
posrecip(ok(z0)) → ok(posrecip(z0))
from(ok(z0)) → ok(from(z0))
from(mark(z0)) → mark(from(z0))
cons2(ok(z0), ok(z1)) → ok(cons2(z0, z1))
cons2(z0, mark(z1)) → mark(cons2(z0, z1))
rcons(mark(z0), z1) → mark(rcons(z0, z1))
rcons(ok(z0), ok(z1)) → ok(rcons(z0, z1))
rcons(z0, mark(z1)) → mark(rcons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
2ndsneg(z0, mark(z1)) → mark(2ndsneg(z0, z1))
2ndsneg(ok(z0), ok(z1)) → ok(2ndsneg(z0, z1))
2ndsneg(mark(z0), z1) → mark(2ndsneg(z0, z1))
square(mark(z0)) → mark(square(z0))
square(ok(z0)) → ok(square(z0))
2ndspos(ok(z0), ok(z1)) → ok(2ndspos(z0, z1))
2ndspos(mark(z0), z1) → mark(2ndspos(z0, z1))
2ndspos(z0, mark(z1)) → mark(2ndspos(z0, z1))
proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
pi(ok(z0)) → ok(pi(z0))
pi(mark(z0)) → mark(pi(z0))
plus(ok(z0), ok(z1)) → ok(plus(z0, z1))
plus(z0, mark(z1)) → mark(plus(z0, z1))
plus(mark(z0), z1) → mark(plus(z0, z1))
s(ok(z0)) → ok(s(z0))
s(mark(z0)) → mark(s(z0))
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
TOP(ok(z0)) → c5(TOP(active(z0)))
TOP(mark(z0)) → c6(TOP(proper(z0)), PROPER(z0))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PROPER(rnil) → c26
PROPER(nil) → c27
PROPER(0) → c28
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
TOP(ok(z0)) → c5(TOP(active(z0)))
TOP(mark(z0)) → c6(TOP(proper(z0)), PROPER(z0))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PROPER(rnil) → c26
PROPER(nil) → c27
PROPER(0) → c28
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
K tuples:none
Defined Rule Symbols:

negrecip, times, top, posrecip, from, cons2, rcons, cons, 2ndsneg, square, 2ndspos, proper, pi, plus, s

Defined Pair Symbols:

NEGRECIP, TIMES, TOP, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PROPER, PI, PLUS, S

Compound Symbols:

c, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35

(7) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)

Removed 4 trailing nodes:

PROPER(0) → c28
PROPER(rnil) → c26
PROPER(nil) → c27
TOP(ok(z0)) → c5(TOP(active(z0)))

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

negrecip(mark(z0)) → mark(negrecip(z0))
negrecip(ok(z0)) → ok(negrecip(z0))
times(ok(z0), ok(z1)) → ok(times(z0, z1))
times(z0, mark(z1)) → mark(times(z0, z1))
times(mark(z0), z1) → mark(times(z0, z1))
top(ok(z0)) → top(active(z0))
top(mark(z0)) → top(proper(z0))
posrecip(mark(z0)) → mark(posrecip(z0))
posrecip(ok(z0)) → ok(posrecip(z0))
from(ok(z0)) → ok(from(z0))
from(mark(z0)) → mark(from(z0))
cons2(ok(z0), ok(z1)) → ok(cons2(z0, z1))
cons2(z0, mark(z1)) → mark(cons2(z0, z1))
rcons(mark(z0), z1) → mark(rcons(z0, z1))
rcons(ok(z0), ok(z1)) → ok(rcons(z0, z1))
rcons(z0, mark(z1)) → mark(rcons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
2ndsneg(z0, mark(z1)) → mark(2ndsneg(z0, z1))
2ndsneg(ok(z0), ok(z1)) → ok(2ndsneg(z0, z1))
2ndsneg(mark(z0), z1) → mark(2ndsneg(z0, z1))
square(mark(z0)) → mark(square(z0))
square(ok(z0)) → ok(square(z0))
2ndspos(ok(z0), ok(z1)) → ok(2ndspos(z0, z1))
2ndspos(mark(z0), z1) → mark(2ndspos(z0, z1))
2ndspos(z0, mark(z1)) → mark(2ndspos(z0, z1))
proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
pi(ok(z0)) → ok(pi(z0))
pi(mark(z0)) → mark(pi(z0))
plus(ok(z0), ok(z1)) → ok(plus(z0, z1))
plus(z0, mark(z1)) → mark(plus(z0, z1))
plus(mark(z0), z1) → mark(plus(z0, z1))
s(ok(z0)) → ok(s(z0))
s(mark(z0)) → mark(s(z0))
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
TOP(mark(z0)) → c6(TOP(proper(z0)), PROPER(z0))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
TOP(mark(z0)) → c6(TOP(proper(z0)), PROPER(z0))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
K tuples:none
Defined Rule Symbols:

negrecip, times, top, posrecip, from, cons2, rcons, cons, 2ndsneg, square, 2ndspos, proper, pi, plus, s

Defined Pair Symbols:

NEGRECIP, TIMES, TOP, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S

Compound Symbols:

c, c1, c2, c3, c4, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35

(9) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 1 trailing tuple parts

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

negrecip(mark(z0)) → mark(negrecip(z0))
negrecip(ok(z0)) → ok(negrecip(z0))
times(ok(z0), ok(z1)) → ok(times(z0, z1))
times(z0, mark(z1)) → mark(times(z0, z1))
times(mark(z0), z1) → mark(times(z0, z1))
top(ok(z0)) → top(active(z0))
top(mark(z0)) → top(proper(z0))
posrecip(mark(z0)) → mark(posrecip(z0))
posrecip(ok(z0)) → ok(posrecip(z0))
from(ok(z0)) → ok(from(z0))
from(mark(z0)) → mark(from(z0))
cons2(ok(z0), ok(z1)) → ok(cons2(z0, z1))
cons2(z0, mark(z1)) → mark(cons2(z0, z1))
rcons(mark(z0), z1) → mark(rcons(z0, z1))
rcons(ok(z0), ok(z1)) → ok(rcons(z0, z1))
rcons(z0, mark(z1)) → mark(rcons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
2ndsneg(z0, mark(z1)) → mark(2ndsneg(z0, z1))
2ndsneg(ok(z0), ok(z1)) → ok(2ndsneg(z0, z1))
2ndsneg(mark(z0), z1) → mark(2ndsneg(z0, z1))
square(mark(z0)) → mark(square(z0))
square(ok(z0)) → ok(square(z0))
2ndspos(ok(z0), ok(z1)) → ok(2ndspos(z0, z1))
2ndspos(mark(z0), z1) → mark(2ndspos(z0, z1))
2ndspos(z0, mark(z1)) → mark(2ndspos(z0, z1))
proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
pi(ok(z0)) → ok(pi(z0))
pi(mark(z0)) → mark(pi(z0))
plus(ok(z0), ok(z1)) → ok(plus(z0, z1))
plus(z0, mark(z1)) → mark(plus(z0, z1))
plus(mark(z0), z1) → mark(plus(z0, z1))
s(ok(z0)) → ok(s(z0))
s(mark(z0)) → mark(s(z0))
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
K tuples:none
Defined Rule Symbols:

negrecip, times, top, posrecip, from, cons2, rcons, cons, 2ndsneg, square, 2ndspos, proper, pi, plus, s

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(11) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

negrecip(mark(z0)) → mark(negrecip(z0))
negrecip(ok(z0)) → ok(negrecip(z0))
times(ok(z0), ok(z1)) → ok(times(z0, z1))
times(z0, mark(z1)) → mark(times(z0, z1))
times(mark(z0), z1) → mark(times(z0, z1))
top(ok(z0)) → top(active(z0))
top(mark(z0)) → top(proper(z0))
posrecip(mark(z0)) → mark(posrecip(z0))
posrecip(ok(z0)) → ok(posrecip(z0))
from(ok(z0)) → ok(from(z0))
from(mark(z0)) → mark(from(z0))
cons2(ok(z0), ok(z1)) → ok(cons2(z0, z1))
cons2(z0, mark(z1)) → mark(cons2(z0, z1))
rcons(mark(z0), z1) → mark(rcons(z0, z1))
rcons(ok(z0), ok(z1)) → ok(rcons(z0, z1))
rcons(z0, mark(z1)) → mark(rcons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
2ndsneg(z0, mark(z1)) → mark(2ndsneg(z0, z1))
2ndsneg(ok(z0), ok(z1)) → ok(2ndsneg(z0, z1))
2ndsneg(mark(z0), z1) → mark(2ndsneg(z0, z1))
square(mark(z0)) → mark(square(z0))
square(ok(z0)) → ok(square(z0))
2ndspos(ok(z0), ok(z1)) → ok(2ndspos(z0, z1))
2ndspos(mark(z0), z1) → mark(2ndspos(z0, z1))
2ndspos(z0, mark(z1)) → mark(2ndspos(z0, z1))
pi(ok(z0)) → ok(pi(z0))
pi(mark(z0)) → mark(pi(z0))
plus(ok(z0), ok(z1)) → ok(plus(z0, z1))
plus(z0, mark(z1)) → mark(plus(z0, z1))
plus(mark(z0), z1) → mark(plus(z0, z1))
s(ok(z0)) → ok(s(z0))
s(mark(z0)) → mark(s(z0))

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
K tuples:none
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(13) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = [1]   
POL(2NDSNEG(x1, x2)) = x1 + x2   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = x2   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = x1   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = x1   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = [1]   
POL(ok(x1)) = x1   
POL(proper(x1)) = [1] + x1   
POL(rnil) = [1]   

(14) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(15) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

TOP(mark(z0)) → c6(TOP(proper(z0)))
We considered the (Usable) Rules:

proper(nil) → ok(nil)
proper(0) → ok(0)
proper(rnil) → ok(rnil)
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = [1]   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = x1   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = 0   
POL(ok(x1)) = 0   
POL(proper(x1)) = x1   
POL(rnil) = 0   

(16) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(17) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = x1   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = x1 + x2   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = x2   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = 0   
POL(rnil) = 0   

(18) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(19) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = x2   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = x1   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = x1   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = [1]   
POL(ok(x1)) = x1   
POL(proper(x1)) = [1] + x1   
POL(rnil) = [1]   

(20) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(21) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = x2   
POL(2NDSPOS(x1, x2)) = x1   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = x1   
POL(PI(x1)) = x1   
POL(PLUS(x1, x2)) = x2   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = x2   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = x1   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = 0   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = 0   
POL(rnil) = 0   

(22) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(23) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = x1   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = x1   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = [1]   
POL(rnil) = 0   

(24) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(25) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = [2]   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = [2]x2   
POL(CONS2(x1, x2)) = [2]x1   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = 0   
POL(nil) = [2]   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = [2]x1   
POL(rnil) = [2]   

(26) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(27) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
We considered the (Usable) Rules:

proper(nil) → ok(nil)
proper(0) → ok(0)
proper(rnil) → ok(rnil)
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = x1   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = x1   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = x1   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = x1   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = x2   
POL(TOP(x1)) = x1   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = [1]   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(rnil) = [1]   

(28) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(29) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = x2   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = x1   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = x1   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = x1   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = [1]   
POL(ok(x1)) = x1   
POL(proper(x1)) = [1] + x1   
POL(rnil) = [1]   

(30) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(31) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = [3]   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = [2]x2   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = [2]x1   
POL(PLUS(x1, x2)) = [2]x2   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = x1   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = [2]x1   
POL(rnil) = [1]   

(32) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(33) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

FROM(ok(z0)) → c9(FROM(z0))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = x1   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = 0   
POL(POSRECIP(x1)) = 0   
POL(RCONS(x1, x2)) = 0   
POL(S(x1)) = 0   
POL(SQUARE(x1)) = 0   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = 0   
POL(rnil) = 0   

(34) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:

POSRECIP(ok(z0)) → c8(POSRECIP(z0))
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
FROM(ok(z0)) → c9(FROM(z0))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(35) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

POSRECIP(ok(z0)) → c8(POSRECIP(z0))
We considered the (Usable) Rules:none
And the Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(2NDSNEG(x1, x2)) = 0   
POL(2NDSPOS(x1, x2)) = [2]x1   
POL(CONS(x1, x2)) = 0   
POL(CONS2(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(NEGRECIP(x1)) = 0   
POL(PI(x1)) = 0   
POL(PLUS(x1, x2)) = [2]x1   
POL(POSRECIP(x1)) = [2]x1   
POL(RCONS(x1, x2)) = [3]x2   
POL(S(x1)) = [2]x1   
POL(SQUARE(x1)) = [2]x1   
POL(TIMES(x1, x2)) = 0   
POL(TOP(x1)) = 0   
POL(c(x1)) = x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c2(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c29(x1)) = x1   
POL(c3(x1)) = x1   
POL(c30(x1)) = x1   
POL(c31(x1)) = x1   
POL(c32(x1)) = x1   
POL(c33(x1)) = x1   
POL(c34(x1)) = x1   
POL(c35(x1)) = x1   
POL(c4(x1)) = x1   
POL(c6(x1)) = x1   
POL(c7(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = [1] + x1   
POL(proper(x1)) = 0   
POL(rnil) = 0   

(36) Obligation:

Complexity Dependency Tuples Problem
Rules:

proper(rnil) → ok(rnil)
proper(nil) → ok(nil)
proper(0) → ok(0)
Tuples:

NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
FROM(ok(z0)) → c9(FROM(z0))
FROM(mark(z0)) → c10(FROM(z0))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PI(mark(z0)) → c30(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
S(ok(z0)) → c34(S(z0))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
S tuples:none
K tuples:

TIMES(mark(z0), z1) → c4(TIMES(z0, z1))
2NDSNEG(z0, mark(z1)) → c18(2NDSNEG(z0, z1))
2NDSNEG(mark(z0), z1) → c20(2NDSNEG(z0, z1))
PLUS(z0, mark(z1)) → c32(PLUS(z0, z1))
S(mark(z0)) → c35(S(z0))
TOP(mark(z0)) → c6(TOP(proper(z0)))
CONS2(ok(z0), ok(z1)) → c11(CONS2(z0, z1))
RCONS(ok(z0), ok(z1)) → c14(RCONS(z0, z1))
2NDSNEG(ok(z0), ok(z1)) → c19(2NDSNEG(z0, z1))
POSRECIP(mark(z0)) → c7(POSRECIP(z0))
CONS2(z0, mark(z1)) → c12(CONS2(z0, z1))
PI(mark(z0)) → c30(PI(z0))
NEGRECIP(mark(z0)) → c(NEGRECIP(z0))
NEGRECIP(ok(z0)) → c1(NEGRECIP(z0))
RCONS(z0, mark(z1)) → c15(RCONS(z0, z1))
SQUARE(mark(z0)) → c21(SQUARE(z0))
SQUARE(ok(z0)) → c22(SQUARE(z0))
2NDSPOS(ok(z0), ok(z1)) → c23(2NDSPOS(z0, z1))
2NDSPOS(mark(z0), z1) → c24(2NDSPOS(z0, z1))
PI(ok(z0)) → c29(PI(z0))
PLUS(ok(z0), ok(z1)) → c31(PLUS(z0, z1))
TIMES(ok(z0), ok(z1)) → c2(TIMES(z0, z1))
S(ok(z0)) → c34(S(z0))
CONS(ok(z0), ok(z1)) → c16(CONS(z0, z1))
TIMES(z0, mark(z1)) → c3(TIMES(z0, z1))
FROM(mark(z0)) → c10(FROM(z0))
CONS(mark(z0), z1) → c17(CONS(z0, z1))
2NDSPOS(z0, mark(z1)) → c25(2NDSPOS(z0, z1))
PLUS(mark(z0), z1) → c33(PLUS(z0, z1))
RCONS(mark(z0), z1) → c13(RCONS(z0, z1))
FROM(ok(z0)) → c9(FROM(z0))
POSRECIP(ok(z0)) → c8(POSRECIP(z0))
Defined Rule Symbols:

proper

Defined Pair Symbols:

NEGRECIP, TIMES, POSRECIP, FROM, CONS2, RCONS, CONS, 2NDSNEG, SQUARE, 2NDSPOS, PI, PLUS, S, TOP

Compound Symbols:

c, c1, c2, c3, c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c6

(37) SIsEmptyProof (BOTH BOUNDS(ID, ID) transformation)

The set S is empty

(38) BOUNDS(1, 1)