YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 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, 40 ms] (4) CSR (5) CSRRRRProof [EQUIVALENT, 0 ms] (6) CSR (7) CSRRRRProof [EQUIVALENT, 6 ms] (8) CSR (9) CSRRRRProof [EQUIVALENT, 0 ms] (10) CSR (11) CSRRRRProof [EQUIVALENT, 0 ms] (12) CSR (13) CSRRRRProof [EQUIVALENT, 5 ms] (14) CSR (15) CSRRRRProof [EQUIVALENT, 0 ms] (16) CSR (17) RisEmptyProof [EQUIVALENT, 0 ms] (18) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: active(incr(nil)) -> mark(nil) active(incr(cons(X, L))) -> mark(cons(s(X), incr(L))) active(adx(nil)) -> mark(nil) active(adx(cons(X, L))) -> mark(incr(cons(X, adx(L)))) active(nats) -> mark(adx(zeros)) active(zeros) -> mark(cons(0, zeros)) active(head(cons(X, L))) -> mark(X) active(tail(cons(X, L))) -> mark(L) active(incr(X)) -> incr(active(X)) active(cons(X1, X2)) -> cons(active(X1), X2) active(s(X)) -> s(active(X)) active(adx(X)) -> adx(active(X)) active(head(X)) -> head(active(X)) active(tail(X)) -> tail(active(X)) incr(mark(X)) -> mark(incr(X)) cons(mark(X1), X2) -> mark(cons(X1, X2)) s(mark(X)) -> mark(s(X)) adx(mark(X)) -> mark(adx(X)) head(mark(X)) -> mark(head(X)) tail(mark(X)) -> mark(tail(X)) proper(incr(X)) -> incr(proper(X)) proper(nil) -> ok(nil) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(s(X)) -> s(proper(X)) proper(adx(X)) -> adx(proper(X)) proper(nats) -> ok(nats) proper(zeros) -> ok(zeros) proper(0) -> ok(0) proper(head(X)) -> head(proper(X)) proper(tail(X)) -> tail(proper(X)) incr(ok(X)) -> ok(incr(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) s(ok(X)) -> ok(s(X)) adx(ok(X)) -> ok(adx(X)) head(ok(X)) -> ok(head(X)) tail(ok(X)) -> ok(tail(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) The set Q consists of the following terms: active(nats) active(zeros) active(incr(x0)) active(cons(x0, x1)) active(s(x0)) active(adx(x0)) active(head(x0)) active(tail(x0)) incr(mark(x0)) cons(mark(x0), x1) s(mark(x0)) adx(mark(x0)) head(mark(x0)) tail(mark(x0)) proper(incr(x0)) proper(nil) proper(cons(x0, x1)) proper(s(x0)) proper(adx(x0)) proper(nats) proper(zeros) proper(0) proper(head(x0)) proper(tail(x0)) incr(ok(x0)) cons(ok(x0), ok(x1)) s(ok(x0)) adx(ok(x0)) head(ok(x0)) tail(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(incr(nil)) -> mark(nil) active(incr(cons(X, L))) -> mark(cons(s(X), incr(L))) active(adx(nil)) -> mark(nil) active(adx(cons(X, L))) -> mark(incr(cons(X, adx(L)))) active(nats) -> mark(adx(zeros)) active(zeros) -> mark(cons(0, zeros)) active(head(cons(X, L))) -> mark(X) active(tail(cons(X, L))) -> mark(L) active(incr(X)) -> incr(active(X)) active(cons(X1, X2)) -> cons(active(X1), X2) active(s(X)) -> s(active(X)) active(adx(X)) -> adx(active(X)) active(head(X)) -> head(active(X)) active(tail(X)) -> tail(active(X)) incr(mark(X)) -> mark(incr(X)) cons(mark(X1), X2) -> mark(cons(X1, X2)) s(mark(X)) -> mark(s(X)) adx(mark(X)) -> mark(adx(X)) head(mark(X)) -> mark(head(X)) tail(mark(X)) -> mark(tail(X)) proper(incr(X)) -> incr(proper(X)) proper(nil) -> ok(nil) proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) proper(s(X)) -> s(proper(X)) proper(adx(X)) -> adx(proper(X)) proper(nats) -> ok(nats) proper(zeros) -> ok(zeros) proper(0) -> ok(0) proper(head(X)) -> head(proper(X)) proper(tail(X)) -> tail(proper(X)) incr(ok(X)) -> ok(incr(X)) cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) s(ok(X)) -> ok(s(X)) adx(ok(X)) -> ok(adx(X)) head(ok(X)) -> ok(head(X)) tail(ok(X)) -> ok(tail(X)) top(mark(X)) -> top(proper(X)) top(ok(X)) -> top(active(X)) The set Q consists of the following terms: active(nats) active(zeros) active(incr(x0)) active(cons(x0, x1)) active(s(x0)) active(adx(x0)) active(head(x0)) active(tail(x0)) incr(mark(x0)) cons(mark(x0), x1) s(mark(x0)) adx(mark(x0)) head(mark(x0)) tail(mark(x0)) proper(incr(x0)) proper(nil) proper(cons(x0, x1)) proper(s(x0)) proper(adx(x0)) proper(nats) proper(zeros) proper(0) proper(head(x0)) proper(tail(x0)) incr(ok(x0)) cons(ok(x0), ok(x1)) s(ok(x0)) adx(ok(x0)) head(ok(x0)) tail(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: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set head: {1} tail: {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: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(nil) -> nil adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) head(cons(X, L)) -> X tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set head: {1} tail: {1} ---------------------------------------- (3) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(nil) -> nil adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) head(cons(X, L)) -> X tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set head: {1} tail: {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(head(x_1)) = 1 + x_1 POL(incr(x_1)) = x_1 POL(nats) = 1 POL(nil) = 0 POL(s(x_1)) = x_1 POL(tail(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: head(cons(X, L)) -> X ---------------------------------------- (4) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(nil) -> nil adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set tail: {1} ---------------------------------------- (5) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(nil) -> nil adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set tail: {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(incr(x_1)) = x_1 POL(nats) = 1 POL(nil) = 0 POL(s(x_1)) = x_1 POL(tail(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: adx(nil) -> nil ---------------------------------------- (6) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set tail: {1} ---------------------------------------- (7) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) tail(cons(X, L)) -> L The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set tail: {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(incr(x_1)) = x_1 POL(nats) = 1 POL(nil) = 0 POL(s(x_1)) = x_1 POL(tail(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: tail(cons(X, L)) -> L ---------------------------------------- (8) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set ---------------------------------------- (9) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(nil) -> nil incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) nats -> adx(zeros) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} nil: empty set cons: {1} s: {1} adx: {1} nats: empty set zeros: empty set 0: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = 2*x_1 POL(cons(x_1, x_2)) = x_1 POL(incr(x_1)) = 2*x_1 POL(nats) = 2 POL(nil) = 1 POL(s(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: incr(nil) -> nil nats -> adx(zeros) ---------------------------------------- (10) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} cons: {1} s: {1} adx: {1} zeros: empty set 0: empty set ---------------------------------------- (11) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: incr(cons(X, L)) -> cons(s(X), incr(L)) adx(cons(X, L)) -> incr(cons(X, adx(L))) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} cons: {1} s: {1} adx: {1} zeros: empty set 0: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 1 POL(adx(x_1)) = 1 + x_1 POL(cons(x_1, x_2)) = 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, L)) -> cons(s(X), incr(L)) ---------------------------------------- (12) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: adx(cons(X, L)) -> incr(cons(X, adx(L))) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} cons: {1} adx: {1} zeros: 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: adx(cons(X, L)) -> incr(cons(X, adx(L))) zeros -> cons(0, zeros) The replacement map contains the following entries: incr: {1} cons: {1} adx: {1} zeros: empty set 0: empty set Used ordering: Polynomial interpretation [POLO]: POL(0) = 0 POL(adx(x_1)) = 2*x_1 POL(cons(x_1, x_2)) = 2*x_1 POL(incr(x_1)) = 2*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: zeros -> cons(0, zeros) ---------------------------------------- (14) Obligation: Context-sensitive rewrite system: The TRS R consists of the following rules: adx(cons(X, L)) -> incr(cons(X, adx(L))) The replacement map contains the following entries: incr: {1} cons: {1} adx: {1} ---------------------------------------- (15) CSRRRRProof (EQUIVALENT) The following CSR is given: Context-sensitive rewrite system: The TRS R consists of the following rules: adx(cons(X, L)) -> incr(cons(X, adx(L))) The replacement map contains the following entries: incr: {1} cons: {1} adx: {1} Used ordering: Polynomial interpretation [POLO]: POL(adx(x_1)) = 1 + x_1 POL(cons(x_1, x_2)) = x_1 POL(incr(x_1)) = x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: adx(cons(X, L)) -> incr(cons(X, adx(L))) ---------------------------------------- (16) Obligation: Context-sensitive rewrite system: R is empty. ---------------------------------------- (17) RisEmptyProof (EQUIVALENT) The CSR R is empty. Hence, termination is trivially proven. ---------------------------------------- (18) YES