MAYBE 0.08/0.19 MAYBE 0.08/0.19 0.08/0.19 Problem: 0.08/0.19 plus(x,y) -> ifPlus(isZero(x),x,inc(y)) 0.08/0.19 ifPlus(true(),x,y) -> p(y) 0.08/0.19 ifPlus(false(),x,y) -> plus(p(x),y) 0.08/0.19 times(x,y) -> timesIter(0(),x,y,0()) 0.08/0.19 timesIter(i,x,y,z) -> ifTimes(ge(i,x),i,x,y,z) 0.08/0.19 ifTimes(true(),i,x,y,z) -> z 0.08/0.19 ifTimes(false(),i,x,y,z) -> timesIter(inc(i),x,y,plus(z,y)) 0.08/0.19 isZero(0()) -> true() 0.08/0.19 isZero(s(0())) -> false() 0.08/0.19 isZero(s(s(x))) -> isZero(s(x)) 0.08/0.19 inc(0()) -> s(0()) 0.08/0.19 inc(s(x)) -> s(inc(x)) 0.08/0.19 inc(x) -> s(x) 0.08/0.19 p(0()) -> 0() 0.08/0.19 p(s(x)) -> x 0.08/0.19 p(s(s(x))) -> s(p(s(x))) 0.08/0.19 ge(x,0()) -> true() 0.08/0.19 ge(0(),s(y)) -> false() 0.08/0.19 ge(s(x),s(y)) -> ge(x,y) 0.08/0.19 f0(0(),y,x) -> f1(x,y,x) 0.08/0.19 f1(x,y,z) -> f2(x,y,z) 0.08/0.19 f2(x,1(),z) -> f0(x,z,z) 0.08/0.19 f0(x,y,z) -> d() 0.08/0.19 f1(x,y,z) -> c() 0.08/0.19 0.08/0.19 Proof: 0.08/0.19 Open 0.08/0.19 EOF