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