MAYBE Problem: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() 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: cond#(true(),x,y) -> p#(y) cond#(true(),x,y) -> p#(x) cond#(true(),x,y) -> gr#(y,0()) cond#(true(),x,y) -> gr#(x,0()) cond#(true(),x,y) -> and#(gr(x,0()),gr(y,0())) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x Usable Rule Processor: DPs: cond#(true(),x,y) -> p#(y) cond#(true(),x,y) -> p#(x) cond#(true(),x,y) -> gr#(y,0()) cond#(true(),x,y) -> gr#(x,0()) cond#(true(),x,y) -> and#(gr(x,0()),gr(y,0())) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) gr#(s(x),s(y)) -> gr#(x,y) TRS: f12(x,y) -> x f12(x,y) -> y gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() p(0()) -> 0() p(s(x)) -> x and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() CDG Processor: DPs: cond#(true(),x,y) -> p#(y) cond#(true(),x,y) -> p#(x) cond#(true(),x,y) -> gr#(y,0()) cond#(true(),x,y) -> gr#(x,0()) cond#(true(),x,y) -> and#(gr(x,0()),gr(y,0())) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) gr#(s(x),s(y)) -> gr#(x,y) TRS: f12(x,y) -> x f12(x,y) -> y gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() p(0()) -> 0() p(s(x)) -> x and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() graph: gr#(s(x),s(y)) -> gr#(x,y) -> gr#(s(x),s(y)) -> gr#(x,y) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> p#(y) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> p#(x) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> gr#(y,0()) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> gr#(x,0()) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> and#(gr(x,0()),gr(y,0())) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) Restore Modifier: DPs: cond#(true(),x,y) -> p#(y) cond#(true(),x,y) -> p#(x) cond#(true(),x,y) -> gr#(y,0()) cond#(true(),x,y) -> gr#(x,0()) cond#(true(),x,y) -> and#(gr(x,0()),gr(y,0())) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x SCC Processor: #sccs: 2 #rules: 2 #arcs: 7/49 DPs: cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) TRS: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() 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 DPs: gr#(s(x),s(y)) -> gr#(x,y) TRS: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x Matrix Interpretation Processor: dimension: 1 interpretation: [gr#](x0, x1) = x1 + 1, [s](x0) = x0 + 1, [false] = 1, [p](x0) = x0, [and](x0, x1) = 1, [gr](x0, x1) = 1, [0] = 0, [cond](x0, x1, x2) = x0 + 1, [true] = 1 orientation: gr#(s(x),s(y)) = y + 2 >= y + 1 = gr#(x,y) cond(true(),x,y) = 2 >= 2 = cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) = 1 >= 1 = true() and(x,false()) = 1 >= 1 = false() and(false(),x) = 1 >= 1 = false() gr(0(),0()) = 1 >= 1 = false() gr(0(),x) = 1 >= 1 = false() gr(s(x),0()) = 1 >= 1 = true() gr(s(x),s(y)) = 1 >= 1 = gr(x,y) p(0()) = 0 >= 0 = 0() p(s(x)) = x + 1 >= x = x problem: DPs: TRS: cond(true(),x,y) -> cond(and(gr(x,0()),gr(y,0())),p(x),p(y)) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) p(0()) -> 0() p(s(x)) -> x Qed