(0) Obligation:

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

prefix(Cons(x', xs'), Cons(x, xs)) → and(!EQ(x', x), prefix(xs', xs))
domatch(Cons(x, xs), Nil, n) → Nil
domatch(Nil, Nil, n) → Cons(n, Nil)
prefix(Cons(x, xs), Nil) → False
prefix(Nil, cs) → True
domatch(patcs, Cons(x, xs), n) → domatch[Ite](prefix(patcs, Cons(x, xs)), patcs, Cons(x, xs), n)
eqNatList(Cons(x, xs), Cons(y, ys)) → eqNatList[Ite](!EQ(x, y), y, ys, x, xs)
eqNatList(Cons(x, xs), Nil) → False
eqNatList(Nil, Cons(y, ys)) → False
eqNatList(Nil, Nil) → True
notEmpty(Cons(x, xs)) → True
notEmpty(Nil) → False
strmatch(patstr, str) → domatch(patstr, str, Nil)

The (relative) TRS S consists of the following rules:

and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(x), S(y)) → !EQ(x, y)
!EQ(0, S(y)) → False
!EQ(S(x), 0) → False
!EQ(0, 0) → True
domatch[Ite](False, patcs, Cons(x, xs), n) → domatch(patcs, xs, Cons(n, Cons(Nil, Nil)))
domatch[Ite](True, patcs, Cons(x, xs), n) → Cons(n, domatch(patcs, xs, Cons(n, Cons(Nil, Nil))))
eqNatList[Ite](False, y, ys, x, xs) → False
eqNatList[Ite](True, y, ys, x, xs) → eqNatList(xs, ys)

Rewrite Strategy: INNERMOST

(1) CpxTrsToCdtProof (UPPER BOUND(ID) transformation)

Converted Cpx (relative) TRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
domatch[Ite](False, z0, Cons(z1, z2), z3) → domatch(z0, z2, Cons(z3, Cons(Nil, Nil)))
domatch[Ite](True, z0, Cons(z1, z2), z3) → Cons(z3, domatch(z0, z2, Cons(z3, Cons(Nil, Nil))))
eqNatList[Ite](False, z0, z1, z2, z3) → False
eqNatList[Ite](True, z0, z1, z2, z3) → eqNatList(z3, z1)
prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Cons(z0, z1), Nil) → False
prefix(Nil, z0) → True
domatch(Cons(z0, z1), Nil, z2) → Nil
domatch(Nil, Nil, z0) → Cons(z0, Nil)
domatch(z0, Cons(z1, z2), z3) → domatch[Ite](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3)
eqNatList(Cons(z0, z1), Cons(z2, z3)) → eqNatList[Ite](!EQ(z0, z2), z2, z3, z0, z1)
eqNatList(Cons(z0, z1), Nil) → False
eqNatList(Nil, Cons(z0, z1)) → False
eqNatList(Nil, Nil) → True
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
strmatch(z0, z1) → domatch(z0, z1, Nil)
Tuples:

