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), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxRNTS
↳13 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 465 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 85 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 774 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 413 ms)
↳24 CpxRNTS
↳25 FinalProof (⇔, 0 ms)
↳26 BOUNDS(1, n^2)
concat(leaf, Y) → Y
concat(cons(U, V), Y) → cons(U, concat(V, Y))
lessleaves(X, leaf) → false
lessleaves(leaf, cons(W, Z)) → true
lessleaves(cons(U, V), cons(W, Z)) → lessleaves(concat(U, V), concat(W, Z))
concat(leaf, Y) → Y [1]
concat(cons(U, V), Y) → cons(U, concat(V, Y)) [1]
lessleaves(X, leaf) → false [1]
lessleaves(leaf, cons(W, Z)) → true [1]
lessleaves(cons(U, V), cons(W, Z)) → lessleaves(concat(U, V), concat(W, Z)) [1]
concat(leaf, Y) → Y [1]
concat(cons(U, V), Y) → cons(U, concat(V, Y)) [1]
lessleaves(X, leaf) → false [1]
lessleaves(leaf, cons(W, Z)) → true [1]
lessleaves(cons(U, V), cons(W, Z)) → lessleaves(concat(U, V), concat(W, Z)) [1]
concat :: leaf:cons → leaf:cons → leaf:cons leaf :: leaf:cons cons :: leaf:cons → leaf:cons → leaf:cons lessleaves :: leaf:cons → leaf:cons → false:true false :: false:true true :: false:true |
(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:
lessleaves
concat
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 |
leaf => 0
false => 0
true => 1
concat(z, z') -{ 1 }→ Y :|: z' = Y, Y >= 0, z = 0
concat(z, z') -{ 1 }→ 1 + U + concat(V, Y) :|: z' = Y, Y >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(V, Z) :|: Z >= 0, z = 1 + 0 + V, z' = 1 + 0 + Z, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(V, 1 + U'' + concat(V'', Z)) :|: Z >= 0, z = 1 + 0 + V, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, V >= 0, V'' >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), Z) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + 0 + Z, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), 1 + U1 + concat(V1, Z)) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: X >= 0, z = X, z' = 0
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 1 }→ 1 + U + concat(V, z') :|: z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, 1 + U'' + concat(V'', Z)) :|: Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), z' - 1) :|: z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), 1 + U1 + concat(V1, Z)) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
{ concat } { lessleaves } |
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 1 }→ 1 + U + concat(V, z') :|: z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, 1 + U'' + concat(V'', Z)) :|: Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), z' - 1) :|: z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), 1 + U1 + concat(V1, Z)) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 1 }→ 1 + U + concat(V, z') :|: z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, 1 + U'' + concat(V'', Z)) :|: Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), z' - 1) :|: z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), 1 + U1 + concat(V1, Z)) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat: runtime: ?, size: O(n1) [z + z'] |
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 1 }→ 1 + U + concat(V, z') :|: z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, 1 + U'' + concat(V'', Z)) :|: Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), z' - 1) :|: z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(1 + U' + concat(V', V), 1 + U1 + concat(V1, Z)) :|: z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 2 + V }→ 1 + U + s :|: s >= 0, s <= 1 * V + 1 * z', z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 4 + V'' }→ lessleaves(z - 1, 1 + U'' + s') :|: s' >= 0, s' <= 1 * V'' + 1 * Z, Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 4 + V' }→ lessleaves(1 + U' + s'', z' - 1) :|: s'' >= 0, s'' <= 1 * V' + 1 * V, z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 5 + V' + V1 }→ lessleaves(1 + U' + s1, 1 + U1 + s2) :|: s1 >= 0, s1 <= 1 * V' + 1 * V, s2 >= 0, s2 <= 1 * V1 + 1 * Z, z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat: runtime: O(n1) [1 + z], size: O(n1) [z + z'] |
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 2 + V }→ 1 + U + s :|: s >= 0, s <= 1 * V + 1 * z', z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 4 + V'' }→ lessleaves(z - 1, 1 + U'' + s') :|: s' >= 0, s' <= 1 * V'' + 1 * Z, Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 4 + V' }→ lessleaves(1 + U' + s'', z' - 1) :|: s'' >= 0, s'' <= 1 * V' + 1 * V, z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 5 + V' + V1 }→ lessleaves(1 + U' + s1, 1 + U1 + s2) :|: s1 >= 0, s1 <= 1 * V' + 1 * V, s2 >= 0, s2 <= 1 * V1 + 1 * Z, z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat: runtime: O(n1) [1 + z], size: O(n1) [z + z'] lessleaves: runtime: ?, size: O(1) [1] |
concat(z, z') -{ 1 }→ z' :|: z' >= 0, z = 0
concat(z, z') -{ 2 + V }→ 1 + U + s :|: s >= 0, s <= 1 * V + 1 * z', z' >= 0, z = 1 + U + V, U >= 0, V >= 0
lessleaves(z, z') -{ 3 }→ lessleaves(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
lessleaves(z, z') -{ 4 + V'' }→ lessleaves(z - 1, 1 + U'' + s') :|: s' >= 0, s' <= 1 * V'' + 1 * Z, Z >= 0, U'' >= 0, z' = 1 + (1 + U'' + V'') + Z, z - 1 >= 0, V'' >= 0
lessleaves(z, z') -{ 4 + V' }→ lessleaves(1 + U' + s'', z' - 1) :|: s'' >= 0, s'' <= 1 * V' + 1 * V, z = 1 + (1 + U' + V') + V, z' - 1 >= 0, U' >= 0, V' >= 0, V >= 0
lessleaves(z, z') -{ 5 + V' + V1 }→ lessleaves(1 + U' + s1, 1 + U1 + s2) :|: s1 >= 0, s1 <= 1 * V' + 1 * V, s2 >= 0, s2 <= 1 * V1 + 1 * Z, z = 1 + (1 + U' + V') + V, Z >= 0, z' = 1 + (1 + U1 + V1) + Z, V1 >= 0, U' >= 0, V' >= 0, U1 >= 0, V >= 0
lessleaves(z, z') -{ 1 }→ 1 :|: Z >= 0, z' = 1 + W + Z, z = 0, W >= 0
lessleaves(z, z') -{ 1 }→ 0 :|: z >= 0, z' = 0
concat: runtime: O(n1) [1 + z], size: O(n1) [z + z'] lessleaves: runtime: O(n2) [2 + 2·z·z' + 16·z' + 2·z'2], size: O(1) [1] |