YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Termination w.r.t. Q of the given QTRS could be proven: (0) QTRS (1) QTRSToCSRProof [EQUIVALENT, 0 ms] (2) CSR (3) CSRRRRProof [EQUIVALENT, 38 ms] (4) CSR (5) CSRRRRProof [EQUIVALENT, 9 ms] (6) CSR (7) CSRRRRProof [EQUIVALENT, 0 ms] (8) CSR (9) CSRRRRProof [EQUIVALENT, 0 ms] (10) CSR (11) CSRRRRProof [EQUIVALENT, 0 ms] (12) CSR (13) CSRRRRProof [EQUIVALENT, 0 ms] (14) CSR (15) CSRRRRProof [EQUIVALENT, 0 ms] (16) CSR (17) CSRRRRProof [EQUIVALENT, 0 ms] (18) CSR (19) RisEmptyProof [EQUIVALENT, 0 ms] (20) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: active(__(__(X, Y), Z)) -> mark(__(X, __(Y, Z))) active(__(X, nil)) -> mark(X) active(__(nil, X)) -> mark(X) active(and(tt, X)) -> mark(X) active(isList(V)) -> mark(isNeList(V)) active(isList(nil)) -> mark(tt) active(isList(__(V1, V2))) -> mark(and(isList(V1), isList(V2))) active(isNeList(V)) -> mark(isQid(V)) active(isNeList(__(V1, V2))) -> mark(and(isList(V1), isNeList(V2))) active(isNeList(__(V1, V2))) -> mark(and(isNeList(V1), isList(V2))) active(isNePal(V)) -> mark(isQid(V)) active(isNePal(__(I, __(P, I)))) -> mark(and(isQid(I), isPal(P))) active(isPal(V)) -> mark(isNePal(V)) active(isPal(nil)) -> mark(tt) active(isQid(a)) -> mark(tt) active(isQid(e)) -> mark(tt) active(isQid(i)) -> mark(tt) active(isQid(o)) -> mark(tt) active(isQid(u)) -> mark(tt) active(__(X1, X2)) -> __(active(X1), X2) active(__(X1, X2)) -> __(X1, active(X2)) active(and(X1, X2)) -> and(active(X1), X2) __(mark(X1), X2) -> mark(__(X1, X2)) __(X1, mark(X2)) -> mark(__(X1, X2)) and(mark(X1), X2) -> mark(and(X1, X2)) proper(__(X1, X2)) -> __(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(and(X1, X2)) -> and(proper(X1), proper(X2)) proper(tt) -> ok(tt) proper(isList(X)) -> isList(proper(X)) proper(isNeList(X)) -> isNeList(proper(X)) proper(isQid(X)) -> isQid(proper(X)) proper(isNePal(X)) -> isNePal(proper(X)) proper(isPal(X)) -> isPal(proper(X)) proper(a) -> ok(a) proper(e) -> ok(e) proper(i) -> ok(i) proper(o) -> ok(o) proper(u) -> ok(u) __(ok(X1), ok(X2)) -> ok(__(X1, X2)) and(ok(X1), ok(X2)) -> ok(and(X1, X2)) isList(ok(X)) -> ok(isList(X)) isNeList(ok(X)) -> ok(isNeList(X)) isQid(ok(X)) -> ok(isQid(X)) isNePal(ok(X)) -> ok(isNePal(X)) isPal(ok(X)) -> ok(isPal(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Q is empty. ---------------------------------------- (1) QTRSToCSRProof (EQUIVALENT) The following Q TRS is given: Q restricted rewrite system: The TRS R consists of the following rules: active(__(__(X, Y), Z)) -> mark(__(X, __(Y, Z))) active(__(X, nil)) -> mark(X) active(__(nil, X)) -> mark(X) active(and(tt, X)) -> mark(X) active(isList(V)) -> mark(isNeList(V)) active(isList(nil)) -> mark(tt) active(isList(__(V1, V2))) -> mark(and(isList(V1), isList(V2))) active(isNeList(V)) -> mark(isQid(V)) active(isNeList(__(V1, V2))) -> mark(and(isList(V1), isNeList(V2))) active(isNeList(__(V1, V2))) -> mark(and(isNeList(V1), isList(V2))) active(isNePal(V)) -> mark(isQid(V)) active(isNePal(__(I, __(P, I)))) -> mark(and(isQid(I), isPal(P))) active(isPal(V)) -> mark(isNePal(V)) active(isPal(nil)) -> mark(tt) active(isQid(a)) -> mark(tt) active(isQid(e)) -> mark(tt) active(isQid(i)) -> mark(tt) active(isQid(o)) -> mark(tt) active(isQid(u)) -> mark(tt) active(__(X1, X2)) -> __(active(X1), X2) active(__(X1, X2)) -> __(X1, active(X2)) active(and(X1, X2)) -> and(active(X1), X2) __(mark(X1), X2) -> mark(__(X1, X2)) __(X1, mark(X2)) -> mark(__(X1, X2)) and(mark(X1), X2) -> mark(and(X1, X2)) proper(__(X1, X2)) -> __(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(and(X1, X2)) -> and(proper(X1), proper(X2)) proper(tt) -> ok(tt) proper(isList(X)) -> isList(proper(X)) proper(isNeList(X)) -> isNeList(proper(X)) proper(isQid(X)) -> isQid(proper(X)) proper(isNePal(X)) -> isNePal(proper(X)) proper(isPal(X)) -> isPal(proper(X)) proper(a) -> ok(a) proper(e) -> ok(e) proper(i) -> ok(i) proper(o) -> ok(o) proper(u) -> ok(u) __(ok(X1), ok(X2)) -> ok(__(X1, X2)) and(ok(X1), ok(X2)) -> ok(and(X1, X2)) isList(ok(X)) -> ok(isList(X)) isNeList(ok(X)) -> ok(isNeList(X)) isQid(ok(X)) -> ok(isQid(X)) isNePal(ok(X)) -> ok(isNePal(X)) isPal(ok(X)) -> ok(isPal(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) Q is empty. Special symbols used for the transformation (see [GM04]): top: top_1, active: active_1, mark: mark_1, ok: ok_1, proper: proper_1 The replacement map contains the following entries: __: {1, 2} nil: empty set and: {1} tt: empty set isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set a: empty set e: empty set i: empty set o: empty set u: empty set The QTRS contained all rules created by the complete Giesl-Middeldorp transformation. Therefore, the inverse transformation is complete (and sound). ---------------------------------------- (2) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) __(X, nil) -> X __(nil, X) -> X and(tt, X) -> X isList(V) -> isNeList(V) isList(nil) -> tt isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isNePal(__(I, __(P, I))) -> and(isQid(I), isPal(P)) isPal(V) -> isNePal(V) isPal(nil) -> tt isQid(a) -> tt isQid(e) -> tt isQid(i) -> tt isQid(o) -> tt isQid(u) -> tt The replacement map contains the following entries: __: {1, 2} nil: empty set and: {1} tt: empty set isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set a: empty set e: empty set i: empty set o: empty set u: empty set ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) __(X, nil) -> X __(nil, X) -> X and(tt, X) -> X isList(V) -> isNeList(V) isList(nil) -> tt isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isNePal(__(I, __(P, I))) -> and(isQid(I), isPal(P)) isPal(V) -> isNePal(V) isPal(nil) -> tt isQid(a) -> tt isQid(e) -> tt isQid(i) -> tt isQid(o) -> tt isQid(u) -> tt The replacement map contains the following entries: __: {1, 2} nil: empty set and: {1} tt: empty set isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set a: empty set e: empty set i: empty set o: empty set u: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + x_1 + x_2 POL(a) = 0 POL(and(x_1, x_2)) = x_1 + x_2 POL(e) = 0 POL(i) = 1 POL(isList(x_1)) = 1 + x_1 POL(isNeList(x_1)) = 1 + x_1 POL(isNePal(x_1)) = 1 + x_1 POL(isPal(x_1)) = 1 + x_1 POL(isQid(x_1)) = 1 + x_1 POL(nil) = 0 POL(o) = 1 POL(tt) = 1 POL(u) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: __(X, nil) -> X __(nil, X) -> X and(tt, X) -> X isNePal(__(I, __(P, I))) -> and(isQid(I), isPal(P)) isQid(i) -> tt isQid(o) -> tt ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(nil) -> tt isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) isPal(nil) -> tt isQid(a) -> tt isQid(e) -> tt isQid(u) -> tt The replacement map contains the following entries: __: {1, 2} nil: empty set and: {1} tt: empty set isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set a: empty set e: empty set u: empty set ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(nil) -> tt isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) isPal(nil) -> tt isQid(a) -> tt isQid(e) -> tt isQid(u) -> tt The replacement map contains the following entries: __: {1, 2} nil: empty set and: {1} tt: empty set isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set a: empty set e: empty set u: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = x_1 + x_2 POL(a) = 1 POL(and(x_1, x_2)) = x_1 POL(e) = 1 POL(isList(x_1)) = 1 POL(isNeList(x_1)) = 1 POL(isNePal(x_1)) = 1 + x_1 POL(isPal(x_1)) = 1 + x_1 POL(isQid(x_1)) = 1 POL(nil) = 0 POL(tt) = 0 POL(u) = 1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isList(nil) -> tt isPal(nil) -> tt isQid(a) -> tt isQid(e) -> tt isQid(u) -> tt ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(V) -> isQid(V) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + x_1 + x_2 POL(and(x_1, x_2)) = 1 + x_1 POL(isList(x_1)) = 1 + x_1 POL(isNeList(x_1)) = 1 + x_1 POL(isNePal(x_1)) = x_1 POL(isPal(x_1)) = x_1 POL(isQid(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isNeList(V) -> isQid(V) ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set ---------------------------------------- (9) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isNePal(V) -> isQid(V) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isQid: empty set isNePal: empty set isPal: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + x_1 + x_2 POL(and(x_1, x_2)) = 1 + x_1 POL(isList(x_1)) = 1 + x_1 POL(isNeList(x_1)) = 1 + x_1 POL(isNePal(x_1)) = 1 + x_1 POL(isPal(x_1)) = 1 + x_1 POL(isQid(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isNePal(V) -> isQid(V) ---------------------------------------- (10) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isNePal: empty set isPal: empty set ---------------------------------------- (11) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) isPal(V) -> isNePal(V) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set isNePal: empty set isPal: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + x_1 + x_2 POL(and(x_1, x_2)) = 1 + x_1 POL(isList(x_1)) = 1 + x_1 POL(isNeList(x_1)) = 1 + x_1 POL(isNePal(x_1)) = x_1 POL(isPal(x_1)) = 1 + x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isPal(V) -> isNePal(V) ---------------------------------------- (12) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set ---------------------------------------- (13) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) The replacement map contains the following entries: __: {1, 2} and: {1} isList: empty set isNeList: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + x_1 + x_2 POL(and(x_1, x_2)) = x_1 POL(isList(x_1)) = x_1 POL(isNeList(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isList(__(V1, V2)) -> and(isList(V1), isList(V2)) isNeList(__(V1, V2)) -> and(isList(V1), isNeList(V2)) isNeList(__(V1, V2)) -> and(isNeList(V1), isList(V2)) ---------------------------------------- (14) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) The replacement map contains the following entries: __: {1, 2} isList: empty set isNeList: empty set ---------------------------------------- (15) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) isList(V) -> isNeList(V) The replacement map contains the following entries: __: {1, 2} isList: empty set isNeList: empty set Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = x_1 + x_2 POL(isList(x_1)) = 1 + x_1 POL(isNeList(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: isList(V) -> isNeList(V) ---------------------------------------- (16) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) The replacement map contains the following entries: __: {1, 2} ---------------------------------------- (17) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: __(__(X, Y), Z) -> __(X, __(Y, Z)) The replacement map contains the following entries: __: {1, 2} Used ordering: Polynomial interpretation [POLO]: POL(__(x_1, x_2)) = 1 + 2*x_1 + x_2 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: __(__(X, Y), Z) -> __(X, __(Y, Z)) ---------------------------------------- (18) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (19) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (20) YES