0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 7 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 160 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), 403 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 42 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 331 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 210 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 1447 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 1772 ms)
↳32 CpxRNTS
↳33 FinalProof (⇔, 0 ms)
↳34 BOUNDS(1, EXP)
merge(nil, y) → y
merge(x, nil) → x
merge(.(x, y), .(u, v)) → if(<(x, u), .(x, merge(y, .(u, v))), .(u, merge(.(x, y), v)))
++(nil, y) → y
++(.(x, y), z) → .(x, ++(y, z))
if(true, x, y) → x
if(false, x, y) → x
merge(nil, y) → y [1]
merge(x, nil) → x [1]
merge(.(x, y), .(u, v)) → if(<(x, u), .(x, merge(y, .(u, v))), .(u, merge(.(x, y), v))) [1]
++(nil, y) → y [1]
++(.(x, y), z) → .(x, ++(y, z)) [1]
if(true, x, y) → x [1]
if(false, x, y) → x [1]
merge(nil, y) → y [1]
merge(x, nil) → x [1]
merge(.(x, y), .(u, v)) → if(<(x, u), .(x, merge(y, .(u, v))), .(u, merge(.(x, y), v))) [1]
++(nil, y) → y [1]
++(.(x, y), z) → .(x, ++(y, z)) [1]
if(true, x, y) → x [1]
if(false, x, y) → x [1]
merge :: nil:. → nil:. → nil:. nil :: nil:. . :: a → nil:. → nil:. if :: <:true:false → nil:. → nil:. → nil:. < :: a → a → <:true:false ++ :: nil:. → nil:. → nil:. 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
if
if(v0, v1, v2) → nil [0]
const
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
true => 1
false => 0
const => 0
++(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z) :|: z'' = z, z >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 1
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: v0 >= 0, z1 = v2, v1 >= 0, z'' = v1, v2 >= 0, z' = v0
merge(z', z'') -{ 1 }→ x :|: z'' = 0, z' = x, x >= 0
merge(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + 0), 1 + u + merge(1 + x' + y', 0)), 1 + u + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), z'' = 1 + u + 0, x >= 0, x' >= 0, y' >= 0, u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + (1 + u + 0), 1 + u + (1 + x + 0)) :|: z'' = 1 + u + 0, x >= 0, z' = 1 + x + 0, u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + (1 + u + (1 + u' + v')), 1 + u + if(1 + x + u', 1 + x + merge(0, 1 + u' + v'), 1 + u' + merge(1 + x + 0, v'))) :|: x >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, z' = 1 + x + 0, u >= 0
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 1
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: v0 >= 0, z1 = v2, v1 >= 0, z'' = v1, v2 >= 0, z' = v0
++(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z) :|: z'' = z, z >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 1
if(z', z'', z1) -{ 1 }→ x :|: z1 = y, x >= 0, y >= 0, z'' = x, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: v0 >= 0, z1 = v2, v1 >= 0, z'' = v1, v2 >= 0, z' = v0
merge(z', z'') -{ 1 }→ x :|: z'' = 0, z' = x, x >= 0
merge(z', z'') -{ 4 }→ x' :|: z'' = 1 + u + 0, x >= 0, z' = 1 + x + 0, u >= 0, 1 + u + (1 + x + 0) = y, x' >= 0, y >= 0, 1 + x + (1 + u + 0) = x', 1 + x + u = 1
merge(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + 0), 1 + u + merge(1 + x' + y', 0)), 1 + u + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), z'' = 1 + u + 0, x >= 0, x' >= 0, y' >= 0, u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + (1 + u + (1 + u' + v')), 1 + u + if(1 + x + u', 1 + x + merge(0, 1 + u' + v'), 1 + u' + merge(1 + x + 0, v'))) :|: x >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, z' = 1 + x + 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z'' = 1 + u + 0, x >= 0, z' = 1 + x + 0, u >= 0, v0 >= 0, 1 + u + (1 + x + 0) = v2, v1 >= 0, 1 + x + (1 + u + 0) = v1, v2 >= 0, 1 + x + u = v0
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
{ if } { ++ } { merge } |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: runtime: ?, size: O(n1) [z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: runtime: O(1) [1], size: O(n1) [z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: runtime: O(1) [1], size: O(n1) [z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: 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 + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: 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 + y }→ 1 + x + s :|: s >= 0, s <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: 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 + y }→ 1 + x + s :|: s >= 0, s <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: runtime: O(1) [1], size: O(n1) [z''] ++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] merge: runtime: ?, size: O(n1) [z' + z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s :|: s >= 0, s <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1) -{ 1 }→ z'' :|: z'' >= 0, z1 >= 0, z' = 0
if(z', z'', z1) -{ 0 }→ 0 :|: z' >= 0, z'' >= 0, z1 >= 0
merge(z', z'') -{ 4 }→ x' :|: z' - 1 >= 0, z'' - 1 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = y, x' >= 0, y >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = x', 1 + (z' - 1) + (z'' - 1) = 1
merge(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
merge(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
merge(z', z'') -{ 3 }→ if(1 + x + u, 1 + x + if(1 + x' + u, 1 + x' + merge(y', 1 + u + (1 + u'' + v'')), 1 + u + merge(1 + x' + y', 1 + u'' + v'')), 1 + u + if(1 + x + u'', 1 + x + merge(1 + x' + y', 1 + u'' + v''), 1 + u'' + merge(1 + x + (1 + x' + y'), v''))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, u'' >= 0, v'' >= 0, z'' = 1 + u + (1 + u'' + v''), u >= 0
merge(z', z'') -{ 3 }→ if(1 + x + (z'' - 1), 1 + x + if(1 + x' + (z'' - 1), 1 + x' + merge(y', 1 + (z'' - 1) + 0), 1 + (z'' - 1) + merge(1 + x' + y', 0)), 1 + (z'' - 1) + (1 + x + (1 + x' + y'))) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0, z'' - 1 >= 0
merge(z', z'') -{ 3 }→ if(1 + (z' - 1) + u, 1 + (z' - 1) + (1 + u + (1 + u' + v')), 1 + u + if(1 + (z' - 1) + u', 1 + (z' - 1) + merge(0, 1 + u' + v'), 1 + u' + merge(1 + (z' - 1) + 0, v'))) :|: z' - 1 >= 0, z'' = 1 + u + (1 + u' + v'), u' >= 0, v' >= 0, u >= 0
merge(z', z'') -{ 3 }→ 0 :|: z' - 1 >= 0, z'' - 1 >= 0, v0 >= 0, 1 + (z'' - 1) + (1 + (z' - 1) + 0) = v2, v1 >= 0, 1 + (z' - 1) + (1 + (z'' - 1) + 0) = v1, v2 >= 0, 1 + (z' - 1) + (z'' - 1) = v0
if: runtime: O(1) [1], size: O(n1) [z''] ++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] merge: runtime: EXP, size: O(n1) [z' + z''] |