MAYBE Problem: cond1(true(),x,y) -> cond2(gr(y,0()),x,y) cond2(true(),x,y) -> cond2(gr(y,0()),x,p(y)) cond2(false(),x,y) -> cond1(gr(x,0()),p(x),y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x Proof: DP Processor: DPs: cond1#(true(),x,y) -> gr#(y,0()) cond1#(true(),x,y) -> cond2#(gr(y,0()),x,y) cond2#(true(),x,y) -> p#(y) cond2#(true(),x,y) -> gr#(y,0()) cond2#(true(),x,y) -> cond2#(gr(y,0()),x,p(y)) cond2#(false(),x,y) -> p#(x) cond2#(false(),x,y) -> gr#(x,0()) cond2#(false(),x,y) -> cond1#(gr(x,0()),p(x),y) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond1(true(),x,y) -> cond2(gr(y,0()),x,y) cond2(true(),x,y) -> cond2(gr(y,0()),x,p(y)) cond2(false(),x,y) -> cond1(gr(x,0()),p(x),y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x Open