The rewrite relation of the following TRS is considered.
app(app(*,x),app(app(+,y),z)) |
→ |
app(app(+,app(app(*,x),y)),app(app(*,x),z)) |
(1) |
app(app(map,f),nil) |
→ |
nil |
(2) |
app(app(map,f),app(app(cons,x),xs)) |
→ |
app(app(cons,app(f,x)),app(app(map,f),xs)) |
(3) |
app(app(filter,f),nil) |
→ |
nil |
(4) |
app(app(filter,f),app(app(cons,x),xs)) |
→ |
app(app(app(app(filter2,app(f,x)),f),x),xs) |
(5) |
app(app(app(app(filter2,true),f),x),xs) |
→ |
app(app(cons,x),app(app(filter,f),xs)) |
(6) |
app(app(app(app(filter2,false),f),x),xs) |
→ |
app(app(filter,f),xs) |
(7) |
app#(app(app(app(filter2,true),f),x),xs) |
→ |
app#(cons,x) |
(8) |
app#(app(app(app(filter2,false),f),x),xs) |
→ |
app#(filter,f) |
(9) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(cons,app(f,x)) |
(10) |
app#(app(filter,f),app(app(cons,x),xs)) |
→ |
app#(app(filter2,app(f,x)),f) |
(11) |
app#(app(filter,f),app(app(cons,x),xs)) |
→ |
app#(f,x) |
(12) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(cons,app(f,x)),app(app(map,f),xs)) |
(13) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(f,x) |
(14) |
app#(app(filter,f),app(app(cons,x),xs)) |
→ |
app#(app(app(app(filter2,app(f,x)),f),x),xs) |
(15) |
app#(app(filter,f),app(app(cons,x),xs)) |
→ |
app#(filter2,app(f,x)) |
(16) |
app#(app(app(app(filter2,false),f),x),xs) |
→ |
app#(app(filter,f),xs) |
(17) |
app#(app(*,x),app(app(+,y),z)) |
→ |
app#(+,app(app(*,x),y)) |
(18) |
app#(app(*,x),app(app(+,y),z)) |
→ |
app#(app(*,x),z) |
(19) |
app#(app(*,x),app(app(+,y),z)) |
→ |
app#(app(+,app(app(*,x),y)),app(app(*,x),z)) |
(20) |
app#(app(app(app(filter2,true),f),x),xs) |
→ |
app#(app(filter,f),xs) |
(21) |
app#(app(app(app(filter2,true),f),x),xs) |
→ |
app#(app(cons,x),app(app(filter,f),xs)) |
(22) |
app#(app(filter,f),app(app(cons,x),xs)) |
→ |
app#(app(app(filter2,app(f,x)),f),x) |
(23) |
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(map,f),xs) |
(24) |
app#(app(app(app(filter2,true),f),x),xs) |
→ |
app#(filter,f) |
(25) |
app#(app(*,x),app(app(+,y),z)) |
→ |
app#(app(*,x),y) |
(26) |
The dependency pairs are split into 2
components.