MAYBE Problem: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x Proof: DP Processor: DPs: cond1#(true(),x,y) -> gr#(x,0()) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond2#(true(),x,y) -> p#(x) cond2#(true(),x,y) -> gr#(y,0()) cond2#(true(),x,y) -> gr#(x,0()) cond2#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) cond2#(false(),x,y) -> gr#(y,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) cond3#(true(),x,y) -> p#(y) cond3#(true(),x,y) -> gr#(y,0()) cond3#(true(),x,y) -> gr#(x,0()) cond3#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) cond3#(false(),x,y) -> gr#(y,0()) cond3#(false(),x,y) -> gr#(x,0()) cond3#(false(),x,y) -> or#(gr(x,0()),gr(y,0())) cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x TDG Processor: DPs: cond1#(true(),x,y) -> gr#(x,0()) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond2#(true(),x,y) -> p#(x) cond2#(true(),x,y) -> gr#(y,0()) cond2#(true(),x,y) -> gr#(x,0()) cond2#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) cond2#(false(),x,y) -> gr#(y,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) cond3#(true(),x,y) -> p#(y) cond3#(true(),x,y) -> gr#(y,0()) cond3#(true(),x,y) -> gr#(x,0()) cond3#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) cond3#(false(),x,y) -> gr#(y,0()) cond3#(false(),x,y) -> gr#(x,0()) cond3#(false(),x,y) -> or#(gr(x,0()),gr(y,0())) cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x graph: cond3#(false(),x,y) -> gr#(y,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond3#(false(),x,y) -> gr#(x,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) -> cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) -> cond1#(true(),x,y) -> gr#(x,0()) cond3#(true(),x,y) -> gr#(y,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond3#(true(),x,y) -> gr#(x,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) -> cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) -> cond1#(true(),x,y) -> gr#(x,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(false(),x,y) -> or#(gr(x,0()),gr(y,0())) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(false(),x,y) -> gr#(x,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(false(),x,y) -> gr#(y,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(true(),x,y) -> gr#(x,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(true(),x,y) -> gr#(y,0()) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) -> cond3#(true(),x,y) -> p#(y) cond2#(false(),x,y) -> gr#(y,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond2#(true(),x,y) -> gr#(y,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond2#(true(),x,y) -> gr#(x,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) -> cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) -> cond1#(true(),x,y) -> gr#(x,0()) gr#(s(x),s(y)) -> gr#(x,y) -> gr#(s(x),s(y)) -> gr#(x,y) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(false(),x,y) -> gr#(y,0()) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(true(),x,y) -> or#(gr(x,0()),gr(y,0())) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(true(),x,y) -> gr#(x,0()) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(true(),x,y) -> gr#(y,0()) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) -> cond2#(true(),x,y) -> p#(x) cond1#(true(),x,y) -> gr#(x,0()) -> gr#(s(x),s(y)) -> gr#(x,y) SCC Processor: #sccs: 2 #rules: 6 #arcs: 31/361 DPs: cond3#(false(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,y) cond1#(true(),x,y) -> cond2#(gr(x,0()),x,y) cond2#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),p(x),y) cond2#(false(),x,y) -> cond3#(gr(y,0()),x,y) cond3#(true(),x,y) -> cond1#(or(gr(x,0()),gr(y,0())),x,p(y)) TRS: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x Open DPs: gr#(s(x),s(y)) -> gr#(x,y) TRS: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x Subterm Criterion Processor: simple projection: pi(gr#) = 1 problem: DPs: TRS: cond1(true(),x,y) -> cond2(gr(x,0()),x,y) cond2(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),p(x),y) cond2(false(),x,y) -> cond3(gr(y,0()),x,y) cond3(true(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,p(y)) cond3(false(),x,y) -> cond1(or(gr(x,0()),gr(y,0())),x,y) gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) or(false(),false()) -> false() or(true(),x) -> true() or(x,true()) -> true() p(0()) -> 0() p(s(x)) -> x Qed