The rewrite relation of the following TRS is considered.
app(app(app(if,true),x),y) | → | x | (1) |
app(app(app(if,true),x),y) | → | y | (2) |
app(app(takeWhile,p),nil) | → | nil | (3) |
app(app(takeWhile,p),app(app(cons,x),xs)) | → | app(app(app(if,app(p,x)),app(app(cons,x),app(app(takeWhile,p),xs))),nil) | (4) |
app(app(dropWhile,p),nil) | → | nil | (5) |
app(app(dropWhile,p),app(app(cons,x),xs)) | → | app(app(app(if,app(p,x)),app(app(dropWhile,p),xs)),app(app(cons,x),xs)) | (6) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(app(if,app(p,x)),app(app(dropWhile,p),xs)) | (7) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(app(if,app(p,x)),app(app(cons,x),app(app(takeWhile,p),xs))),nil) | (8) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (9) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(takeWhile,p),xs) | (10) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(if,app(p,x)),app(app(cons,x),app(app(takeWhile,p),xs))) | (11) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(cons,x),app(app(takeWhile,p),xs)) | (12) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(app(dropWhile,p),xs) | (13) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(if,app(p,x)) | (14) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(app(app(if,app(p,x)),app(app(dropWhile,p),xs)),app(app(cons,x),xs)) | (15) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(if,app(p,x)) | (16) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (17) |
The dependency pairs are split into 1 component.
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (17) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(takeWhile,p),xs) | (10) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (9) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(app(dropWhile,p),xs) | (13) |
[true] | = | 1 |
[takeWhile] | = | 12940 |
[if] | = | 24287 |
[nil] | = | 60386 |
[app#(x1, x2)] | = | x2 + 0 |
[cons] | = | 10732 |
[dropWhile] | = | 39558 |
[app(x1, x2)] | = | x1 + x2 + 26391 |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (17) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(app(takeWhile,p),xs) | (10) |
app#(app(takeWhile,p),app(app(cons,x),xs)) | → | app#(p,x) | (9) |
app#(app(dropWhile,p),app(app(cons,x),xs)) | → | app#(app(dropWhile,p),xs) | (13) |
The dependency pairs are split into 0 components.