(0) Obligation:

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

plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0, x, y, 0)
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0) → true
isZero(s(0)) → false
isZero(s(s(x))) → isZero(s(x))
inc(0) → s(0)
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0) → 0
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0, y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1, z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

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:

plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

S is empty.
Rewrite Strategy: INNERMOST

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

Infered types.

(4) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

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

Heuristically decided to analyse the following defined symbols:
plus, isZero, inc, p, timesIter, ge, f0, f1, f2

They will be analysed ascendingly in the following order:
isZero < plus
inc < plus
p < plus
plus < timesIter
inc < timesIter
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

(6) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
isZero, plus, inc, p, timesIter, ge, f0, f1, f2

They will be analysed ascendingly in the following order:
isZero < plus
inc < plus
p < plus
plus < timesIter
inc < timesIter
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

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

Proved the following rewrite lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

Induction Base:
isZero(gen_0':s:1'4_3(+(1, 0))) →RΩ(1)
false

Induction Step:
isZero(gen_0':s:1'4_3(+(1, +(n6_3, 1)))) →RΩ(1)
isZero(s(gen_0':s:1'4_3(n6_3))) →IH
false

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

(8) Complex Obligation (BEST)

(9) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
inc, plus, p, timesIter, ge, f0, f1, f2

They will be analysed ascendingly in the following order:
inc < plus
p < plus
plus < timesIter
inc < timesIter
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)

Induction Base:
inc(gen_0':s:1'4_3(0)) →RΩ(1)
s(0')

Induction Step:
inc(gen_0':s:1'4_3(+(n202_3, 1))) →RΩ(1)
s(inc(gen_0':s:1'4_3(n202_3))) →IH
s(gen_0':s:1'4_3(+(1, c203_3)))

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

(11) Complex Obligation (BEST)

(12) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
p, plus, timesIter, ge, f0, f1, f2

They will be analysed ascendingly in the following order:
p < plus
plus < timesIter
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)

Induction Base:
p(gen_0':s:1'4_3(+(2, 0)))

Induction Step:
p(gen_0':s:1'4_3(+(2, +(n834_3, 1)))) →RΩ(1)
s(p(s(gen_0':s:1'4_3(+(1, n834_3))))) →IH
s(*5_3)

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

(14) Complex Obligation (BEST)

(15) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
plus, timesIter, ge, f0, f1, f2

They will be analysed ascendingly in the following order:
plus < timesIter
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(17) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
ge, timesIter, f0, f1, f2

They will be analysed ascendingly in the following order:
ge < timesIter
f0 = f1
f0 = f2
f1 = f2

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

Proved the following rewrite lemma:
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Induction Base:
ge(gen_0':s:1'4_3(0), gen_0':s:1'4_3(0)) →RΩ(1)
true

Induction Step:
ge(gen_0':s:1'4_3(+(n1963_3, 1)), gen_0':s:1'4_3(+(n1963_3, 1))) →RΩ(1)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) →IH
true

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

(19) Complex Obligation (BEST)

(20) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
timesIter, f0, f1, f2

They will be analysed ascendingly in the following order:
f0 = f1
f0 = f2
f1 = f2

(21) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(22) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
f1, f0, f2

They will be analysed ascendingly in the following order:
f0 = f1
f0 = f2
f1 = f2

(23) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(24) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
f2, f0

They will be analysed ascendingly in the following order:
f0 = f1
f0 = f2
f1 = f2

(25) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(26) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

The following defined symbols remain to be analysed:
f0

They will be analysed ascendingly in the following order:
f0 = f1
f0 = f2
f1 = f2

(27) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(28) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

No more defined symbols left to analyse.

(29) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

(30) BOUNDS(n^1, INF)

(31) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)
ge(gen_0':s:1'4_3(n1963_3), gen_0':s:1'4_3(n1963_3)) → true, rt ∈ Ω(1 + n19633)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

No more defined symbols left to analyse.

(32) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

(33) BOUNDS(n^1, INF)

(34) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)
p(gen_0':s:1'4_3(+(2, n834_3))) → *5_3, rt ∈ Ω(n8343)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

No more defined symbols left to analyse.

(35) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

(36) BOUNDS(n^1, INF)

(37) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)
inc(gen_0':s:1'4_3(n202_3)) → gen_0':s:1'4_3(+(1, n202_3)), rt ∈ Ω(1 + n2023)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

No more defined symbols left to analyse.

(38) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

(39) BOUNDS(n^1, INF)

(40) Obligation:

Innermost TRS:
Rules:
plus(x, y) → ifPlus(isZero(x), x, inc(y))
ifPlus(true, x, y) → p(y)
ifPlus(false, x, y) → plus(p(x), y)
times(x, y) → timesIter(0', x, y, 0')
timesIter(i, x, y, z) → ifTimes(ge(i, x), i, x, y, z)
ifTimes(true, i, x, y, z) → z
ifTimes(false, i, x, y, z) → timesIter(inc(i), x, y, plus(z, y))
isZero(0') → true
isZero(s(0')) → false
isZero(s(s(x))) → isZero(s(x))
inc(0') → s(0')
inc(s(x)) → s(inc(x))
inc(x) → s(x)
p(0') → 0'
p(s(x)) → x
p(s(s(x))) → s(p(s(x)))
ge(x, 0') → true
ge(0', s(y)) → false
ge(s(x), s(y)) → ge(x, y)
f0(0', y, x) → f1(x, y, x)
f1(x, y, z) → f2(x, y, z)
f2(x, 1', z) → f0(x, z, z)
f0(x, y, z) → d
f1(x, y, z) → c

Types:
plus :: 0':s:1' → 0':s:1' → 0':s:1'
ifPlus :: true:false → 0':s:1' → 0':s:1' → 0':s:1'
isZero :: 0':s:1' → true:false
inc :: 0':s:1' → 0':s:1'
true :: true:false
p :: 0':s:1' → 0':s:1'
false :: true:false
times :: 0':s:1' → 0':s:1' → 0':s:1'
timesIter :: 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
0' :: 0':s:1'
ifTimes :: true:false → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1' → 0':s:1'
ge :: 0':s:1' → 0':s:1' → true:false
s :: 0':s:1' → 0':s:1'
f0 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f1 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
f2 :: 0':s:1' → 0':s:1' → 0':s:1' → d:c
1' :: 0':s:1'
d :: d:c
c :: d:c
hole_0':s:1'1_3 :: 0':s:1'
hole_true:false2_3 :: true:false
hole_d:c3_3 :: d:c
gen_0':s:1'4_3 :: Nat → 0':s:1'

Lemmas:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

Generator Equations:
gen_0':s:1'4_3(0) ⇔ 0'
gen_0':s:1'4_3(+(x, 1)) ⇔ s(gen_0':s:1'4_3(x))

No more defined symbols left to analyse.

(41) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
isZero(gen_0':s:1'4_3(+(1, n6_3))) → false, rt ∈ Ω(1 + n63)

(42) BOUNDS(n^1, INF)