AND(False, False) → c
AND(True, False) → c1
AND(False, True) → c2
AND(True, True) → c3
!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
!EQ'(0, S(z0)) → c5
!EQ'(S(z0), 0) → c6
!EQ'(0, 0) → c7
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](False, z0, z1, z2, z3) → c10
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(AND(!EQ(z0, z2), prefix(z1, z3)), !EQ'(z0, z2), PREFIX(z1, z3))
PREFIX(Cons(z0, z1), Nil) → c13
PREFIX(Nil, z0) → c14
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
NOTEMPTY(Cons(z0, z1)) → c22
NOTEMPTY(Nil) → c23
STRMATCH(z0, z1) → c24(DOMATCH(z0, z1, Nil))
S tuples:

PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(AND(!EQ(z0, z2), prefix(z1, z3)), !EQ'(z0, z2), PREFIX(z1, z3))
PREFIX(Cons(z0, z1), Nil) → c13
PREFIX(Nil, z0) → c14
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
NOTEMPTY(Cons(z0, z1)) → c22
NOTEMPTY(Nil) → c23
STRMATCH(z0, z1) → c24(DOMATCH(z0, z1, Nil))
K tuples:none
Defined Rule Symbols:

prefix, domatch, eqNatList, notEmpty, strmatch, and, !EQ, domatch[Ite], eqNatList[Ite]

Defined Pair Symbols:

AND, !EQ', DOMATCH[ITE], EQNATLIST[ITE], PREFIX, DOMATCH, EQNATLIST, NOTEMPTY, STRMATCH

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

(3) CdtLeafRemovalProof (ComplexityIfPolyImplication transformation)

Removed 1 leading nodes:

STRMATCH(z0, z1) → c24(DOMATCH(z0, z1, Nil))
Removed 12 trailing nodes:

NOTEMPTY(Cons(z0, z1)) → c22
PREFIX(Nil, z0) → c14
AND(False, True) → c2
NOTEMPTY(Nil) → c23
PREFIX(Cons(z0, z1), Nil) → c13
!EQ'(0, 0) → c7
EQNATLIST[ITE](False, z0, z1, z2, z3) → c10
!EQ'(S(z0), 0) → c6
AND(True, False) → c1
AND(False, False) → c
!EQ'(0, S(z0)) → c5
AND(True, True) → c3

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
domatch[Ite](False, z0, Cons(z1, z2), z3) → domatch(z0, z2, Cons(z3, Cons(Nil, Nil)))
domatch[Ite](True, z0, Cons(z1, z2), z3) → Cons(z3, domatch(z0, z2, Cons(z3, Cons(Nil, Nil))))
eqNatList[Ite](False, z0, z1, z2, z3) → False
eqNatList[Ite](True, z0, z1, z2, z3) → eqNatList(z3, z1)
prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Cons(z0, z1), Nil) → False
prefix(Nil, z0) → True
domatch(Cons(z0, z1), Nil, z2) → Nil
domatch(Nil, Nil, z0) → Cons(z0, Nil)
domatch(z0, Cons(z1, z2), z3) → domatch[Ite](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3)
eqNatList(Cons(z0, z1), Cons(z2, z3)) → eqNatList[Ite](!EQ(z0, z2), z2, z3, z0, z1)
eqNatList(Cons(z0, z1), Nil) → False
eqNatList(Nil, Cons(z0, z1)) → False
eqNatList(Nil, Nil) → True
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
strmatch(z0, z1) → domatch(z0, z1, Nil)
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(AND(!EQ(z0, z2), prefix(z1, z3)), !EQ'(z0, z2), PREFIX(z1, z3))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
S tuples:

PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(AND(!EQ(z0, z2), prefix(z1, z3)), !EQ'(z0, z2), PREFIX(z1, z3))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
K tuples:none
Defined Rule Symbols:

prefix, domatch, eqNatList, notEmpty, strmatch, and, !EQ, domatch[Ite], eqNatList[Ite]

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], PREFIX, DOMATCH, EQNATLIST

Compound Symbols:

c4, c8, c9, c11, c12, c15, c16, c17, c18, c19, c20, c21

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

Removed 1 trailing tuple parts

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
domatch[Ite](False, z0, Cons(z1, z2), z3) → domatch(z0, z2, Cons(z3, Cons(Nil, Nil)))
domatch[Ite](True, z0, Cons(z1, z2), z3) → Cons(z3, domatch(z0, z2, Cons(z3, Cons(Nil, Nil))))
eqNatList[Ite](False, z0, z1, z2, z3) → False
eqNatList[Ite](True, z0, z1, z2, z3) → eqNatList(z3, z1)
prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Cons(z0, z1), Nil) → False
prefix(Nil, z0) → True
domatch(Cons(z0, z1), Nil, z2) → Nil
domatch(Nil, Nil, z0) → Cons(z0, Nil)
domatch(z0, Cons(z1, z2), z3) → domatch[Ite](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3)
eqNatList(Cons(z0, z1), Cons(z2, z3)) → eqNatList[Ite](!EQ(z0, z2), z2, z3, z0, z1)
eqNatList(Cons(z0, z1), Nil) → False
eqNatList(Nil, Cons(z0, z1)) → False
eqNatList(Nil, Nil) → True
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
strmatch(z0, z1) → domatch(z0, z1, Nil)
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
S tuples:

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
K tuples:none
Defined Rule Symbols:

prefix, domatch, eqNatList, notEmpty, strmatch, and, !EQ, domatch[Ite], eqNatList[Ite]

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], DOMATCH, EQNATLIST, PREFIX

