/export/starexec/sandbox/solver/bin/starexec_run_default /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES Problem 1: (VAR x y) (RULES even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ) (STRATEGY INNERMOST) Problem 1: Dependency Pairs Processor: -> Pairs: EVEN(s(s(x))) -> EVEN(x) GT(s(x),s(y)) -> GT(x,y) HALF(s(s(x))) -> HALF(x) IF_TIMES(false,s(x),y) -> PLUS(y,times(x,y)) IF_TIMES(false,s(x),y) -> TIMES(x,y) IF_TIMES(true,s(x),y) -> HALF(s(x)) IF_TIMES(true,s(x),y) -> PLUS(times(half(s(x)),y),times(half(s(x)),y)) IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) NOT(x) -> IF(x,false,true) PLUS(s(x),s(y)) -> GT(x,y) PLUS(s(x),s(y)) -> ID(x) PLUS(s(x),s(y)) -> ID(y) PLUS(s(x),s(y)) -> IF(gt(x,y),x,y) PLUS(s(x),s(y)) -> IF(not(gt(x,y)),id(x),id(y)) PLUS(s(x),s(y)) -> NOT(gt(x,y)) PLUS(s(x),s(y)) -> PLUS(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) PLUS(s(x),x) -> GT(x,x) PLUS(s(x),x) -> ID(x) PLUS(s(x),x) -> IF(gt(x,x),id(x),id(x)) PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) TIMES(s(x),y) -> EVEN(s(x)) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) Problem 1: SCC Processor: -> Pairs: EVEN(s(s(x))) -> EVEN(x) GT(s(x),s(y)) -> GT(x,y) HALF(s(s(x))) -> HALF(x) IF_TIMES(false,s(x),y) -> PLUS(y,times(x,y)) IF_TIMES(false,s(x),y) -> TIMES(x,y) IF_TIMES(true,s(x),y) -> HALF(s(x)) IF_TIMES(true,s(x),y) -> PLUS(times(half(s(x)),y),times(half(s(x)),y)) IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) NOT(x) -> IF(x,false,true) PLUS(s(x),s(y)) -> GT(x,y) PLUS(s(x),s(y)) -> ID(x) PLUS(s(x),s(y)) -> ID(y) PLUS(s(x),s(y)) -> IF(gt(x,y),x,y) PLUS(s(x),s(y)) -> IF(not(gt(x,y)),id(x),id(y)) PLUS(s(x),s(y)) -> NOT(gt(x,y)) PLUS(s(x),s(y)) -> PLUS(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) PLUS(s(x),x) -> GT(x,x) PLUS(s(x),x) -> ID(x) PLUS(s(x),x) -> IF(gt(x,x),id(x),id(x)) PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) TIMES(s(x),y) -> EVEN(s(x)) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: HALF(s(s(x))) -> HALF(x) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->->Cycle: ->->-> Pairs: GT(s(x),s(y)) -> GT(x,y) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->->Cycle: ->->-> Pairs: PLUS(s(x),s(y)) -> PLUS(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->->Cycle: ->->-> Pairs: EVEN(s(s(x))) -> EVEN(x) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->->Cycle: ->->-> Pairs: IF_TIMES(false,s(x),y) -> TIMES(x,y) IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) The problem is decomposed in 5 subproblems. Problem 1.1: Subterm Processor: -> Pairs: HALF(s(s(x))) -> HALF(x) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Projection: pi(HALF) = 1 Problem 1.1: SCC Processor: -> Pairs: Empty -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.2: Subterm Processor: -> Pairs: GT(s(x),s(y)) -> GT(x,y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Projection: pi(GT) = 1 Problem 1.2: SCC Processor: -> Pairs: Empty -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.3: Reduction Pairs Processor: -> Pairs: PLUS(s(x),s(y)) -> PLUS(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) -> Usable rules: gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false id(x) -> x if(false,x,y) -> y if(true,x,y) -> x not(x) -> if(x,false,true) ->Interpretation type: Linear ->Coefficients: All rationals ->Dimension: 1 ->Bound: 4 ->Interpretation: [gt](X1,X2) = 4/3.X1 + 2.X2 + 1 [id](X) = X [if](X1,X2,X3) = X2 + X3 + 1/3 [not](X) = 4 [false] = 1/3 [s](X) = 3.X + 3 [true] = 1/3 [zero] = 1/3 [PLUS](X1,X2) = 3.X1 + 3/2.X2 Problem 1.3: SCC Processor: -> Pairs: PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) Problem 1.3: Reduction Pairs Processor: -> Pairs: PLUS(s(x),x) -> PLUS(if(gt(x,x),id(x),id(x)),s(x)) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) -> Usable rules: gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false id(x) -> x if(false,x,y) -> y if(true,x,y) -> x ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [gt](X1,X2) = 2 [id](X) = X [if](X1,X2,X3) = X2 + X3 + 1 [false] = 2 [s](X) = 2.X + 2 [true] = 1 [zero] = 2 [PLUS](X1,X2) = 2.X1 Problem 1.3: SCC Processor: -> Pairs: Empty -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.4: Subterm Processor: -> Pairs: EVEN(s(s(x))) -> EVEN(x) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Projection: pi(EVEN) = 1 Problem 1.4: SCC Processor: -> Pairs: Empty -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.5: Reduction Pairs Processor: -> Pairs: IF_TIMES(false,s(x),y) -> TIMES(x,y) IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) -> Usable rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) half(0) -> 0 half(s(s(x))) -> s(half(x)) ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [even](X) = 2 [half](X) = X [0] = 0 [false] = 0 [s](X) = 2.X + 2 [true] = 2 [IF_TIMES](X1,X2,X3) = 2.X2 + 2.X3 + 2 [TIMES](X1,X2) = 2.X1 + 2.X2 + 2 Problem 1.5: SCC Processor: -> Pairs: IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) ->->-> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) Problem 1.5: Reduction Pairs Processor: -> Pairs: IF_TIMES(true,s(x),y) -> TIMES(half(s(x)),y) TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) -> Usable rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) half(0) -> 0 half(s(s(x))) -> s(half(x)) ->Interpretation type: Linear ->Coefficients: All rationals ->Dimension: 1 ->Bound: 2 ->Interpretation: [even](X) = 0 [half](X) = 1/2.X + 1/2 [0] = 1/2 [false] = 0 [s](X) = 2.X + 2 [true] = 0 [IF_TIMES](X1,X2,X3) = 2.X1 + X2 + 1/2.X3 + 2 [TIMES](X1,X2) = X1 + 1/2.X2 + 2 Problem 1.5: SCC Processor: -> Pairs: TIMES(s(x),y) -> IF_TIMES(even(s(x)),s(x),y) -> Rules: even(0) -> true even(s(0)) -> false even(s(s(x))) -> even(x) gt(s(x),s(y)) -> gt(x,y) gt(s(x),zero) -> true gt(zero,y) -> false half(0) -> 0 half(s(s(x))) -> s(half(x)) id(x) -> x if(false,x,y) -> y if(true,x,y) -> x if_times(false,s(x),y) -> plus(y,times(x,y)) if_times(true,s(x),y) -> plus(times(half(s(x)),y),times(half(s(x)),y)) not(x) -> if(x,false,true) plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero,y) -> y times(0,y) -> 0 times(s(x),y) -> if_times(even(s(x)),s(x),y) ->Strongly Connected Components: There is no strongly connected component The problem is finite.