0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 CpxWeightedTrsRenamingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxWeightedTrs
↳5 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳6 CpxTypedWeightedTrs
↳7 CompletionProof (UPPER BOUND(ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳10 CpxTypedWeightedCompleteTrs
↳11 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 291 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 83 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 7 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 463 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 119 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 2143 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 351 ms)
↳32 CpxRNTS
↳33 FinalProof (⇔, 0 ms)
↳34 BOUNDS(1, n^3)
+(0, y) → y
+(s(x), y) → s(+(x, y))
+(p(x), y) → p(+(x, y))
minus(0) → 0
minus(s(x)) → p(minus(x))
minus(p(x)) → s(minus(x))
*(0, y) → 0
*(s(x), y) → +(*(x, y), y)
*(p(x), y) → +(*(x, y), minus(y))
+(0, y) → y [1]
+(s(x), y) → s(+(x, y)) [1]
+(p(x), y) → p(+(x, y)) [1]
minus(0) → 0 [1]
minus(s(x)) → p(minus(x)) [1]
minus(p(x)) → s(minus(x)) [1]
*(0, y) → 0 [1]
*(s(x), y) → +(*(x, y), y) [1]
*(p(x), y) → +(*(x, y), minus(y)) [1]
+ => plus |
* => times |
plus(0, y) → y [1]
plus(s(x), y) → s(plus(x, y)) [1]
plus(p(x), y) → p(plus(x, y)) [1]
minus(0) → 0 [1]
minus(s(x)) → p(minus(x)) [1]
minus(p(x)) → s(minus(x)) [1]
times(0, y) → 0 [1]
times(s(x), y) → plus(times(x, y), y) [1]
times(p(x), y) → plus(times(x, y), minus(y)) [1]
plus(0, y) → y [1]
plus(s(x), y) → s(plus(x, y)) [1]
plus(p(x), y) → p(plus(x, y)) [1]
minus(0) → 0 [1]
minus(s(x)) → p(minus(x)) [1]
minus(p(x)) → s(minus(x)) [1]
times(0, y) → 0 [1]
times(s(x), y) → plus(times(x, y), y) [1]
times(p(x), y) → plus(times(x, y), minus(y)) [1]
plus :: 0:s:p → 0:s:p → 0:s:p 0 :: 0:s:p s :: 0:s:p → 0:s:p p :: 0:s:p → 0:s:p minus :: 0:s:p → 0:s:p times :: 0:s:p → 0:s:p → 0:s:p |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
none
(c) The following functions are completely defined:
times
minus
plus
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
0 => 0
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 }→ 1 + minus(x) :|: x >= 0, z = 1 + x
plus(z, z') -{ 1 }→ y :|: y >= 0, z = 0, z' = y
plus(z, z') -{ 1 }→ 1 + plus(x, y) :|: x >= 0, y >= 0, z = 1 + x, z' = y
times(z, z') -{ 2 }→ plus(plus(times(x', y), y), y) :|: x' >= 0, y >= 0, z = 1 + (1 + x'), z' = y
times(z, z') -{ 2 }→ plus(plus(times(x'', y), minus(y)), y) :|: y >= 0, x'' >= 0, z = 1 + (1 + x''), z' = y
times(z, z') -{ 3 }→ plus(plus(times(x1, 0), 0), 0) :|: z = 1 + (1 + x1), x1 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(x1, 1 + x5), 1 + x5), 1 + minus(x5)) :|: z = 1 + (1 + x1), x1 >= 0, x5 >= 0, z' = 1 + x5
times(z, z') -{ 3 }→ plus(plus(times(x1, 1 + x6), 1 + x6), 1 + minus(x6)) :|: z' = 1 + x6, z = 1 + (1 + x1), x1 >= 0, x6 >= 0
times(z, z') -{ 3 }→ plus(plus(times(x2, 0), minus(0)), 0) :|: z = 1 + (1 + x2), x2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(x2, 1 + x7), minus(1 + x7)), 1 + minus(x7)) :|: z' = 1 + x7, z = 1 + (1 + x2), x7 >= 0, x2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(x2, 1 + x8), minus(1 + x8)), 1 + minus(x8)) :|: z = 1 + (1 + x2), z' = 1 + x8, x8 >= 0, x2 >= 0
times(z, z') -{ 2 }→ plus(0, y) :|: z = 1 + 0, y >= 0, z' = y
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(x3)) :|: z' = 1 + x3, z = 1 + 0, x3 >= 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(x4)) :|: x4 >= 0, z = 1 + 0, z' = 1 + x4
times(z, z') -{ 1 }→ 0 :|: y >= 0, z = 0, z' = y
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 }→ 1 + minus(z - 1) :|: z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), minus(z')), z') :|: z' >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), minus(0)), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), minus(1 + (z' - 1))), 1 + minus(z' - 1)) :|: z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + minus(z' - 1)) :|: z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(z' - 1)) :|: z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
{ minus } { plus } { times } |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 }→ 1 + minus(z - 1) :|: z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), minus(z')), z') :|: z' >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), minus(0)), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), minus(1 + (z' - 1))), 1 + minus(z' - 1)) :|: z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + minus(z' - 1)) :|: z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(z' - 1)) :|: z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 }→ 1 + minus(z - 1) :|: z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), minus(z')), z') :|: z' >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), minus(0)), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), minus(1 + (z' - 1))), 1 + minus(z' - 1)) :|: z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + minus(z' - 1)) :|: z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(z' - 1)) :|: z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: ?, size: O(n1) [z] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 }→ 1 + minus(z - 1) :|: z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), minus(z')), z') :|: z' >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), minus(0)), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), minus(1 + (z' - 1))), 1 + minus(z' - 1)) :|: z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + minus(z' - 1)) :|: z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 }→ plus(0, 1 + minus(z' - 1)) :|: z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 + z' }→ plus(0, 1 + s'') :|: s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 + z' }→ plus(0, 1 + s'') :|: s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] plus: runtime: ?, size: O(n1) [z + z'] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 2 }→ plus(0, z') :|: z = 1 + 0, z' >= 0
times(z, z') -{ 3 }→ plus(0, 0) :|: z = 1 + 0, z' = 0
times(z, z') -{ 3 + z' }→ plus(0, 1 + s'') :|: s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s5 :|: s5 >= 0, s5 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
times(z, z') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * 0 + 1 * z', z = 1 + 0, z' >= 0
times(z, z') -{ 4 }→ s7 :|: s7 >= 0, s7 <= 1 * 0 + 1 * 0, z = 1 + 0, z' = 0
times(z, z') -{ 4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * (1 + s''), s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s5 :|: s5 >= 0, s5 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
times(z, z') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * 0 + 1 * z', z = 1 + 0, z' >= 0
times(z, z') -{ 4 }→ s7 :|: s7 >= 0, s7 <= 1 * 0 + 1 * 0, z = 1 + 0, z' = 0
times(z, z') -{ 4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * (1 + s''), s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] times: runtime: ?, size: O(n2) [2·z·z' + 3·z'] |
minus(z) -{ 1 }→ 0 :|: z = 0
minus(z) -{ 1 + z }→ 1 + s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s5 :|: s5 >= 0, s5 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
times(z, z') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * 0 + 1 * z', z = 1 + 0, z' >= 0
times(z, z') -{ 4 }→ s7 :|: s7 >= 0, s7 <= 1 * 0 + 1 * 0, z = 1 + 0, z' = 0
times(z, z') -{ 4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * (1 + s''), s'' >= 0, s'' <= 1 * (z' - 1), z = 1 + 0, z' - 1 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, z'), s'), z') :|: s' >= 0, s' <= 1 * z', z' >= 0, z - 2 >= 0
times(z, z') -{ 2 }→ plus(plus(times(z - 2, z'), z'), z') :|: z - 2 >= 0, z' >= 0
times(z, z') -{ 4 }→ plus(plus(times(z - 2, 0), s2), 0) :|: s2 >= 0, s2 <= 1 * 0, z - 2 >= 0, z' = 0
times(z, z') -{ 3 }→ plus(plus(times(z - 2, 0), 0), 0) :|: z - 2 >= 0, z' = 0
times(z, z') -{ 4 + 2·z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), s3), 1 + s4) :|: s3 >= 0, s3 <= 1 * (1 + (z' - 1)), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z - 2 >= 0
times(z, z') -{ 3 + z' }→ plus(plus(times(z - 2, 1 + (z' - 1)), 1 + (z' - 1)), 1 + s1) :|: s1 >= 0, s1 <= 1 * (z' - 1), z - 2 >= 0, z' - 1 >= 0
times(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus: runtime: O(n1) [1 + z], size: O(n1) [z] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] times: runtime: O(n3) [12 + 31·z + z·z' + 16·z2·z' + z'], size: O(n2) [2·z·z' + 3·z'] |