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:
       [cond#](x0, x1, x2, x3) = x0 + 1x1 + 1x2 + 0,
       
       [s](x0) = 4x0 + 3,
       
       [0] = 1,
       
       [false] = 0,
       
       [p](x0) = -1x0 + 1,
       
       [and](x0, x1) = x0 + x1,
       
       [gr](x0, x1) = x0,
       
       [true] = 3
      orientation:
       cond#(true(),x,y,z) = 1x + 1y + 3 >= x + y + 2 = cond#(and(gr(x,z),gr(y,z)),p(x),p(y),z)
       
       p(0()) = 1 >= 1 = 0()
       
       p(s(x)) = 3x + 2 >= x = x
       
       gr(0(),0()) = 1 >= 0 = false()
       
       gr(0(),x) = 1 >= 0 = false()
       
       gr(s(x),0()) = 4x + 3 >= 3 = true()
       
       gr(s(x),s(y)) = 4x + 3 >= x = gr(x,y)
       
       and(true(),true()) = 3 >= 3 = 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#) = 1
     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