YES Problem 1: (VAR v_NonEmpty:S f:S x:S xs:S y:S) (RULES app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ) Problem 1: Innermost Equivalent Processor: -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) -> The term rewriting system is non-overlaping or locally confluent overlay system. Therefore, innermost termination implies termination. Problem 1: Dependency Pairs Processor: -> Pairs: APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(map,f:S),xs:S) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(cons,app(f:S,x:S)) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(f:S,x:S) APP(app(plus,app(s,x:S)),y:S) -> APP(app(plus,x:S),y:S) APP(app(plus,app(s,x:S)),y:S) -> APP(s,app(app(plus,x:S),y:S)) APP(inc,xs:S) -> APP(app(map,app(plus,app(s,0))),xs:S) -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) Problem 1: SCC Processor: -> Pairs: APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(map,f:S),xs:S) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(cons,app(f:S,x:S)) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(f:S,x:S) APP(app(plus,app(s,x:S)),y:S) -> APP(app(plus,x:S),y:S) APP(app(plus,app(s,x:S)),y:S) -> APP(s,app(app(plus,x:S),y:S)) APP(inc,xs:S) -> APP(app(map,app(plus,app(s,0))),xs:S) -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: APP(app(plus,app(s,x:S)),y:S) -> APP(app(plus,x:S),y:S) ->->-> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->->Cycle: ->->-> Pairs: APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(map,f:S),xs:S) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(f:S,x:S) APP(inc,xs:S) -> APP(app(map,app(plus,app(s,0))),xs:S) ->->-> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) The problem is decomposed in 2 subproblems. Problem 1.1: Reduction Pairs Processor: -> Pairs: APP(app(plus,app(s,x:S)),y:S) -> APP(app(plus,x:S),y:S) -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) -> Usable rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->Interpretation type: Simple mixed ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [app](X1,X2) = 2.X1.X2 + 2.X1 [0] = 2 [cons] = 0 [fSNonEmpty] = 0 [inc] = 0 [map] = 0 [nil] = 0 [plus] = 2 [s] = 2 [APP](X1,X2) = 2.X1 Problem 1.1: SCC Processor: -> Pairs: Empty -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.2: Subterm Processor: -> Pairs: APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(app(map,f:S),xs:S) APP(app(map,f:S),app(app(cons,x:S),xs:S)) -> APP(f:S,x:S) APP(inc,xs:S) -> APP(app(map,app(plus,app(s,0))),xs:S) -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->Projection: pi(APP) = 2 Problem 1.2: SCC Processor: -> Pairs: APP(inc,xs:S) -> APP(app(map,app(plus,app(s,0))),xs:S) -> Rules: app(app(map,f:S),app(app(cons,x:S),xs:S)) -> app(app(cons,app(f:S,x:S)),app(app(map,f:S),xs:S)) app(app(map,f:S),nil) -> nil app(app(plus,app(s,x:S)),y:S) -> app(s,app(app(plus,x:S),y:S)) app(app(plus,0),y:S) -> y:S app(inc,xs:S) -> app(app(map,app(plus,app(s,0))),xs:S) ->Strongly Connected Components: There is no strongly connected component The problem is finite.