/export/starexec/sandbox/solver/bin/starexec_run_rcdcRelativeAlsoLower /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- WORST_CASE(Omega(n^1), O(n^1)) proof of /export/starexec/sandbox/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty The Derivational Complexity (full) of the given DCpxTrs could be proven to be BOUNDS(n^1, n^1). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 82 ms] (4) CpxRelTRS (5) RelTrsToTrsProof [UPPER BOUND(ID), 0 ms] (6) CpxTRS (7) CpxTrsMatchBoundsProof [FINISHED, 7 ms] (8) BOUNDS(1, n^1) (9) RelTrsToDecreasingLoopProblemProof [LOWER BOUND(ID), 0 ms] (10) TRS for Loop Detection (11) DecreasingLoopProof [LOWER BOUND(ID), 1 ms] (12) BEST (13) proven lower bound (14) LowerBoundPropagationProof [FINISHED, 0 ms] (15) BOUNDS(n^1, INF) (16) TRS for Loop Detection ---------------------------------------- (0) Obligation: The Derivational Complexity (full) of the given DCpxTrs could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) S is empty. Rewrite Strategy: FULL ---------------------------------------- (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(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) ---------------------------------------- (2) Obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) The (relative) TRS S consists of the following rules: encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (3) SInnermostTerminationProof (BOTH CONCRETE BOUNDS(ID, ID)) proved innermost termination of relative rules ---------------------------------------- (4) Obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) The (relative) TRS S consists of the following rules: encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (5) RelTrsToTrsProof (UPPER BOUND(ID)) transformed relative TRS to TRS ---------------------------------------- (6) Obligation: The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) S is empty. Rewrite Strategy: FULL ---------------------------------------- (7) CpxTrsMatchBoundsProof (FINISHED) A linear upper bound on the runtime complexity of the TRS R could be shown with a Match Bound [MATCHBOUNDS1,MATCHBOUNDS2] of 5. The certificate found is represented by the following graph. "[45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117] {(45,46,[b_1|0, c_1|0, a_1|0, encArg_1|0, encode_b_1|0, encode_c_1|0, encode_a_1|0, encode_d_1|0]), (45,47,[c_1|1]), (45,48,[a_1|1]), (45,51,[d_1|1, b_1|1, c_1|1, a_1|1]), (45,52,[c_1|2]), (45,58,[a_1|2]), (45,61,[a_1|2]), (45,65,[a_1|2]), (45,85,[a_1|3]), (46,46,[d_1|0, cons_b_1|0, cons_c_1|0, cons_a_1|0]), (47,46,[c_1|1]), (47,48,[a_1|1]), (47,58,[a_1|2]), (48,49,[b_1|1]), (48,53,[c_1|2]), (48,54,[a_1|2]), (49,50,[c_1|1]), (50,46,[a_1|1]), (51,46,[encArg_1|1]), (51,51,[d_1|1, b_1|1, c_1|1, a_1|1]), (51,52,[c_1|2]), (51,61,[a_1|2]), (51,65,[a_1|2]), (51,58,[a_1|2]), (51,85,[a_1|3]), (52,51,[c_1|2]), (52,65,[a_1|2]), (52,85,[a_1|3]), (53,49,[c_1|2]), (54,55,[b_1|2]), (54,68,[c_1|3]), (55,56,[a_1|2]), (56,57,[b_1|2]), (56,69,[c_1|3]), (57,46,[c_1|2]), (57,48,[a_1|1]), (57,58,[a_1|2]), (58,59,[c_1|2]), (59,60,[b_1|2]), (59,70,[c_1|3]), (60,54,[a_1|2]), (60,51,[a_1|2]), (60,61,[a_1|2]), (60,65,[a_1|2]), (60,58,[a_1|2]), (60,71,[a_1|3]), (60,85,[a_1|2]), (61,62,[b_1|2]), (61,74,[c_1|3]), (62,63,[a_1|2]), (62,71,[a_1|3]), (63,64,[b_1|2]), (63,75,[c_1|3]), (63,61,[a_1|2]), (63,76,[a_1|3]), (64,51,[c_1|2]), (64,61,[c_1|2]), (64,65,[c_1|2, a_1|2]), (64,58,[c_1|2]), (64,85,[a_1|3, c_1|2]), (65,66,[b_1|2]), (65,80,[c_1|3]), (65,81,[a_1|3]), (66,67,[c_1|2]), (67,51,[a_1|2]), (67,58,[a_1|2]), (67,71,[a_1|3]), (68,55,[c_1|3]), (69,57,[c_1|3]), (70,60,[c_1|3]), (71,72,[c_1|3]), (72,73,[b_1|3]), (72,88,[c_1|4]), (73,61,[a_1|3]), (73,65,[a_1|3]), (73,58,[a_1|3]), (73,81,[a_1|3]), (73,76,[a_1|3]), (73,89,[a_1|4]), (73,85,[a_1|3]), (74,62,[c_1|3]), (75,64,[c_1|3]), (76,77,[b_1|3]), (76,92,[c_1|4]), (77,78,[a_1|3]), (77,100,[a_1|4]), (78,79,[b_1|3]), (78,93,[c_1|4]), (78,94,[a_1|4]), (79,61,[c_1|3]), (79,65,[c_1|3]), (79,58,[c_1|3]), (79,81,[c_1|3]), (79,85,[c_1|3]), (80,66,[c_1|3]), (81,82,[b_1|3]), (81,98,[c_1|4]), (82,83,[a_1|3]), (82,71,[a_1|3]), (82,103,[a_1|4]), (83,84,[b_1|3]), (83,99,[c_1|4]), (83,61,[a_1|2]), (83,76,[a_1|3]), (83,106,[a_1|4]), (84,51,[c_1|3]), (84,58,[c_1|3]), (84,71,[c_1|3]), (84,65,[a_1|2]), (84,85,[a_1|3]), (85,86,[c_1|3]), (86,87,[b_1|3]), (86,110,[c_1|4]), (87,81,[a_1|3]), (88,73,[c_1|4]), (89,90,[c_1|4]), (90,91,[b_1|4]), (90,111,[c_1|5]), (91,81,[a_1|4]), (92,77,[c_1|4]), (93,79,[c_1|4]), (94,95,[b_1|4]), (94,112,[c_1|5]), (95,96,[a_1|4]), (96,97,[b_1|4]), (96,113,[c_1|5]), (97,81,[c_1|4]), (98,82,[c_1|4]), (99,84,[c_1|4]), (100,101,[c_1|4]), (101,102,[b_1|4]), (101,114,[c_1|5]), (102,94,[a_1|4]), (103,104,[c_1|4]), (104,105,[b_1|4]), (104,115,[c_1|5]), (105,76,[a_1|4]), (105,106,[a_1|4]), (106,107,[b_1|4]), (106,116,[c_1|5]), (107,108,[a_1|4]), (108,109,[b_1|4]), (108,117,[c_1|5]), (109,85,[c_1|4]), (110,87,[c_1|4]), (111,91,[c_1|5]), (112,95,[c_1|5]), (113,97,[c_1|5]), (114,102,[c_1|5]), (115,105,[c_1|5]), (116,107,[c_1|5]), (117,109,[c_1|5])}" ---------------------------------------- (8) BOUNDS(1, n^1) ---------------------------------------- (9) RelTrsToDecreasingLoopProblemProof (LOWER BOUND(ID)) Transformed a relative TRS into a decreasing-loop problem. ---------------------------------------- (10) Obligation: Analyzing the following TRS for decreasing loops: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) The (relative) TRS S consists of the following rules: encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (11) DecreasingLoopProof (LOWER BOUND(ID)) The following loop(s) give(s) rise to the lower bound Omega(n^1): The rewrite sequence c(d(x1)) ->^+ a(a(b(a(b(c(x1)))))) gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0,0,0,0]. The pumping substitution is [x1 / d(x1)]. The result substitution is [ ]. ---------------------------------------- (12) Complex Obligation (BEST) ---------------------------------------- (13) Obligation: Proved the lower bound n^1 for the following obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) The (relative) TRS S consists of the following rules: encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (14) LowerBoundPropagationProof (FINISHED) Propagated lower bound. ---------------------------------------- (15) BOUNDS(n^1, INF) ---------------------------------------- (16) Obligation: Analyzing the following TRS for decreasing loops: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^1). The TRS R consists of the following rules: b(c(a(x1))) -> a(b(a(b(c(x1))))) b(x1) -> c(c(x1)) c(d(x1)) -> a(b(c(a(x1)))) a(a(x1)) -> a(c(b(a(x1)))) The (relative) TRS S consists of the following rules: encArg(d(x_1)) -> d(encArg(x_1)) encArg(cons_b(x_1)) -> b(encArg(x_1)) encArg(cons_c(x_1)) -> c(encArg(x_1)) encArg(cons_a(x_1)) -> a(encArg(x_1)) encode_b(x_1) -> b(encArg(x_1)) encode_c(x_1) -> c(encArg(x_1)) encode_a(x_1) -> a(encArg(x_1)) encode_d(x_1) -> d(encArg(x_1)) Rewrite Strategy: FULL