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

pred(s(x)) → x
minus(x, 0) → x
minus(x, s(y)) → pred(minus(x, y))
quot(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
log(s(0)) → 0
log(s(s(x))) → s(log(s(quot(x, s(s(0))))))

Rewrite Strategy: INNERMOST


Renamed function symbols to avoid clashes with predefined symbol.


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


pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Rewrite Strategy: INNERMOST


Infered types.


Rules:
pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Types:
pred' :: s':0' → s':0'
s' :: s':0' → s':0'
minus' :: s':0' → s':0' → s':0'
0' :: s':0'
quot' :: s':0' → s':0' → s':0'
log' :: s':0' → s':0'
_hole_s':0'1 :: s':0'
_gen_s':0'2 :: Nat → s':0'


Heuristically decided to analyse the following defined symbols:
minus', quot', log'

They will be analysed ascendingly in the following order:
minus' < quot'
quot' < log'


Rules:
pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Types:
pred' :: s':0' → s':0'
s' :: s':0' → s':0'
minus' :: s':0' → s':0' → s':0'
0' :: s':0'
quot' :: s':0' → s':0' → s':0'
log' :: s':0' → s':0'
_hole_s':0'1 :: s':0'
_gen_s':0'2 :: Nat → s':0'

Generator Equations:
_gen_s':0'2(0) ⇔ 0'
_gen_s':0'2(+(x, 1)) ⇔ s'(_gen_s':0'2(x))

The following defined symbols remain to be analysed:
minus', quot', log'

They will be analysed ascendingly in the following order:
minus' < quot'
quot' < log'


Proved the following rewrite lemma:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, _n4))) → _*3, rt ∈ Ω(n4)

Induction Base:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, 0)))

Induction Step:
minus'(_gen_s':0'2(_a675), _gen_s':0'2(+(1, +(_$n5, 1)))) →RΩ(1)
pred'(minus'(_gen_s':0'2(_a675), _gen_s':0'2(+(1, _$n5)))) →IH
pred'(_*3)

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


Rules:
pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Types:
pred' :: s':0' → s':0'
s' :: s':0' → s':0'
minus' :: s':0' → s':0' → s':0'
0' :: s':0'
quot' :: s':0' → s':0' → s':0'
log' :: s':0' → s':0'
_hole_s':0'1 :: s':0'
_gen_s':0'2 :: Nat → s':0'

Lemmas:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, _n4))) → _*3, rt ∈ Ω(n4)

Generator Equations:
_gen_s':0'2(0) ⇔ 0'
_gen_s':0'2(+(x, 1)) ⇔ s'(_gen_s':0'2(x))

The following defined symbols remain to be analysed:
quot', log'

They will be analysed ascendingly in the following order:
quot' < log'


Proved the following rewrite lemma:
quot'(_gen_s':0'2(_n940), _gen_s':0'2(1)) → _gen_s':0'2(_n940), rt ∈ Ω(1 + n940)

Induction Base:
quot'(_gen_s':0'2(0), _gen_s':0'2(1)) →RΩ(1)
0'

Induction Step:
quot'(_gen_s':0'2(+(_$n941, 1)), _gen_s':0'2(1)) →RΩ(1)
s'(quot'(minus'(_gen_s':0'2(_$n941), _gen_s':0'2(0)), s'(_gen_s':0'2(0)))) →RΩ(1)
s'(quot'(_gen_s':0'2(_$n941), s'(_gen_s':0'2(0)))) →IH
s'(_gen_s':0'2(_$n941))

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


Rules:
pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Types:
pred' :: s':0' → s':0'
s' :: s':0' → s':0'
minus' :: s':0' → s':0' → s':0'
0' :: s':0'
quot' :: s':0' → s':0' → s':0'
log' :: s':0' → s':0'
_hole_s':0'1 :: s':0'
_gen_s':0'2 :: Nat → s':0'

Lemmas:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, _n4))) → _*3, rt ∈ Ω(n4)
quot'(_gen_s':0'2(_n940), _gen_s':0'2(1)) → _gen_s':0'2(_n940), rt ∈ Ω(1 + n940)

Generator Equations:
_gen_s':0'2(0) ⇔ 0'
_gen_s':0'2(+(x, 1)) ⇔ s'(_gen_s':0'2(x))

The following defined symbols remain to be analysed:
log'


Could not prove a rewrite lemma for the defined symbol log'.


Rules:
pred'(s'(x)) → x
minus'(x, 0') → x
minus'(x, s'(y)) → pred'(minus'(x, y))
quot'(0', s'(y)) → 0'
quot'(s'(x), s'(y)) → s'(quot'(minus'(x, y), s'(y)))
log'(s'(0')) → 0'
log'(s'(s'(x))) → s'(log'(s'(quot'(x, s'(s'(0'))))))

Types:
pred' :: s':0' → s':0'
s' :: s':0' → s':0'
minus' :: s':0' → s':0' → s':0'
0' :: s':0'
quot' :: s':0' → s':0' → s':0'
log' :: s':0' → s':0'
_hole_s':0'1 :: s':0'
_gen_s':0'2 :: Nat → s':0'

Lemmas:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, _n4))) → _*3, rt ∈ Ω(n4)
quot'(_gen_s':0'2(_n940), _gen_s':0'2(1)) → _gen_s':0'2(_n940), rt ∈ Ω(1 + n940)

Generator Equations:
_gen_s':0'2(0) ⇔ 0'
_gen_s':0'2(+(x, 1)) ⇔ s'(_gen_s':0'2(x))

No more defined symbols left to analyse.


The lowerbound Ω(n) was proven with the following lemma:
minus'(_gen_s':0'2(a), _gen_s':0'2(+(1, _n4))) → _*3, rt ∈ Ω(n4)