0 CpxRelTRS
↳1 RelTrsToWeightedTrsProof (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), 1 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 8 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 564 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 113 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 6032 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 2008 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 193 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 67 ms)
↳32 CpxRNTS
↳33 FinalProof (⇔, 0 ms)
↳34 BOUNDS(1, n^1)
merge(Cons(x, xs), Nil) → Cons(x, xs)
merge(Cons(x', xs'), Cons(x, xs)) → merge[Ite](<=(x', x), Cons(x', xs'), Cons(x, xs))
merge(Nil, ys) → ys
goal(xs, ys) → merge(xs, ys)
<=(S(x), S(y)) → <=(x, y)
<=(0, y) → True
<=(S(x), 0) → False
merge[Ite](False, xs', Cons(x, xs)) → Cons(x, merge(xs', xs))
merge[Ite](True, Cons(x, xs), ys) → Cons(x, merge(xs, ys))
merge(Cons(x, xs), Nil) → Cons(x, xs) [1]
merge(Cons(x', xs'), Cons(x, xs)) → merge[Ite](<=(x', x), Cons(x', xs'), Cons(x, xs)) [1]
merge(Nil, ys) → ys [1]
goal(xs, ys) → merge(xs, ys) [1]
<=(S(x), S(y)) → <=(x, y) [0]
<=(0, y) → True [0]
<=(S(x), 0) → False [0]
merge[Ite](False, xs', Cons(x, xs)) → Cons(x, merge(xs', xs)) [0]
merge[Ite](True, Cons(x, xs), ys) → Cons(x, merge(xs, ys)) [0]
<= => lteq |
merge(Cons(x, xs), Nil) → Cons(x, xs) [1]
merge(Cons(x', xs'), Cons(x, xs)) → merge[Ite](lteq(x', x), Cons(x', xs'), Cons(x, xs)) [1]
merge(Nil, ys) → ys [1]
goal(xs, ys) → merge(xs, ys) [1]
lteq(S(x), S(y)) → lteq(x, y) [0]
lteq(0, y) → True [0]
lteq(S(x), 0) → False [0]
merge[Ite](False, xs', Cons(x, xs)) → Cons(x, merge(xs', xs)) [0]
merge[Ite](True, Cons(x, xs), ys) → Cons(x, merge(xs, ys)) [0]
merge(Cons(x, xs), Nil) → Cons(x, xs) [1]
merge(Cons(x', xs'), Cons(x, xs)) → merge[Ite](lteq(x', x), Cons(x', xs'), Cons(x, xs)) [1]
merge(Nil, ys) → ys [1]
goal(xs, ys) → merge(xs, ys) [1]
lteq(S(x), S(y)) → lteq(x, y) [0]
lteq(0, y) → True [0]
lteq(S(x), 0) → False [0]
merge[Ite](False, xs', Cons(x, xs)) → Cons(x, merge(xs', xs)) [0]
merge[Ite](True, Cons(x, xs), ys) → Cons(x, merge(xs, ys)) [0]
merge :: Cons:Nil → Cons:Nil → Cons:Nil Cons :: S:0 → Cons:Nil → Cons:Nil Nil :: Cons:Nil merge[Ite] :: True:False → Cons:Nil → Cons:Nil → Cons:Nil lteq :: S:0 → S:0 → True:False goal :: Cons:Nil → Cons:Nil → Cons:Nil S :: S:0 → S:0 0 :: S:0 True :: True:False False :: True:False |
(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:
merge
goal
lteq
merge[Ite]
lteq(v0, v1) → null_lteq [0]
merge[Ite](v0, v1, v2) → Nil [0]
null_lteq
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
True => 2
False => 1
null_lteq => 0
goal(z, z') -{ 1 }→ merge(xs, ys) :|: xs >= 0, z = xs, z' = ys, ys >= 0
lteq(z, z') -{ 0 }→ lteq(x, y) :|: z' = 1 + y, x >= 0, y >= 0, z = 1 + x
lteq(z, z') -{ 0 }→ 2 :|: y >= 0, z = 0, z' = y
lteq(z, z') -{ 0 }→ 1 :|: x >= 0, z = 1 + x, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
merge(z, z') -{ 1 }→ ys :|: z' = ys, ys >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](lteq(x'', y'), 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z = 1 + 0 + xs', xs' >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + xs) :|: xs >= 0, x1 >= 0, z' = 1 + 0 + xs, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, ys) :|: z = 2, xs >= 0, z' = 1 + x + xs, ys >= 0, x >= 0, z'' = ys
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs', xs) :|: xs >= 0, z = 1, xs' >= 0, x >= 0, z' = xs', z'' = 1 + x + xs
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ lteq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](lteq(x'', y'), 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
{ lteq } { merge[Ite], merge } { goal } |
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ lteq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](lteq(x'', y'), 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ lteq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](lteq(x'', y'), 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
lteq: runtime: ?, size: O(1) [2] |
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ lteq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](lteq(x'', y'), 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
lteq: runtime: O(1) [0], size: O(1) [2] |
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](s, 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
lteq: runtime: O(1) [0], size: O(1) [2] |
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](s, 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
lteq: runtime: O(1) [0], size: O(1) [2] merge[Ite]: runtime: ?, size: O(n1) [z' + z''] merge: runtime: ?, size: O(n1) [z + z'] |
goal(z, z') -{ 1 }→ merge(z, z') :|: z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ merge[Ite](s, 1 + (1 + x'') + xs', 1 + (1 + y') + xs) :|: s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 1 }→ merge[Ite](2, 1 + 0 + (z - 1), 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 1 }→ merge[Ite](1, 1 + (1 + x1) + xs', 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 1 }→ merge[Ite](0, 1 + x' + xs', 1 + x + xs) :|: xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(xs, z'') :|: z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
merge[Ite](z, z', z'') -{ 0 }→ 1 + x + merge(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
lteq: runtime: O(1) [0], size: O(1) [2] merge[Ite]: runtime: O(n1) [3 + z' + z''], size: O(n1) [z' + z''] merge: runtime: O(n1) [4 + z + z'], size: O(n1) [z + z'] |
goal(z, z') -{ 5 + z + z' }→ s4 :|: s4 >= 0, s4 <= 1 * z + 1 * z', z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 8 + x'' + xs + xs' + y' }→ s'' :|: s'' >= 0, s'' <= 1 * (1 + (1 + x'') + xs') + 1 * (1 + (1 + y') + xs), s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 5 + x + xs + z }→ s1 :|: s1 >= 0, s1 <= 1 * (1 + 0 + (z - 1)) + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 6 + x1 + xs' + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + x1) + xs') + 1 * (1 + 0 + (z' - 1)), z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 6 + x + x' + xs + xs' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + x' + xs') + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 4 + xs + z' }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
merge[Ite](z, z', z'') -{ 4 + xs + z'' }→ 1 + x + s6 :|: s6 >= 0, s6 <= 1 * xs + 1 * z'', z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
lteq: runtime: O(1) [0], size: O(1) [2] merge[Ite]: runtime: O(n1) [3 + z' + z''], size: O(n1) [z' + z''] merge: runtime: O(n1) [4 + z + z'], size: O(n1) [z + z'] |
goal(z, z') -{ 5 + z + z' }→ s4 :|: s4 >= 0, s4 <= 1 * z + 1 * z', z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 8 + x'' + xs + xs' + y' }→ s'' :|: s'' >= 0, s'' <= 1 * (1 + (1 + x'') + xs') + 1 * (1 + (1 + y') + xs), s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 5 + x + xs + z }→ s1 :|: s1 >= 0, s1 <= 1 * (1 + 0 + (z - 1)) + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 6 + x1 + xs' + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + x1) + xs') + 1 * (1 + 0 + (z' - 1)), z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 6 + x + x' + xs + xs' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + x' + xs') + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 4 + xs + z' }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
merge[Ite](z, z', z'') -{ 4 + xs + z'' }→ 1 + x + s6 :|: s6 >= 0, s6 <= 1 * xs + 1 * z'', z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
lteq: runtime: O(1) [0], size: O(1) [2] merge[Ite]: runtime: O(n1) [3 + z' + z''], size: O(n1) [z' + z''] merge: runtime: O(n1) [4 + z + z'], size: O(n1) [z + z'] goal: runtime: ?, size: O(n1) [z + z'] |
goal(z, z') -{ 5 + z + z' }→ s4 :|: s4 >= 0, s4 <= 1 * z + 1 * z', z >= 0, z' >= 0
lteq(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 2, z - 1 >= 0, z' - 1 >= 0
lteq(z, z') -{ 0 }→ 2 :|: z' >= 0, z = 0
lteq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
lteq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
merge(z, z') -{ 8 + x'' + xs + xs' + y' }→ s'' :|: s'' >= 0, s'' <= 1 * (1 + (1 + x'') + xs') + 1 * (1 + (1 + y') + xs), s >= 0, s <= 2, z = 1 + (1 + x'') + xs', xs >= 0, z' = 1 + (1 + y') + xs, xs' >= 0, y' >= 0, x'' >= 0
merge(z, z') -{ 5 + x + xs + z }→ s1 :|: s1 >= 0, s1 <= 1 * (1 + 0 + (z - 1)) + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, z - 1 >= 0, x >= 0
merge(z, z') -{ 6 + x1 + xs' + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + x1) + xs') + 1 * (1 + 0 + (z' - 1)), z' - 1 >= 0, x1 >= 0, z = 1 + (1 + x1) + xs', xs' >= 0
merge(z, z') -{ 6 + x + x' + xs + xs' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + x' + xs') + 1 * (1 + x + xs), xs >= 0, z' = 1 + x + xs, x' >= 0, xs' >= 0, x >= 0, z = 1 + x' + xs'
merge(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
merge(z, z') -{ 1 }→ 1 + x + xs :|: z = 1 + x + xs, xs >= 0, x >= 0, z' = 0
merge[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
merge[Ite](z, z', z'') -{ 4 + xs + z' }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
merge[Ite](z, z', z'') -{ 4 + xs + z'' }→ 1 + x + s6 :|: s6 >= 0, s6 <= 1 * xs + 1 * z'', z = 2, xs >= 0, z' = 1 + x + xs, z'' >= 0, x >= 0
lteq: runtime: O(1) [0], size: O(1) [2] merge[Ite]: runtime: O(n1) [3 + z' + z''], size: O(n1) [z' + z''] merge: runtime: O(n1) [4 + z + z'], size: O(n1) [z + z'] goal: runtime: O(n1) [5 + z + z'], size: O(n1) [z + z'] |