Runtime Complexity TRS:
The TRS R consists of the following rules:
active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
active(inf(X)) → inf(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(length(X)) → length(active(X))
inf(mark(X)) → mark(inf(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
length(mark(X)) → mark(length(X))
proper(eq(X1, X2)) → eq(proper(X1), proper(X2))
proper(0) → ok(0)
proper(true) → ok(true)
proper(s(X)) → s(proper(X))
proper(false) → ok(false)
proper(inf(X)) → inf(proper(X))
proper(cons(any(X1), X2)) → cons(any(any(proper(X1))), any(proper(X2)))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(length(X)) → length(proper(X))
eq(ok(X1), ok(X2)) → ok(eq(X1, X2))
s(ok(X)) → ok(s(X))
inf(ok(X)) → ok(inf(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
length(ok(X)) → ok(length(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
any(X) → s(X)
any(proper(X)) → any(any(any(X)))
Renamed function symbols to avoid clashes with predefined symbol.
Runtime Complexity TRS:
The TRS R consists of the following rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Infered types.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Heuristically decided to analyse the following defined symbols:
active', eq', cons', inf', s', take', length', proper', any', top'
They will be analysed ascendingly in the following order:
eq' < active'
cons' < active'
inf' < active'
s' < active'
take' < active'
length' < active'
active' < top'
eq' < proper'
cons' < proper'
inf' < proper'
s' < proper'
s' < any'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
eq', active', cons', inf', s', take', length', proper', any', top'
They will be analysed ascendingly in the following order:
eq' < active'
cons' < active'
inf' < active'
s' < active'
take' < active'
length' < active'
active' < top'
eq' < proper'
cons' < proper'
inf' < proper'
s' < proper'
s' < any'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Could not prove a rewrite lemma for the defined symbol eq'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
cons', active', inf', s', take', length', proper', any', top'
They will be analysed ascendingly in the following order:
cons' < active'
inf' < active'
s' < active'
take' < active'
length' < active'
active' < top'
cons' < proper'
inf' < proper'
s' < proper'
s' < any'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Could not prove a rewrite lemma for the defined symbol cons'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
inf', active', s', take', length', proper', any', top'
They will be analysed ascendingly in the following order:
inf' < active'
s' < active'
take' < active'
length' < active'
active' < top'
inf' < proper'
s' < proper'
s' < any'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Proved the following rewrite lemma:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
Induction Base:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, 0)))
Induction Step:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, +(_$n30, 1)))) →RΩ(1)
mark'(inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _$n30)))) →IH
mark'(_*4)
We have rt ∈ Ω(n) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
s', active', take', length', proper', any', top'
They will be analysed ascendingly in the following order:
s' < active'
take' < active'
length' < active'
active' < top'
s' < proper'
s' < any'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Could not prove a rewrite lemma for the defined symbol s'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
take', active', length', proper', any', top'
They will be analysed ascendingly in the following order:
take' < active'
length' < active'
active' < top'
take' < proper'
length' < proper'
any' < proper'
proper' < top'
Proved the following rewrite lemma:
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
Induction Base:
take'(_gen_0':true':mark':false':nil':ok'3(+(1, 0)), _gen_0':true':mark':false':nil':ok'3(b))
Induction Step:
take'(_gen_0':true':mark':false':nil':ok'3(+(1, +(_$n1241, 1))), _gen_0':true':mark':false':nil':ok'3(_b2277)) →RΩ(1)
mark'(take'(_gen_0':true':mark':false':nil':ok'3(+(1, _$n1241)), _gen_0':true':mark':false':nil':ok'3(_b2277))) →IH
mark'(_*4)
We have rt ∈ Ω(n) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
length', active', proper', any', top'
They will be analysed ascendingly in the following order:
length' < active'
active' < top'
length' < proper'
any' < proper'
proper' < top'
Proved the following rewrite lemma:
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Induction Base:
length'(_gen_0':true':mark':false':nil':ok'3(+(1, 0)))
Induction Step:
length'(_gen_0':true':mark':false':nil':ok'3(+(1, +(_$n3690, 1)))) →RΩ(1)
mark'(length'(_gen_0':true':mark':false':nil':ok'3(+(1, _$n3690)))) →IH
mark'(_*4)
We have rt ∈ Ω(n) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
active', proper', any', top'
They will be analysed ascendingly in the following order:
active' < top'
any' < proper'
proper' < top'
Could not prove a rewrite lemma for the defined symbol active'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
any', proper', top'
They will be analysed ascendingly in the following order:
any' < proper'
proper' < top'
Could not prove a rewrite lemma for the defined symbol any'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
proper', top'
They will be analysed ascendingly in the following order:
proper' < top'
Could not prove a rewrite lemma for the defined symbol proper'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
The following defined symbols remain to be analysed:
top'
Could not prove a rewrite lemma for the defined symbol top'.
Rules:
active'(eq'(0', 0')) → mark'(true')
active'(eq'(s'(X), s'(Y))) → mark'(eq'(X, Y))
active'(eq'(X, Y)) → mark'(false')
active'(inf'(X)) → mark'(cons'(X, inf'(s'(X))))
active'(take'(0', X)) → mark'(nil')
active'(take'(s'(X), cons'(Y, L))) → mark'(cons'(Y, take'(X, L)))
active'(length'(nil')) → mark'(0')
active'(length'(cons'(X, L))) → mark'(s'(length'(L)))
active'(inf'(X)) → inf'(active'(X))
active'(take'(X1, X2)) → take'(active'(X1), X2)
active'(take'(X1, X2)) → take'(X1, active'(X2))
active'(length'(X)) → length'(active'(X))
inf'(mark'(X)) → mark'(inf'(X))
take'(mark'(X1), X2) → mark'(take'(X1, X2))
take'(X1, mark'(X2)) → mark'(take'(X1, X2))
length'(mark'(X)) → mark'(length'(X))
proper'(eq'(X1, X2)) → eq'(proper'(X1), proper'(X2))
proper'(0') → ok'(0')
proper'(true') → ok'(true')
proper'(s'(X)) → s'(proper'(X))
proper'(false') → ok'(false')
proper'(inf'(X)) → inf'(proper'(X))
proper'(cons'(any'(X1), X2)) → cons'(any'(any'(proper'(X1))), any'(proper'(X2)))
proper'(take'(X1, X2)) → take'(proper'(X1), proper'(X2))
proper'(nil') → ok'(nil')
proper'(length'(X)) → length'(proper'(X))
eq'(ok'(X1), ok'(X2)) → ok'(eq'(X1, X2))
s'(ok'(X)) → ok'(s'(X))
inf'(ok'(X)) → ok'(inf'(X))
cons'(ok'(X1), ok'(X2)) → ok'(cons'(X1, X2))
take'(ok'(X1), ok'(X2)) → ok'(take'(X1, X2))
length'(ok'(X)) → ok'(length'(X))
top'(mark'(X)) → top'(proper'(X))
top'(ok'(X)) → top'(active'(X))
any'(X) → s'(X)
any'(proper'(X)) → any'(any'(any'(X)))
Types:
active' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
eq' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
0' :: 0':true':mark':false':nil':ok'
mark' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
true' :: 0':true':mark':false':nil':ok'
s' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
false' :: 0':true':mark':false':nil':ok'
inf' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
cons' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
take' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
nil' :: 0':true':mark':false':nil':ok'
length' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
proper' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
ok' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
any' :: 0':true':mark':false':nil':ok' → 0':true':mark':false':nil':ok'
top' :: 0':true':mark':false':nil':ok' → top'
_hole_0':true':mark':false':nil':ok'1 :: 0':true':mark':false':nil':ok'
_hole_top'2 :: top'
_gen_0':true':mark':false':nil':ok'3 :: Nat → 0':true':mark':false':nil':ok'
Lemmas:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)
take'(_gen_0':true':mark':false':nil':ok'3(+(1, _n1240)), _gen_0':true':mark':false':nil':ok'3(b)) → _*4, rt ∈ Ω(n1240)
length'(_gen_0':true':mark':false':nil':ok'3(+(1, _n3689))) → _*4, rt ∈ Ω(n3689)
Generator Equations:
_gen_0':true':mark':false':nil':ok'3(0) ⇔ 0'
_gen_0':true':mark':false':nil':ok'3(+(x, 1)) ⇔ mark'(_gen_0':true':mark':false':nil':ok'3(x))
No more defined symbols left to analyse.
The lowerbound Ω(n) was proven with the following lemma:
inf'(_gen_0':true':mark':false':nil':ok'3(+(1, _n29))) → _*4, rt ∈ Ω(n29)