(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(x, nil) → false
mem(x, set(y)) → =(x, y)
mem(x, union(y, z)) → or(mem(x, y), mem(x, z))
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted CpxTRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
or(true, z0) → true
or(z0, true) → true
or(false, false) → false
mem(z0, nil) → false
mem(z0, set(z1)) → =(z0, z1)
mem(z0, union(z1, z2)) → or(mem(z0, z1), mem(z0, z2))
Tuples:
MEM(z0, union(z1, z2)) → c5(OR(mem(z0, z1), mem(z0, z2)), MEM(z0, z1), MEM(z0, z2))
S tuples:
MEM(z0, union(z1, z2)) → c5(OR(mem(z0, z1), mem(z0, z2)), MEM(z0, z1), MEM(z0, z2))
K tuples:none
Defined Rule Symbols:
or, mem
Defined Pair Symbols:
MEM
Compound Symbols:
c5
(3) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 1 trailing tuple parts
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
or(true, z0) → true
or(z0, true) → true
or(false, false) → false
mem(z0, nil) → false
mem(z0, set(z1)) → =(z0, z1)
mem(z0, union(z1, z2)) → or(mem(z0, z1), mem(z0, z2))
Tuples:
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
S tuples:
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
K tuples:none
Defined Rule Symbols:
or, mem
Defined Pair Symbols:
MEM
Compound Symbols:
c5
(5) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
We considered the (Usable) Rules:none
And the Tuples:
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(MEM(x1, x2)) = [3] + [4]x2
POL(c5(x1, x2)) = x1 + x2
POL(union(x1, x2)) = [4] + x1 + x2
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
or(true, z0) → true
or(z0, true) → true
or(false, false) → false
mem(z0, nil) → false
mem(z0, set(z1)) → =(z0, z1)
mem(z0, union(z1, z2)) → or(mem(z0, z1), mem(z0, z2))
Tuples:
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
S tuples:none
K tuples:
MEM(z0, union(z1, z2)) → c5(MEM(z0, z1), MEM(z0, z2))
Defined Rule Symbols:
or, mem
Defined Pair Symbols:
MEM
Compound Symbols:
c5
(7) SIsEmptyProof (EQUIVALENT transformation)
The set S is empty
(8) BOUNDS(O(1), O(1))