(0) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
overlap(Cons(x, xs), ys) → overlap[Ite][True][Ite](member(x, ys), Cons(x, xs), ys)
overlap(Nil, ys) → False
member(x', Cons(x, xs)) → member[Ite][True][Ite](!EQ(x, x'), x', Cons(x, xs))
member(x, Nil) → False
notEmpty(Cons(x, xs)) → True
notEmpty(Nil) → False
goal(xs, ys) → overlap(xs, ys)
The (relative) TRS S consists of the following rules:
!EQ(S(x), S(y)) → !EQ(x, y)
!EQ(0, S(y)) → False
!EQ(S(x), 0) → False
!EQ(0, 0) → True
overlap[Ite][True][Ite](False, Cons(x, xs), ys) → overlap(xs, ys)
member[Ite][True][Ite](False, x', Cons(x, xs)) → member(x', xs)
overlap[Ite][True][Ite](True, xs, ys) → True
member[Ite][True][Ite](True, x, xs) → True
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (UPPER BOUND(ID) transformation)
Converted Cpx (relative) TRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
overlap[Ite][True][Ite](False, Cons(z0, z1), z2) → overlap(z1, z2)
overlap[Ite][True][Ite](True, z0, z1) → True
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → True
overlap(Cons(z0, z1), z2) → overlap[Ite][True][Ite](member(z0, z2), Cons(z0, z1), z2)
overlap(Nil, z0) → False
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
goal(z0, z1) → overlap(z0, z1)
Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
!EQ'(0, S(z0)) → c1
!EQ'(S(z0), 0) → c2
!EQ'(0, 0) → c3
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
OVERLAP[ITE][TRUE][ITE](True, z0, z1) → c5
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
MEMBER[ITE][TRUE][ITE](True, z0, z1) → c7
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
NOTEMPTY(Cons(z0, z1)) → c12
NOTEMPTY(Nil) → c13
GOAL(z0, z1) → c14(OVERLAP(z0, z1))
S tuples:
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
NOTEMPTY(Cons(z0, z1)) → c12
NOTEMPTY(Nil) → c13
GOAL(z0, z1) → c14(OVERLAP(z0, z1))
K tuples:none
Defined Rule Symbols:
overlap, member, notEmpty, goal, !EQ, overlap[Ite][True][Ite], member[Ite][True][Ite]
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER, NOTEMPTY, GOAL
Compound Symbols:
c, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14
(3) CdtLeafRemovalProof (ComplexityIfPolyImplication transformation)
Removed 1 leading nodes:
GOAL(z0, z1) → c14(OVERLAP(z0, z1))
Removed 7 trailing nodes:
!EQ'(S(z0), 0) → c2
MEMBER[ITE][TRUE][ITE](True, z0, z1) → c7
!EQ'(0, S(z0)) → c1
NOTEMPTY(Nil) → c13
NOTEMPTY(Cons(z0, z1)) → c12
!EQ'(0, 0) → c3
OVERLAP[ITE][TRUE][ITE](True, z0, z1) → c5
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
!EQ(S(z0), S(z1)) → !EQ(z0, z1)
!EQ(0, S(z0)) → False
!EQ(S(z0), 0) → False
!EQ(0, 0) → True
overlap[Ite][True][Ite](False, Cons(z0, z1), z2) → overlap(z1, z2)
overlap[Ite][True][Ite](True, z0, z1) → True
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → True
overlap(Cons(z0, z1), z2) → overlap[Ite][True][Ite](member(z0, z2), Cons(z0, z1), z2)
overlap(Nil, z0) → False
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
goal(z0, z1) → overlap(z0, z1)
Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
K tuples:none
Defined Rule Symbols:
overlap, member, notEmpty, goal, !EQ, overlap[Ite][True][Ite], member[Ite][True][Ite]
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(5) CdtUsableRulesProof (EQUIVALENT transformation)
The following rules are not usable and were removed:
overlap[Ite][True][Ite](False, Cons(z0, z1), z2) → overlap(z1, z2)
overlap[Ite][True][Ite](True, z0, z1) → True
overlap(Cons(z0, z1), z2) → overlap[Ite][True][Ite](member(z0, z2), Cons(z0, z1), z2)
overlap(Nil, z0) → False
notEmpty(Cons(z0, z1)) → True
notEmpty(Nil) → False
goal(z0, z1) → overlap(z0, z1)
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → 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)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
K tuples:none
Defined Rule Symbols:
member, member[Ite][True][Ite], !EQ
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(7) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1)) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
OVERLAP(Nil, z0) → c9
We considered the (Usable) Rules:none
And the Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(!EQ(x1, x2)) = [2]
POL(!EQ'(x1, x2)) = 0
POL(0) = [2]
POL(Cons(x1, x2)) = 0
POL(False) = [4]
POL(MEMBER(x1, x2)) = 0
POL(MEMBER[ITE][TRUE][ITE](x1, x2, x3)) = 0
POL(Nil) = [2]
POL(OVERLAP(x1, x2)) = [4]
POL(OVERLAP[ITE][TRUE][ITE](x1, x2, x3)) = [4]
POL(S(x1)) = 0
POL(True) = [1]
POL(c(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11) = 0
POL(c4(x1)) = x1
POL(c6(x1)) = x1
POL(c8(x1, x2)) = x1 + x2
POL(c9) = 0
POL(member(x1, x2)) = [5] + [5]x1 + [2]x2
POL(member[Ite][True][Ite](x1, x2, x3)) = [3] + [2]x1 + [3]x2 + [3]x3
(8) Obligation:
Complexity Dependency Tuples Problem
Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → 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)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
K tuples:
OVERLAP(Nil, z0) → c9
Defined Rule Symbols:
member, member[Ite][True][Ite], !EQ
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(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.
MEMBER(z0, Nil) → c11
We considered the (Usable) Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → True
member(z0, Nil) → False
And the Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(!EQ(x1, x2)) = [4] + [2]x1
POL(!EQ'(x1, x2)) = 0
POL(0) = [2]
POL(Cons(x1, x2)) = [4] + x2
POL(False) = 0
POL(MEMBER(x1, x2)) = [1]
POL(MEMBER[ITE][TRUE][ITE](x1, x2, x3)) = [1]
POL(Nil) = 0
POL(OVERLAP(x1, x2)) = [2] + [4]x1
POL(OVERLAP[ITE][TRUE][ITE](x1, x2, x3)) = x1 + [4]x2
POL(S(x1)) = [2]
POL(True) = 0
POL(c(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11) = 0
POL(c4(x1)) = x1
POL(c6(x1)) = x1
POL(c8(x1, x2)) = x1 + x2
POL(c9) = 0
POL(member(x1, x2)) = [1]
POL(member[Ite][True][Ite](x1, x2, x3)) = [1]
(10) Obligation:
Complexity Dependency Tuples Problem
Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → 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)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
K tuples:
OVERLAP(Nil, z0) → c9
MEMBER(z0, Nil) → c11
Defined Rule Symbols:
member, member[Ite][True][Ite], !EQ
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(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.
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
We considered the (Usable) Rules:none
And the Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(!EQ(x1, x2)) = [3]x1 + [2]x2
POL(!EQ'(x1, x2)) = 0
POL(0) = 0
POL(Cons(x1, x2)) = [2] + x2
POL(False) = 0
POL(MEMBER(x1, x2)) = 0
POL(MEMBER[ITE][TRUE][ITE](x1, x2, x3)) = 0
POL(Nil) = [3]
POL(OVERLAP(x1, x2)) = [1] + [4]x1
POL(OVERLAP[ITE][TRUE][ITE](x1, x2, x3)) = [4]x2
POL(S(x1)) = [4]
POL(True) = 0
POL(c(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11) = 0
POL(c4(x1)) = x1
POL(c6(x1)) = x1
POL(c8(x1, x2)) = x1 + x2
POL(c9) = 0
POL(member(x1, x2)) = [3]x1
POL(member[Ite][True][Ite](x1, x2, x3)) = [1] + [2]x1 + x2 + [5]x3
(12) Obligation:
Complexity Dependency Tuples Problem
Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → 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)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
K tuples:
OVERLAP(Nil, z0) → c9
MEMBER(z0, Nil) → c11
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
Defined Rule Symbols:
member, member[Ite][True][Ite], !EQ
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(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.
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
We considered the (Usable) Rules:none
And the Tuples:
!EQ'(S(z0), S(z1)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
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(False) = 0
POL(MEMBER(x1, x2)) = [3] + x2
POL(MEMBER[ITE][TRUE][ITE](x1, x2, x3)) = [2] + x3
POL(Nil) = 0
POL(OVERLAP(x1, x2)) = [2] + [3]x1 + x2 + x1·x2 + x12
POL(OVERLAP[ITE][TRUE][ITE](x1, x2, x3)) = x2 + x2·x3 + x22
POL(S(x1)) = 0
POL(True) = 0
POL(c(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11) = 0
POL(c4(x1)) = x1
POL(c6(x1)) = x1
POL(c8(x1, x2)) = x1 + x2
POL(c9) = 0
POL(member(x1, x2)) = 0
POL(member[Ite][True][Ite](x1, x2, x3)) = 0
(14) Obligation:
Complexity Dependency Tuples Problem
Rules:
member(z0, Cons(z1, z2)) → member[Ite][True][Ite](!EQ(z1, z0), z0, Cons(z1, z2))
member(z0, Nil) → False
member[Ite][True][Ite](False, z0, Cons(z1, z2)) → member(z0, z2)
member[Ite][True][Ite](True, z0, z1) → 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)) → c(!EQ'(z0, z1))
OVERLAP[ITE][TRUE][ITE](False, Cons(z0, z1), z2) → c4(OVERLAP(z1, z2))
MEMBER[ITE][TRUE][ITE](False, z0, Cons(z1, z2)) → c6(MEMBER(z0, z2))
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
OVERLAP(Nil, z0) → c9
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
MEMBER(z0, Nil) → c11
S tuples:none
K tuples:
OVERLAP(Nil, z0) → c9
MEMBER(z0, Nil) → c11
OVERLAP(Cons(z0, z1), z2) → c8(OVERLAP[ITE][TRUE][ITE](member(z0, z2), Cons(z0, z1), z2), MEMBER(z0, z2))
MEMBER(z0, Cons(z1, z2)) → c10(MEMBER[ITE][TRUE][ITE](!EQ(z1, z0), z0, Cons(z1, z2)), !EQ'(z1, z0))
Defined Rule Symbols:
member, member[Ite][True][Ite], !EQ
Defined Pair Symbols:
!EQ', OVERLAP[ITE][TRUE][ITE], MEMBER[ITE][TRUE][ITE], OVERLAP, MEMBER
Compound Symbols:
c, c4, c6, c8, c9, c10, c11
(15) SIsEmptyProof (BOTH BOUNDS(ID, ID) transformation)
The set S is empty
(16) BOUNDS(1, 1)