YES 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 TDG 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 graph: gr#(s(x),s(y)) -> gr#(x,y) -> gr#(s(x),s(y)) -> gr#(x,y) cond#(true(),x,y) -> gr#(y,0()) -> gr#(s(x),s(y)) -> gr#(x,y) cond#(true(),x,y) -> gr#(x,0()) -> 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) -> 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)) -> 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) -> gr#(x,0()) 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) -> p#(x) cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) -> cond#(true(),x,y) -> p#(y) SCC Processor: #sccs: 2 #rules: 2 #arcs: 9/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 Usable Rule Processor: DPs: cond#(true(),x,y) -> cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) TRS: p(0()) -> 0() p(s(x)) -> x gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() Arctic Interpretation Processor: dimension: 1 usable rules: p(0()) -> 0() p(s(x)) -> x gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() interpretation: [and](x0, x1) = x1 + 0, [cond#](x0, x1, x2) = -6x0 + -3x2 + 0, [gr](x0, x1) = -2x0 + 5x1 + 0, [p](x0) = -5x0 + 1, [true] = 7, [s](x0) = 6x0 + 9, [false] = 0, [0] = 1 orientation: cond#(true(),x,y) = -3y + 1 >= -8y + 0 = cond#(and(gr(x,0()),gr(y,0())),p(x),p(y)) p(0()) = 1 >= 1 = 0() p(s(x)) = 1x + 4 >= x = x gr(0(),0()) = 6 >= 0 = false() gr(0(),x) = 5x + 0 >= 0 = false() gr(s(x),0()) = 4x + 7 >= 7 = true() and(true(),true()) = 7 >= 7 = true() and(x,false()) = 0 >= 0 = false() and(false(),x) = x + 0 >= 0 = false() problem: DPs: TRS: p(0()) -> 0() p(s(x)) -> x gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() Qed 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 Subterm Criterion Processor: simple projection: pi(gr#) = 0 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