YES Problem 1: (VAR v_NonEmpty:S X:S X1:S X2:S Y:S) (RULES active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ) (STRATEGY INNERMOST) Problem 1: Dependency Pairs Processor: -> Pairs: ACTIVE(from(X:S)) -> CONS(X:S,from(s(X:S))) ACTIVE(from(X:S)) -> FROM(s(X:S)) ACTIVE(from(X:S)) -> MARK(cons(X:S,from(s(X:S)))) ACTIVE(from(X:S)) -> S(X:S) ACTIVE(length(cons(X:S,Y:S))) -> LENGTH1(Y:S) ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length(cons(X:S,Y:S))) -> S(length1(Y:S)) ACTIVE(length(nil)) -> MARK(0) ACTIVE(length1(X:S)) -> LENGTH(X:S) ACTIVE(length1(X:S)) -> MARK(length(X:S)) CONS(active(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(mark(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) FROM(active(X:S)) -> FROM(X:S) FROM(mark(X:S)) -> FROM(X:S) LENGTH(active(X:S)) -> LENGTH(X:S) LENGTH(mark(X:S)) -> LENGTH(X:S) LENGTH1(active(X:S)) -> LENGTH1(X:S) LENGTH1(mark(X:S)) -> LENGTH1(X:S) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> CONS(mark(X1:S),X2:S) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> FROM(mark(X:S)) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) MARK(s(X:S)) -> S(mark(X:S)) S(active(X:S)) -> S(X:S) S(mark(X:S)) -> S(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1: SCC Processor: -> Pairs: ACTIVE(from(X:S)) -> CONS(X:S,from(s(X:S))) ACTIVE(from(X:S)) -> FROM(s(X:S)) ACTIVE(from(X:S)) -> MARK(cons(X:S,from(s(X:S)))) ACTIVE(from(X:S)) -> S(X:S) ACTIVE(length(cons(X:S,Y:S))) -> LENGTH1(Y:S) ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length(cons(X:S,Y:S))) -> S(length1(Y:S)) ACTIVE(length(nil)) -> MARK(0) ACTIVE(length1(X:S)) -> LENGTH(X:S) ACTIVE(length1(X:S)) -> MARK(length(X:S)) CONS(active(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(mark(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) FROM(active(X:S)) -> FROM(X:S) FROM(mark(X:S)) -> FROM(X:S) LENGTH(active(X:S)) -> LENGTH(X:S) LENGTH(mark(X:S)) -> LENGTH(X:S) LENGTH1(active(X:S)) -> LENGTH1(X:S) LENGTH1(mark(X:S)) -> LENGTH1(X:S) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> CONS(mark(X1:S),X2:S) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> FROM(mark(X:S)) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) MARK(s(X:S)) -> S(mark(X:S)) S(active(X:S)) -> S(X:S) S(mark(X:S)) -> S(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: S(active(X:S)) -> S(X:S) S(mark(X:S)) -> S(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->->Cycle: ->->-> Pairs: LENGTH1(active(X:S)) -> LENGTH1(X:S) LENGTH1(mark(X:S)) -> LENGTH1(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->->Cycle: ->->-> Pairs: LENGTH(active(X:S)) -> LENGTH(X:S) LENGTH(mark(X:S)) -> LENGTH(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->->Cycle: ->->-> Pairs: FROM(active(X:S)) -> FROM(X:S) FROM(mark(X:S)) -> FROM(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->->Cycle: ->->-> Pairs: CONS(active(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(mark(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->->Cycle: ->->-> Pairs: ACTIVE(from(X:S)) -> MARK(cons(X:S,from(s(X:S)))) ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) The problem is decomposed in 6 subproblems. Problem 1.1: Subterm Processor: -> Pairs: S(active(X:S)) -> S(X:S) S(mark(X:S)) -> S(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(S) = 1 Problem 1.1: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.2: Subterm Processor: -> Pairs: LENGTH1(active(X:S)) -> LENGTH1(X:S) LENGTH1(mark(X:S)) -> LENGTH1(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(LENGTH1) = 1 Problem 1.2: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.3: Subterm Processor: -> Pairs: LENGTH(active(X:S)) -> LENGTH(X:S) LENGTH(mark(X:S)) -> LENGTH(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(LENGTH) = 1 Problem 1.3: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.4: Subterm Processor: -> Pairs: FROM(active(X:S)) -> FROM(X:S) FROM(mark(X:S)) -> FROM(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(FROM) = 1 Problem 1.4: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.5: Subterm Processor: -> Pairs: CONS(active(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(mark(X1:S),X2:S) -> CONS(X1:S,X2:S) CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(CONS) = 1 Problem 1.5: SCC Processor: -> Pairs: CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.5: Subterm Processor: -> Pairs: CONS(X1:S,active(X2:S)) -> CONS(X1:S,X2:S) CONS(X1:S,mark(X2:S)) -> CONS(X1:S,X2:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(CONS) = 2 Problem 1.5: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(from(X:S)) -> MARK(cons(X:S,from(s(X:S)))) ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = X [cons](X1,X2) = 2.X1 + 1 [from](X) = 2.X + 2 [length](X) = 0 [length1](X) = 0 [mark](X) = X [s](X) = 2.X [0] = 0 [fSNonEmpty] = 0 [nil] = 2 [ACTIVE](X) = 2.X [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2.X [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> ACTIVE(cons(mark(X1:S),X2:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = 0 [cons](X1,X2) = 0 [from](X) = 0 [length](X) = 2 [length1](X) = 2 [mark](X) = 0 [s](X) = 2 [0] = 2 [fSNonEmpty] = 0 [nil] = 2 [ACTIVE](X) = X [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(cons(X1:S,X2:S)) -> MARK(X1:S) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = X [cons](X1,X2) = X1 + 1 [from](X) = 2.X + 2 [length](X) = 0 [length1](X) = 0 [mark](X) = 2.X [s](X) = 2.X [0] = 0 [fSNonEmpty] = 0 [nil] = 1 [ACTIVE](X) = 2 [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = X + 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> ACTIVE(from(mark(X:S))) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = 2.X + 2 [cons](X1,X2) = 0 [from](X) = 0 [length](X) = 1 [length1](X) = 1 [mark](X) = 2.X + 2 [s](X) = 0 [0] = 1 [fSNonEmpty] = 0 [nil] = 2 [ACTIVE](X) = X + 1 [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(from(X:S)) -> MARK(X:S) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = X [cons](X1,X2) = X2 [from](X) = X + 2 [length](X) = 1 [length1](X) = 1 [mark](X) = X [s](X) = X [0] = 1 [fSNonEmpty] = 0 [nil] = 2 [ACTIVE](X) = 2.X + 2 [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2.X + 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> ACTIVE(s(mark(X:S))) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = 2 [cons](X1,X2) = 2 [from](X) = 2 [length](X) = 2 [length1](X) = 2 [mark](X) = 2 [s](X) = 0 [0] = 0 [fSNonEmpty] = 0 [nil] = 2 [ACTIVE](X) = X [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length(cons(X:S,Y:S))) -> MARK(s(length1(Y:S))) ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = 2.X [cons](X1,X2) = 2.X2 + 2 [from](X) = 0 [length](X) = 2.X + 2 [length1](X) = 2.X + 2 [mark](X) = 2.X [s](X) = 2.X + 1 [0] = 0 [fSNonEmpty] = 0 [nil] = 0 [ACTIVE](X) = 2.X + 2 [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = 2.X + 2 [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length(X:S)) -> ACTIVE(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Reduction Pairs Processor: -> Pairs: ACTIVE(length1(X:S)) -> MARK(length(X:S)) MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) -> Usable rules: length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [active](X) = 2.X [cons](X1,X2) = 0 [from](X) = 0 [length](X) = 2.X [length1](X) = 2.X + 1 [mark](X) = 2.X [s](X) = 2.X [0] = 0 [fSNonEmpty] = 0 [nil] = 0 [ACTIVE](X) = X [CONS](X1,X2) = 0 [FROM](X) = 0 [LENGTH](X) = 0 [LENGTH1](X) = 0 [MARK](X) = X [S](X) = 0 Problem 1.6: SCC Processor: -> Pairs: MARK(length1(X:S)) -> ACTIVE(length1(X:S)) MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: MARK(s(X:S)) -> MARK(X:S) ->->-> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) Problem 1.6: Subterm Processor: -> Pairs: MARK(s(X:S)) -> MARK(X:S) -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Projection: pi(MARK) = 1 Problem 1.6: SCC Processor: -> Pairs: Empty -> Rules: active(from(X:S)) -> mark(cons(X:S,from(s(X:S)))) active(length(cons(X:S,Y:S))) -> mark(s(length1(Y:S))) active(length(nil)) -> mark(0) active(length1(X:S)) -> mark(length(X:S)) cons(active(X1:S),X2:S) -> cons(X1:S,X2:S) cons(mark(X1:S),X2:S) -> cons(X1:S,X2:S) cons(X1:S,active(X2:S)) -> cons(X1:S,X2:S) cons(X1:S,mark(X2:S)) -> cons(X1:S,X2:S) from(active(X:S)) -> from(X:S) from(mark(X:S)) -> from(X:S) length(active(X:S)) -> length(X:S) length(mark(X:S)) -> length(X:S) length1(active(X:S)) -> length1(X:S) length1(mark(X:S)) -> length1(X:S) mark(cons(X1:S,X2:S)) -> active(cons(mark(X1:S),X2:S)) mark(from(X:S)) -> active(from(mark(X:S))) mark(length(X:S)) -> active(length(X:S)) mark(length1(X:S)) -> active(length1(X:S)) mark(s(X:S)) -> active(s(mark(X:S))) mark(0) -> active(0) mark(nil) -> active(nil) s(active(X:S)) -> s(X:S) s(mark(X:S)) -> s(X:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite.