The rewrite relation of the following TRS is considered.
app(app(and,true),true) | → | true | (1) |
app(app(and,true),false) | → | false | (2) |
app(app(and,false),true) | → | false | (3) |
app(app(and,false),false) | → | false | (4) |
app(app(or,true),true) | → | true | (5) |
app(app(or,true),false) | → | true | (6) |
app(app(or,false),true) | → | true | (7) |
app(app(or,false),false) | → | false | (8) |
app(app(forall,p),nil) | → | true | (9) |
app(app(forall,p),app(app(cons,x),xs)) | → | app(app(and,app(p,x)),app(app(forall,p),xs)) | (10) |
app(app(forsome,p),nil) | → | false | (11) |
app(app(forsome,p),app(app(cons,x),xs)) | → | app(app(or,app(p,x)),app(app(forsome,p),xs)) | (12) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(app(forall,p),xs) | (13) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(p,x) | (14) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(and,app(p,x)) | (15) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(app(and,app(p,x)),app(app(forall,p),xs)) | (16) |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(app(forsome,p),xs) | (17) |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(p,x) | (18) |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(or,app(p,x)) | (19) |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(app(or,app(p,x)),app(app(forsome,p),xs)) | (20) |
The dependency pairs are split into 1 component.
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(app(forsome,p),xs) | (17) |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(p,x) | (18) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(p,x) | (14) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(app(forall,p),xs) | (13) |
π(app#) | = | 1 |
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(p,x) | (18) |
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(p,x) | (14) |
The dependency pairs are split into 2 components.
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(app(forall,p),xs) | (13) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
app#(app(forall,p),app(app(cons,x),xs)) | → | app#(app(forall,p),xs) | (13) |
2 | > | 2 | |
1 | ≥ | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(app(forsome,p),xs) | (17) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
app#(app(forsome,p),app(app(cons,x),xs)) | → | app#(app(forsome,p),xs) | (17) |
2 | > | 2 | |
1 | ≥ | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.