We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^3)). Strict Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) , quot(0(), s(Y)) -> 0() , quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y))) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^3)) We add the following dependency tuples: Strict DPs: { le^#(0(), Y) -> c_1() , le^#(s(X), 0()) -> c_2() , le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(0(), Y) -> c_4() , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(true(), s(X), Y) -> c_6() , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(0(), s(Y)) -> c_8() , quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } and mark the set of starting terms. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^3)). Strict DPs: { le^#(0(), Y) -> c_1() , le^#(s(X), 0()) -> c_2() , le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(0(), Y) -> c_4() , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(true(), s(X), Y) -> c_6() , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(0(), s(Y)) -> c_8() , quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) , quot(0(), s(Y)) -> 0() , quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y))) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^3)) We estimate the number of application of {1,2,4,6,8} by applications of Pre({1,2,4,6,8}) = {3,5,7,9}. Here rules are labeled as follows: DPs: { 1: le^#(0(), Y) -> c_1() , 2: le^#(s(X), 0()) -> c_2() , 3: le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , 4: minus^#(0(), Y) -> c_4() , 5: minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , 6: ifMinus^#(true(), s(X), Y) -> c_6() , 7: ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , 8: quot^#(0(), s(Y)) -> c_8() , 9: quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^3)). Strict DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak DPs: { le^#(0(), Y) -> c_1() , le^#(s(X), 0()) -> c_2() , minus^#(0(), Y) -> c_4() , ifMinus^#(true(), s(X), Y) -> c_6() , quot^#(0(), s(Y)) -> c_8() } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) , quot(0(), s(Y)) -> 0() , quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y))) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^3)) The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. { le^#(0(), Y) -> c_1() , le^#(s(X), 0()) -> c_2() , minus^#(0(), Y) -> c_4() , ifMinus^#(true(), s(X), Y) -> c_6() , quot^#(0(), s(Y)) -> c_8() } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^3)). Strict DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) , quot(0(), s(Y)) -> 0() , quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y))) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^3)) We replace rewrite rules by usable rules: Weak Usable Rules: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^3)). Strict DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^3)) We decompose the input problem according to the dependency graph into the upper component { quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } and lower component { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) } Further, following extension rules are added to the lower component. { quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } TcT solves the upper component with certificate YES(O(1),O(n^1)). Sub-proof: ---------- We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict DPs: { quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) We use the processor 'matrix interpretation of dimension 1' to orient following rules strictly. DPs: { 1: quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Trs: { ifMinus(true(), s(X), Y) -> 0() } Sub-proof: ---------- The following argument positions are usable: Uargs(c_9) = {1} TcT has computed the following constructor-based matrix interpretation satisfying not(EDA). [le](x1, x2) = [0] [0] = [2] [true] = [0] [s](x1) = [1] x1 + [3] [false] = [0] [minus](x1, x2) = [1] x1 + [0] [ifMinus](x1, x2, x3) = [1] x1 + [1] x2 + [0] [minus^#](x1, x2) = [1] [quot^#](x1, x2) = [2] x1 + [5] [c_9](x1, x2) = [1] x1 + [2] x2 + [0] The order satisfies the following ordering constraints: [le(0(), Y)] = [0] >= [0] = [true()] [le(s(X), 0())] = [0] >= [0] = [false()] [le(s(X), s(Y))] = [0] >= [0] = [le(X, Y)] [minus(0(), Y)] = [2] >= [2] = [0()] [minus(s(X), Y)] = [1] X + [3] >= [1] X + [3] = [ifMinus(le(s(X), Y), s(X), Y)] [ifMinus(true(), s(X), Y)] = [1] X + [3] > [2] = [0()] [ifMinus(false(), s(X), Y)] = [1] X + [3] >= [1] X + [3] = [s(minus(X, Y))] [quot^#(s(X), s(Y))] = [2] X + [11] > [2] X + [7] = [c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y))] The strictly oriented rules are moved into the weak component. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak DPs: { quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. { quot^#(s(X), s(Y)) -> c_9(quot^#(minus(X, Y), s(Y)), minus^#(X, Y)) } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) No rule is usable, rules are removed from the input problem. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Rules: Empty Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) Empty rules are trivially bounded We return to the main proof. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) } Weak DPs: { quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^2)) We decompose the input problem according to the dependency graph into the upper component { minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } and lower component { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) } Further, following extension rules are added to the lower component. { minus^#(s(X), Y) -> le^#(s(X), Y) , minus^#(s(X), Y) -> ifMinus^#(le(s(X), Y), s(X), Y) , ifMinus^#(false(), s(X), Y) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } TcT solves the upper component with certificate YES(O(1),O(n^1)). Sub-proof: ---------- We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict DPs: { minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) } Weak DPs: { quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) We use the processor 'matrix interpretation of dimension 1' to orient following rules strictly. DPs: { 2: ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , 3: quot^#(s(X), s(Y)) -> minus^#(X, Y) , 4: quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , ifMinus(true(), s(X), Y) -> 0() } Sub-proof: ---------- The following argument positions are usable: Uargs(c_5) = {1}, Uargs(c_7) = {1} TcT has computed the following constructor-based matrix interpretation satisfying not(EDA). [le](x1, x2) = [1] [0] = [1] [true] = [0] [s](x1) = [1] x1 + [4] [false] = [0] [minus](x1, x2) = [1] x1 + [0] [ifMinus](x1, x2, x3) = [1] x2 + [0] [le^#](x1, x2) = [0] [minus^#](x1, x2) = [2] x1 + [7] [c_5](x1, x2) = [1] x1 + [1] x2 + [0] [ifMinus^#](x1, x2, x3) = [7] x1 + [2] x2 + [0] [c_7](x1) = [1] x1 + [0] [quot^#](x1, x2) = [2] x1 + [7] The order satisfies the following ordering constraints: [le(0(), Y)] = [1] > [0] = [true()] [le(s(X), 0())] = [1] > [0] = [false()] [le(s(X), s(Y))] = [1] >= [1] = [le(X, Y)] [minus(0(), Y)] = [1] >= [1] = [0()] [minus(s(X), Y)] = [1] X + [4] >= [1] X + [4] = [ifMinus(le(s(X), Y), s(X), Y)] [ifMinus(true(), s(X), Y)] = [1] X + [4] > [1] = [0()] [ifMinus(false(), s(X), Y)] = [1] X + [4] >= [1] X + [4] = [s(minus(X, Y))] [minus^#(s(X), Y)] = [2] X + [15] >= [2] X + [15] = [c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y))] [ifMinus^#(false(), s(X), Y)] = [2] X + [8] > [2] X + [7] = [c_7(minus^#(X, Y))] [quot^#(s(X), s(Y))] = [2] X + [15] > [2] X + [7] = [minus^#(X, Y)] [quot^#(s(X), s(Y))] = [2] X + [15] > [2] X + [7] = [quot^#(minus(X, Y), s(Y))] We return to the main proof. Consider the set of all dependency pairs : { 1: minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , 2: ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , 3: quot^#(s(X), s(Y)) -> minus^#(X, Y) , 4: quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Processor 'matrix interpretation of dimension 1' induces the complexity certificate YES(?,O(n^1)) on application of dependency pairs {2,3,4}. These cover all (indirect) predecessors of dependency pairs {1,2,3,4}, their number of application is equally bounded. The dependency pairs are shifted into the weak component. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak DPs: { minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. { minus^#(s(X), Y) -> c_5(ifMinus^#(le(s(X), Y), s(X), Y), le^#(s(X), Y)) , ifMinus^#(false(), s(X), Y) -> c_7(minus^#(X, Y)) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) No rule is usable, rules are removed from the input problem. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Rules: Empty Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) Empty rules are trivially bounded We return to the main proof. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^1)). Strict DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) } Weak DPs: { minus^#(s(X), Y) -> le^#(s(X), Y) , minus^#(s(X), Y) -> ifMinus^#(le(s(X), Y), s(X), Y) , ifMinus^#(false(), s(X), Y) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(n^1)) We use the processor 'Small Polynomial Path Order (PS,1-bounded)' to orient following rules strictly. DPs: { 1: le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , 5: quot^#(s(X), s(Y)) -> minus^#(X, Y) } Sub-proof: ---------- The input was oriented with the instance of 'Small Polynomial Path Order (PS,1-bounded)' as induced by the safe mapping safe(le) = {1}, safe(0) = {}, safe(true) = {}, safe(s) = {1}, safe(false) = {}, safe(minus) = {}, safe(ifMinus) = {2, 3}, safe(le^#) = {1}, safe(c_3) = {}, safe(minus^#) = {}, safe(ifMinus^#) = {1, 2}, safe(quot^#) = {} and precedence quot^# > minus^#, le^# ~ minus^#, minus^# ~ ifMinus^# . Following symbols are considered recursive: {le^#, minus^#, ifMinus^#} The recursion depth is 1. Further, following argument filtering is employed: pi(le) = [1, 2], pi(0) = [], pi(true) = [], pi(s) = [1], pi(false) = [], pi(minus) = [], pi(ifMinus) = [1, 2, 3], pi(le^#) = [2], pi(c_3) = [1], pi(minus^#) = [2], pi(ifMinus^#) = [3], pi(quot^#) = [2] Usable defined function symbols are a subset of: {le^#, minus^#, ifMinus^#, quot^#} For your convenience, here are the satisfied ordering constraints: pi(le^#(s(X), s(Y))) = le^#(s(; Y);) > c_3(le^#(Y;);) = pi(c_3(le^#(X, Y))) pi(minus^#(s(X), Y)) = minus^#(Y;) >= le^#(Y;) = pi(le^#(s(X), Y)) pi(minus^#(s(X), Y)) = minus^#(Y;) >= ifMinus^#(Y;) = pi(ifMinus^#(le(s(X), Y), s(X), Y)) pi(ifMinus^#(false(), s(X), Y)) = ifMinus^#(Y;) >= minus^#(Y;) = pi(minus^#(X, Y)) pi(quot^#(s(X), s(Y))) = quot^#(s(; Y);) > minus^#(Y;) = pi(minus^#(X, Y)) pi(quot^#(s(X), s(Y))) = quot^#(s(; Y);) >= quot^#(s(; Y);) = pi(quot^#(minus(X, Y), s(Y))) The strictly oriented rules are moved into the weak component. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak DPs: { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> le^#(s(X), Y) , minus^#(s(X), Y) -> ifMinus^#(le(s(X), Y), s(X), Y) , ifMinus^#(false(), s(X), Y) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. { le^#(s(X), s(Y)) -> c_3(le^#(X, Y)) , minus^#(s(X), Y) -> le^#(s(X), Y) , minus^#(s(X), Y) -> ifMinus^#(le(s(X), Y), s(X), Y) , ifMinus^#(false(), s(X), Y) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> minus^#(X, Y) , quot^#(s(X), s(Y)) -> quot^#(minus(X, Y), s(Y)) } We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Weak Trs: { le(0(), Y) -> true() , le(s(X), 0()) -> false() , le(s(X), s(Y)) -> le(X, Y) , minus(0(), Y) -> 0() , minus(s(X), Y) -> ifMinus(le(s(X), Y), s(X), Y) , ifMinus(true(), s(X), Y) -> 0() , ifMinus(false(), s(X), Y) -> s(minus(X, Y)) } Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) No rule is usable, rules are removed from the input problem. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(1)). Rules: Empty Obligation: innermost runtime complexity Answer: YES(O(1),O(1)) Empty rules are trivially bounded Hurray, we answered YES(O(1),O(n^3))