The rewrite relation of the following TRS is considered.
app(app(map,f),nil) |
→ |
nil |
(1) |
app(app(map,f),app(app(cons,x),xs)) |
→ |
app(app(cons,app(f,x)),app(app(map,f),xs)) |
(2) |
app(app(append,xs),nil) |
→ |
xs |
(3) |
app(app(append,nil),ys) |
→ |
ys |
(4) |
app(app(append,app(app(cons,x),xs)),ys) |
→ |
app(app(cons,x),app(app(append,xs),ys)) |
(5) |
app(app(zip,nil),yss) |
→ |
yss |
(6) |
app(app(zip,xss),nil) |
→ |
xss |
(7) |
app(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app(app(cons,app(app(append,xs),ys)),app(app(zip,xss),yss)) |
(8) |
app(app(combine,xs),nil) |
→ |
xs |
(9) |
app(app(combine,xs),app(app(cons,ys),yss)) |
→ |
app(app(combine,app(app(zip,xs),ys)),yss) |
(10) |
app(levels,app(app(node,x),xs)) |
→ |
app(app(cons,app(app(cons,x),nil)),app(app(combine,nil),app(app(map,levels),xs))) |
(11) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(map,f),xs) |
(12) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(f,x) |
(13) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(cons,app(f,x)) |
(14) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(cons,app(f,x)),app(app(map,f),xs)) |
(15) |
app#(app(append,app(app(cons,x),xs)),ys) |
→ |
app#(append,xs) |
(16) |
app#(app(append,app(app(cons,x),xs)),ys) |
→ |
app#(app(append,xs),ys) |
(17) |
app#(app(append,app(app(cons,x),xs)),ys) |
→ |
app#(app(cons,x),app(app(append,xs),ys)) |
(18) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(zip,xss) |
(19) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(app(zip,xss),yss) |
(20) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(append,xs) |
(21) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(app(append,xs),ys) |
(22) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(cons,app(app(append,xs),ys)) |
(23) |
app#(app(zip,app(app(cons,xs),xss)),app(app(cons,ys),yss)) |
→ |
app#(app(cons,app(app(append,xs),ys)),app(app(zip,xss),yss)) |
(24) |
app#(app(combine,xs),app(app(cons,ys),yss)) |
→ |
app#(zip,xs) |
(25) |
app#(app(combine,xs),app(app(cons,ys),yss)) |
→ |
app#(app(zip,xs),ys) |
(26) |
app#(app(combine,xs),app(app(cons,ys),yss)) |
→ |
app#(combine,app(app(zip,xs),ys)) |
(27) |
app#(app(combine,xs),app(app(cons,ys),yss)) |
→ |
app#(app(combine,app(app(zip,xs),ys)),yss) |
(28) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(map,levels) |
(29) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(app(map,levels),xs) |
(30) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(combine,nil) |
(31) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(app(combine,nil),app(app(map,levels),xs)) |
(32) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(cons,x) |
(33) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(app(cons,x),nil) |
(34) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(cons,app(app(cons,x),nil)) |
(35) |
app#(levels,app(app(node,x),xs)) |
→ |
app#(app(cons,app(app(cons,x),nil)),app(app(combine,nil),app(app(map,levels),xs))) |
(36) |
The dependency pairs are split into 4
components.