/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: 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, 29 ms] (4) CSR (5) CSRRRRProof [EQUIVALENT, 0 ms] (6) CSR (7) CSRRRRProof [EQUIVALENT, 4 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) RisEmptyProof [EQUIVALENT, 0 ms] (16) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: active(nats) -> mark(adx(zeros)) active(zeros) -> mark(cons(0, zeros)) active(incr(cons(X, Y))) -> mark(cons(s(X), incr(Y))) active(adx(cons(X, Y))) -> mark(incr(cons(X, adx(Y)))) active(hd(cons(X, Y))) -> mark(X) active(tl(cons(X, Y))) -> mark(Y) active(adx(X)) -> adx(active(X)) active(incr(X)) -> incr(active(X)) active(hd(X)) -> hd(active(X)) active(tl(X)) -> tl(active(X)) adx(mark(X)) -> mark(adx(X)) incr(mark(X)) -> mark(incr(X)) hd(mark(X)) -> mark(hd(X)) tl(mark(X)) -> mark(tl(X)) proper(nats) -> ok(nats) proper(adx(X)) -> adx(proper(X)) proper(zeros) -> ok(zeros) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(0) -> ok(0) proper(incr(X)) -> incr(proper(X)) proper(s(X)) -> s(proper(X)) proper(hd(X)) -> hd(proper(X)) proper(tl(X)) -> tl(proper(X)) adx(ok(X)) -> ok(adx(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) incr(ok(X)) -> ok(incr(X)) s(ok(X)) -> ok(s(X)) hd(ok(X)) -> ok(hd(X)) tl(ok(X)) -> ok(tl(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(nats) -> mark(adx(zeros)) active(zeros) -> mark(cons(0, zeros)) active(incr(cons(X, Y))) -> mark(cons(s(X), incr(Y))) active(adx(cons(X, Y))) -> mark(incr(cons(X, adx(Y)))) active(hd(cons(X, Y))) -> mark(X) active(tl(cons(X, Y))) -> mark(Y) active(adx(X)) -> adx(active(X)) active(incr(X)) -> incr(active(X)) active(hd(X)) -> hd(active(X)) active(tl(X)) -> tl(active(X)) adx(mark(X)) -> mark(adx(X)) incr(mark(X)) -> mark(incr(X)) hd(mark(X)) -> mark(hd(X)) tl(mark(X)) -> mark(tl(X)) proper(nats) -> ok(nats) proper(adx(X)) -> adx(proper(X)) proper(zeros) -> ok(zeros) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(0) -> ok(0) proper(incr(X)) -> incr(proper(X)) proper(s(X)) -> s(proper(X)) proper(hd(X)) -> hd(proper(X)) proper(tl(X)) -> tl(proper(X)) adx(ok(X)) -> ok(adx(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) incr(ok(X)) -> ok(incr(X)) s(ok(X)) -> ok(s(X)) hd(ok(X)) -> ok(hd(X)) tl(ok(X)) -> ok(tl(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: nats: empty set adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set hd: {1} tl: {1} 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: nats -> adx(zeros) zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) hd(cons(X, Y)) -> X tl(cons(X, Y)) -> Y The replacement map contains the following entries: nats: empty set adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set hd: {1} tl: {1} ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: nats -> adx(zeros) zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) hd(cons(X, Y)) -> X tl(cons(X, Y)) -> Y The replacement map contains the following entries: nats: empty set adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set hd: {1} tl: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = 1 + x_1 POL(cons(x_1, x_2)) = x_1 + x_2 POL(hd(x_1)) = 1 + x_1 POL(incr(x_1)) = x_1 POL(nats) = 1 POL(s(x_1)) = 0 POL(tl(x_1)) = x_1 POL(zeros) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: hd(cons(X, Y)) -> X ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: nats -> adx(zeros) zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) tl(cons(X, Y)) -> Y The replacement map contains the following entries: nats: empty set adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set tl: {1} ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: nats -> adx(zeros) zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) tl(cons(X, Y)) -> Y The replacement map contains the following entries: nats: empty set adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set tl: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(adx(x_1)) = x_1 POL(cons(x_1, x_2)) = x_2 POL(incr(x_1)) = x_1 POL(nats) = 2 POL(s(x_1)) = 2 + x_1 POL(tl(x_1)) = 2*x_1 POL(zeros) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: nats -> adx(zeros) ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) tl(cons(X, Y)) -> Y The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set tl: {1} ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) tl(cons(X, Y)) -> Y The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set tl: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = x_1 POL(cons(x_1, x_2)) = x_1 + x_2 POL(incr(x_1)) = x_1 POL(s(x_1)) = x_1 POL(tl(x_1)) = 1 + x_1 POL(zeros) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: tl(cons(X, Y)) -> Y ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set ---------------------------------------- (9) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) incr(cons(X, Y)) -> cons(s(X), incr(Y)) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} s: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = 1 + x_1 POL(cons(x_1, x_2)) = 1 + x_1 POL(incr(x_1)) = 1 + x_1 POL(s(x_1)) = x_1 POL(zeros) = 1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: incr(cons(X, Y)) -> cons(s(X), incr(Y)) ---------------------------------------- (10) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} ---------------------------------------- (11) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) adx(cons(X, Y)) -> incr(cons(X, adx(Y))) The replacement map contains the following entries: adx: {1} zeros: empty set cons: empty set 0: empty set incr: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = 1 + 2*x_1 POL(cons(x_1, x_2)) = 2 + x_1 POL(incr(x_1)) = x_1 POL(zeros) = 2 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: adx(cons(X, Y)) -> incr(cons(X, adx(Y))) ---------------------------------------- (12) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) The replacement map contains the following entries: zeros: empty set cons: empty set 0: empty set ---------------------------------------- (13) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: zeros -> cons(0, zeros) The replacement map contains the following entries: zeros: empty set cons: empty set 0: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(cons(x_1, x_2)) = 0 POL(zeros) = 1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: zeros -> cons(0, zeros) ---------------------------------------- (14) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (15) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (16) YES