/export/starexec/sandbox2/solver/bin/starexec_run_rcdcRelativeAlsoLower /export/starexec/sandbox2/benchmark/theBenchmark.xml /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- WORST_CASE(?, O(n^2)) proof of /export/starexec/sandbox2/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^2). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 152 ms] (4) CpxRelTRS (5) CpxTrsToCdtProof [UPPER BOUND(ID), 0 ms] (6) CdtProblem (7) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (8) CdtProblem (9) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (10) CdtProblem (11) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (12) CdtProblem (13) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (14) CdtProblem (15) CdtUsableRulesProof [BOTH BOUNDS(ID, ID), 0 ms] (16) CdtProblem (17) CdtRuleRemovalProof [UPPER BOUND(ADD(n^2)), 148 ms] (18) CdtProblem (19) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (20) CdtProblem (21) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (22) CdtProblem (23) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (24) CdtProblem (25) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (26) CdtProblem (27) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (28) CdtProblem (29) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (30) CdtProblem (31) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (32) CdtProblem (33) CdtRuleRemovalProof [UPPER BOUND(ADD(n^1)), 33 ms] (34) CdtProblem (35) CdtRuleRemovalProof [UPPER BOUND(ADD(n^2)), 437 ms] (36) CdtProblem (37) SIsEmptyProof [BOTH BOUNDS(ID, ID), 0 ms] (38) BOUNDS(1, 1) ---------------------------------------- (0) Obligation: The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(1, n^2). The TRS R consists of the following rules: f(a, x) -> f(g(x), x) h(g(x)) -> h(a) g(h(x)) -> g(x) h(h(x)) -> x 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(cons_f(x_1, x_2)) -> f(encArg(x_1), encArg(x_2)) encArg(cons_h(x_1)) -> h(encArg(x_1)) encArg(cons_g(x_1)) -> g(encArg(x_1)) encode_f(x_1, x_2) -> f(encArg(x_1), encArg(x_2)) encode_a -> a encode_g(x_1) -> g(encArg(x_1)) encode_h(x_1) -> h(encArg(x_1)) ---------------------------------------- (2) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, n^2). The TRS R consists of the following rules: f(a, x) -> f(g(x), x) h(g(x)) -> h(a) g(h(x)) -> g(x) h(h(x)) -> x The (relative) TRS S consists of the following rules: encArg(a) -> a encArg(cons_f(x_1, x_2)) -> f(encArg(x_1), encArg(x_2)) encArg(cons_h(x_1)) -> h(encArg(x_1)) encArg(cons_g(x_1)) -> g(encArg(x_1)) encode_f(x_1, x_2) -> f(encArg(x_1), encArg(x_2)) encode_a -> a encode_g(x_1) -> g(encArg(x_1)) encode_h(x_1) -> h(encArg(x_1)) 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^2). The TRS R consists of the following rules: f(a, x) -> f(g(x), x) h(g(x)) -> h(a) g(h(x)) -> g(x) h(h(x)) -> x The (relative) TRS S consists of the following rules: encArg(a) -> a encArg(cons_f(x_1, x_2)) -> f(encArg(x_1), encArg(x_2)) encArg(cons_h(x_1)) -> h(encArg(x_1)) encArg(cons_g(x_1)) -> g(encArg(x_1)) encode_f(x_1, x_2) -> f(encArg(x_1), encArg(x_2)) encode_a -> a encode_g(x_1) -> g(encArg(x_1)) encode_h(x_1) -> h(encArg(x_1)) Rewrite Strategy: INNERMOST ---------------------------------------- (5) CpxTrsToCdtProof (UPPER BOUND(ID)) Converted Cpx (relative) TRS to CDT ---------------------------------------- (6) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(a) -> c ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) ENCODE_F(z0, z1) -> c4(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_A -> c5 ENCODE_G(z0) -> c6(G(encArg(z0)), ENCARG(z0)) ENCODE_H(z0) -> c7(H(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(g(z0)) -> c9(H(a)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(g(z0)) -> c9(H(a)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: f_2, h_1, g_1, encArg_1, encode_f_2, encode_a, encode_g_1, encode_h_1 Defined Pair Symbols: ENCARG_1, ENCODE_F_2, ENCODE_A, ENCODE_G_1, ENCODE_H_1, F_2, H_1, G_1 Compound Symbols: c, c1_3, c2_2, c3_2, c4_3, c5, c6_2, c7_2, c8_2, c9_1, c10, c11_1 ---------------------------------------- (7) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCARG(a) -> c ENCODE_A -> c5 ---------------------------------------- (8) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) ENCODE_F(z0, z1) -> c4(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_G(z0) -> c6(G(encArg(z0)), ENCARG(z0)) ENCODE_H(z0) -> c7(H(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(g(z0)) -> c9(H(a)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(g(z0)) -> c9(H(a)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: f_2, h_1, g_1, encArg_1, encode_f_2, encode_a, encode_g_1, encode_h_1 Defined Pair Symbols: ENCARG_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1, F_2, H_1, G_1 Compound Symbols: c1_3, c2_2, c3_2, c4_3, c6_2, c7_2, c8_2, c9_1, c10, c11_1 ---------------------------------------- (9) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (10) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) ENCODE_F(z0, z1) -> c4(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_G(z0) -> c6(G(encArg(z0)), ENCARG(z0)) ENCODE_H(z0) -> c7(H(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 K tuples:none Defined Rule Symbols: f_2, h_1, g_1, encArg_1, encode_f_2, encode_a, encode_g_1, encode_h_1 Defined Pair Symbols: ENCARG_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1, F_2, H_1, G_1 Compound Symbols: c1_3, c2_2, c3_2, c4_3, c6_2, c7_2, c8_2, c10, c11_1, c9 ---------------------------------------- (11) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (12) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_F(z0, z1) -> c(ENCARG(z0)) ENCODE_F(z0, z1) -> c(ENCARG(z1)) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_G(z0) -> c(ENCARG(z0)) ENCODE_H(z0) -> c(H(encArg(z0))) ENCODE_H(z0) -> c(ENCARG(z0)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 K tuples:none Defined Rule Symbols: f_2, h_1, g_1, encArg_1, encode_f_2, encode_a, encode_g_1, encode_h_1 Defined Pair Symbols: ENCARG_1, F_2, H_1, G_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1 Compound Symbols: c1_3, c2_2, c3_2, c8_2, c10, c11_1, c9, c_1 ---------------------------------------- (13) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 4 leading nodes: ENCODE_F(z0, z1) -> c(ENCARG(z0)) ENCODE_F(z0, z1) -> c(ENCARG(z1)) ENCODE_G(z0) -> c(ENCARG(z0)) ENCODE_H(z0) -> c(ENCARG(z0)) ---------------------------------------- (14) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_H(z0) -> c(H(encArg(z0))) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 K tuples:none Defined Rule Symbols: f_2, h_1, g_1, encArg_1, encode_f_2, encode_a, encode_g_1, encode_h_1 Defined Pair Symbols: ENCARG_1, F_2, H_1, G_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1 Compound Symbols: c1_3, c2_2, c3_2, c8_2, c10, c11_1, c9, c_1 ---------------------------------------- (15) CdtUsableRulesProof (BOTH BOUNDS(ID, ID)) The following rules are not usable and were removed: encode_f(z0, z1) -> f(encArg(z0), encArg(z1)) encode_a -> a encode_g(z0) -> g(encArg(z0)) encode_h(z0) -> h(encArg(z0)) ---------------------------------------- (16) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_H(z0) -> c(H(encArg(z0))) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: ENCARG_1, F_2, H_1, G_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1 Compound Symbols: c1_3, c2_2, c3_2, c8_2, c10, c11_1, c9, c_1 ---------------------------------------- (17) CdtRuleRemovalProof (UPPER BOUND(ADD(n^2))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. H(h(z0)) -> c10 H(g(z0)) -> c9 We considered the (Usable) Rules:none And the Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_H(z0) -> c(H(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ENCARG(x_1)) = [2]x_1 POL(ENCODE_F(x_1, x_2)) = [2] + [2]x_2 + x_2^2 + [2]x_1*x_2 + [2]x_1^2 POL(ENCODE_G(x_1)) = [1] + [2]x_1 + [2]x_1^2 POL(ENCODE_H(x_1)) = [1] + [2]x_1 + [2]x_1^2 POL(F(x_1, x_2)) = 0 POL(G(x_1)) = 0 POL(H(x_1)) = [1] POL(a) = 0 POL(c(x_1)) = x_1 POL(c1(x_1, x_2, x_3)) = x_1 + x_2 + x_3 POL(c10) = 0 POL(c11(x_1)) = x_1 POL(c2(x_1, x_2)) = x_1 + x_2 POL(c3(x_1, x_2)) = x_1 + x_2 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c9) = 0 POL(cons_f(x_1, x_2)) = x_1 + x_2 POL(cons_g(x_1)) = x_1 POL(cons_h(x_1)) = [2] + x_1 POL(encArg(x_1)) = 0 POL(f(x_1, x_2)) = [1] POL(g(x_1)) = 0 POL(h(x_1)) = 0 ---------------------------------------- (18) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_H(z0) -> c(H(encArg(z0))) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples: H(h(z0)) -> c10 H(g(z0)) -> c9 Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: ENCARG_1, F_2, H_1, G_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1 Compound Symbols: c1_3, c2_2, c3_2, c8_2, c10, c11_1, c9, c_1 ---------------------------------------- (19) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_f(z0, z1)) -> c1(F(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) by ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0), ENCARG(a)) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(a), ENCARG(x1)) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ---------------------------------------- (20) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) H(h(z0)) -> c10 G(h(z0)) -> c11(G(z0)) H(g(z0)) -> c9 ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCODE_H(z0) -> c(H(encArg(z0))) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0), ENCARG(a)) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(a), ENCARG(x1)) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples: H(h(z0)) -> c10 H(g(z0)) -> c9 Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: ENCARG_1, F_2, H_1, G_1, ENCODE_F_2, ENCODE_G_1, ENCODE_H_1 Compound Symbols: c2_2, c3_2, c8_2, c10, c11_1, c9, c_1, c1_3 ---------------------------------------- (21) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing nodes: ENCODE_H(z0) -> c(H(encArg(z0))) H(g(z0)) -> c9 H(h(z0)) -> c10 ---------------------------------------- (22) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_h(z0)) -> c2(H(encArg(z0)), ENCARG(z0)) ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0), ENCARG(a)) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(a), ENCARG(x1)) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: ENCARG_1, F_2, G_1, ENCODE_F_2, ENCODE_G_1 Compound Symbols: c2_2, c3_2, c8_2, c11_1, c_1, c1_3 ---------------------------------------- (23) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing tuple parts ---------------------------------------- (24) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: ENCARG_1, F_2, G_1, ENCODE_F_2, ENCODE_G_1 Compound Symbols: c3_2, c8_2, c11_1, c_1, c1_3, c2_1, c1_2 ---------------------------------------- (25) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_g(z0)) -> c3(G(encArg(z0)), ENCARG(z0)) by ENCARG(cons_g(a)) -> c3(G(a), ENCARG(a)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ---------------------------------------- (26) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(a)) -> c3(G(a), ENCARG(a)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: F_2, G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1 Compound Symbols: c8_2, c11_1, c_1, c1_3, c2_1, c1_2, c3_2 ---------------------------------------- (27) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing nodes: ENCARG(cons_g(a)) -> c3(G(a), ENCARG(a)) ---------------------------------------- (28) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) S tuples: F(a, z0) -> c8(F(g(z0), z0), G(z0)) G(h(z0)) -> c11(G(z0)) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: F_2, G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1 Compound Symbols: c8_2, c11_1, c_1, c1_3, c2_1, c1_2, c3_2 ---------------------------------------- (29) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace F(a, z0) -> c8(F(g(z0), z0), G(z0)) by F(a, h(z0)) -> c8(F(g(z0), h(z0)), G(h(z0))) ---------------------------------------- (30) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(x0, a)) -> c1(F(encArg(x0), a), ENCARG(x0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) F(a, h(z0)) -> c8(F(g(z0), h(z0)), G(h(z0))) S tuples: G(h(z0)) -> c11(G(z0)) F(a, h(z0)) -> c8(F(g(z0), h(z0)), G(h(z0))) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1, F_2 Compound Symbols: c11_1, c_1, c1_3, c2_1, c1_2, c3_2, c8_2 ---------------------------------------- (31) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing tuple parts ---------------------------------------- (32) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ENCARG(cons_f(x0, a)) -> c1(ENCARG(x0)) F(a, h(z0)) -> c8(G(h(z0))) S tuples: G(h(z0)) -> c11(G(z0)) F(a, h(z0)) -> c8(G(h(z0))) K tuples:none Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1, F_2 Compound Symbols: c11_1, c_1, c1_3, c2_1, c1_2, c3_2, c1_1, c8_1 ---------------------------------------- (33) CdtRuleRemovalProof (UPPER BOUND(ADD(n^1))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. F(a, h(z0)) -> c8(G(h(z0))) We considered the (Usable) Rules:none And the Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ENCARG(cons_f(x0, a)) -> c1(ENCARG(x0)) F(a, h(z0)) -> c8(G(h(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ENCARG(x_1)) = x_1 POL(ENCODE_F(x_1, x_2)) = [1] POL(ENCODE_G(x_1)) = 0 POL(F(x_1, x_2)) = [1] POL(G(x_1)) = 0 POL(a) = 0 POL(c(x_1)) = x_1 POL(c1(x_1)) = x_1 POL(c1(x_1, x_2)) = x_1 + x_2 POL(c1(x_1, x_2, x_3)) = x_1 + x_2 + x_3 POL(c11(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c3(x_1, x_2)) = x_1 + x_2 POL(c8(x_1)) = x_1 POL(cons_f(x_1, x_2)) = [1] + x_1 + x_2 POL(cons_g(x_1)) = x_1 POL(cons_h(x_1)) = x_1 POL(encArg(x_1)) = [1] + x_1 POL(f(x_1, x_2)) = [1] POL(g(x_1)) = 0 POL(h(x_1)) = 0 ---------------------------------------- (34) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ENCARG(cons_f(x0, a)) -> c1(ENCARG(x0)) F(a, h(z0)) -> c8(G(h(z0))) S tuples: G(h(z0)) -> c11(G(z0)) K tuples: F(a, h(z0)) -> c8(G(h(z0))) Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1, F_2 Compound Symbols: c11_1, c_1, c1_3, c2_1, c1_2, c3_2, c1_1, c8_1 ---------------------------------------- (35) CdtRuleRemovalProof (UPPER BOUND(ADD(n^2))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. G(h(z0)) -> c11(G(z0)) We considered the (Usable) Rules: h(h(z0)) -> z0 g(h(z0)) -> g(z0) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) encArg(cons_h(z0)) -> h(encArg(z0)) h(g(z0)) -> h(a) encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) And the Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ENCARG(cons_f(x0, a)) -> c1(ENCARG(x0)) F(a, h(z0)) -> c8(G(h(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ENCARG(x_1)) = [1] + [2]x_1 + x_1^2 POL(ENCODE_F(x_1, x_2)) = [2] + [2]x_2 + [2]x_2^2 + x_1*x_2 + x_1^2 POL(ENCODE_G(x_1)) = [2] + [2]x_1 + x_1^2 POL(F(x_1, x_2)) = x_2 POL(G(x_1)) = x_1 POL(a) = 0 POL(c(x_1)) = x_1 POL(c1(x_1)) = x_1 POL(c1(x_1, x_2)) = x_1 + x_2 POL(c1(x_1, x_2, x_3)) = x_1 + x_2 + x_3 POL(c11(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c3(x_1, x_2)) = x_1 + x_2 POL(c8(x_1)) = x_1 POL(cons_f(x_1, x_2)) = [1] + x_1 + x_2 POL(cons_g(x_1)) = [1] + x_1 POL(cons_h(x_1)) = [2] + x_1 POL(encArg(x_1)) = [2] + [2]x_1 POL(f(x_1, x_2)) = [2] + x_2 POL(g(x_1)) = 0 POL(h(x_1)) = [2] + x_1 ---------------------------------------- (36) Obligation: Complexity Dependency Tuples Problem Rules: encArg(a) -> a encArg(cons_f(z0, z1)) -> f(encArg(z0), encArg(z1)) encArg(cons_h(z0)) -> h(encArg(z0)) encArg(cons_g(z0)) -> g(encArg(z0)) f(a, z0) -> f(g(z0), z0) h(g(z0)) -> h(a) h(h(z0)) -> z0 g(h(z0)) -> g(z0) Tuples: G(h(z0)) -> c11(G(z0)) ENCODE_F(z0, z1) -> c(F(encArg(z0), encArg(z1))) ENCODE_G(z0) -> c(G(encArg(z0))) ENCARG(cons_f(x0, cons_f(z0, z1))) -> c1(F(encArg(x0), f(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_f(z0, z1))) ENCARG(cons_f(x0, cons_h(z0))) -> c1(F(encArg(x0), h(encArg(z0))), ENCARG(x0), ENCARG(cons_h(z0))) ENCARG(cons_f(x0, cons_g(z0))) -> c1(F(encArg(x0), g(encArg(z0))), ENCARG(x0), ENCARG(cons_g(z0))) ENCARG(cons_f(cons_f(z0, z1), x1)) -> c1(F(f(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_f(z0, z1)), ENCARG(x1)) ENCARG(cons_f(cons_h(z0), x1)) -> c1(F(h(encArg(z0)), encArg(x1)), ENCARG(cons_h(z0)), ENCARG(x1)) ENCARG(cons_f(cons_g(z0), x1)) -> c1(F(g(encArg(z0)), encArg(x1)), ENCARG(cons_g(z0)), ENCARG(x1)) ENCARG(cons_h(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(a, x1)) -> c1(F(a, encArg(x1)), ENCARG(x1)) ENCARG(cons_g(cons_f(z0, z1))) -> c3(G(f(encArg(z0), encArg(z1))), ENCARG(cons_f(z0, z1))) ENCARG(cons_g(cons_h(z0))) -> c3(G(h(encArg(z0))), ENCARG(cons_h(z0))) ENCARG(cons_g(cons_g(z0))) -> c3(G(g(encArg(z0))), ENCARG(cons_g(z0))) ENCARG(cons_f(x0, a)) -> c1(ENCARG(x0)) F(a, h(z0)) -> c8(G(h(z0))) S tuples:none K tuples: F(a, h(z0)) -> c8(G(h(z0))) G(h(z0)) -> c11(G(z0)) Defined Rule Symbols: encArg_1, f_2, h_1, g_1 Defined Pair Symbols: G_1, ENCODE_F_2, ENCODE_G_1, ENCARG_1, F_2 Compound Symbols: c11_1, c_1, c1_3, c2_1, c1_2, c3_2, c1_1, c8_1 ---------------------------------------- (37) SIsEmptyProof (BOTH BOUNDS(ID, ID)) The set S is empty ---------------------------------------- (38) BOUNDS(1, 1)