Compound Symbols:

c4, c8, c9, c11, c15, c16, c17, c18, c19, c20, c21, c12

(7) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

domatch[Ite](False, z0, Cons(z1, z2), z3) → domatch(z0, z2, Cons(z3, Cons(Nil, Nil)))
domatch[Ite](True, z0, Cons(z1, z2), z3) → Cons(z3, domatch(z0, z2, Cons(z3, Cons(Nil, Nil))))
eqNatList[Ite](False, z0, z1, z2, z3) → False
eqNatList[Ite](True, z0, z1, z2, z3) → eqNatList(z3, z1)
domatch(Cons(z0, z1), Nil, z2) → Nil
domatch(Nil, Nil, z0) → Cons(z0, Nil)
domatch(z0, Cons(z1, z2), z3) → domatch[Ite](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3)
eqNatList(Cons(z0, z1), Cons(z2, z3)) → eqNatList[Ite](!EQ(z0, z2), z2, z3, z0, z1)
eqNatList(Cons(z0, z1), Nil) → False
eqNatList(Nil, Cons(z0, z1)) → False
eqNatList(Nil, Nil) → True
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
strmatch(z0, z1) → domatch(z0, z1, Nil)

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Nil, z0) → True
prefix(Cons(z0, z1), Nil) → False
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
S tuples:

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
K tuples:none
Defined Rule Symbols:

prefix, and, !EQ

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], DOMATCH, EQNATLIST, PREFIX

Compound Symbols:

