0 CpxTRS
↳1 NestedDefinedSymbolProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxTRS
↳3 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxWeightedTrs
↳5 CpxWeightedTrsRenamingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳6 CpxWeightedTrs
↳7 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedTrs
↳9 CompletionProof (UPPER BOUND(ID), 4 ms)
↳10 CpxTypedWeightedCompleteTrs
↳11 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxTypedWeightedCompleteTrs
↳13 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳14 CpxRNTS
↳15 InliningProof (UPPER BOUND(ID), 198 ms)
↳16 CpxRNTS
↳17 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳18 CpxRNTS
↳19 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 464 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 194 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 218 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 69 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 159 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 44 ms)
↳36 CpxRNTS
↳37 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳38 CpxRNTS
↳39 IntTrsBoundProof (UPPER BOUND(ID), 459 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 120 ms)
↳42 CpxRNTS
↳43 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳44 CpxRNTS
↳45 IntTrsBoundProof (UPPER BOUND(ID), 398 ms)
↳46 CpxRNTS
↳47 IntTrsBoundProof (UPPER BOUND(ID), 127 ms)
↳48 CpxRNTS
↳49 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳50 CpxRNTS
↳51 IntTrsBoundProof (UPPER BOUND(ID), 704 ms)
↳52 CpxRNTS
↳53 IntTrsBoundProof (UPPER BOUND(ID), 301 ms)
↳54 CpxRNTS
↳55 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳56 CpxRNTS
↳57 IntTrsBoundProof (UPPER BOUND(ID), 429 ms)
↳58 CpxRNTS
↳59 IntTrsBoundProof (UPPER BOUND(ID), 110 ms)
↳60 CpxRNTS
↳61 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳62 CpxRNTS
↳63 IntTrsBoundProof (UPPER BOUND(ID), 470 ms)
↳64 CpxRNTS
↳65 IntTrsBoundProof (UPPER BOUND(ID), 185 ms)
↳66 CpxRNTS
↳67 FinalProof (⇔, 0 ms)
↳68 BOUNDS(1, n^2)
+(0, y) → y
+(s(x), y) → s(+(x, y))
++(nil, ys) → ys
++(:(x, xs), ys) → :(x, ++(xs, ys))
sum(:(x, nil)) → :(x, nil)
sum(:(x, :(y, xs))) → sum(:(+(x, y), xs))
sum(++(xs, :(x, :(y, ys)))) → sum(++(xs, sum(:(x, :(y, ys)))))
-(x, 0) → x
-(0, s(y)) → 0
-(s(x), s(y)) → -(x, y)
quot(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(-(x, y), s(y)))
length(nil) → 0
length(:(x, xs)) → s(length(xs))
hd(:(x, xs)) → x
avg(xs) → quot(hd(sum(xs)), length(xs))
++(:(x, xs), ys) → :(x, ++(xs, ys))
-(s(x), s(y)) → -(x, y)
++(nil, ys) → ys
length(:(x, xs)) → s(length(xs))
quot(0, s(y)) → 0
avg(xs) → quot(hd(sum(xs)), length(xs))
+(s(x), y) → s(+(x, y))
-(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(-(x, y), s(y)))
-(x, 0) → x
sum(:(x, :(y, xs))) → sum(:(+(x, y), xs))
sum(:(x, nil)) → :(x, nil)
length(nil) → 0
+(0, y) → y
hd(:(x, xs)) → x
++(:(x, xs), ys) → :(x, ++(xs, ys)) [1]
-(s(x), s(y)) → -(x, y) [1]
++(nil, ys) → ys [1]
length(:(x, xs)) → s(length(xs)) [1]
quot(0, s(y)) → 0 [1]
avg(xs) → quot(hd(sum(xs)), length(xs)) [1]
+(s(x), y) → s(+(x, y)) [1]
-(0, s(y)) → 0 [1]
quot(s(x), s(y)) → s(quot(-(x, y), s(y))) [1]
-(x, 0) → x [1]
sum(:(x, :(y, xs))) → sum(:(+(x, y), xs)) [1]
sum(:(x, nil)) → :(x, nil) [1]
length(nil) → 0 [1]
+(0, y) → y [1]
hd(:(x, xs)) → x [1]
- => minus |
+ => plus |
++(:(x, xs), ys) → :(x, ++(xs, ys)) [1]
minus(s(x), s(y)) → minus(x, y) [1]
++(nil, ys) → ys [1]
length(:(x, xs)) → s(length(xs)) [1]
quot(0, s(y)) → 0 [1]
avg(xs) → quot(hd(sum(xs)), length(xs)) [1]
plus(s(x), y) → s(plus(x, y)) [1]
minus(0, s(y)) → 0 [1]
quot(s(x), s(y)) → s(quot(minus(x, y), s(y))) [1]
minus(x, 0) → x [1]
sum(:(x, :(y, xs))) → sum(:(plus(x, y), xs)) [1]
sum(:(x, nil)) → :(x, nil) [1]
length(nil) → 0 [1]
plus(0, y) → y [1]
hd(:(x, xs)) → x [1]
++(:(x, xs), ys) → :(x, ++(xs, ys)) [1]
minus(s(x), s(y)) → minus(x, y) [1]
++(nil, ys) → ys [1]
length(:(x, xs)) → s(length(xs)) [1]
quot(0, s(y)) → 0 [1]
avg(xs) → quot(hd(sum(xs)), length(xs)) [1]
plus(s(x), y) → s(plus(x, y)) [1]
minus(0, s(y)) → 0 [1]
quot(s(x), s(y)) → s(quot(minus(x, y), s(y))) [1]
minus(x, 0) → x [1]
sum(:(x, :(y, xs))) → sum(:(plus(x, y), xs)) [1]
sum(:(x, nil)) → :(x, nil) [1]
length(nil) → 0 [1]
plus(0, y) → y [1]
hd(:(x, xs)) → x [1]
++ :: ::nil → ::nil → ::nil : :: s:0 → ::nil → ::nil minus :: s:0 → s:0 → s:0 s :: s:0 → s:0 nil :: ::nil length :: ::nil → s:0 quot :: s:0 → s:0 → s:0 0 :: s:0 avg :: ::nil → s:0 hd :: ::nil → s:0 sum :: ::nil → ::nil plus :: s:0 → s:0 → s:0 |
(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:
++
quot
avg
minus
hd
sum
length
plus
hd(v0) → 0 [0]
sum(v0) → nil [0]
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 |
nil => 0
0 => 0
++(z, z') -{ 1 }→ ys :|: z' = ys, ys >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, ys) :|: z = 1 + x + xs, xs >= 0, z' = ys, ys >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(hd(0), 0) :|: z = 0
avg(z) -{ 2 }→ quot(hd(0), 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs''
avg(z) -{ 3 }→ quot(hd(1 + x'' + 0), 1 + length(0)) :|: x'' >= 0, z = 1 + x'' + 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ x :|: x >= 0, z = x, z' = 0
minus(z, z') -{ 1 }→ minus(x, y) :|: z' = 1 + y, x >= 0, y >= 0, z = 1 + x
minus(z, z') -{ 1 }→ 0 :|: z' = 1 + y, y >= 0, z = 0
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
quot(z, z') -{ 1 }→ 0 :|: z' = 1 + y, y >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(x, 1 + 0) :|: x >= 0, z' = 1 + 0, z = 1 + x
quot(z, z') -{ 2 }→ 1 + quot(minus(x2, y''), 1 + (1 + y'')) :|: z' = 1 + (1 + y''), z = 1 + (1 + x2), y'' >= 0, x2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + y1)) :|: y1 >= 0, z' = 1 + (1 + y1), z = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
sum(z) -{ 1 }→ 1 + x + 0 :|: x >= 0, z = 1 + x + 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
++(z, z') -{ 1 }→ ys :|: z' = ys, ys >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, ys) :|: z = 1 + x + xs, xs >= 0, z' = ys, ys >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: x'' >= 0, z = 1 + x'' + 0, 1 + x'' + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: x'' >= 0, z = 1 + x'' + 0, v0 >= 0, 1 + x'' + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ x :|: x >= 0, z = x, z' = 0
minus(z, z') -{ 1 }→ minus(x, y) :|: z' = 1 + y, x >= 0, y >= 0, z = 1 + x
minus(z, z') -{ 1 }→ 0 :|: z' = 1 + y, y >= 0, z = 0
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
quot(z, z') -{ 1 }→ 0 :|: z' = 1 + y, y >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(x, 1 + 0) :|: x >= 0, z' = 1 + 0, z = 1 + x
quot(z, z') -{ 2 }→ 1 + quot(minus(x2, y''), 1 + (1 + y'')) :|: z' = 1 + (1 + y''), z = 1 + (1 + x2), y'' >= 0, x2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + y1)) :|: y1 >= 0, z' = 1 + (1 + y1), z = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
sum(z) -{ 1 }→ 1 + x + 0 :|: x >= 0, z = 1 + x + 0
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
{ minus } { length } { hd } { ++ } { plus } { quot } { sum } { avg } |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 2 }→ 1 + quot(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 4 }→ quot(x, 1 + length(0)) :|: z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 3 }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + length(1 + y' + xs')) :|: z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 2 }→ quot(0, 1 + length(xs'')) :|: x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ quot(0, 1 + length(0)) :|: z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 1 }→ 1 + length(xs) :|: z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: ?, size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 1 }→ 1 + x + ++(xs, z') :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: ?, size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 + xs' + y' }→ quot(hd(sum(1 + plus(x', y') + xs')), 1 + s1) :|: s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 }→ 1 + plus(z - 1, z') :|: z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 2 }→ sum(1 + (1 + plus(x3, y)) + xs) :|: xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 5 }→ quot(x, 1 + s2) :|: s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
avg(z) -{ 2 }→ quot(0, 0) :|: z = 0, v0 >= 0, 0 = v0
avg(z) -{ 4 }→ quot(0, 1 + s3) :|: s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 3 + xs'' }→ quot(0, 1 + s4) :|: s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 1 + z' }→ 1 + quot(s', 1 + (1 + (z' - 2))) :|: s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
quot(z, z') -{ 2 }→ 1 + quot(0, 1 + (1 + (z' - 2))) :|: z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 2 }→ 1 + quot(z - 1, 1 + 0) :|: z - 1 >= 0, z' = 1 + 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] sum: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 6 + x' + xs' + y' }→ quot(hd(sum(1 + s8 + xs')), 1 + s1) :|: s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 2 }→ sum(1 + y + xs) :|: xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 3 + x3 }→ sum(1 + (1 + s7) + xs) :|: s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] sum: runtime: O(n2) [3 + 2·z + z2], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 14 + s1·s19 + 3·s19 + 4·s8 + 2·s8·xs' + s82 + x' + 5·xs' + xs'2 + y' }→ s20 :|: s18 >= 0, s18 <= 1 * (1 + s8 + xs'), s19 >= 0, s19 <= 1 * s18, s20 >= 0, s20 <= 1 * s19, s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 14 + 6·s7 + 2·s7·xs + s72 + x3 + 6·xs + xs2 }→ s16 :|: s16 >= 0, s16 <= 1 * (1 + (1 + s7) + xs), s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 8 + 4·xs + 2·xs·y + xs2 + 4·y + y2 }→ s17 :|: s17 >= 0, s17 <= 1 * (1 + y + xs), xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] sum: runtime: O(n2) [3 + 2·z + z2], size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 14 + s1·s19 + 3·s19 + 4·s8 + 2·s8·xs' + s82 + x' + 5·xs' + xs'2 + y' }→ s20 :|: s18 >= 0, s18 <= 1 * (1 + s8 + xs'), s19 >= 0, s19 <= 1 * s18, s20 >= 0, s20 <= 1 * s19, s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 14 + 6·s7 + 2·s7·xs + s72 + x3 + 6·xs + xs2 }→ s16 :|: s16 >= 0, s16 <= 1 * (1 + (1 + s7) + xs), s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 8 + 4·xs + 2·xs·y + xs2 + 4·y + y2 }→ s17 :|: s17 >= 0, s17 <= 1 * (1 + y + xs), xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] sum: runtime: O(n2) [3 + 2·z + z2], size: O(n1) [z] avg: runtime: ?, size: O(n1) [z] |
++(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
++(z, z') -{ 2 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * xs + 1 * z', z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
avg(z) -{ 6 + s2·x + 3·x }→ s12 :|: s12 >= 0, s12 <= 1 * x, s2 >= 0, s2 <= 1 * 0, z - 1 >= 0, 1 + (z - 1) + 0 = 1 + x + xs, xs >= 0, x >= 0
avg(z) -{ 5 }→ s13 :|: s13 >= 0, s13 <= 1 * 0, s3 >= 0, s3 <= 1 * 0, z - 1 >= 0, v0 >= 0, 1 + (z - 1) + 0 = v0
avg(z) -{ 4 + xs'' }→ s14 :|: s14 >= 0, s14 <= 1 * 0, s4 >= 0, s4 <= 1 * xs'', x1 >= 0, xs'' >= 0, z = 1 + x1 + xs'', v0 >= 0, 0 = v0
avg(z) -{ 3 }→ s15 :|: s15 >= 0, s15 <= 1 * 0, z = 0, v0 >= 0, 0 = v0
avg(z) -{ 14 + s1·s19 + 3·s19 + 4·s8 + 2·s8·xs' + s82 + x' + 5·xs' + xs'2 + y' }→ s20 :|: s18 >= 0, s18 <= 1 * (1 + s8 + xs'), s19 >= 0, s19 <= 1 * s18, s20 >= 0, s20 <= 1 * s19, s8 >= 0, s8 <= 1 * x' + 1 * y', s1 >= 0, s1 <= 1 * (1 + y' + xs'), z = 1 + x' + (1 + y' + xs'), x' >= 0, xs' >= 0, y' >= 0
hd(z) -{ 1 }→ x :|: z = 1 + x + xs, xs >= 0, x >= 0
hd(z) -{ 0 }→ 0 :|: z >= 0
length(z) -{ 1 }→ 0 :|: z = 0
length(z) -{ 2 + xs }→ 1 + s'' :|: s'' >= 0, s'' <= 1 * xs, z = 1 + x + xs, xs >= 0, x >= 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1 * (z - 1), z - 1 >= 0, z' - 1 >= 0
minus(z, z') -{ 1 }→ z :|: z >= 0, z' = 0
minus(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
plus(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
plus(z, z') -{ 1 + z }→ 1 + s6 :|: s6 >= 0, s6 <= 1 * (z - 1) + 1 * z', z - 1 >= 0, z' >= 0
quot(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
quot(z, z') -{ 3 }→ 1 + s10 :|: s10 >= 0, s10 <= 1 * 0, z' - 2 >= 0, z = 1 + 0
quot(z, z') -{ 3·z }→ 1 + s11 :|: s11 >= 0, s11 <= 1 * (z - 1), z - 1 >= 0, z' = 1 + 0
quot(z, z') -{ 2 + 2·s' + s'·z' + z' }→ 1 + s9 :|: s9 >= 0, s9 <= 1 * s', s' >= 0, s' <= 1 * (z - 2), z' - 2 >= 0, z - 2 >= 0
sum(z) -{ 14 + 6·s7 + 2·s7·xs + s72 + x3 + 6·xs + xs2 }→ s16 :|: s16 >= 0, s16 <= 1 * (1 + (1 + s7) + xs), s7 >= 0, s7 <= 1 * x3 + 1 * y, xs >= 0, y >= 0, z = 1 + (1 + x3) + (1 + y + xs), x3 >= 0
sum(z) -{ 8 + 4·xs + 2·xs·y + xs2 + 4·y + y2 }→ s17 :|: s17 >= 0, s17 <= 1 * (1 + y + xs), xs >= 0, z = 1 + 0 + (1 + y + xs), y >= 0
sum(z) -{ 0 }→ 0 :|: z >= 0
sum(z) -{ 1 }→ 1 + (z - 1) + 0 :|: z - 1 >= 0
minus: runtime: O(n1) [1 + z'], size: O(n1) [z] length: runtime: O(n1) [1 + z], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] ++: runtime: O(n1) [1 + z], size: O(n1) [z + z'] plus: runtime: O(n1) [1 + z], size: O(n1) [z + z'] quot: runtime: O(n2) [1 + 2·z + z·z'], size: O(n1) [z] sum: runtime: O(n2) [3 + 2·z + z2], size: O(n1) [z] avg: runtime: O(n2) [32 + 23·z + 11·z2], size: O(n1) [z] |