(0) Obligation:

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

f(j(x, y), y) → g(f(x, k(y)))
f(x, h1(y, z)) → h2(0, x, h1(y, z))
g(h2(x, y, h1(z, u))) → h2(s(x), y, h1(z, u))
h2(x, j(y, h1(z, u)), h1(z, u)) → h2(s(x), y, h1(s(z), u))
i(f(x, h(y))) → y
i(h2(s(x), y, h1(x, z))) → z
k(h(x)) → h1(0, x)
k(h1(x, y)) → h1(s(x), y)

Rewrite Strategy: INNERMOST

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

Converted Cpx (relative) TRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
i(f(z0, h(z1))) → z1
i(h2(s(z0), z1, h1(z0, z2))) → z2
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
Tuples:

F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)), K(z1))
F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
I(f(z0, h(z1))) → c4
I(h2(s(z0), z1, h1(z0, z2))) → c5
K(h(z0)) → c6
K(h1(z0, z1)) → c7
S tuples:

F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)), K(z1))
F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
I(f(z0, h(z1))) → c4
I(h2(s(z0), z1, h1(z0, z2))) → c5
K(h(z0)) → c6
K(h1(z0, z1)) → c7
K tuples:none
Defined Rule Symbols:

f, g, h2, i, k

Defined Pair Symbols:

F, G, H2, I, K

Compound Symbols:

c, c1, c2, c3, c4, c5, c6, c7

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

Removed 4 trailing nodes:

I(h2(s(z0), z1, h1(z0, z2))) → c5
I(f(z0, h(z1))) → c4
K(h(z0)) → c6
K(h1(z0, z1)) → c7

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
i(f(z0, h(z1))) → z1
i(h2(s(z0), z1, h1(z0, z2))) → z2
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
Tuples:

F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)), K(z1))
F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
S tuples:

F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)), K(z1))
F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
K tuples:none
Defined Rule Symbols:

f, g, h2, i, k

Defined Pair Symbols:

F, G, H2

Compound Symbols:

c, c1, c2, c3

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

Removed 1 trailing tuple parts

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
i(f(z0, h(z1))) → z1
i(h2(s(z0), z1, h1(z0, z2))) → z2
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
S tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
K tuples:none
Defined Rule Symbols:

f, g, h2, i, k

Defined Pair Symbols:

F, G, H2

Compound Symbols:

c1, c2, c3, c

(7) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

i(f(z0, h(z1))) → z1
i(h2(s(z0), z1, h1(z0, z2))) → z2

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
S tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
K tuples:none
Defined Rule Symbols:

f, k, g, h2

Defined Pair Symbols:

F, G, H2

Compound Symbols:

c1, c2, c3, c

(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.

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
We considered the (Usable) Rules:

k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
And the Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(F(x1, x2)) = [4] + [4]x1 + [2]x2   
POL(G(x1)) = [2]   
POL(H2(x1, x2, x3)) = [4]x1   
POL(c(x1, x2)) = x1 + x2   
POL(c1(x1)) = x1   
POL(c2(x1)) = x1   
POL(c3(x1)) = x1   
POL(f(x1, x2)) = [3] + [3]x1 + [3]x2   
POL(g(x1)) = 0   
POL(h(x1)) = [4] + x1   
POL(h1(x1, x2)) = [2] + x1   
POL(h2(x1, x2, x3)) = [4] + [3]x1 + [3]x2 + [4]x3   
POL(j(x1, x2)) = [4] + x1 + x2   
POL(k(x1)) = [4] + [3]x1   
POL(s(x1)) = 0   

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
S tuples:

H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
K tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
Defined Rule Symbols:

f, k, g, h2

Defined Pair Symbols:

F, G, H2

Compound Symbols:

c1, c2, c3, c

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

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

H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
We considered the (Usable) Rules:

k(h(z0)) → h1(0, z0)
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
k(h1(z0, z1)) → h1(s(z0), z1)
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
f(j(z0, z1), z1) → g(f(z0, k(z1)))
And the Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(F(x1, x2)) = x1 + [2]x2 + x12   
POL(G(x1)) = x1   
POL(H2(x1, x2, x3)) = x1 + x2   
POL(c(x1, x2)) = x1 + x2   
POL(c1(x1)) = x1   
POL(c2(x1)) = x1   
POL(c3(x1)) = x1   
POL(f(x1, x2)) = [2] + x1   
POL(g(x1)) = x1   
POL(h(x1)) = 0   
POL(h1(x1, x2)) = 0   
POL(h2(x1, x2, x3)) = x2   
POL(j(x1, x2)) = [1] + x1   
POL(k(x1)) = 0   
POL(s(x1)) = 0   

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

f(j(z0, z1), z1) → g(f(z0, k(z1)))
f(z0, h1(z1, z2)) → h2(0, z0, h1(z1, z2))
k(h(z0)) → h1(0, z0)
k(h1(z0, z1)) → h1(s(z0), z1)
g(h2(z0, z1, h1(z2, z3))) → h2(s(z0), z1, h1(z2, z3))
h2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → h2(s(z0), z1, h1(s(z2), z3))
Tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
S tuples:none
K tuples:

F(z0, h1(z1, z2)) → c1(H2(0, z0, h1(z1, z2)))
G(h2(z0, z1, h1(z2, z3))) → c2(H2(s(z0), z1, h1(z2, z3)))
F(j(z0, z1), z1) → c(G(f(z0, k(z1))), F(z0, k(z1)))
H2(z0, j(z1, h1(z2, z3)), h1(z2, z3)) → c3(H2(s(z0), z1, h1(s(z2), z3)))
Defined Rule Symbols:

f, k, g, h2

Defined Pair Symbols:

F, G, H2

Compound Symbols:

c1, c2, c3, c

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

The set S is empty

(14) BOUNDS(1, 1)