YES(O(1),O(n^2)) We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , le(s(x), s(y)) -> le(x, y) , minus(x, 0()) -> x , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [le](x1, x2) = [0] [0] = [0] [true] = [0] [s](x1) = [1] x1 + [0] [false] = [0] [minus](x1, x2) = [1] x1 + [1] [mod](x1, x2) = [1] x1 + [0] [if_mod](x1, x2, x3) = [1] x1 + [1] x2 + [0] The following symbols are considered usable {le, minus, mod, if_mod} 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(x, 0())] = [1] x + [1] > [1] x + [0] = [x] [minus(s(x), s(y))] = [1] x + [1] >= [1] x + [1] = [minus(x, y)] [mod(0(), y)] = [0] >= [0] = [0()] [mod(s(x), 0())] = [1] x + [0] >= [0] = [0()] [mod(s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = [1] x + [0] ? [1] x + [1] = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [s(x)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , le(s(x), s(y)) -> le(x, y) , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Weak Trs: { minus(x, 0()) -> x } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [le](x1, x2) = [4] [0] = [0] [true] = [0] [s](x1) = [1] x1 + [0] [false] = [0] [minus](x1, x2) = [1] x1 + [0] [mod](x1, x2) = [1] x1 + [0] [if_mod](x1, x2, x3) = [1] x1 + [1] x2 + [0] The following symbols are considered usable {le, minus, mod, if_mod} The order satisfies the following ordering constraints: [le(0(), y)] = [4] > [0] = [true()] [le(s(x), 0())] = [4] > [0] = [false()] [le(s(x), s(y))] = [4] >= [4] = [le(x, y)] [minus(x, 0())] = [1] x + [0] >= [1] x + [0] = [x] [minus(s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [minus(x, y)] [mod(0(), y)] = [0] >= [0] = [0()] [mod(s(x), 0())] = [1] x + [0] >= [0] = [0()] [mod(s(x), s(y))] = [1] x + [0] ? [1] x + [4] = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [s(x)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(s(x), s(y)) -> le(x, y) , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Weak Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , minus(x, 0()) -> x } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [le](x1, x2) = [4] [0] = [0] [true] = [1] [s](x1) = [1] x1 + [0] [false] = [0] [minus](x1, x2) = [1] x1 + [0] [mod](x1, x2) = [1] x1 + [0] [if_mod](x1, x2, x3) = [1] x1 + [1] x2 + [0] The following symbols are considered usable {le, minus, mod, if_mod} The order satisfies the following ordering constraints: [le(0(), y)] = [4] > [1] = [true()] [le(s(x), 0())] = [4] > [0] = [false()] [le(s(x), s(y))] = [4] >= [4] = [le(x, y)] [minus(x, 0())] = [1] x + [0] >= [1] x + [0] = [x] [minus(s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [minus(x, y)] [mod(0(), y)] = [0] >= [0] = [0()] [mod(s(x), 0())] = [1] x + [0] >= [0] = [0()] [mod(s(x), s(y))] = [1] x + [0] ? [1] x + [4] = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = [1] x + [1] > [1] x + [0] = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = [1] x + [0] >= [1] x + [0] = [s(x)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(s(x), s(y)) -> le(x, y) , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Weak Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , minus(x, 0()) -> x , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [le](x1, x2) = [4] [0] = [0] [true] = [3] [s](x1) = [1] x1 + [5] [false] = [3] [minus](x1, x2) = [1] x1 + [0] [mod](x1, x2) = [1] x1 + [0] [if_mod](x1, x2, x3) = [1] x1 + [1] x2 + [0] The following symbols are considered usable {le, minus, mod, if_mod} The order satisfies the following ordering constraints: [le(0(), y)] = [4] > [3] = [true()] [le(s(x), 0())] = [4] > [3] = [false()] [le(s(x), s(y))] = [4] >= [4] = [le(x, y)] [minus(x, 0())] = [1] x + [0] >= [1] x + [0] = [x] [minus(s(x), s(y))] = [1] x + [5] > [1] x + [0] = [minus(x, y)] [mod(0(), y)] = [0] >= [0] = [0()] [mod(s(x), 0())] = [1] x + [5] > [0] = [0()] [mod(s(x), s(y))] = [1] x + [5] ? [1] x + [9] = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = [1] x + [8] > [1] x + [0] = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = [1] x + [8] > [1] x + [5] = [s(x)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(s(x), s(y)) -> le(x, y) , mod(0(), y) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) } Weak Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , minus(x, 0()) -> x , minus(s(x), s(y)) -> minus(x, y) , mod(s(x), 0()) -> 0() , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) The weightgap principle applies (using the following nonconstant growth matrix-interpretation) The following argument positions are usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following matrix interpretation satisfying not(EDA) and not(IDA(1)). [le](x1, x2) = [0] [0] = [0] [true] = [0] [s](x1) = [1] x1 + [1] [false] = [0] [minus](x1, x2) = [1] x1 + [0] [mod](x1, x2) = [1] x1 + [1] [if_mod](x1, x2, x3) = [1] x1 + [1] x2 + [0] The following symbols are considered usable {le, minus, mod, if_mod} 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(x, 0())] = [1] x + [0] >= [1] x + [0] = [x] [minus(s(x), s(y))] = [1] x + [1] > [1] x + [0] = [minus(x, y)] [mod(0(), y)] = [1] > [0] = [0()] [mod(s(x), 0())] = [1] x + [2] > [0] = [0()] [mod(s(x), s(y))] = [1] x + [2] > [1] x + [1] = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = [1] x + [1] >= [1] x + [1] = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = [1] x + [1] >= [1] x + [1] = [s(x)] Further, it can be verified that all rules not oriented are covered by the weightgap condition. We are left with following problem, upon which TcT provides the certificate YES(O(1),O(n^2)). Strict Trs: { le(s(x), s(y)) -> le(x, y) } Weak Trs: { le(0(), y) -> true() , le(s(x), 0()) -> false() , minus(x, 0()) -> x , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Obligation: runtime complexity Answer: YES(O(1),O(n^2)) We use the processor 'polynomial interpretation' to orient following rules strictly. Trs: { le(s(x), s(y)) -> le(x, y) } The induced complexity on above rules (modulo remaining rules) is YES(?,O(n^2)) . These rules are moved into the corresponding weak component(s). Sub-proof: ---------- The following argument positions are considered usable: Uargs(mod) = {1}, Uargs(if_mod) = {1} TcT has computed the following constructor-restricted polynomial interpretation. [le](x1, x2) = 2*x1 [0]() = 1 [true]() = 0 [s](x1) = 1 + x1 [false]() = 0 [minus](x1, x2) = x1 [mod](x1, x2) = 2*x1 + 2*x1*x2 + 2*x2 [if_mod](x1, x2, x3) = x1 + 2*x2 + 2*x2*x3 The following symbols are considered usable {le, minus, mod, if_mod} This order satisfies the following ordering constraints. [le(0(), y)] = 2 > = [true()] [le(s(x), 0())] = 2 + 2*x > = [false()] [le(s(x), s(y))] = 2 + 2*x > 2*x = [le(x, y)] [minus(x, 0())] = x >= x = [x] [minus(s(x), s(y))] = 1 + x > x = [minus(x, y)] [mod(0(), y)] = 2 + 4*y > 1 = [0()] [mod(s(x), 0())] = 6 + 4*x > 1 = [0()] [mod(s(x), s(y))] = 6 + 4*x + 4*y + 2*x*y > 4*y + 4 + 4*x + 2*x*y = [if_mod(le(y, x), s(x), s(y))] [if_mod(true(), s(x), s(y))] = 4 + 4*x + 2*y + 2*x*y > 4*x + 2*x*y + 2 + 2*y = [mod(minus(x, y), s(y))] [if_mod(false(), s(x), s(y))] = 4 + 4*x + 2*y + 2*x*y > 1 + x = [s(x)] We return to the main proof. 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(x, 0()) -> x , minus(s(x), s(y)) -> minus(x, y) , mod(0(), y) -> 0() , mod(s(x), 0()) -> 0() , mod(s(x), s(y)) -> if_mod(le(y, x), s(x), s(y)) , if_mod(true(), s(x), s(y)) -> mod(minus(x, y), s(y)) , if_mod(false(), s(x), s(y)) -> s(x) } Obligation: runtime complexity Answer: YES(O(1),O(1)) Empty rules are trivially bounded Hurray, we answered YES(O(1),O(n^2))