Input TRS: 1: times(x,0()) -> 0() 2: times(x,s(y)) -> plus(times(x,y),x) 3: plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) 4: plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) 5: plus(zero(),y) -> y 6: plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) 7: id(x) -> x 8: if(true(),x,y) -> x 9: if(false(),x,y) -> y 10: not(x) -> if(x,false(),true()) 11: gt(s(x),zero()) -> true() 12: gt(zero(),y) -> false() 13: gt(s(x),s(y)) -> gt(x,y) Number of strict rules: 13 Direct Order(PosReal,>,Poly) ... failed. Freezing gt 1: times(x,0()) -> 0() 2: times(x,s(y)) -> plus(times(x,y),x) 3: plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) 4: plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) 5: plus(zero(),y) -> y 6: plus(id(x),s(y)) -> s(plus(x,if(gt❆1_s(y,y),y,s(y)))) 7: id(x) -> x 8: if(true(),x,y) -> x 9: if(false(),x,y) -> y 10: not(x) -> if(x,false(),true()) 11: gt❆1_s(x,zero()) -> true() 12: gt❆1_zero(y) -> false() 13: gt❆1_s(x,s(y)) -> gt(x,y) 14: gt(zero(),_1) ->= gt❆1_zero(_1) 15: gt(s(_1),_2) ->= gt❆1_s(_1,_2) Number of strict rules: 13 Direct Order(PosReal,>,Poly) ... failed. Dependency Pairs: #1: #times(x,s(y)) -> #plus(times(x,y),x) #2: #times(x,s(y)) -> #times(x,y) #3: #plus(id(x),s(y)) -> #plus(x,if(gt❆1_s(y,y),y,s(y))) #4: #plus(id(x),s(y)) -> #if(gt❆1_s(y,y),y,s(y)) #5: #plus(id(x),s(y)) -> #gt❆1_s(y,y) #6: #gt❆1_s(x,s(y)) -> #gt(x,y) #7: #gt(zero(),_1) ->? #gt❆1_zero(_1) #8: #not(x) -> #if(x,false(),true()) #9: #plus(s(x),s(y)) -> #plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) #10: #plus(s(x),s(y)) -> #if(gt(x,y),x,y) #11: #plus(s(x),s(y)) -> #gt(x,y) #12: #plus(s(x),s(y)) -> #if(not(gt(x,y)),id(x),id(y)) #13: #plus(s(x),s(y)) -> #not(gt(x,y)) #14: #plus(s(x),s(y)) -> #gt(x,y) #15: #plus(s(x),s(y)) -> #id(x) #16: #plus(s(x),s(y)) -> #id(y) #17: #gt(s(_1),_2) ->? #gt❆1_s(_1,_2) #18: #plus(s(x),x) -> #plus(if(gt(x,x),id(x),id(x)),s(x)) #19: #plus(s(x),x) -> #if(gt(x,x),id(x),id(x)) #20: #plus(s(x),x) -> #gt(x,x) #21: #plus(s(x),x) -> #id(x) #22: #plus(s(x),x) -> #id(x) Number of SCCs: 3, DPs: 6, edges: 12 SCC { #2 } Removing DPs: Order(PosReal,>,Sum)... succeeded. zero() weight: 0 s(x1) weight: (/ 1 2) + x1 gt(x1,x2) weight: 0 #plus(x1,x2) weight: 0 false() weight: 0 #id(x1) weight: 0 true() weight: 0 gt❆1_zero(x1) weight: 0 #not(x1) weight: 0 #times(x1,x2) weight: x2 #gt❆1_zero(x1) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 times(x1,x2) weight: 0 #gt(x1,x2) weight: 0 #gt❆1_s(x1,x2) weight: 0 plus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 id(x1) weight: 0 gt❆1_s(x1,x2) weight: 0 not(x1) weight: 0 Usable rules: { } Removed DPs: #2 Number of SCCs: 2, DPs: 5, edges: 11 SCC { #6 #17 } Removing DPs: Order(PosReal,>,Sum)... succeeded. zero() weight: 0 s(x1) weight: (/ 1 2) + x1 gt(x1,x2) weight: 0 #plus(x1,x2) weight: 0 false() weight: 0 #id(x1) weight: 0 true() weight: 0 gt❆1_zero(x1) weight: 0 #not(x1) weight: 0 #times(x1,x2) weight: 0 #gt❆1_zero(x1) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 times(x1,x2) weight: 0 #gt(x1,x2) weight: (/ 1 4) + x2 #gt❆1_s(x1,x2) weight: x2 plus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 id(x1) weight: 0 gt❆1_s(x1,x2) weight: 0 not(x1) weight: 0 Usable rules: { } Removed DPs: #6 #17 Number of SCCs: 1, DPs: 3, edges: 9 SCC { #3 #9 #18 } Removing DPs: Order(PosReal,>,Sum)... Order(PosReal,>,Max)... succeeded. zero() weight: 0 s(x1) weight: (/ 1 2) + x1 gt(x1,x2) weight: max{0, (/ 1 4) + x2} #plus(x1,x2) weight: max{(/ 1 8) + x2, (/ 3 8) + x1} false() weight: (/ 1 4) #id(x1) weight: 0 true() weight: (/ 1 4) gt❆1_zero(x1) weight: (/ 1 8) #not(x1) weight: 0 #times(x1,x2) weight: 0 #gt❆1_zero(x1) weight: 0 0() weight: 0 if(x1,x2,x3) weight: max{0, x3, (/ 1 8) + x2} times(x1,x2) weight: 0 #gt(x1,x2) weight: 0 #gt❆1_s(x1,x2) weight: 0 plus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 id(x1) weight: x1 gt❆1_s(x1,x2) weight: max{0, (/ 1 8) + x1} not(x1) weight: (/ 3 8) Usable rules: { 7..10 } Removed DPs: #9 #18 Number of SCCs: 1, DPs: 1, edges: 1 SCC { #3 } Removing DPs: Order(PosReal,>,Sum)... succeeded. zero() weight: 0 s(x1) weight: (/ 1 2) gt(x1,x2) weight: (/ 1 2) #plus(x1,x2) weight: x1 false() weight: 0 #id(x1) weight: 0 true() weight: 0 gt❆1_zero(x1) weight: 0 #not(x1) weight: 0 #times(x1,x2) weight: 0 #gt❆1_zero(x1) weight: 0 0() weight: 0 if(x1,x2,x3) weight: x2 + x3 times(x1,x2) weight: 0 #gt(x1,x2) weight: (/ 1 2) #gt❆1_s(x1,x2) weight: 0 plus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 id(x1) weight: (/ 1 2) + x1 gt❆1_s(x1,x2) weight: (/ 1 2) not(x1) weight: 0 Usable rules: { 8 9 11..15 } Removed DPs: #3 Number of SCCs: 0, DPs: 0, edges: 0 YES