c4, c8, c9, c11, c15, c16, c17, c18, c19, c20, c21, c12

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

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
We considered the (Usable) Rules:none
And the Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(!EQ(x1, x2)) = [2]   
POL(!EQ'(x1, x2)) = 0   
POL(0) = [5]   
POL(Cons(x1, x2)) = [5] + x1 + x2   
POL(DOMATCH(x1, x2, x3)) = [1] + x1   
POL(DOMATCH[ITE](x1, x2, x3, x4)) = [1] + x2   
POL(EQNATLIST(x1, x2)) = [2] + x1 + [5]x2   
POL(EQNATLIST[ITE](x1, x2, x3, x4, x5)) = [4] + [3]x2 + [5]x3 + x5   
POL(False) = [2]   
POL(Nil) = 0   
POL(PREFIX(x1, x2)) = 0   
POL(S(x1)) = [3]   
POL(True) = 0   
POL(and(x1, x2)) = [2] + [2]x2   
POL(c11(x1)) = x1   
POL(c12(x1, x2)) = x1 + x2   
POL(c15) = 0   
POL(c16) = 0   
POL(c17(x1, x2)) = x1 + x2   
POL(c18(x1, x2)) = x1 + x2   
POL(c19) = 0   
POL(c20) = 0   
POL(c21) = 0   
POL(c4(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(prefix(x1, x2)) = [2]x2   

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Nil, z0) → True
prefix(Cons(z0, z1), Nil) → False
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
S tuples:

DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
K tuples:

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
Defined Rule Symbols:

prefix, and, !EQ

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], DOMATCH, EQNATLIST, PREFIX

Compound Symbols:

c4, c8, c9, c11, c15, c16, c17, c18, c19, c20, c21, c12

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

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

DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
We considered the (Usable) Rules:none
And the Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(!EQ(x1, x2)) = 0   
POL(!EQ'(x1, x2)) = 0   
POL(0) = [3]   
POL(Cons(x1, x2)) = [1] + x2   
POL(DOMATCH(x1, x2, x3)) = [1] + x2   
POL(DOMATCH[ITE](x1, x2, x3, x4)) = x3   
POL(EQNATLIST(x1, x2)) = [3] + x1   
POL(EQNATLIST[ITE](x1, x2, x3, x4, x5)) = [3] + x5   
POL(False) = 0   
POL(Nil) = 0   
POL(PREFIX(x1, x2)) = 0   
POL(S(x1)) = [5]   
POL(True) = 0   
POL(and(x1, x2)) = [1]   
POL(c11(x1)) = x1   
POL(c12(x1, x2)) = x1 + x2   
POL(c15) = 0   
POL(c16) = 0   
POL(c17(x1, x2)) = x1 + x2   
POL(c18(x1, x2)) = x1 + x2   
POL(c19) = 0   
POL(c20) = 0   
POL(c21) = 0   
POL(c4(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(prefix(x1, x2)) = [2]x2   

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Nil, z0) → True
prefix(Cons(z0, z1), Nil) → False
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
S tuples:

PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
K tuples:

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
Defined Rule Symbols:

prefix, and, !EQ

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], DOMATCH, EQNATLIST, PREFIX

Compound Symbols:

c4, c8, c9, c11, c15, c16, c17, c18, c19, c20, c21, c12

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

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

PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
We considered the (Usable) Rules:none
And the Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(!EQ(x1, x2)) = 0   
POL(!EQ'(x1, x2)) = 0   
POL(0) = 0   
POL(Cons(x1, x2)) = [1] + x2   
POL(DOMATCH(x1, x2, x3)) = [2] + [2]x2 + x22   
POL(DOMATCH[ITE](x1, x2, x3, x4)) = [1] + x32   
POL(EQNATLIST(x1, x2)) = [2]x1·x2 + [3]x12   
POL(EQNATLIST[ITE](x1, x2, x3, x4, x5)) = [2] + x3 + [3]x5 + [3]x52 + [2]x3·x5   
POL(False) = 0   
POL(Nil) = 0   
POL(PREFIX(x1, x2)) = [1] + x2   
POL(S(x1)) = 0   
POL(True) = 0   
POL(and(x1, x2)) = 0   
POL(c11(x1)) = x1   
POL(c12(x1, x2)) = x1 + x2   
POL(c15) = 0   
POL(c16) = 0   
POL(c17(x1, x2)) = x1 + x2   
POL(c18(x1, x2)) = x1 + x2   
POL(c19) = 0   
POL(c20) = 0   
POL(c21) = 0   
POL(c4(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(prefix(x1, x2)) = 0   

(14) Obligation:

Complexity Dependency Tuples Problem
Rules:

prefix(Cons(z0, z1), Cons(z2, z3)) → and(!EQ(z0, z2), prefix(z1, z3))
prefix(Nil, z0) → True
prefix(Cons(z0, z1), Nil) → False
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
Tuples:

!EQ'(S(z0), S(z1)) → c4(!EQ'(z0, z1))
DOMATCH[ITE](False, z0, Cons(z1, z2), z3) → c8(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
DOMATCH[ITE](True, z0, Cons(z1, z2), z3) → c9(DOMATCH(z0, z2, Cons(z3, Cons(Nil, Nil))))
EQNATLIST[ITE](True, z0, z1, z2, z3) → c11(EQNATLIST(z3, z1))
DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
S tuples:none
K tuples:

DOMATCH(Cons(z0, z1), Nil, z2) → c15
DOMATCH(Nil, Nil, z0) → c16
EQNATLIST(Cons(z0, z1), Cons(z2, z3)) → c18(EQNATLIST[ITE](!EQ(z0, z2), z2, z3, z0, z1), !EQ'(z0, z2))
EQNATLIST(Cons(z0, z1), Nil) → c19
EQNATLIST(Nil, Cons(z0, z1)) → c20
EQNATLIST(Nil, Nil) → c21
DOMATCH(z0, Cons(z1, z2), z3) → c17(DOMATCH[ITE](prefix(z0, Cons(z1, z2)), z0, Cons(z1, z2), z3), PREFIX(z0, Cons(z1, z2)))
PREFIX(Cons(z0, z1), Cons(z2, z3)) → c12(!EQ'(z0, z2), PREFIX(z1, z3))
Defined Rule Symbols:

prefix, and, !EQ

Defined Pair Symbols:

!EQ', DOMATCH[ITE], EQNATLIST[ITE], DOMATCH, EQNATLIST, PREFIX

Compound Symbols:

c4, c8, c9, c11, c15, c16, c17, c18, c19, c20, c21, c12

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

The set S is empty

(16) BOUNDS(1, 1)