MAYBE 0.08/0.18 MAYBE 0.08/0.19 0.08/0.19 Problem: 0.08/0.19 p(s(x)) -> x 0.08/0.19 p(0()) -> 0() 0.08/0.19 le(0(),y) -> true() 0.08/0.19 le(s(x),0()) -> false() 0.08/0.19 le(s(x),s(y)) -> le(x,y) 0.08/0.19 average(x,y) -> if(le(x,0()),le(y,0()),le(y,s(0())),le(y,s(s(0()))),x,y) 0.08/0.19 if(true(),b1,b2,b3,x,y) -> if2(b1,b2,b3,x,y) 0.08/0.19 if(false(),b1,b2,b3,x,y) -> average(p(x),s(y)) 0.08/0.19 if2(true(),b2,b3,x,y) -> 0() 0.08/0.19 if2(false(),b2,b3,x,y) -> if3(b2,b3,x,y) 0.08/0.19 if3(true(),b3,x,y) -> 0() 0.08/0.19 if3(false(),b3,x,y) -> if4(b3,x,y) 0.08/0.19 if4(true(),x,y) -> s(0()) 0.08/0.19 if4(false(),x,y) -> average(s(x),p(p(y))) 0.08/0.19 0.08/0.19 Proof: 0.08/0.19 Open 0.08/0.19 EOF