### (0) Obligation:

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

a__f(a, X, X) → a__f(X, a__b, b)
a__ba
mark(f(X1, X2, X3)) → a__f(X1, mark(X2), X3)
mark(b) → a__b
mark(a) → a
a__f(X1, X2, X3) → f(X1, X2, X3)
a__bb

Rewrite Strategy: INNERMOST

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

Converted Cpx (relative) TRS to CDT

### (2) Obligation:

Complexity Dependency Tuples Problem
Rules:

a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__ba
a__bb
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:

A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
A__F(z0, z1, z2) → c1
A__Bc2
A__Bc3
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
MARK(b) → c5(A__B)
MARK(a) → c6
S tuples:

A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
A__F(z0, z1, z2) → c1
A__Bc2
A__Bc3
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
MARK(b) → c5(A__B)
MARK(a) → c6
K tuples:none
Defined Rule Symbols:

a__f, a__b, mark

Defined Pair Symbols:

A__F, A__B, MARK

Compound Symbols:

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

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

Removed 5 trailing nodes:

A__F(z0, z1, z2) → c1
MARK(b) → c5(A__B)
A__Bc2
A__Bc3
MARK(a) → c6

### (4) Obligation:

Complexity Dependency Tuples Problem
Rules:

a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__ba
a__bb
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:

A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
S tuples:

A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
K tuples:none
Defined Rule Symbols:

a__f, a__b, mark

Defined Pair Symbols:

A__F, MARK

Compound Symbols:

c, c4

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

Removed 1 trailing tuple parts

### (6) Obligation:

Complexity Dependency Tuples Problem
Rules:

a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__ba
a__bb
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
S tuples:

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
K tuples:none
Defined Rule Symbols:

a__f, a__b, mark

Defined Pair Symbols:

MARK, A__F

Compound Symbols:

c4, c

### (7) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

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

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
We considered the (Usable) Rules:none
And the Tuples:

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(A__F(x1, x2, x3)) = x1 + x3
POL(MARK(x1)) = [2]x1
POL(a) = [2]
POL(a__b) = [4]
POL(a__f(x1, x2, x3)) = [4] + [4]x1 + x2 + [4]x3
POL(b) = [1]
POL(c(x1)) = x1
POL(c4(x1, x2)) = x1 + x2
POL(f(x1, x2, x3)) = [3] + x1 + x2 + x3
POL(mark(x1)) = [4] + [4]x1

### (8) Obligation:

Complexity Dependency Tuples Problem
Rules:

a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__ba
a__bb
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
S tuples:none
K tuples:

MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b))
Defined Rule Symbols:

a__f, a__b, mark

Defined Pair Symbols:

MARK, A__F

Compound Symbols:

c4, c

### (9) SIsEmptyProof (BOTH BOUNDS(ID, ID) transformation)

The set S is empty