MAYBE 0.08/0.19 MAYBE 0.08/0.19 0.08/0.19 Problem: 0.08/0.19 times(x,plus(y,s(z))) -> plus(times(x,plus(y,times(s(z),0()))),times(x,s(z))) 0.08/0.19 times(x,0()) -> 0() 0.08/0.19 times(x,s(y)) -> plus(times(x,y),x) 0.08/0.19 plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) 0.08/0.19 plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) 0.08/0.19 plus(zero(),y) -> y 0.08/0.19 plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) 0.08/0.19 id(x) -> x 0.08/0.19 if(true(),x,y) -> x 0.08/0.19 if(false(),x,y) -> y 0.08/0.19 not(x) -> if(x,false(),true()) 0.08/0.19 gt(s(x),zero()) -> true() 0.08/0.19 gt(zero(),y) -> false() 0.08/0.19 gt(s(x),s(y)) -> gt(x,y) 0.08/0.19 0.08/0.19 Proof: 0.08/0.19 Open 0.08/0.19 EOF