(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
a__zeros → cons(0, zeros)
a__and(tt, X) → mark(X)
a__length(nil) → 0
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(nil) → nil
mark(s(X)) → s(mark(X))
a__zeros → zeros
a__and(X1, X2) → and(X1, X2)
a__length(X) → length(X)
Rewrite Strategy: INNERMOST
(1) CpxTrsToCpxRelTrsProof (BOTH BOUNDS(ID, ID) transformation)
Transformed TRS to relative TRS where S is empty.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a__zeros → cons(0, zeros)
a__and(tt, X) → mark(X)
a__length(nil) → 0
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(nil) → nil
mark(s(X)) → s(mark(X))
a__zeros → zeros
a__and(X1, X2) → and(X1, X2)
a__length(X) → length(X)
S is empty.
Rewrite Strategy: INNERMOST
(3) InfiniteLowerBoundProof (EQUIVALENT transformation)
The loop following loop proves infinite runtime complexity:
The rewrite sequence
a__length(cons(N, zeros)) →+ s(a__length(cons(0, zeros)))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0].
The pumping substitution is [ ].
The result substitution is [N / 0].
(4) BOUNDS(INF, INF)