YES Problem: cond(true(),x,y,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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,z) -> p#(y) cond#(true(),x,y,z) -> p#(x) cond#(true(),x,y,z) -> gr#(y,z) cond#(true(),x,y,z) -> gr#(x,z) cond#(true(),x,y,z) -> and#(gr(x,z),gr(y,z)) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond(true(),x,y,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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,z) -> p#(y) cond#(true(),x,y,z) -> p#(x) cond#(true(),x,y,z) -> gr#(y,z) cond#(true(),x,y,z) -> gr#(x,z) cond#(true(),x,y,z) -> and#(gr(x,z),gr(y,z)) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) gr#(s(x),s(y)) -> gr#(x,y) TRS: cond(true(),x,y,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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,z) -> gr#(y,z) -> gr#(s(x),s(y)) -> gr#(x,y) cond#(true(),x,y,z) -> gr#(x,z) -> gr#(s(x),s(y)) -> gr#(x,y) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> and#(gr(x,z),gr(y,z)) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> gr#(x,z) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> gr#(y,z) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> p#(x) cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) -> cond#(true(),x,y,z) -> p#(y) SCC Processor: #sccs: 2 #rules: 2 #arcs: 9/49 DPs: cond#(true(),x,y,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) TRS: cond(true(),x,y,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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,z) -> cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) TRS: p(0()) -> 0() p(s(x)) -> x gr(0(),0()) -> false() gr(0(),x) -> false() gr(s(x),0()) -> true() gr(s(x),s(y)) -> gr(x,y) 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() gr(s(x),s(y)) -> gr(x,y) and(true(),true()) -> true() and(x,false()) -> false() and(false(),x) -> false() interpretation: [p](x0) = -7x0 + 0, [cond#](x0, x1, x2, x3) = x0 + x1 + x2 + 0, [and](x0, x1) = x0 + x1 + 0, [false] = 0, [true] = 1, [s](x0) = 7x0 + 12, [0] = 0, [gr](x0, x1) = -8x0 + 0 orientation: cond#(true(),x,y,z) = x + y + 1 >= -7x + -7y + 0 = cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z) p(0()) = 0 >= 0 = 0() p(s(x)) = x + 5 >= x = x gr(0(),0()) = 0 >= 0 = false() gr(0(),x) = 0 >= 0 = false() gr(s(x),0()) = -1x + 4 >= 1 = true() gr(s(x),s(y)) = -1x + 4 >= -8x + 0 = gr(x,y) and(true(),true()) = 1 >= 1 = true() and(x,false()) = x + 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() gr(s(x),s(y)) -> gr(x,y) 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,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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,z) -> cond(and(gr(x,z),gr(y,z)),p(x),p(y),z) 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