(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
fold#3(insert_ord(x2), Nil) → Nil
fold#3(insert_ord(x6), Cons(x4, x2)) → insert_ord#2(x6, x4, fold#3(insert_ord(x6), x2))
cond_insert_ord_x_ys_1(True, x3, x2, x1) → Cons(x3, Cons(x2, x1))
cond_insert_ord_x_ys_1(False, x0, x5, x2) → Cons(x5, insert_ord#2(leq, x0, x2))
insert_ord#2(leq, x2, Nil) → Cons(x2, Nil)
insert_ord#2(leq, x6, Cons(x4, x2)) → cond_insert_ord_x_ys_1(leq#2(x6, x4), x6, x4, x2)
leq#2(0, x8) → True
leq#2(S(x12), 0) → False
leq#2(S(x4), S(x2)) → leq#2(x4, x2)
main(x3) → fold#3(insert_ord(leq), x3)
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted Cpx (relative) TRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
main(z0) → fold#3(insert_ord(leq), z0)
Tuples:
FOLD#3(insert_ord(z0), Nil) → c
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(True, z0, z1, z2) → c2
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Nil) → c4
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(0, z0) → c6
LEQ#2(S(z0), 0) → c7
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
MAIN(z0) → c9(FOLD#3(insert_ord(leq), z0))
S tuples:
FOLD#3(insert_ord(z0), Nil) → c
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(True, z0, z1, z2) → c2
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Nil) → c4
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(0, z0) → c6
LEQ#2(S(z0), 0) → c7
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
MAIN(z0) → c9(FOLD#3(insert_ord(leq), z0))
K tuples:none
Defined Rule Symbols:
fold#3, cond_insert_ord_x_ys_1, insert_ord#2, leq#2, main
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2, MAIN
Compound Symbols:
c, c1, c2, c3, c4, c5, c6, c7, c8, c9
(3) CdtLeafRemovalProof (ComplexityIfPolyImplication transformation)
Removed 1 leading nodes:
MAIN(z0) → c9(FOLD#3(insert_ord(leq), z0))
Removed 5 trailing nodes:
LEQ#2(0, z0) → c6
INSERT_ORD#2(leq, z0, Nil) → c4
FOLD#3(insert_ord(z0), Nil) → c
LEQ#2(S(z0), 0) → c7
COND_INSERT_ORD_X_YS_1(True, z0, z1, z2) → c2
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
main(z0) → fold#3(insert_ord(leq), z0)
Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
S tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
K tuples:none
Defined Rule Symbols:
fold#3, cond_insert_ord_x_ys_1, insert_ord#2, leq#2, main
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2
Compound Symbols:
c1, c3, c5, c8
(5) CdtUsableRulesProof (EQUIVALENT transformation)
The following rules are not usable and were removed:
main(z0) → fold#3(insert_ord(leq), z0)
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
S tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
K tuples:none
Defined Rule Symbols:
fold#3, insert_ord#2, cond_insert_ord_x_ys_1, leq#2
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2
Compound Symbols:
c1, c3, c5, c8
(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.
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
We considered the (Usable) Rules:none
And the Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(0) = 0
POL(COND_INSERT_ORD_X_YS_1(x1, x2, x3, x4)) = 0
POL(Cons(x1, x2)) = [2] + x2
POL(FOLD#3(x1, x2)) = [4]x2
POL(False) = 0
POL(INSERT_ORD#2(x1, x2, x3)) = 0
POL(LEQ#2(x1, x2)) = 0
POL(Nil) = [2]
POL(S(x1)) = 0
POL(True) = 0
POL(c1(x1, x2)) = x1 + x2
POL(c3(x1)) = x1
POL(c5(x1, x2)) = x1 + x2
POL(c8(x1)) = x1
POL(cond_insert_ord_x_ys_1(x1, x2, x3, x4)) = [2] + [4]x2 + [3]x3 + [2]x4
POL(fold#3(x1, x2)) = 0
POL(insert_ord(x1)) = 0
POL(insert_ord#2(x1, x2, x3)) = [5] + [2]x2
POL(leq) = [2]
POL(leq#2(x1, x2)) = 0
(8) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
S tuples:
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
K tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
Defined Rule Symbols:
fold#3, insert_ord#2, cond_insert_ord_x_ys_1, leq#2
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2
Compound Symbols:
c1, c3, c5, c8
(9) CdtRuleRemovalProof (UPPER BOUND(ADD(n^2)) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
We considered the (Usable) Rules:
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
fold#3(insert_ord(z0), Nil) → Nil
And the Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(0) = 0
POL(COND_INSERT_ORD_X_YS_1(x1, x2, x3, x4)) = x2·x4 + x22
POL(Cons(x1, x2)) = x1 + x2
POL(FOLD#3(x1, x2)) = x22
POL(False) = 0
POL(INSERT_ORD#2(x1, x2, x3)) = x2·x3 + x22
POL(LEQ#2(x1, x2)) = x1·x2
POL(Nil) = 0
POL(S(x1)) = [2] + x1
POL(True) = 0
POL(c1(x1, x2)) = x1 + x2
POL(c3(x1)) = x1
POL(c5(x1, x2)) = x1 + x2
POL(c8(x1)) = x1
POL(cond_insert_ord_x_ys_1(x1, x2, x3, x4)) = [2]x2 + x3 + x4
POL(fold#3(x1, x2)) = [2]x2
POL(insert_ord(x1)) = 0
POL(insert_ord#2(x1, x2, x3)) = [2]x2 + x3
POL(leq) = 0
POL(leq#2(x1, x2)) = 0
(10) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
S tuples:
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
K tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
Defined Rule Symbols:
fold#3, insert_ord#2, cond_insert_ord_x_ys_1, leq#2
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2
Compound Symbols:
c1, c3, c5, c8
(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.
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
We considered the (Usable) Rules:
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
fold#3(insert_ord(z0), Nil) → Nil
And the Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(0) = 0
POL(COND_INSERT_ORD_X_YS_1(x1, x2, x3, x4)) = [2] + [2]x4
POL(Cons(x1, x2)) = [1] + x2
POL(FOLD#3(x1, x2)) = x22
POL(False) = 0
POL(INSERT_ORD#2(x1, x2, x3)) = [2]x3
POL(LEQ#2(x1, x2)) = 0
POL(Nil) = 0
POL(S(x1)) = 0
POL(True) = 0
POL(c1(x1, x2)) = x1 + x2
POL(c3(x1)) = x1
POL(c5(x1, x2)) = x1 + x2
POL(c8(x1)) = x1
POL(cond_insert_ord_x_ys_1(x1, x2, x3, x4)) = [2] + x4
POL(fold#3(x1, x2)) = x2
POL(insert_ord(x1)) = 0
POL(insert_ord#2(x1, x2, x3)) = [1] + x3
POL(leq) = 0
POL(leq#2(x1, x2)) = 0
(12) Obligation:
Complexity Dependency Tuples Problem
Rules:
fold#3(insert_ord(z0), Nil) → Nil
fold#3(insert_ord(z0), Cons(z1, z2)) → insert_ord#2(z0, z1, fold#3(insert_ord(z0), z2))
insert_ord#2(leq, z0, Nil) → Cons(z0, Nil)
insert_ord#2(leq, z0, Cons(z1, z2)) → cond_insert_ord_x_ys_1(leq#2(z0, z1), z0, z1, z2)
cond_insert_ord_x_ys_1(True, z0, z1, z2) → Cons(z0, Cons(z1, z2))
cond_insert_ord_x_ys_1(False, z0, z1, z2) → Cons(z1, insert_ord#2(leq, z0, z2))
leq#2(0, z0) → True
leq#2(S(z0), 0) → False
leq#2(S(z0), S(z1)) → leq#2(z0, z1)
Tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
S tuples:
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
K tuples:
FOLD#3(insert_ord(z0), Cons(z1, z2)) → c1(INSERT_ORD#2(z0, z1, fold#3(insert_ord(z0), z2)), FOLD#3(insert_ord(z0), z2))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
Defined Rule Symbols:
fold#3, insert_ord#2, cond_insert_ord_x_ys_1, leq#2
Defined Pair Symbols:
FOLD#3, COND_INSERT_ORD_X_YS_1, INSERT_ORD#2, LEQ#2
Compound Symbols:
c1, c3, c5, c8
(13) CdtKnowledgeProof (EQUIVALENT transformation)
The following tuples could be moved from S to K by knowledge propagation:
INSERT_ORD#2(leq, z0, Cons(z1, z2)) → c5(COND_INSERT_ORD_X_YS_1(leq#2(z0, z1), z0, z1, z2), LEQ#2(z0, z1))
COND_INSERT_ORD_X_YS_1(False, z0, z1, z2) → c3(INSERT_ORD#2(leq, z0, z2))
LEQ#2(S(z0), S(z1)) → c8(LEQ#2(z0, z1))
Now S is empty
(14) BOUNDS(1, 1)