The rewrite relation of the following TRS is considered.
| app(app(neq,0),0) | → | false | (1) |
| app(app(neq,0),app(s,y)) | → | true | (2) |
| app(app(neq,app(s,x)),0) | → | true | (3) |
| app(app(neq,app(s,x)),app(s,y)) | → | app(app(neq,x),y) | (4) |
| app(app(filter,f),nil) | → | nil | (5) |
| app(app(filter,f),app(app(cons,y),ys)) | → | app(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (6) |
| app(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app(app(cons,y),app(app(filter,f),ys)) | (7) |
| app(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app(app(filter,f),ys) | (8) |
| nonzero | → | app(filter,app(neq,0)) | (9) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(app(filtersub,app(f,y)),f) | (10) |
| nonzero# | → | app#(neq,0) | (11) |
| app#(app(neq,app(s,x)),app(s,y)) | → | app#(neq,x) | (12) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(filter,f) | (13) |
| app#(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app#(filter,f) | (14) |
| app#(app(neq,app(s,x)),app(s,y)) | → | app#(app(neq,x),y) | (15) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(app(cons,y),app(app(filter,f),ys)) | (16) |
| app#(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (17) |
| nonzero# | → | app#(filter,app(neq,0)) | (18) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(filtersub,app(f,y)) | (19) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (20) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (21) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(f,y) | (22) |
The dependency pairs are split into 2 components.
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(f,y) | (22) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (21) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (20) |
| app#(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (17) |
| [neq] | = | 1 |
| [s] | = | 1 |
| [false] | = | 1 |
| [nonzero] | = | 0 |
| [true] | = | 2 |
| [filtersub] | = | 1 |
| [0] | = | 14235 |
| [nil] | = | 17221 |
| [app#(x1, x2)] | = | x1 + 0 |
| [nonzero#] | = | 0 |
| [cons] | = | 1 |
| [filter] | = | 1 |
| [app(x1, x2)] | = | x2 + 1 |
| app(app(neq,app(s,x)),app(s,y)) | → | app(app(neq,x),y) | (4) |
| app(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app(app(filter,f),ys) | (8) |
| app(app(neq,0),0) | → | false | (1) |
| app(app(neq,app(s,x)),0) | → | true | (3) |
| app(app(filter,f),nil) | → | nil | (5) |
| app(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app(app(cons,y),app(app(filter,f),ys)) | (7) |
| app(app(filter,f),app(app(cons,y),ys)) | → | app(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (6) |
| app(app(neq,0),app(s,y)) | → | true | (2) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(f,y) | (22) |
The dependency pairs are split into 1 component.
| app#(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (17) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (21) |
| app#(app(filter,f),app(app(cons,y),ys)) | → | app#(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (20) |
| [neq] | = | 1 |
| [s] | = | 1 |
| [false] | = | 1 |
| [nonzero] | = | 0 |
| [true] | = | 282 |
| [filtersub] | = | 1 |
| [0] | = | 7653 |
| [nil] | = | 6996 |
| [app#(x1, x2)] | = | x1 + x2 + 0 |
| [nonzero#] | = | 0 |
| [cons] | = | 1 |
| [filter] | = | 1 |
| [app(x1, x2)] | = | x2 + 6583 |
| app(app(neq,app(s,x)),app(s,y)) | → | app(app(neq,x),y) | (4) |
| app(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app(app(filter,f),ys) | (8) |
| app(app(neq,0),0) | → | false | (1) |
| app(app(neq,app(s,x)),0) | → | true | (3) |
| app(app(filter,f),nil) | → | nil | (5) |
| app(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app(app(cons,y),app(app(filter,f),ys)) | (7) |
| app(app(filter,f),app(app(cons,y),ys)) | → | app(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (6) |
| app(app(neq,0),app(s,y)) | → | true | (2) |
| app#(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (17) |
| app#(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app#(app(filter,f),ys) | (21) |
The dependency pairs are split into 0 components.
| app#(app(neq,app(s,x)),app(s,y)) | → | app#(app(neq,x),y) | (15) |
| [neq] | = | 1 |
| [s] | = | 1 |
| [false] | = | 1 |
| [nonzero] | = | 0 |
| [true] | = | 1 |
| [filtersub] | = | 1 |
| [0] | = | 46572 |
| [nil] | = | 42632 |
| [app#(x1, x2)] | = | x1 + x2 + 0 |
| [nonzero#] | = | 0 |
| [cons] | = | 1 |
| [filter] | = | 1 |
| [app(x1, x2)] | = | x2 + 1 |
| app(app(neq,app(s,x)),app(s,y)) | → | app(app(neq,x),y) | (4) |
| app(app(app(filtersub,false),f),app(app(cons,y),ys)) | → | app(app(filter,f),ys) | (8) |
| app(app(neq,0),0) | → | false | (1) |
| app(app(neq,app(s,x)),0) | → | true | (3) |
| app(app(filter,f),nil) | → | nil | (5) |
| app(app(app(filtersub,true),f),app(app(cons,y),ys)) | → | app(app(cons,y),app(app(filter,f),ys)) | (7) |
| app(app(filter,f),app(app(cons,y),ys)) | → | app(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) | (6) |
| app(app(neq,0),app(s,y)) | → | true | (2) |
| app#(app(neq,app(s,x)),app(s,y)) | → | app#(app(neq,x),y) | (15) |
The dependency pairs are split into 0 components.