/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, 42 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(eq(0, 0)) -> mark(true) active(eq(s(X), s(Y))) -> mark(eq(X, Y)) active(eq(X, Y)) -> mark(false) active(inf(X)) -> mark(cons(X, inf(s(X)))) active(take(0, X)) -> mark(nil) active(take(s(X), cons(Y, L))) -> mark(cons(Y, take(X, L))) active(length(nil)) -> mark(0) active(length(cons(X, L))) -> mark(s(length(L))) active(inf(X)) -> inf(active(X)) active(take(X1, X2)) -> take(active(X1), X2) active(take(X1, X2)) -> take(X1, active(X2)) active(length(X)) -> length(active(X)) inf(mark(X)) -> mark(inf(X)) take(mark(X1), X2) -> mark(take(X1, X2)) take(X1, mark(X2)) -> mark(take(X1, X2)) length(mark(X)) -> mark(length(X)) proper(eq(X1, X2)) -> eq(proper(X1), proper(X2)) proper(0) -> ok(0) proper(true) -> ok(true) proper(s(X)) -> s(proper(X)) proper(false) -> ok(false) proper(inf(X)) -> inf(proper(X)) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(take(X1, X2)) -> take(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(length(X)) -> length(proper(X)) eq(ok(X1), ok(X2)) -> ok(eq(X1, X2)) s(ok(X)) -> ok(s(X)) inf(ok(X)) -> ok(inf(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) take(ok(X1), ok(X2)) -> ok(take(X1, X2)) length(ok(X)) -> ok(length(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(eq(0, 0)) -> mark(true) active(eq(s(X), s(Y))) -> mark(eq(X, Y)) active(eq(X, Y)) -> mark(false) active(inf(X)) -> mark(cons(X, inf(s(X)))) active(take(0, X)) -> mark(nil) active(take(s(X), cons(Y, L))) -> mark(cons(Y, take(X, L))) active(length(nil)) -> mark(0) active(length(cons(X, L))) -> mark(s(length(L))) active(inf(X)) -> inf(active(X)) active(take(X1, X2)) -> take(active(X1), X2) active(take(X1, X2)) -> take(X1, active(X2)) active(length(X)) -> length(active(X)) inf(mark(X)) -> mark(inf(X)) take(mark(X1), X2) -> mark(take(X1, X2)) take(X1, mark(X2)) -> mark(take(X1, X2)) length(mark(X)) -> mark(length(X)) proper(eq(X1, X2)) -> eq(proper(X1), proper(X2)) proper(0) -> ok(0) proper(true) -> ok(true) proper(s(X)) -> s(proper(X)) proper(false) -> ok(false) proper(inf(X)) -> inf(proper(X)) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(take(X1, X2)) -> take(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(length(X)) -> length(proper(X)) eq(ok(X1), ok(X2)) -> ok(eq(X1, X2)) s(ok(X)) -> ok(s(X)) inf(ok(X)) -> ok(inf(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) take(ok(X1), ok(X2)) -> ok(take(X1, X2)) length(ok(X)) -> ok(length(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: eq: empty set 0: empty set true: empty set s: empty set false: empty set inf: {1} cons: empty set take: {1, 2} nil: empty set length: {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: eq(0, 0) -> true eq(s(X), s(Y)) -> eq(X, Y) eq(X, Y) -> false inf(X) -> cons(X, inf(s(X))) take(0, X) -> nil take(s(X), cons(Y, L)) -> cons(Y, take(X, L)) length(nil) -> 0 length(cons(X, L)) -> s(length(L)) The replacement map contains the following entries: eq: empty set 0: empty set true: empty set s: empty set false: empty set inf: {1} cons: empty set take: {1, 2} nil: empty set length: {1} ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: eq(0, 0) -> true eq(s(X), s(Y)) -> eq(X, Y) eq(X, Y) -> false inf(X) -> cons(X, inf(s(X))) take(0, X) -> nil take(s(X), cons(Y, L)) -> cons(Y, take(X, L)) length(nil) -> 0 length(cons(X, L)) -> s(length(L)) The replacement map contains the following entries: eq: empty set 0: empty set true: empty set s: empty set false: empty set inf: {1} cons: empty set take: {1, 2} nil: empty set length: {1} Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(cons(x_1, x_2)) = 1 + x_1 POL(eq(x_1, x_2)) = 0 POL(false) = 0 POL(inf(x_1)) = 2 + x_1 POL(length(x_1)) = 2 + x_1 POL(nil) = 1 POL(s(x_1)) = 0 POL(take(x_1, x_2)) = 2*x_1 + 2*x_2 POL(true) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: inf(X) -> cons(X, inf(s(X))) take(0, X) -> nil take(s(X), cons(Y, L)) -> cons(Y, take(X, L)) length(nil) -> 0 length(cons(X, L)) -> s(length(L)) ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: eq(0, 0) -> true eq(s(X), s(Y)) -> eq(X, Y) eq(X, Y) -> false The replacement map contains the following entries: eq: empty set 0: empty set true: empty set s: empty set false: empty set ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: eq(0, 0) -> true eq(s(X), s(Y)) -> eq(X, Y) eq(X, Y) -> false The replacement map contains the following entries: eq: empty set 0: empty set true: empty set s: empty set false: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(eq(x_1, x_2)) = x_1 + x_2 POL(false) = 0 POL(s(x_1)) = 1 + x_1 POL(true) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: eq(0, 0) -> true eq(s(X), s(Y)) -> eq(X, Y) ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: eq(X, Y) -> false The replacement map contains the following entries: eq: empty set false: empty set ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: eq(X, Y) -> false The replacement map contains the following entries: eq: empty set false: empty set Used ordering: Polynomial interpretation [POLO]: POL(eq(x_1, x_2)) = 1 POL(false) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: eq(X, Y) -> false ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (9) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (10) YES