(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
quot(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Rewrite Strategy: INNERMOST

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

S is empty.
Rewrite Strategy: INNERMOST

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
minus, quot, app, reverse, shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
minus < quot
app < reverse
reverse < shuffle
concat < less_leaves

(6) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
minus, quot, app, reverse, shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
minus < quot
app < reverse
reverse < shuffle
concat < less_leaves

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

Induction Base:
minus(gen_0':s6_0(0), gen_0':s6_0(0)) →RΩ(1)
gen_0':s6_0(0)

Induction Step:
minus(gen_0':s6_0(+(n10_0, 1)), gen_0':s6_0(+(n10_0, 1))) →RΩ(1)
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) →IH
gen_0':s6_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
quot, app, reverse, shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
app < reverse
reverse < shuffle
concat < less_leaves

(10) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol quot.

(11) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
app, reverse, shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
app < reverse
reverse < shuffle
concat < less_leaves

(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)

Induction Base:
app(gen_nil:add7_0(0), gen_nil:add7_0(b)) →RΩ(1)
gen_nil:add7_0(b)

Induction Step:
app(gen_nil:add7_0(+(n517_0, 1)), gen_nil:add7_0(b)) →RΩ(1)
add(hole_a3_0, app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b))) →IH
add(hole_a3_0, gen_nil:add7_0(+(b, c518_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(13) Complex Obligation (BEST)

(14) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
reverse, shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
reverse < shuffle
concat < less_leaves

(15) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)

Induction Base:
reverse(gen_nil:add7_0(0)) →RΩ(1)
nil

Induction Step:
reverse(gen_nil:add7_0(+(n1514_0, 1))) →RΩ(1)
app(reverse(gen_nil:add7_0(n1514_0)), add(hole_a3_0, nil)) →IH
app(gen_nil:add7_0(c1515_0), add(hole_a3_0, nil)) →LΩ(1 + n15140)
gen_nil:add7_0(+(n1514_0, +(0, 1)))

We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).

(16) Complex Obligation (BEST)

(17) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
shuffle, concat, less_leaves

They will be analysed ascendingly in the following order:
concat < less_leaves

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

Induction Base:
shuffle(gen_nil:add7_0(0)) →RΩ(1)
nil

Induction Step:
shuffle(gen_nil:add7_0(+(n1844_0, 1))) →RΩ(1)
add(hole_a3_0, shuffle(reverse(gen_nil:add7_0(n1844_0)))) →LΩ(1 + n18440 + n184402)
add(hole_a3_0, shuffle(gen_nil:add7_0(n1844_0))) →IH
add(hole_a3_0, gen_nil:add7_0(c1845_0))

We have rt ∈ Ω(n3) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n3).

(19) Complex Obligation (BEST)

(20) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
concat, less_leaves

They will be analysed ascendingly in the following order:
concat < less_leaves

(21) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b)) → gen_leaf:cons8_0(+(n2085_0, b)), rt ∈ Ω(1 + n20850)

Induction Base:
concat(gen_leaf:cons8_0(0), gen_leaf:cons8_0(b)) →RΩ(1)
gen_leaf:cons8_0(b)

Induction Step:
concat(gen_leaf:cons8_0(+(n2085_0, 1)), gen_leaf:cons8_0(b)) →RΩ(1)
cons(leaf, concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b))) →IH
cons(leaf, gen_leaf:cons8_0(+(b, c2086_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(22) Complex Obligation (BEST)

(23) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)
concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b)) → gen_leaf:cons8_0(+(n2085_0, b)), rt ∈ Ω(1 + n20850)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

The following defined symbols remain to be analysed:
less_leaves

(24) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
less_leaves(gen_leaf:cons8_0(n3196_0), gen_leaf:cons8_0(n3196_0)) → false, rt ∈ Ω(1 + n31960)

Induction Base:
less_leaves(gen_leaf:cons8_0(0), gen_leaf:cons8_0(0)) →RΩ(1)
false

