/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 [SOUND, 0 ms] (2) CSR (3) CSRRRRProof [EQUIVALENT, 31 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) RisEmptyProof [EQUIVALENT, 0 ms] (12) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: active(app(nil, YS)) -> mark(YS) active(app(cons(X, XS), YS)) -> mark(cons(X, app(XS, YS))) active(from(X)) -> mark(cons(X, from(s(X)))) active(zWadr(nil, YS)) -> mark(nil) active(zWadr(XS, nil)) -> mark(nil) active(zWadr(cons(X, XS), cons(Y, YS))) -> mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS))) active(prefix(L)) -> mark(cons(nil, zWadr(L, prefix(L)))) active(app(X1, X2)) -> app(active(X1), X2) active(app(X1, X2)) -> app(X1, active(X2)) active(cons(X1, X2)) -> cons(active(X1), X2) active(from(X)) -> from(active(X)) active(s(X)) -> s(active(X)) active(zWadr(X1, X2)) -> zWadr(active(X1), X2) active(zWadr(X1, X2)) -> zWadr(X1, active(X2)) active(prefix(X)) -> prefix(active(X)) app(mark(X1), X2) -> mark(app(X1, X2)) app(X1, mark(X2)) -> mark(app(X1, X2)) cons(mark(X1), X2) -> mark(cons(X1, X2)) from(mark(X)) -> mark(from(X)) s(mark(X)) -> mark(s(X)) zWadr(mark(X1), X2) -> mark(zWadr(X1, X2)) zWadr(X1, mark(X2)) -> mark(zWadr(X1, X2)) prefix(mark(X)) -> mark(prefix(X)) proper(app(X1, X2)) -> app(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(from(X)) -> from(proper(X)) proper(s(X)) -> s(proper(X)) proper(zWadr(X1, X2)) -> zWadr(proper(X1), proper(X2)) proper(prefix(X)) -> prefix(proper(X)) app(ok(X1), ok(X2)) -> ok(app(X1, X2)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) from(ok(X)) -> ok(from(X)) s(ok(X)) -> ok(s(X)) zWadr(ok(X1), ok(X2)) -> ok(zWadr(X1, X2)) prefix(ok(X)) -> ok(prefix(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) The set Q consists of the following terms: active(from(x0)) active(prefix(x0)) active(app(x0, x1)) active(cons(x0, x1)) active(s(x0)) active(zWadr(x0, x1)) app(mark(x0), x1) app(x0, mark(x1)) cons(mark(x0), x1) from(mark(x0)) s(mark(x0)) zWadr(mark(x0), x1) zWadr(x0, mark(x1)) prefix(mark(x0)) proper(app(x0, x1)) proper(nil) proper(cons(x0, x1)) proper(from(x0)) proper(s(x0)) proper(zWadr(x0, x1)) proper(prefix(x0)) app(ok(x0), ok(x1)) cons(ok(x0), ok(x1)) from(ok(x0)) s(ok(x0)) zWadr(ok(x0), ok(x1)) prefix(ok(x0)) top(mark(x0)) top(ok(x0)) ---------------------------------------- (1) QTRSToCSRProof (SOUND) The following Q TRS is given: Q restricted rewrite system: The TRS R consists of the following rules: active(app(nil, YS)) -> mark(YS) active(app(cons(X, XS), YS)) -> mark(cons(X, app(XS, YS))) active(from(X)) -> mark(cons(X, from(s(X)))) active(zWadr(nil, YS)) -> mark(nil) active(zWadr(XS, nil)) -> mark(nil) active(zWadr(cons(X, XS), cons(Y, YS))) -> mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS))) active(prefix(L)) -> mark(cons(nil, zWadr(L, prefix(L)))) active(app(X1, X2)) -> app(active(X1), X2) active(app(X1, X2)) -> app(X1, active(X2)) active(cons(X1, X2)) -> cons(active(X1), X2) active(from(X)) -> from(active(X)) active(s(X)) -> s(active(X)) active(zWadr(X1, X2)) -> zWadr(active(X1), X2) active(zWadr(X1, X2)) -> zWadr(X1, active(X2)) active(prefix(X)) -> prefix(active(X)) app(mark(X1), X2) -> mark(app(X1, X2)) app(X1, mark(X2)) -> mark(app(X1, X2)) cons(mark(X1), X2) -> mark(cons(X1, X2)) from(mark(X)) -> mark(from(X)) s(mark(X)) -> mark(s(X)) zWadr(mark(X1), X2) -> mark(zWadr(X1, X2)) zWadr(X1, mark(X2)) -> mark(zWadr(X1, X2)) prefix(mark(X)) -> mark(prefix(X)) proper(app(X1, X2)) -> app(proper(X1), proper(X2)) proper(nil) -> ok(nil) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(from(X)) -> from(proper(X)) proper(s(X)) -> s(proper(X)) proper(zWadr(X1, X2)) -> zWadr(proper(X1), proper(X2)) proper(prefix(X)) -> prefix(proper(X)) app(ok(X1), ok(X2)) -> ok(app(X1, X2)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) from(ok(X)) -> ok(from(X)) s(ok(X)) -> ok(s(X)) zWadr(ok(X1), ok(X2)) -> ok(zWadr(X1, X2)) prefix(ok(X)) -> ok(prefix(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) The set Q consists of the following terms: active(from(x0)) active(prefix(x0)) active(app(x0, x1)) active(cons(x0, x1)) active(s(x0)) active(zWadr(x0, x1)) app(mark(x0), x1) app(x0, mark(x1)) cons(mark(x0), x1) from(mark(x0)) s(mark(x0)) zWadr(mark(x0), x1) zWadr(x0, mark(x1)) prefix(mark(x0)) proper(app(x0, x1)) proper(nil) proper(cons(x0, x1)) proper(from(x0)) proper(s(x0)) proper(zWadr(x0, x1)) proper(prefix(x0)) app(ok(x0), ok(x1)) cons(ok(x0), ok(x1)) from(ok(x0)) s(ok(x0)) zWadr(ok(x0), ok(x1)) prefix(ok(x0)) top(mark(x0)) top(ok(x0)) 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: app: {1, 2} nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} The QTRS contained just a subset of rules created by the complete Giesl-Middeldorp transformation. Therefore, the inverse transformation is sound, but not necessarily complete. ---------------------------------------- (2) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: app(nil, YS) -> YS app(cons(X, XS), YS) -> cons(X, app(XS, YS)) from(X) -> cons(X, from(s(X))) zWadr(nil, YS) -> nil zWadr(XS, nil) -> nil zWadr(cons(X, XS), cons(Y, YS)) -> cons(app(Y, cons(X, nil)), zWadr(XS, YS)) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: app: {1, 2} nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: app(nil, YS) -> YS app(cons(X, XS), YS) -> cons(X, app(XS, YS)) from(X) -> cons(X, from(s(X))) zWadr(nil, YS) -> nil zWadr(XS, nil) -> nil zWadr(cons(X, XS), cons(Y, YS)) -> cons(app(Y, cons(X, nil)), zWadr(XS, YS)) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: app: {1, 2} nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} Used ordering: Polynomial interpretation [POLO]: POL(app(x_1, x_2)) = x_1 + x_2 POL(cons(x_1, x_2)) = 1 + x_1 POL(from(x_1)) = 1 + x_1 POL(nil) = 0 POL(prefix(x_1)) = 1 + x_1 POL(s(x_1)) = x_1 POL(zWadr(x_1, x_2)) = 1 + x_1 + x_2 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: zWadr(nil, YS) -> nil zWadr(XS, nil) -> nil zWadr(cons(X, XS), cons(Y, YS)) -> cons(app(Y, cons(X, nil)), zWadr(XS, YS)) ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: app(nil, YS) -> YS app(cons(X, XS), YS) -> cons(X, app(XS, YS)) from(X) -> cons(X, from(s(X))) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: app: {1, 2} nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: app(nil, YS) -> YS app(cons(X, XS), YS) -> cons(X, app(XS, YS)) from(X) -> cons(X, from(s(X))) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: app: {1, 2} nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} Used ordering: Polynomial interpretation [POLO]: POL(app(x_1, x_2)) = 2 + 2*x_1 + 2*x_2 POL(cons(x_1, x_2)) = 2*x_1 POL(from(x_1)) = 2*x_1 POL(nil) = 1 POL(prefix(x_1)) = 2 + 2*x_1 POL(s(x_1)) = 1 + x_1 POL(zWadr(x_1, x_2)) = 1 + x_1 + x_2 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: app(nil, YS) -> YS app(cons(X, XS), YS) -> cons(X, app(XS, YS)) ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: from(X) -> cons(X, from(s(X))) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} ---------------------------------------- (7) 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))) prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: nil: empty set cons: {1} from: {1} s: {1} zWadr: {1, 2} prefix: {1} Used ordering: Polynomial interpretation [POLO]: POL(cons(x_1, x_2)) = x_1 POL(from(x_1)) = 1 + x_1 POL(nil) = 1 POL(prefix(x_1)) = 1 + x_1 POL(s(x_1)) = x_1 POL(zWadr(x_1, x_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: from(X) -> cons(X, from(s(X))) ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: nil: empty set cons: {1} zWadr: {1, 2} prefix: {1} ---------------------------------------- (9) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: prefix(L) -> cons(nil, zWadr(L, prefix(L))) The replacement map contains the following entries: nil: empty set cons: {1} zWadr: {1, 2} prefix: {1} Used ordering: Polynomial interpretation [POLO]: POL(cons(x_1, x_2)) = x_1 POL(nil) = 0 POL(prefix(x_1)) = 1 + 2*x_1 POL(zWadr(x_1, x_2)) = 2 + 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: prefix(L) -> cons(nil, zWadr(L, prefix(L))) ---------------------------------------- (10) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (11) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (12) YES