(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
even(0) → true
even(s(0)) → false
even(s(s(x))) → even(x)
half(0) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → if_times(even(s(x)), s(x), y)
if_times(true, s(x), y) → plus(times(half(s(x)), y), times(half(s(x)), y))
if_times(false, s(x), y) → plus(y, times(x, y))
Rewrite Strategy: INNERMOST
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
even(s(s(x))) →+ even(x)
gives rise to a decreasing loop by considering the right hand sides subterm at position [].
The pumping substitution is [x / s(s(x))].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)