/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.xml /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.xml # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 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, 12 ms] (4) CSR (5) CSRRRRProof [EQUIVALENT, 0 ms] (6) CSR (7) CSRRRRProof [EQUIVALENT, 0 ms] (8) CSR (9) RisEmptyProof [EQUIVALENT, 0 ms] (10) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: active(from(X)) -> mark(cons(X, from(s(X)))) active(length(nil)) -> mark(0) active(length(cons(X, Y))) -> mark(s(length1(Y))) active(length1(X)) -> mark(length(X)) active(from(X)) -> from(active(X)) active(cons(X1, X2)) -> cons(active(X1), X2) active(s(X)) -> s(active(X)) from(mark(X)) -> mark(from(X)) cons(mark(X1), X2) -> mark(cons(X1, X2)) s(mark(X)) -> mark(s(X)) proper(from(X)) -> from(proper(X)) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(s(X)) -> s(proper(X)) proper(length(X)) -> length(proper(X)) proper(nil) -> ok(nil) proper(0) -> ok(0) proper(length1(X)) -> length1(proper(X)) from(ok(X)) -> ok(from(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) s(ok(X)) -> ok(s(X)) length(ok(X)) -> ok(length(X)) length1(ok(X)) -> ok(length1(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(from(X)) -> mark(cons(X, from(s(X)))) active(length(nil)) -> mark(0) active(length(cons(X, Y))) -> mark(s(length1(Y))) active(length1(X)) -> mark(length(X)) active(from(X)) -> from(active(X)) active(cons(X1, X2)) -> cons(active(X1), X2) active(s(X)) -> s(active(X)) from(mark(X)) -> mark(from(X)) cons(mark(X1), X2) -> mark(cons(X1, X2)) s(mark(X)) -> mark(s(X)) proper(from(X)) -> from(proper(X)) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(s(X)) -> s(proper(X)) proper(length(X)) -> length(proper(X)) proper(nil) -> ok(nil) proper(0) -> ok(0) proper(length1(X)) -> length1(proper(X)) from(ok(X)) -> ok(from(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) s(ok(X)) -> ok(s(X)) length(ok(X)) -> ok(length(X)) length1(ok(X)) -> ok(length1(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: from: {1} cons: {1} s: {1} length: empty set nil: empty set 0: empty set length1: 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: from(X) -> cons(X, from(s(X))) length(nil) -> 0 length(cons(X, Y)) -> s(length1(Y)) length1(X) -> length(X) The replacement map contains the following entries: from: {1} cons: {1} s: {1} length: empty set nil: empty set 0: empty set length1: empty set ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: from(X) -> cons(X, from(s(X))) length(nil) -> 0 length(cons(X, Y)) -> s(length1(Y)) length1(X) -> length(X) The replacement map contains the following entries: from: {1} cons: {1} s: {1} length: empty set nil: empty set 0: empty set length1: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(cons(x_1, x_2)) = x_1 POL(from(x_1)) = 1 + x_1 POL(length(x_1)) = 1 POL(length1(x_1)) = 1 POL(nil) = 0 POL(s(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: from(X) -> cons(X, from(s(X))) ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: length(nil) -> 0 length(cons(X, Y)) -> s(length1(Y)) length1(X) -> length(X) The replacement map contains the following entries: cons: {1} s: {1} length: empty set nil: empty set 0: empty set length1: empty set ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: length(nil) -> 0 length(cons(X, Y)) -> s(length1(Y)) length1(X) -> length(X) The replacement map contains the following entries: cons: {1} s: {1} length: empty set nil: empty set 0: empty set length1: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(cons(x_1, x_2)) = 1 + x_1 + x_2 POL(length(x_1)) = 1 + x_1 POL(length1(x_1)) = 1 + x_1 POL(nil) = 1 POL(s(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: length(nil) -> 0 length(cons(X, Y)) -> s(length1(Y)) ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: length1(X) -> length(X) The replacement map contains the following entries: length: empty set length1: empty set ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: length1(X) -> length(X) The replacement map contains the following entries: length: empty set length1: empty set Used ordering: Matrix interpretation [MATRO] to (N^2, +, *, >=, >) : <<< POL(length1(x_1)) = [[1]] + [[1, 1]] * x_1 >>> <<< POL(length(x_1)) = [[0]] + [[1, 1]] * x_1 >>> With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: length1(X) -> length(X) ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (9) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (10) YES