MAYBE proof of input_7PDOrshB9I.trs # AProVE Commit ID: aff8ecad908e01718a4c36e68d2e55d5e0f16e15 fuhs 20220216 unpublished The Runtime Complexity (parallel-innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). (0) CpxTRS (1) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxTRS (3) RelTrsToTrsProof [UPPER BOUND(ID), 0 ms] (4) CpxTRS (5) CpxTrsToCdtProof [BOTH BOUNDS(ID, ID), 0 ms] (6) CdtProblem (7) CdtToCpxRelTrsProof [BOTH BOUNDS(ID, ID), 0 ms] (8) CpxRelTRS (9) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (10) CpxRelTRS (11) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (12) typed CpxTrs (13) OrderProof [LOWER BOUND(ID), 0 ms] (14) typed CpxTrs (15) RelTrsToDecreasingLoopProblemProof [LOWER BOUND(ID), 0 ms] (16) TRS for Loop Detection (17) CpxTrsToCdtProof [UPPER BOUND(ID), 0 ms] (18) CdtProblem (19) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (20) CdtProblem (21) CdtUsableRulesProof [BOTH BOUNDS(ID, ID), 0 ms] (22) CdtProblem (23) CdtToCpxRelTrsProof [BOTH BOUNDS(ID, ID), 0 ms] (24) CpxTRS (25) RelTrsToTrsProof [UPPER BOUND(ID), 0 ms] (26) CpxTRS (27) RelTrsToWeightedTrsProof [BOTH BOUNDS(ID, ID), 0 ms] (28) CpxWeightedTrs (29) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (30) CpxTypedWeightedTrs (31) CompletionProof [UPPER BOUND(ID), 0 ms] (32) CpxTypedWeightedCompleteTrs (33) NarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (34) CpxTypedWeightedCompleteTrs (35) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (36) CpxRNTS (37) SimplificationProof [BOTH BOUNDS(ID, ID), 0 ms] (38) CpxRNTS (39) CpxRntsAnalysisOrderProof [BOTH BOUNDS(ID, ID), 0 ms] (40) CpxRNTS (41) ResultPropagationProof [UPPER BOUND(ID), 0 ms] (42) CpxRNTS (43) IntTrsBoundProof [UPPER BOUND(ID), 422 ms] (44) CpxRNTS (45) IntTrsBoundProof [UPPER BOUND(ID), 32 ms] (46) CpxRNTS (47) CompletionProof [UPPER BOUND(ID), 0 ms] (48) CpxTypedWeightedCompleteTrs (49) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (50) CpxRNTS (51) RelTrsToWeightedTrsProof [UPPER BOUND(ID), 0 ms] (52) CpxWeightedTrs (53) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (54) CpxTypedWeightedTrs (55) CompletionProof [UPPER BOUND(ID), 0 ms] (56) CpxTypedWeightedCompleteTrs (57) NarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (58) CpxTypedWeightedCompleteTrs (59) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (60) CpxRNTS (61) SimplificationProof [BOTH BOUNDS(ID, ID), 0 ms] (62) CpxRNTS (63) CpxRntsAnalysisOrderProof [BOTH BOUNDS(ID, ID), 0 ms] (64) CpxRNTS (65) ResultPropagationProof [UPPER BOUND(ID), 0 ms] (66) CpxRNTS (67) IntTrsBoundProof [UPPER BOUND(ID), 147 ms] (68) CpxRNTS (69) IntTrsBoundProof [UPPER BOUND(ID), 25 ms] (70) CpxRNTS (71) CompletionProof [UPPER BOUND(ID), 0 ms] (72) CpxTypedWeightedCompleteTrs (73) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (74) CpxRNTS ---------------------------------------- (0) Obligation: The Runtime Complexity (parallel-innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: g -> h c -> d h -> g S is empty. Rewrite Strategy: PARALLEL_INNERMOST ---------------------------------------- (1) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (2) Obligation: The Runtime Complexity (parallel-innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: g -> h c -> d h -> g S is empty. Rewrite Strategy: PARALLEL_INNERMOST ---------------------------------------- (3) RelTrsToTrsProof (UPPER BOUND(ID)) transformed relative TRS to TRS ---------------------------------------- (4) Obligation: The Runtime Complexity (parallel-innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: g -> h c -> d h -> g S is empty. Rewrite Strategy: PARALLEL_INNERMOST ---------------------------------------- (5) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID)) Converted Cpx (relative) TRS with rewrite strategy PARALLEL_INNERMOST to CDT ---------------------------------------- (6) Obligation: Complexity Dependency Tuples Problem Rules: g -> h c -> d h -> g Tuples: G -> c1(H) C -> c2 H -> c3(G) S tuples: G -> c1(H) C -> c2 H -> c3(G) K tuples:none Defined Rule Symbols: g, c, h Defined Pair Symbols: G, C, H Compound Symbols: c1_1, c2, c3_1 ---------------------------------------- (7) CdtToCpxRelTrsProof (BOTH BOUNDS(ID, ID)) Converted S to standard rules, and D \ S as well as R to relative rules. ---------------------------------------- (8) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) C -> c2 H -> c3(G) The (relative) TRS S consists of the following rules: g -> h c -> d h -> g Rewrite Strategy: INNERMOST ---------------------------------------- (9) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (10) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) C -> c2 H -> c3(G) The (relative) TRS S consists of the following rules: g -> h c -> d h -> g Rewrite Strategy: INNERMOST ---------------------------------------- (11) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Inferred types. ---------------------------------------- (12) Obligation: Innermost TRS: Rules: G -> c1(H) C -> c2 H -> c3(G) g -> h c -> d h -> g Types: G :: c1 c1 :: c3 -> c1 H :: c3 C :: c2 c2 :: c2 c3 :: c1 -> c3 g :: g:h h :: g:h c :: d d :: d hole_c11_0 :: c1 hole_c32_0 :: c3 hole_c23_0 :: c2 hole_g:h4_0 :: g:h hole_d5_0 :: d ---------------------------------------- (13) OrderProof (LOWER BOUND(ID)) Heuristically decided to analyse the following defined symbols: G, H, g, h They will be analysed ascendingly in the following order: G = H g = h ---------------------------------------- (14) Obligation: Innermost TRS: Rules: G -> c1(H) C -> c2 H -> c3(G) g -> h c -> d h -> g Types: G :: c1 c1 :: c3 -> c1 H :: c3 C :: c2 c2 :: c2 c3 :: c1 -> c3 g :: g:h h :: g:h c :: d d :: d hole_c11_0 :: c1 hole_c32_0 :: c3 hole_c23_0 :: c2 hole_g:h4_0 :: g:h hole_d5_0 :: d Generator Equations: The following defined symbols remain to be analysed: h, G, H, g They will be analysed ascendingly in the following order: G = H g = h ---------------------------------------- (15) RelTrsToDecreasingLoopProblemProof (LOWER BOUND(ID)) Transformed a relative TRS into a decreasing-loop problem. ---------------------------------------- (16) Obligation: Analyzing the following TRS for decreasing loops: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) C -> c2 H -> c3(G) The (relative) TRS S consists of the following rules: g -> h c -> d h -> g Rewrite Strategy: INNERMOST ---------------------------------------- (17) CpxTrsToCdtProof (UPPER BOUND(ID)) Converted Cpx (relative) TRS with rewrite strategy PARALLEL_INNERMOST to CDT ---------------------------------------- (18) Obligation: Complexity Dependency Tuples Problem Rules: g -> h c -> d h -> g Tuples: G -> c1(H) C -> c2 H -> c3(G) S tuples: G -> c1(H) C -> c2 H -> c3(G) K tuples:none Defined Rule Symbols: g, c, h Defined Pair Symbols: G, C, H Compound Symbols: c1_1, c2, c3_1 ---------------------------------------- (19) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing nodes: C -> c2 ---------------------------------------- (20) Obligation: Complexity Dependency Tuples Problem Rules: g -> h c -> d h -> g Tuples: G -> c1(H) H -> c3(G) S tuples: G -> c1(H) H -> c3(G) K tuples:none Defined Rule Symbols: g, c, h Defined Pair Symbols: G, H Compound Symbols: c1_1, c3_1 ---------------------------------------- (21) CdtUsableRulesProof (BOTH BOUNDS(ID, ID)) The following rules are not usable and were removed: g -> h c -> d h -> g ---------------------------------------- (22) Obligation: Complexity Dependency Tuples Problem Rules:none Tuples: G -> c1(H) H -> c3(G) S tuples: G -> c1(H) H -> c3(G) K tuples:none Defined Rule Symbols:none Defined Pair Symbols: G, H Compound Symbols: c1_1, c3_1 ---------------------------------------- (23) CdtToCpxRelTrsProof (BOTH BOUNDS(ID, ID)) Converted S to standard rules, and D \ S as well as R to relative rules. ---------------------------------------- (24) Obligation: The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) H -> c3(G) S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (25) RelTrsToTrsProof (UPPER BOUND(ID)) transformed relative TRS to TRS ---------------------------------------- (26) Obligation: The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) H -> c3(G) S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (27) RelTrsToWeightedTrsProof (BOTH BOUNDS(ID, ID)) Transformed relative TRS to weighted TRS ---------------------------------------- (28) Obligation: The Runtime Complexity (innermost) of the given CpxWeightedTrs could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: G -> c1(H) [1] H -> c3(G) [1] Rewrite Strategy: INNERMOST ---------------------------------------- (29) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (30) Obligation: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: G -> c1(H) [1] H -> c3(G) [1] The TRS has the following type information: G :: c1 c1 :: c3 -> c1 H :: c3 c3 :: c1 -> c3 Rewrite Strategy: INNERMOST ---------------------------------------- (31) CompletionProof (UPPER BOUND(ID)) The transformation into a RNTS is sound, since: (a) The obligation is a constructor system where every type has a constant constructor, (b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols: G H (c) The following functions are completely defined: none Due to the following rules being added: none And the following fresh constants: const, const1 ---------------------------------------- (32) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: G -> c1(H) [1] H -> c3(G) [1] The TRS has the following type information: G :: c1 c1 :: c3 -> c1 H :: c3 c3 :: c1 -> c3 const :: c1 const1 :: c3 Rewrite Strategy: INNERMOST ---------------------------------------- (33) NarrowingProof (BOTH BOUNDS(ID, ID)) Narrowed the inner basic terms of all right-hand sides by a single narrowing step. ---------------------------------------- (34) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: G -> c1(H) [1] H -> c3(G) [1] The TRS has the following type information: G :: c1 c1 :: c3 -> c1 H :: c3 c3 :: c1 -> c3 const :: c1 const1 :: c3 Rewrite Strategy: INNERMOST ---------------------------------------- (35) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: const => 0 const1 => 0 ---------------------------------------- (36) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: ---------------------------------------- (37) SimplificationProof (BOTH BOUNDS(ID, ID)) Simplified the RNTS by moving equalities from the constraints into the right-hand sides. ---------------------------------------- (38) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: ---------------------------------------- (39) CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID)) Found the following analysis order by SCC decomposition: { H, G } ---------------------------------------- (40) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: Function symbols to be analyzed: {H,G} ---------------------------------------- (41) ResultPropagationProof (UPPER BOUND(ID)) Applied inner abstraction using the recently inferred runtime/size bounds where possible. ---------------------------------------- (42) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: Function symbols to be analyzed: {H,G} ---------------------------------------- (43) IntTrsBoundProof (UPPER BOUND(ID)) Computed SIZE bound using CoFloCo for: H after applying outer abstraction to obtain an ITS, resulting in: O(1) with polynomial bound: 0 Computed SIZE bound using CoFloCo for: G after applying outer abstraction to obtain an ITS, resulting in: O(1) with polynomial bound: 1 ---------------------------------------- (44) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: Function symbols to be analyzed: {H,G} Previous analysis results are: H: runtime: ?, size: O(1) [0] G: runtime: ?, size: O(1) [1] ---------------------------------------- (45) IntTrsBoundProof (UPPER BOUND(ID)) Computed RUNTIME bound using CoFloCo for: H after applying outer abstraction to obtain an ITS, resulting in: INF with polynomial bound: ? ---------------------------------------- (46) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: Function symbols to be analyzed: {H,G} Previous analysis results are: H: runtime: INF, size: O(1) [0] G: runtime: ?, size: O(1) [1] ---------------------------------------- (47) CompletionProof (UPPER BOUND(ID)) The TRS is a completely defined constructor system, as every type has a constant constructor and the following rules were added: none And the following fresh constants: const, const1 ---------------------------------------- (48) Obligation: Runtime Complexity Weighted TRS where all functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: G -> c1(H) [1] H -> c3(G) [1] The TRS has the following type information: G :: c1 c1 :: c3 -> c1 H :: c3 c3 :: c1 -> c3 const :: c1 const1 :: c3 Rewrite Strategy: INNERMOST ---------------------------------------- (49) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: const => 0 const1 => 0 ---------------------------------------- (50) Obligation: Complexity RNTS consisting of the following rules: G -{ 1 }-> 1 + H :|: H -{ 1 }-> 1 + G :|: Only complete derivations are relevant for the runtime complexity. ---------------------------------------- (51) RelTrsToWeightedTrsProof (UPPER BOUND(ID)) Transformed relative TRS to weighted TRS ---------------------------------------- (52) Obligation: The Runtime Complexity (innermost) of the given CpxWeightedTrs could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: g -> h [1] c -> d [1] h -> g [1] Rewrite Strategy: INNERMOST ---------------------------------------- (53) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (54) Obligation: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: g -> h [1] c -> d [1] h -> g [1] The TRS has the following type information: g :: g:h h :: g:h c :: d d :: d Rewrite Strategy: INNERMOST ---------------------------------------- (55) CompletionProof (UPPER BOUND(ID)) The transformation into a RNTS is sound, since: (a) The obligation is a constructor system where every type has a constant constructor, (b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols: g c h (c) The following functions are completely defined: none Due to the following rules being added: none And the following fresh constants: const ---------------------------------------- (56) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: g -> h [1] c -> d [1] h -> g [1] The TRS has the following type information: g :: g:h h :: g:h c :: d d :: d const :: g:h Rewrite Strategy: INNERMOST ---------------------------------------- (57) NarrowingProof (BOTH BOUNDS(ID, ID)) Narrowed the inner basic terms of all right-hand sides by a single narrowing step. ---------------------------------------- (58) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: g -> h [1] c -> d [1] h -> g [1] The TRS has the following type information: g :: g:h h :: g:h c :: d d :: d const :: g:h Rewrite Strategy: INNERMOST ---------------------------------------- (59) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: d => 0 const => 0 ---------------------------------------- (60) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: ---------------------------------------- (61) SimplificationProof (BOTH BOUNDS(ID, ID)) Simplified the RNTS by moving equalities from the constraints into the right-hand sides. ---------------------------------------- (62) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: ---------------------------------------- (63) CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID)) Found the following analysis order by SCC decomposition: { h, g } { c } ---------------------------------------- (64) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: Function symbols to be analyzed: {h,g}, {c} ---------------------------------------- (65) ResultPropagationProof (UPPER BOUND(ID)) Applied inner abstraction using the recently inferred runtime/size bounds where possible. ---------------------------------------- (66) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: Function symbols to be analyzed: {h,g}, {c} ---------------------------------------- (67) IntTrsBoundProof (UPPER BOUND(ID)) Computed SIZE bound using CoFloCo for: h after applying outer abstraction to obtain an ITS, resulting in: O(1) with polynomial bound: 0 Computed SIZE bound using CoFloCo for: g after applying outer abstraction to obtain an ITS, resulting in: O(1) with polynomial bound: 0 ---------------------------------------- (68) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: Function symbols to be analyzed: {h,g}, {c} Previous analysis results are: h: runtime: ?, size: O(1) [0] g: runtime: ?, size: O(1) [0] ---------------------------------------- (69) IntTrsBoundProof (UPPER BOUND(ID)) Computed RUNTIME bound using CoFloCo for: h after applying outer abstraction to obtain an ITS, resulting in: INF with polynomial bound: ? ---------------------------------------- (70) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: Function symbols to be analyzed: {h,g}, {c} Previous analysis results are: h: runtime: INF, size: O(1) [0] g: runtime: ?, size: O(1) [0] ---------------------------------------- (71) CompletionProof (UPPER BOUND(ID)) The TRS is a completely defined constructor system, as every type has a constant constructor and the following rules were added: none And the following fresh constants: const ---------------------------------------- (72) Obligation: Runtime Complexity Weighted TRS where all functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: g -> h [1] c -> d [1] h -> g [1] The TRS has the following type information: g :: g:h h :: g:h c :: d d :: d const :: g:h Rewrite Strategy: INNERMOST ---------------------------------------- (73) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: d => 0 const => 0 ---------------------------------------- (74) Obligation: Complexity RNTS consisting of the following rules: c -{ 1 }-> 0 :|: g -{ 1 }-> h :|: h -{ 1 }-> g :|: Only complete derivations are relevant for the runtime complexity.