The rewrite relation of the following TRS is considered.
f(x,f(a,y)) | → | f(a,f(f(f(a,a),y),x)) | (1) |
f#(x,f(a,y)) | → | f#(a,f(f(f(a,a),y),x)) | (2) |
f#(x,f(a,y)) | → | f#(f(f(a,a),y),x) | (3) |
f#(x,f(a,y)) | → | f#(f(a,a),y) | (4) |
f#(x,f(a,y)) | → | f#(a,a) | (5) |
f#(x,f(a,y)) | → | f#(a,a) | (5) |
f#(f(a,x1),f(a,y1)) | → | f#(a,f(a,f(f(f(a,a),x1),f(f(a,a),y1)))) | (6) |
f#(y0,f(a,f(a,x1))) | → | f#(a,f(f(a,f(f(f(a,a),x1),f(a,a))),y0)) | (7) |
t0 | = | f#(f(f(a,y'''),f(x''',f(a,y'))),f(f(a,y''),f(x'',f(a,y)))) |
→R | f#(f(f(a,y'''),f(x''',f(a,y'))),f(f(a,y''),f(a,f(f(f(a,a),y),x'')))) | |
→R | f#(f(f(a,y'''),f(x''',f(a,y'))),f(a,f(f(f(a,a),f(f(f(a,a),y),x'')),f(a,y'')))) | |
→P | f#(f(f(a,a),f(f(f(a,a),f(f(f(a,a),y),x'')),f(a,y''))),f(f(a,y'''),f(x''',f(a,y')))) | |
= | t3 |