Input TRS: 1: minus(0(),y) -> 0() 2: minus(s(x),0()) -> s(x) 3: minus(s(x),s(y)) -> minus(x,y) 4: le(0(),y) -> true() 5: le(s(x),0()) -> false() 6: le(s(x),s(y)) -> le(x,y) 7: if(true(),x,y) -> x 8: if(false(),x,y) -> y 9: perfectp(0()) -> false() 10: perfectp(s(x)) -> f(x,s(0()),s(x),s(x)) 11: f(0(),y,0(),u) -> true() 12: f(0(),y,s(z),u) -> false() 13: f(s(x),0(),z,u) -> f(x,u,minus(z,s(x)),u) 14: f(s(x),s(y),z,u) -> if(le(x,y),f(s(x),minus(y,x),z,u),f(x,u,z,u)) Number of strict rules: 14 Direct Order(PosReal,>,Poly) ... failed. Freezing f 1: minus(0(),y) -> 0() 2: minus(s(x),0()) -> s(x) 3: minus(s(x),s(y)) -> minus(x,y) 4: le(0(),y) -> true() 5: le(s(x),0()) -> false() 6: le(s(x),s(y)) -> le(x,y) 7: if(true(),x,y) -> x 8: if(false(),x,y) -> y 9: perfectp(0()) -> false() 10: perfectp(s(x)) -> f(x,s(0()),s(x),s(x)) 11: f❆1_0(y,0(),u) -> true() 12: f❆1_0(y,s(z),u) -> false() 13: f❆1_s(x,0(),z,u) -> f(x,u,minus(z,s(x)),u) 14: f❆1_s(x,s(y),z,u) -> if(le(x,y),f❆1_s(x,minus(y,x),z,u),f(x,u,z,u)) 15: f(0(),_3,_4,_5) ->= f❆1_0(_3,_4,_5) 16: f(s(_1),_4,_5,_6) ->= f❆1_s(_1,_4,_5,_6) Number of strict rules: 14 Direct Order(PosReal,>,Poly) ... failed. Dependency Pairs: #1: #le(s(x),s(y)) -> #le(x,y) #2: #f❆1_s(x,0(),z,u) -> #f(x,u,minus(z,s(x)),u) #3: #f❆1_s(x,0(),z,u) -> #minus(z,s(x)) #4: #f❆1_s(x,s(y),z,u) -> #if(le(x,y),f❆1_s(x,minus(y,x),z,u),f(x,u,z,u)) #5: #f❆1_s(x,s(y),z,u) -> #le(x,y) #6: #f❆1_s(x,s(y),z,u) -> #f❆1_s(x,minus(y,x),z,u) #7: #f❆1_s(x,s(y),z,u) -> #minus(y,x) #8: #f❆1_s(x,s(y),z,u) -> #f(x,u,z,u) #9: #perfectp(s(x)) -> #f(x,s(0()),s(x),s(x)) #10: #f(s(_1),_4,_5,_6) ->? #f❆1_s(_1,_4,_5,_6) #11: #minus(s(x),s(y)) -> #minus(x,y) #12: #f(0(),_3,_4,_5) ->? #f❆1_0(_3,_4,_5) Number of SCCs: 3, DPs: 6, edges: 10 SCC { #11 } Removing DPs: Order(PosReal,>,Sum)... succeeded. #f❆1_s(x1,x2,x3,x4) weight: 0 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: 0 minus(x1,x2) weight: 0 #perfectp(x1) weight: 0 false() weight: 0 true() weight: 0 f❆1_s(x1,x2,x3,x4) weight: 0 f(x1,x2,x3,x4) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 #f❆1_0(x1,x2,x3) weight: 0 #f(x1,x2,x3,x4) weight: 0 #minus(x1,x2) weight: x2 #if(x1,x2,x3) weight: 0 perfectp(x1) weight: 0 f❆1_0(x1,x2,x3) weight: 0 Usable rules: { } Removed DPs: #11 Number of SCCs: 2, DPs: 5, edges: 9 SCC { #1 } Removing DPs: Order(PosReal,>,Sum)... succeeded. #f❆1_s(x1,x2,x3,x4) weight: 0 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: x2 minus(x1,x2) weight: 0 #perfectp(x1) weight: 0 false() weight: 0 true() weight: 0 f❆1_s(x1,x2,x3,x4) weight: 0 f(x1,x2,x3,x4) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 #f❆1_0(x1,x2,x3) weight: 0 #f(x1,x2,x3,x4) weight: 0 #minus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 perfectp(x1) weight: 0 f❆1_0(x1,x2,x3) weight: 0 Usable rules: { } Removed DPs: #1 Number of SCCs: 1, DPs: 4, edges: 8 SCC { #2 #6 #8 #10 } Removing DPs: Order(PosReal,>,Sum)... succeeded. #f❆1_s(x1,x2,x3,x4) weight: (/ 1 4) + x1 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: 0 minus(x1,x2) weight: (/ 1 4) #perfectp(x1) weight: 0 false() weight: 0 true() weight: 0 f❆1_s(x1,x2,x3,x4) weight: 0 f(x1,x2,x3,x4) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 #f❆1_0(x1,x2,x3) weight: 0 #f(x1,x2,x3,x4) weight: x1 #minus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 perfectp(x1) weight: 0 f❆1_0(x1,x2,x3) weight: 0 Usable rules: { } Removed DPs: #2 #8 #10 Number of SCCs: 1, DPs: 1, edges: 1 SCC { #6 } Removing DPs: Order(PosReal,>,Sum)... succeeded. #f❆1_s(x1,x2,x3,x4) weight: (/ 1 4) + x2 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: 0 minus(x1,x2) weight: (/ 1 4) + x1 #perfectp(x1) weight: 0 false() weight: 0 true() weight: 0 f❆1_s(x1,x2,x3,x4) weight: 0 f(x1,x2,x3,x4) weight: 0 0() weight: 0 if(x1,x2,x3) weight: 0 #f❆1_0(x1,x2,x3) weight: 0 #f(x1,x2,x3,x4) weight: 0 #minus(x1,x2) weight: 0 #if(x1,x2,x3) weight: 0 perfectp(x1) weight: 0 f❆1_0(x1,x2,x3) weight: 0 Usable rules: { 1..3 } Removed DPs: #6 Number of SCCs: 0, DPs: 0, edges: 0 YES