YES Problem 1: (VAR v_NonEmpty:S f:S x:S y:S) (RULES add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ) Problem 1: Innermost Equivalent Processor: -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 -> 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(app(curry,f:S),x:S),y:S) -> APP(app(f:S,x:S),y:S) APP(app(app(curry,f:S),x:S),y: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)) -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 Problem 1: SCC Processor: -> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(app(f:S,x:S),y:S) APP(app(app(curry,f:S),x:S),y: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)) -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: APP(app(plus,app(s,x:S)),y:S) -> APP(app(plus,x:S),y:S) ->->-> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->->Cycle: ->->-> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(app(f:S,x:S),y:S) APP(app(app(curry,f:S),x:S),y:S) -> APP(f:S,x:S) ->->-> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 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: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 -> Usable rules: app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [add] = 0 [app](X1,X2) = 2.X1 + X2 + 2 [0] = 0 [curry] = 0 [fSNonEmpty] = 0 [plus] = 1 [s] = 2 [APP](X1,X2) = 2.X1 Problem 1.1: SCC Processor: -> Pairs: Empty -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.2: Reduction Pairs Processor: -> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(app(f:S,x:S),y:S) APP(app(app(curry,f:S),x:S),y:S) -> APP(f:S,x:S) -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 -> Usable rules: app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [add] = 0 [app](X1,X2) = 2.X1 + X2 + 1 [0] = 0 [curry] = 2 [fSNonEmpty] = 0 [plus] = 0 [s] = 1 [APP](X1,X2) = 2.X1 + 2.X2 Problem 1.2: SCC Processor: -> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(f:S,x:S) -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(f:S,x:S) ->->-> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 Problem 1.2: Subterm Processor: -> Pairs: APP(app(app(curry,f:S),x:S),y:S) -> APP(f:S,x:S) -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Projection: pi(APP) = 1 Problem 1.2: SCC Processor: -> Pairs: Empty -> Rules: add -> app(curry,plus) app(app(app(curry,f:S),x:S),y:S) -> app(app(f:S,x:S),y:S) 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 ->Strongly Connected Components: There is no strongly connected component The problem is finite.