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), 2 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 173 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 22 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 781 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 233 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 96 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 27 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 145 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 47 ms)
↳36 CpxRNTS
↳37 FinalProof (⇔, 0 ms)
↳38 BOUNDS(1, n^1)
is_empty(nil) → true
is_empty(cons(x, l)) → false
hd(cons(x, l)) → x
tl(cons(x, l)) → l
append(l1, l2) → ifappend(l1, l2, l1)
ifappend(l1, l2, nil) → l2
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2))
is_empty(nil) → true [1]
is_empty(cons(x, l)) → false [1]
hd(cons(x, l)) → x [1]
tl(cons(x, l)) → l [1]
append(l1, l2) → ifappend(l1, l2, l1) [1]
ifappend(l1, l2, nil) → l2 [1]
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2)) [1]
is_empty(nil) → true [1]
is_empty(cons(x, l)) → false [1]
hd(cons(x, l)) → x [1]
tl(cons(x, l)) → l [1]
append(l1, l2) → ifappend(l1, l2, l1) [1]
ifappend(l1, l2, nil) → l2 [1]
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2)) [1]
is_empty :: nil:cons → true:false nil :: nil:cons true :: true:false cons :: hd → nil:cons → nil:cons false :: true:false hd :: nil:cons → hd tl :: nil:cons → nil:cons append :: nil:cons → nil:cons → nil:cons ifappend :: nil:cons → nil:cons → nil:cons → nil:cons |
(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:
is_empty
hd
tl
append
ifappend
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
append(z, z') -{ 1 }→ ifappend(l1, l2, l1) :|: z = l1, z' = l2, l1 >= 0, l2 >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ l2 :|: z'' = 0, z = l1, z' = l2, l1 >= 0, l2 >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, l2) :|: z'' = 1 + x + l, z = l1, x >= 0, l >= 0, z' = l2, l1 >= 0, l2 >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
{ is_empty } { ifappend, append } { tl } { hd } |
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: ?, size: O(1) [1] |
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] |
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] |
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: ?, size: O(n1) [z' + z''] append: runtime: ?, size: O(n1) [z + z'] |
append(z, z') -{ 1 }→ ifappend(z, z', z) :|: z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 1 }→ 1 + x + append(l, z') :|: z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] tl: runtime: ?, size: O(n1) [z] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] tl: runtime: O(1) [1], size: O(n1) [z] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] tl: runtime: O(1) [1], size: O(n1) [z] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] tl: runtime: O(1) [1], size: O(n1) [z] hd: runtime: ?, size: O(n1) [z] |
append(z, z') -{ 2 + 2·z }→ s :|: s >= 0, s <= 1 * z' + 1 * z, z >= 0, z' >= 0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z'' = 0, z >= 0, z' >= 0
ifappend(z, z', z'') -{ 3 + 2·l }→ 1 + x + s' :|: s' >= 0, s' <= 1 * l + 1 * z', z'' = 1 + x + l, x >= 0, l >= 0, z >= 0, z' >= 0
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 2·z''], size: O(n1) [z' + z''] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] tl: runtime: O(1) [1], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] |