Problem: +(x,0()) -> x +(x,s(y)) -> s(+(x,y)) +(x,p(y)) -> p(+(x,y)) +(0(),y) -> y +(s(x),y) -> s(+(x,y)) +(p(x),y) -> p(+(x,y)) s(p(x)) -> x p(s(x)) -> x +(x,y) -> +(y,x) Proof: AT confluence processor Complete TRS T' of input TRS: +(x,0()) -> x +(x,s(y)) -> s(+(x,y)) +(x,p(y)) -> p(+(x,y)) +(0(),y) -> y +(s(x),y) -> s(+(x,y)) +(p(x),y) -> p(+(x,y)) s(p(x)) -> x p(s(x)) -> x +(x,y) -> +(y,x) T' = (P union S) with TRS P:+(x,y) -> +(y,x) TRS S:+(x,0()) -> x +(x,s(y)) -> s(+(x,y)) +(x,p(y)) -> p(+(x,y)) +(0(),y) -> y +(s(x),y) -> s(+(x,y)) +(p(x),y) -> p(+(x,y)) s(p(x)) -> x p(s(x)) -> x S is linear and P is reversible. CP(S,S) = 0() = 0(), s(x) = s(+(x,0())), p(x) = p(+(x,0())), s(+(0(),x559)) = s(x559), s(+(s(x),x561)) = s(+(x,s(x561))), s(+(p(x),x563)) = p(+(x,s(x563))), p(+(0(),x565)) = p(x565), p(+(s(x),x567)) = s(+(x,p(x567))), p(+(p(x),x569)) = p(+(x,p(x569))), s(y) = s(+(0(),y)), p(y) = p(+(0(),y)), s(+(x573,0())) = s(x573), s(+(x575,s(y))) = s(+(s(x575),y)), s(+(x577,p(y))) = p(+(s(x577),y)), p(+(x579,0())) = p(x579), p(+(x581,s(y))) = s(+(p(x581),y)), p(+(x583,p(y))) = p(+(p(x583),y)), +(x,x585) = s(+(x,p(x585))), +(x586,y) = s(+(p(x586),y)), p(x587) = p(x587), +(x,x588) = p(+(x,s(x588))), +(x589,y) = p(+(s(x589),y)), s(x590) = s(x590) CP(S,P union P^-1) = x = +(0(),x), y = +(0(),y), s(+(x,x618)) = +(s(x618),x), s(+(y,x620)) = +(s(x620),y), p(+(x,x622)) = +(p(x622),x), p(+(y,x624)) = +(p(x624),y), y = +(y,0()), x = +(x,0()), s(+(x627,y)) = +(y,s(x627)), s(+(x629,x)) = +(x,s(x629)), p(+(x631,y)) = +(y,p(x631)), p(+(x633,x)) = +(x,p(x633)) CP(P union P^-1,S) = +(0(),x) = x, +(s(y),x) = s(+(x,y)), +(p(y),x) = p(+(x,y)), +(y,0()) = y, +(y,s(x)) = s(+(x,y)), +(y,p(x)) = p(+(x,y)) We have to check termination of S: Matrix Interpretation Processor: dim=1 interpretation: [+](x0, x1) = x0 + x1, [p](x0) = x0 + 6, [0] = 3, [s](x0) = x0 + 1 orientation: +(x,0()) = x + 3 >= x = x +(x,s(y)) = x + y + 1 >= x + y + 1 = s(+(x,y)) +(x,p(y)) = x + y + 6 >= x + y + 6 = p(+(x,y)) +(0(),y) = y + 3 >= y = y +(s(x),y) = x + y + 1 >= x + y + 1 = s(+(x,y)) +(p(x),y) = x + y + 6 >= x + y + 6 = p(+(x,y)) s(p(x)) = x + 7 >= x = x p(s(x)) = x + 7 >= x = x problem: +(x,s(y)) -> s(+(x,y)) +(x,p(y)) -> p(+(x,y)) +(s(x),y) -> s(+(x,y)) +(p(x),y) -> p(+(x,y)) Matrix Interpretation Processor: dim=1 interpretation: [+](x0, x1) = 4x0 + x1 + 7, [p](x0) = x0 + 1, [s](x0) = x0 orientation: +(x,s(y)) = 4x + y + 7 >= 4x + y + 7 = s(+(x,y)) +(x,p(y)) = 4x + y + 8 >= 4x + y + 8 = p(+(x,y)) +(s(x),y) = 4x + y + 7 >= 4x + y + 7 = s(+(x,y)) +(p(x),y) = 4x + y + 11 >= 4x + y + 8 = p(+(x,y)) problem: +(x,s(y)) -> s(+(x,y)) +(x,p(y)) -> p(+(x,y)) +(s(x),y) -> s(+(x,y)) Matrix Interpretation Processor: dim=1 interpretation: [+](x0, x1) = 2x0 + 6x1, [p](x0) = x0, [s](x0) = x0 + 2 orientation: +(x,s(y)) = 2x + 6y + 12 >= 2x + 6y + 2 = s(+(x,y)) +(x,p(y)) = 2x + 6y >= 2x + 6y = p(+(x,y)) +(s(x),y) = 2x + 6y + 4 >= 2x + 6y + 2 = s(+(x,y)) problem: +(x,p(y)) -> p(+(x,y)) Matrix Interpretation Processor: dim=1 interpretation: [+](x0, x1) = x0 + 4x1, [p](x0) = x0 + 5 orientation: +(x,p(y)) = x + 4y + 20 >= x + 4y + 5 = p(+(x,y)) problem: Qed