Induction Step:
less_leaves(gen_leaf:cons8_0(+(n3196_0, 1)), gen_leaf:cons8_0(+(n3196_0, 1))) →RΩ(1)
less_leaves(concat(leaf, gen_leaf:cons8_0(n3196_0)), concat(leaf, gen_leaf:cons8_0(n3196_0))) →LΩ(1)
less_leaves(gen_leaf:cons8_0(+(0, n3196_0)), concat(leaf, gen_leaf:cons8_0(n3196_0))) →LΩ(1)
less_leaves(gen_leaf:cons8_0(n3196_0), gen_leaf:cons8_0(+(0, n3196_0))) →IH
false

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(25) Complex Obligation (BEST)

(26) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)
concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b)) → gen_leaf:cons8_0(+(n2085_0, b)), rt ∈ Ω(1 + n20850)
less_leaves(gen_leaf:cons8_0(n3196_0), gen_leaf:cons8_0(n3196_0)) → false, rt ∈ Ω(1 + n31960)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(27) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

(28) BOUNDS(n^3, INF)

(29) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)
concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b)) → gen_leaf:cons8_0(+(n2085_0, b)), rt ∈ Ω(1 + n20850)
less_leaves(gen_leaf:cons8_0(n3196_0), gen_leaf:cons8_0(n3196_0)) → false, rt ∈ Ω(1 + n31960)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(30) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

(31) BOUNDS(n^3, INF)

(32) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)
concat(gen_leaf:cons8_0(n2085_0), gen_leaf:cons8_0(b)) → gen_leaf:cons8_0(+(n2085_0, b)), rt ∈ Ω(1 + n20850)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(33) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

(34) BOUNDS(n^3, INF)

(35) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(36) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
shuffle(gen_nil:add7_0(n1844_0)) → gen_nil:add7_0(n1844_0), rt ∈ Ω(1 + n18440 + n184402 + n184403)

(37) BOUNDS(n^3, INF)

(38) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(39) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
reverse(gen_nil:add7_0(n1514_0)) → gen_nil:add7_0(n1514_0), rt ∈ Ω(1 + n15140 + n151402)

(40) BOUNDS(n^2, INF)

(41) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)
app(gen_nil:add7_0(n517_0), gen_nil:add7_0(b)) → gen_nil:add7_0(+(n517_0, b)), rt ∈ Ω(1 + n5170)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(42) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

(43) BOUNDS(n^1, INF)

(44) Obligation:

Innermost TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(nil) → nil
shuffle(add(n, x)) → add(n, shuffle(reverse(x)))
concat(leaf, y) → y
concat(cons(u, v), y) → cons(u, concat(v, y))
less_leaves(x, leaf) → false
less_leaves(leaf, cons(w, z)) → true
less_leaves(cons(u, v), cons(w, z)) → less_leaves(concat(u, v), concat(w, z))

Types:
minus :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
quot :: 0':s → 0':s → 0':s
app :: nil:add → nil:add → nil:add
nil :: nil:add
add :: a → nil:add → nil:add
reverse :: nil:add → nil:add
shuffle :: nil:add → nil:add
concat :: leaf:cons → leaf:cons → leaf:cons
leaf :: leaf:cons
cons :: leaf:cons → leaf:cons → leaf:cons
less_leaves :: leaf:cons → leaf:cons → false:true
false :: false:true
true :: false:true
hole_0':s1_0 :: 0':s
hole_nil:add2_0 :: nil:add
hole_a3_0 :: a
hole_leaf:cons4_0 :: leaf:cons
hole_false:true5_0 :: false:true
gen_0':s6_0 :: Nat → 0':s
gen_nil:add7_0 :: Nat → nil:add
gen_leaf:cons8_0 :: Nat → leaf:cons

Lemmas:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

Generator Equations:
gen_0':s6_0(0) ⇔ 0'
gen_0':s6_0(+(x, 1)) ⇔ s(gen_0':s6_0(x))
gen_nil:add7_0(0) ⇔ nil
gen_nil:add7_0(+(x, 1)) ⇔ add(hole_a3_0, gen_nil:add7_0(x))
gen_leaf:cons8_0(0) ⇔ leaf
gen_leaf:cons8_0(+(x, 1)) ⇔ cons(leaf, gen_leaf:cons8_0(x))

No more defined symbols left to analyse.

(45) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s6_0(n10_0), gen_0':s6_0(n10_0)) → gen_0':s6_0(0), rt ∈ Ω(1 + n100)

(46) BOUNDS(n^1, INF)