/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox/benchmark/theBenchmark.xml # AProVE Commit ID: c69e44bd14796315568835c1ffa2502984884775 mhark 20210624 unpublished Termination of the given CSR could be proven: (0) CSR (1) CSRRRRProof [EQUIVALENT, 110 ms] (2) CSR (3) CSRRRRProof [EQUIVALENT, 0 ms] (4) CSR (5) CSRRRRProof [EQUIVALENT, 3 ms] (6) CSR (7) CSRRRRProof [EQUIVALENT, 0 ms] (8) CSR (9) RisEmptyProof [EQUIVALENT, 0 ms] (10) YES ---------------------------------------- (0) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(0, X) -> X add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y, Z)) -> cons(Y, first(X, Z)) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} first: {1, 2} nil: empty set ---------------------------------------- (1) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(0, X) -> X add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y, Z)) -> cons(Y, first(X, Z)) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} first: {1, 2} nil: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(add(x_1, x_2)) = x_1 + x_2 POL(cons(x_1, x_2)) = x_1 POL(dbl(x_1)) = x_1 POL(first(x_1, x_2)) = x_1 + x_2 POL(nil) = 1 POL(recip(x_1)) = 1 + x_1 POL(s(x_1)) = 0 POL(sqr(x_1)) = x_1 POL(terms(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: add(0, X) -> X ---------------------------------------- (2) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y, Z)) -> cons(Y, first(X, Z)) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} first: {1, 2} nil: empty set ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y, Z)) -> cons(Y, first(X, Z)) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} first: {1, 2} nil: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(add(x_1, x_2)) = 1 + 2*x_1 + 2*x_2 POL(cons(x_1, x_2)) = 2 + 2*x_1 POL(dbl(x_1)) = 1 + x_1 POL(first(x_1, x_2)) = 1 + 2*x_1 + 2*x_2 POL(nil) = 0 POL(recip(x_1)) = x_1 POL(s(x_1)) = 2 POL(sqr(x_1)) = x_1 POL(terms(x_1)) = 2 + 2*x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y, Z)) -> cons(Y, first(X, Z)) ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set 0: empty set add: {1, 2} dbl: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(add(x_1, x_2)) = x_1 + x_2 POL(cons(x_1, x_2)) = x_1 POL(dbl(x_1)) = x_1 POL(recip(x_1)) = x_1 POL(s(x_1)) = 1 POL(sqr(x_1)) = 1 + x_1 POL(terms(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: sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N)), terms(s(N))) The replacement map contains the following entries: terms: {1} cons: {1} recip: {1} sqr: {1} s: empty set Used ordering: Polynomial interpretation [POLO]: POL(cons(x_1, x_2)) = x_1 POL(recip(x_1)) = 2*x_1 POL(s(x_1)) = 0 POL(sqr(x_1)) = x_1 POL(terms(x_1)) = 1 + 2*x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: terms(N) -> cons(recip(sqr(N)), terms(s(N))) ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (9) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (10) YES