The rewrite relation of the following TRS is considered.
|
app(app(plus,0),y) |
→ |
y |
(1) |
|
app(app(plus,app(s,x)),y) |
→ |
app(s,app(app(plus,x),y)) |
(2) |
|
app(app(map,f),nil) |
→ |
nil |
(3) |
|
app(app(map,f),app(app(cons,x),xs)) |
→ |
app(app(cons,app(f,x)),app(app(map,f),xs)) |
(4) |
| inc |
→ |
app(map,app(plus,app(s,0))) |
(5) |
|
app#(app(plus,app(s,x)),y) |
→ |
app#(plus,x) |
(6) |
|
app#(app(plus,app(s,x)),y) |
→ |
app#(app(plus,x),y) |
(7) |
|
app#(app(plus,app(s,x)),y) |
→ |
app#(s,app(app(plus,x),y)) |
(8) |
|
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(map,f),xs) |
(9) |
|
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(f,x) |
(10) |
|
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(cons,app(f,x)) |
(11) |
|
app#(app(map,f),app(app(cons,x),xs)) |
→ |
app#(app(cons,app(f,x)),app(app(map,f),xs)) |
(12) |
| inc# |
→ |
app#(s,0) |
(13) |
| inc# |
→ |
app#(plus,app(s,0)) |
(14) |
| inc# |
→ |
app#(map,app(plus,app(s,0))) |
(15) |
The dependency pairs are split into 2
components.