/export/starexec/sandbox/solver/bin/starexec_run_rcdcRelativeAlsoLower /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- WORST_CASE(?, O(n^1)) proof of /export/starexec/sandbox/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(1, n^1). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 172 ms] (4) CpxRelTRS (5) RelTrsToTrsProof [UPPER BOUND(ID), 0 ms] (6) CpxTRS (7) CpxTrsMatchBoundsTAProof [FINISHED, 39 ms] (8) BOUNDS(1, n^1) ---------------------------------------- (0) Obligation: The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(1, n^1). The TRS R consists of the following rules: g(x, a, b) -> g(b, b, a) S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (1) DerivationalComplexityToRuntimeComplexityProof (BOTH BOUNDS(ID, ID)) The following rules have been added to S to convert the given derivational complexity problem to a runtime complexity problem: encArg(a) -> a encArg(b) -> b encArg(cons_g(x_1, x_2, x_3)) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_g(x_1, x_2, x_3) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_a -> a encode_b -> b ---------------------------------------- (2) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, n^1). The TRS R consists of the following rules: g(x, a, b) -> g(b, b, a) The (relative) TRS S consists of the following rules: encArg(a) -> a encArg(b) -> b encArg(cons_g(x_1, x_2, x_3)) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_g(x_1, x_2, x_3) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_a -> a encode_b -> b Rewrite Strategy: INNERMOST ---------------------------------------- (3) SInnermostTerminationProof (BOTH CONCRETE BOUNDS(ID, ID)) proved innermost termination of relative rules ---------------------------------------- (4) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, n^1). The TRS R consists of the following rules: g(x, a, b) -> g(b, b, a) The (relative) TRS S consists of the following rules: encArg(a) -> a encArg(b) -> b encArg(cons_g(x_1, x_2, x_3)) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_g(x_1, x_2, x_3) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_a -> a encode_b -> b Rewrite Strategy: INNERMOST ---------------------------------------- (5) RelTrsToTrsProof (UPPER BOUND(ID)) transformed relative TRS to TRS ---------------------------------------- (6) Obligation: The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, n^1). The TRS R consists of the following rules: g(x, a, b) -> g(b, b, a) encArg(a) -> a encArg(b) -> b encArg(cons_g(x_1, x_2, x_3)) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_g(x_1, x_2, x_3) -> g(encArg(x_1), encArg(x_2), encArg(x_3)) encode_a -> a encode_b -> b S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (7) CpxTrsMatchBoundsTAProof (FINISHED) A linear upper bound on the runtime complexity of the TRS R could be shown with a Match-Bound[TAB_LEFTLINEAR,TAB_NONLEFTLINEAR] (for contructor-based start-terms) of 2. The compatible tree automaton used to show the Match-Boundedness (for constructor-based start-terms) is represented by: final states : [1, 2, 3, 4, 5] transitions: a0() -> 0 b0() -> 0 cons_g0(0, 0, 0) -> 0 g0(0, 0, 0) -> 1 encArg0(0) -> 2 encode_g0(0, 0, 0) -> 3 encode_a0() -> 4 encode_b0() -> 5 b1() -> 6 b1() -> 7 a1() -> 8 g1(6, 7, 8) -> 1 a1() -> 2 b1() -> 2 encArg1(0) -> 9 encArg1(0) -> 10 encArg1(0) -> 11 g1(9, 10, 11) -> 2 g1(9, 10, 11) -> 3 a1() -> 4 b1() -> 5 a1() -> 9 a1() -> 10 a1() -> 11 b1() -> 9 b1() -> 10 b1() -> 11 g1(9, 10, 11) -> 9 g1(9, 10, 11) -> 10 g1(9, 10, 11) -> 11 b2() -> 12 b2() -> 13 a2() -> 14 g2(12, 13, 14) -> 2 g2(12, 13, 14) -> 3 g2(12, 13, 14) -> 9 g2(12, 13, 14) -> 10 g2(12, 13, 14) -> 11 ---------------------------------------- (8) BOUNDS(1, n^1)