(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

f(x, nil) → g(nil, x)
f(x, g(y, z)) → g(f(x, y), z)
++(x, nil) → x
++(x, g(y, z)) → g(++(x, y), z)
null(nil) → true
null(g(x, y)) → false
mem(nil, y) → false
mem(g(x, y), z) → or(=(y, z), mem(x, z))
mem(x, max(x)) → not(null(x))
max(g(g(nil, x), y)) → max'(x, y)
max(g(g(g(x, y), z), u)) → max'(max(g(g(x, y), z)), u)

Rewrite Strategy: INNERMOST

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

Converted Cpx (relative) TRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(z0, nil) → g(nil, z0)
f(z0, g(z1, z2)) → g(f(z0, z1), z2)
++(z0, nil) → z0
++(z0, g(z1, z2)) → g(++(z0, z1), z2)
null(nil) → true
null(g(z0, z1)) → false
mem(nil, z0) → false
mem(g(z0, z1), z2) → or(=(z1, z2), mem(z0, z2))
mem(z0, max(z0)) → not(null(z0))
max(g(g(nil, z0), z1)) → max'(z0, z1)
max(g(g(g(z0, z1), z2), u)) → max'(max(g(g(z0, z1), z2)), u)
Tuples:

F(z0, nil) → c
F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, nil) → c2
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
NULL(nil) → c4
NULL(g(z0, z1)) → c5
MEM(nil, z0) → c6
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MEM(z0, max(z0)) → c8(NULL(z0))
MAX(g(g(nil, z0), z1)) → c9
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
S tuples:

F(z0, nil) → c
F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, nil) → c2
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
NULL(nil) → c4
NULL(g(z0, z1)) → c5
MEM(nil, z0) → c6
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MEM(z0, max(z0)) → c8(NULL(z0))
MAX(g(g(nil, z0), z1)) → c9
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
K tuples:none
Defined Rule Symbols:

f, ++, null, mem, max

Defined Pair Symbols:

F, ++', NULL, MEM, MAX

Compound Symbols:

c, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10

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

Removed 7 trailing nodes:

NULL(nil) → c4
++'(z0, nil) → c2
MEM(z0, max(z0)) → c8(NULL(z0))
MAX(g(g(nil, z0), z1)) → c9
F(z0, nil) → c
NULL(g(z0, z1)) → c5
MEM(nil, z0) → c6

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(z0, nil) → g(nil, z0)
f(z0, g(z1, z2)) → g(f(z0, z1), z2)
++(z0, nil) → z0
++(z0, g(z1, z2)) → g(++(z0, z1), z2)
null(nil) → true
null(g(z0, z1)) → false
mem(nil, z0) → false
mem(g(z0, z1), z2) → or(=(z1, z2), mem(z0, z2))
mem(z0, max(z0)) → not(null(z0))
max(g(g(nil, z0), z1)) → max'(z0, z1)
max(g(g(g(z0, z1), z2), u)) → max'(max(g(g(z0, z1), z2)), u)
Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
S tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
K tuples:none
Defined Rule Symbols:

f, ++, null, mem, max

Defined Pair Symbols:

F, ++', MEM, MAX

Compound Symbols:

c1, c3, c7, c10

(5) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

f(z0, nil) → g(nil, z0)
f(z0, g(z1, z2)) → g(f(z0, z1), z2)
++(z0, nil) → z0
++(z0, g(z1, z2)) → g(++(z0, z1), z2)
null(nil) → true
null(g(z0, z1)) → false
mem(nil, z0) → false
mem(g(z0, z1), z2) → or(=(z1, z2), mem(z0, z2))
mem(z0, max(z0)) → not(null(z0))
max(g(g(nil, z0), z1)) → max'(z0, z1)
max(g(g(g(z0, z1), z2), u)) → max'(max(g(g(z0, z1), z2)), u)

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
S tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
K tuples:none
Defined Rule Symbols:none

Defined Pair Symbols:

F, ++', MEM, MAX

Compound Symbols:

c1, c3, c7, c10

(7) CdtRuleRemovalProof (UPPER BOUND(ADD(n^2)) transformation)

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

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
We considered the (Usable) Rules:none
And the Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(++'(x1, x2)) = x2 + [2]x1·x2   
POL(F(x1, x2)) = x22 + x1·x2   
POL(MAX(x1)) = x1   
POL(MEM(x1, x2)) = [3]x1·x2   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c3(x1)) = x1   
POL(c7(x1)) = x1   
POL(g(x1, x2)) = [1] + x1   
POL(u) = 0   

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
S tuples:

MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
K tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
Defined Rule Symbols:none

Defined Pair Symbols:

F, ++', MEM, MAX

Compound Symbols:

c1, c3, c7, c10

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

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

MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
We considered the (Usable) Rules:none
And the Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(++'(x1, x2)) = 0   
POL(F(x1, x2)) = [3]x2   
POL(MAX(x1)) = [3]x1   
POL(MEM(x1, x2)) = [2]x1   
POL(c1(x1)) = x1   
POL(c10(x1)) = x1   
POL(c3(x1)) = x1   
POL(c7(x1)) = x1   
POL(g(x1, x2)) = [1] + x1   
POL(u) = 0   

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
S tuples:none
K tuples:

F(z0, g(z1, z2)) → c1(F(z0, z1))
++'(z0, g(z1, z2)) → c3(++'(z0, z1))
MAX(g(g(g(z0, z1), z2), u)) → c10(MAX(g(g(z0, z1), z2)))
MEM(g(z0, z1), z2) → c7(MEM(z0, z2))
Defined Rule Symbols:none

Defined Pair Symbols:

F, ++', MEM, MAX

Compound Symbols:

c1, c3, c7, c10

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

The set S is empty

(12) BOUNDS(1, 1)