/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^3)) 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^3). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 181 ms] (4) CpxRelTRS (5) NonCtorToCtorProof [UPPER BOUND(ID), 0 ms] (6) CpxRelTRS (7) RcToIrcProof [BOTH BOUNDS(ID, ID), 0 ms] (8) CpxRelTRS (9) CpxTrsToCdtProof [UPPER BOUND(ID), 0 ms] (10) CdtProblem (11) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (12) CdtProblem (13) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (14) CdtProblem (15) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (16) CdtProblem (17) CdtUsableRulesProof [BOTH BOUNDS(ID, ID), 0 ms] (18) CdtProblem (19) CdtRuleRemovalProof [UPPER BOUND(ADD(n^2)), 231 ms] (20) CdtProblem (21) CdtRuleRemovalProof [UPPER BOUND(ADD(n^3)), 619 ms] (22) CdtProblem (23) CdtRuleRemovalProof [UPPER BOUND(ADD(n^3)), 414 ms] (24) CdtProblem (25) CdtRuleRemovalProof [UPPER BOUND(ADD(n^3)), 386 ms] (26) CdtProblem (27) CdtRuleRemovalProof [UPPER BOUND(ADD(n^3)), 409 ms] (28) CdtProblem (29) CdtRuleRemovalProof [UPPER BOUND(ADD(n^3)), 371 ms] (30) CdtProblem (31) SIsEmptyProof [BOTH BOUNDS(ID, ID), 0 ms] (32) BOUNDS(1, 1) (33) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (34) CpxRelTRS (35) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (36) typed CpxTrs (37) OrderProof [LOWER BOUND(ID), 0 ms] (38) typed CpxTrs (39) RewriteLemmaProof [LOWER BOUND(ID), 461 ms] (40) BEST (41) proven lower bound (42) LowerBoundPropagationProof [FINISHED, 0 ms] (43) BOUNDS(n^1, INF) (44) typed CpxTrs (45) RewriteLemmaProof [LOWER BOUND(ID), 110 ms] (46) BOUNDS(1, INF) ---------------------------------------- (0) Obligation: The Derivational Complexity (full) of the given DCpxTrs could be proven to be BOUNDS(n^1, n^3). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X 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(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) ---------------------------------------- (2) Obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, n^3). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X The (relative) TRS S consists of the following rules: encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(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^3). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X The (relative) TRS S consists of the following rules: encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (5) NonCtorToCtorProof (UPPER BOUND(ID)) transformed non-ctor to ctor-system ---------------------------------------- (6) Obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(1, n^3). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X if(c_true, X, Y) -> X The (relative) TRS S consists of the following rules: encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) true -> c_true Rewrite Strategy: FULL ---------------------------------------- (7) RcToIrcProof (BOTH BOUNDS(ID, ID)) Converted rc-obligation to irc-obligation. As the TRS is a non-duplicating overlay system, we have rc = irc. ---------------------------------------- (8) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, n^3). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X if(c_true, X, Y) -> X The (relative) TRS S consists of the following rules: encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) true -> c_true Rewrite Strategy: INNERMOST ---------------------------------------- (9) CpxTrsToCdtProof (UPPER BOUND(ID)) Converted Cpx (relative) TRS to CDT ---------------------------------------- (10) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) encode_f(z0) -> f(encArg(z0)) encode_if(z0, z1, z2) -> if(encArg(z0), encArg(z1), encArg(z2)) encode_c -> c encode_n__f(z0) -> n__f(encArg(z0)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(z0) -> activate(encArg(z0)) true -> c_true true -> n__true f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(c) -> c1 ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(n__true) -> c3 ENCARG(false) -> c4 ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) ENCODE_F(z0) -> c9(F(encArg(z0)), ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c10(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCODE_C -> c11 ENCODE_N__F(z0) -> c12(ENCARG(z0)) ENCODE_N__TRUE -> c13 ENCODE_TRUE -> c14(TRUE) ENCODE_FALSE -> c15 ENCODE_ACTIVATE(z0) -> c16(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c17 TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples:none Defined Rule Symbols: f_1, if_3, true, activate_1, encArg_1, encode_f_1, encode_if_3, encode_c, encode_n__f_1, encode_n__true, encode_true, encode_false, encode_activate_1 Defined Pair Symbols: ENCARG_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_C, ENCODE_N__F_1, ENCODE_N__TRUE, ENCODE_TRUE, ENCODE_FALSE, ENCODE_ACTIVATE_1, TRUE, F_1, IF_3, ACTIVATE_1 Compound Symbols: c1, c2_1, c3, c4, c5_2, c6_4, c7_1, c8_2, c9_2, c10_4, c11, c12_1, c13, c14_1, c15, c16_2, c17, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25 ---------------------------------------- (11) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 2 leading nodes: ENCODE_N__F(z0) -> c12(ENCARG(z0)) ENCODE_TRUE -> c14(TRUE) Removed 7 trailing nodes: ENCODE_C -> c11 ENCODE_N__TRUE -> c13 ENCARG(false) -> c4 TRUE -> c17 ENCODE_FALSE -> c15 ENCARG(n__true) -> c3 ENCARG(c) -> c1 ---------------------------------------- (12) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) encode_f(z0) -> f(encArg(z0)) encode_if(z0, z1, z2) -> if(encArg(z0), encArg(z1), encArg(z2)) encode_c -> c encode_n__f(z0) -> n__f(encArg(z0)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(z0) -> activate(encArg(z0)) true -> c_true true -> n__true f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) ENCODE_F(z0) -> c9(F(encArg(z0)), ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c10(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCODE_ACTIVATE(z0) -> c16(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples:none Defined Rule Symbols: f_1, if_3, true, activate_1, encArg_1, encode_f_1, encode_if_3, encode_c, encode_n__f_1, encode_n__true, encode_true, encode_false, encode_activate_1 Defined Pair Symbols: ENCARG_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1, TRUE, F_1, IF_3, ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c9_2, c10_4, c16_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25 ---------------------------------------- (13) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (14) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) encode_f(z0) -> f(encArg(z0)) encode_if(z0, z1, z2) -> if(encArg(z0), encArg(z1), encArg(z2)) encode_c -> c encode_n__f(z0) -> n__f(encArg(z0)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(z0) -> activate(encArg(z0)) true -> c_true true -> n__true f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_F(z0) -> c1(ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z1)) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z2)) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) ENCODE_ACTIVATE(z0) -> c1(ENCARG(z0)) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples:none Defined Rule Symbols: f_1, if_3, true, activate_1, encArg_1, encode_f_1, encode_if_3, encode_c, encode_n__f_1, encode_n__true, encode_true, encode_false, encode_activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (15) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 5 leading nodes: ENCODE_F(z0) -> c1(ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z0)) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z1)) ENCODE_IF(z0, z1, z2) -> c1(ENCARG(z2)) ENCODE_ACTIVATE(z0) -> c1(ENCARG(z0)) ---------------------------------------- (16) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) encode_f(z0) -> f(encArg(z0)) encode_if(z0, z1, z2) -> if(encArg(z0), encArg(z1), encArg(z2)) encode_c -> c encode_n__f(z0) -> n__f(encArg(z0)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(z0) -> activate(encArg(z0)) true -> c_true true -> n__true f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples:none Defined Rule Symbols: f_1, if_3, true, activate_1, encArg_1, encode_f_1, encode_if_3, encode_c, encode_n__f_1, encode_n__true, encode_true, encode_false, encode_activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (17) CdtUsableRulesProof (BOTH BOUNDS(ID, ID)) The following rules are not usable and were removed: encode_f(z0) -> f(encArg(z0)) encode_if(z0, z1, z2) -> if(encArg(z0), encArg(z1), encArg(z2)) encode_c -> c encode_n__f(z0) -> n__f(encArg(z0)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(z0) -> activate(encArg(z0)) ---------------------------------------- (18) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples:none Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (19) CdtRuleRemovalProof (UPPER BOUND(ADD(n^2))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. F(z0) -> c20 We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = x_1 POL(ENCARG(x_1)) = [2]x_1^2 POL(ENCODE_ACTIVATE(x_1)) = [1] + x_1 + [2]x_1^2 POL(ENCODE_F(x_1)) = [2] + [2]x_1 + [2]x_1^2 POL(ENCODE_IF(x_1, x_2, x_3)) = [1] + [2]x_1 + [2]x_2 + [2]x_3 + x_3^2 + [2]x_2*x_3 + [2]x_1*x_3 + x_1^2 + x_1*x_2 + [2]x_2^2 POL(F(x_1)) = [2] POL(IF(x_1, x_2, x_3)) = x_3 POL(TRUE) = 0 POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [2] + x_1 POL(cons_if(x_1, x_2, x_3)) = [1] + x_1 + x_2 + x_3 POL(cons_true) = 0 POL(encArg(x_1)) = x_1 POL(f(x_1)) = [2] + x_1 POL(false) = 0 POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [2] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (20) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples: F(z0) -> c20 Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (21) CdtRuleRemovalProof (UPPER BOUND(ADD(n^3))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = x_1 + x_1^2 POL(ENCARG(x_1)) = x_1^3 POL(ENCODE_ACTIVATE(x_1)) = x_1 + x_1^2 POL(ENCODE_F(x_1)) = [1] + x_1 POL(ENCODE_IF(x_1, x_2, x_3)) = x_3 + x_1*x_3^2 POL(F(x_1)) = [1] + x_1 POL(IF(x_1, x_2, x_3)) = x_3 + x_1*x_3^2 POL(TRUE) = 0 POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [1] + x_1 POL(cons_if(x_1, x_2, x_3)) = [1] + x_1 + x_2 + x_3 POL(cons_true) = [1] POL(encArg(x_1)) = x_1 POL(f(x_1)) = [1] + x_1 POL(false) = [1] POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [1] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (22) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples: F(z0) -> c20 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (23) CdtRuleRemovalProof (UPPER BOUND(ADD(n^3))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = x_1^2 POL(ENCARG(x_1)) = x_1^3 POL(ENCODE_ACTIVATE(x_1)) = x_1^2 POL(ENCODE_F(x_1)) = [1] + x_1 POL(ENCODE_IF(x_1, x_2, x_3)) = [1] + x_1*x_2 + x_1*x_3^2 POL(F(x_1)) = [1] + x_1 POL(IF(x_1, x_2, x_3)) = [1] + x_1*x_2 + x_1*x_3^2 POL(TRUE) = 0 POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [1] + x_1 POL(cons_if(x_1, x_2, x_3)) = [1] + x_1 + x_2 + x_3 POL(cons_true) = [1] POL(encArg(x_1)) = x_1 POL(f(x_1)) = [1] + x_1 POL(false) = [1] POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [1] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (24) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples: F(z0) -> c20 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (25) CdtRuleRemovalProof (UPPER BOUND(ADD(n^3))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. F(z0) -> c19(IF(z0, c, n__f(n__true))) We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = x_1^2 POL(ENCARG(x_1)) = x_1^3 POL(ENCODE_ACTIVATE(x_1)) = x_1^2 POL(ENCODE_F(x_1)) = [1] + x_1 POL(ENCODE_IF(x_1, x_2, x_3)) = x_1*x_3^2 POL(F(x_1)) = [1] + x_1 POL(IF(x_1, x_2, x_3)) = x_1*x_3^2 POL(TRUE) = 0 POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [1] + x_1 POL(cons_if(x_1, x_2, x_3)) = x_1 + x_2 + x_3 POL(cons_true) = [1] POL(encArg(x_1)) = x_1 POL(f(x_1)) = [1] + x_1 POL(false) = [1] POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [1] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (26) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: TRUE -> c18 ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 K tuples: F(z0) -> c20 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 F(z0) -> c19(IF(z0, c, n__f(n__true))) Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (27) CdtRuleRemovalProof (UPPER BOUND(ADD(n^3))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. TRUE -> c18 ACTIVATE(z0) -> c25 We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = [1] + x_1^2 POL(ENCARG(x_1)) = x_1^3 POL(ENCODE_ACTIVATE(x_1)) = [1] + x_1^2 POL(ENCODE_F(x_1)) = [1] + x_1 POL(ENCODE_IF(x_1, x_2, x_3)) = x_1 + x_3^2 POL(F(x_1)) = [1] + x_1 POL(IF(x_1, x_2, x_3)) = x_1 + x_3^2 POL(TRUE) = [1] POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [1] + x_1 POL(cons_if(x_1, x_2, x_3)) = [1] + x_1 + x_2 + x_3 POL(cons_true) = [1] POL(encArg(x_1)) = x_1 POL(f(x_1)) = [1] + x_1 POL(false) = [1] POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [1] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (28) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples: ACTIVATE(n__true) -> c24(TRUE) K tuples: F(z0) -> c20 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 F(z0) -> c19(IF(z0, c, n__f(n__true))) TRUE -> c18 ACTIVATE(z0) -> c25 Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (29) CdtRuleRemovalProof (UPPER BOUND(ADD(n^3))) Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S. ACTIVATE(n__true) -> c24(TRUE) We considered the (Usable) Rules: encArg(n__true) -> n__true f(z0) -> n__f(z0) encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) activate(z0) -> z0 activate(n__true) -> true true -> n__true encArg(false) -> false f(z0) -> if(z0, c, n__f(n__true)) encArg(c) -> c encArg(cons_true) -> true encArg(cons_f(z0)) -> f(encArg(z0)) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true activate(n__f(z0)) -> f(activate(z0)) encArg(cons_activate(z0)) -> activate(encArg(z0)) And the Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) The order we found is given by the following interpretation: Polynomial interpretation : POL(ACTIVATE(x_1)) = [1] + x_1^2 POL(ENCARG(x_1)) = x_1^3 POL(ENCODE_ACTIVATE(x_1)) = [1] + x_1^2 POL(ENCODE_F(x_1)) = [1] + x_1 POL(ENCODE_IF(x_1, x_2, x_3)) = x_1 + x_3^2 + x_1*x_2 + x_1*x_2^2 + x_2*x_3^2 + x_1^2*x_2 POL(F(x_1)) = [1] + x_1 POL(IF(x_1, x_2, x_3)) = x_1 + x_3^2 + x_1*x_2 + x_1*x_2^2 + x_2*x_3^2 + x_1^2*x_2 POL(TRUE) = 0 POL(activate(x_1)) = x_1 POL(c) = 0 POL(c1(x_1)) = x_1 POL(c18) = 0 POL(c19(x_1)) = x_1 POL(c2(x_1)) = x_1 POL(c20) = 0 POL(c21(x_1)) = x_1 POL(c22) = 0 POL(c23(x_1, x_2)) = x_1 + x_2 POL(c24(x_1)) = x_1 POL(c25) = 0 POL(c5(x_1, x_2)) = x_1 + x_2 POL(c6(x_1, x_2, x_3, x_4)) = x_1 + x_2 + x_3 + x_4 POL(c7(x_1)) = x_1 POL(c8(x_1, x_2)) = x_1 + x_2 POL(c_true) = 0 POL(cons_activate(x_1)) = [1] + x_1 POL(cons_f(x_1)) = [1] + x_1 POL(cons_if(x_1, x_2, x_3)) = [1] + x_1 + x_2 + x_3 POL(cons_true) = [1] POL(encArg(x_1)) = x_1 POL(f(x_1)) = [1] + x_1 POL(false) = [1] POL(if(x_1, x_2, x_3)) = x_2 + x_3 POL(n__f(x_1)) = [1] + x_1 POL(n__true) = 0 POL(true) = 0 ---------------------------------------- (30) Obligation: Complexity Dependency Tuples Problem Rules: encArg(c) -> c encArg(n__f(z0)) -> n__f(encArg(z0)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(z0)) -> f(encArg(z0)) encArg(cons_if(z0, z1, z2)) -> if(encArg(z0), encArg(z1), encArg(z2)) encArg(cons_true) -> true encArg(cons_activate(z0)) -> activate(encArg(z0)) f(z0) -> if(z0, c, n__f(n__true)) f(z0) -> n__f(z0) if(false, z0, z1) -> activate(z1) if(c_true, z0, z1) -> z0 true -> c_true true -> n__true activate(n__f(z0)) -> f(activate(z0)) activate(n__true) -> true activate(z0) -> z0 Tuples: ENCARG(n__f(z0)) -> c2(ENCARG(z0)) ENCARG(cons_f(z0)) -> c5(F(encArg(z0)), ENCARG(z0)) ENCARG(cons_if(z0, z1, z2)) -> c6(IF(encArg(z0), encArg(z1), encArg(z2)), ENCARG(z0), ENCARG(z1), ENCARG(z2)) ENCARG(cons_true) -> c7(TRUE) ENCARG(cons_activate(z0)) -> c8(ACTIVATE(encArg(z0)), ENCARG(z0)) TRUE -> c18 F(z0) -> c19(IF(z0, c, n__f(n__true))) F(z0) -> c20 IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) ACTIVATE(n__true) -> c24(TRUE) ACTIVATE(z0) -> c25 ENCODE_F(z0) -> c1(F(encArg(z0))) ENCODE_IF(z0, z1, z2) -> c1(IF(encArg(z0), encArg(z1), encArg(z2))) ENCODE_ACTIVATE(z0) -> c1(ACTIVATE(encArg(z0))) S tuples:none K tuples: F(z0) -> c20 ACTIVATE(n__f(z0)) -> c23(F(activate(z0)), ACTIVATE(z0)) IF(false, z0, z1) -> c21(ACTIVATE(z1)) IF(c_true, z0, z1) -> c22 F(z0) -> c19(IF(z0, c, n__f(n__true))) TRUE -> c18 ACTIVATE(z0) -> c25 ACTIVATE(n__true) -> c24(TRUE) Defined Rule Symbols: encArg_1, f_1, if_3, true, activate_1 Defined Pair Symbols: ENCARG_1, TRUE, F_1, IF_3, ACTIVATE_1, ENCODE_F_1, ENCODE_IF_3, ENCODE_ACTIVATE_1 Compound Symbols: c2_1, c5_2, c6_4, c7_1, c8_2, c18, c19_1, c20, c21_1, c22, c23_2, c24_1, c25, c1_1 ---------------------------------------- (31) SIsEmptyProof (BOTH BOUNDS(ID, ID)) The set S is empty ---------------------------------------- (32) BOUNDS(1, 1) ---------------------------------------- (33) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (34) Obligation: The Runtime Complexity (full) of the given CpxRelTRS could be proven to be BOUNDS(n^1, INF). The TRS R consists of the following rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X The (relative) TRS S consists of the following rules: encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Rewrite Strategy: FULL ---------------------------------------- (35) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (36) Obligation: TRS: Rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Types: f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encArg :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate hole_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate1_0 :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0 :: Nat -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate ---------------------------------------- (37) OrderProof (LOWER BOUND(ID)) Heuristically decided to analyse the following defined symbols: f, if, activate, encArg They will be analysed ascendingly in the following order: f = if f = activate f < encArg if = activate if < encArg activate < encArg ---------------------------------------- (38) Obligation: TRS: Rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Types: f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encArg :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate hole_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate1_0 :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0 :: Nat -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate Generator Equations: gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(0) <=> c gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(x, 1)) <=> n__f(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(x)) The following defined symbols remain to be analysed: if, f, activate, encArg They will be analysed ascendingly in the following order: f = if f = activate f < encArg if = activate if < encArg activate < encArg ---------------------------------------- (39) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: activate(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(1, n14_0))) -> *3_0, rt in Omega(n14_0) Induction Base: activate(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(1, 0))) Induction Step: activate(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(1, +(n14_0, 1)))) ->_R^Omega(1) f(activate(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(1, n14_0)))) ->_IH f(*3_0) We have rt in Omega(n^1) and sz in O(n). Thus, we have irc_R in Omega(n). ---------------------------------------- (40) Complex Obligation (BEST) ---------------------------------------- (41) Obligation: Proved the lower bound n^1 for the following obligation: TRS: Rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Types: f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encArg :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate hole_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate1_0 :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0 :: Nat -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate Generator Equations: gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(0) <=> c gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(x, 1)) <=> n__f(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(x)) The following defined symbols remain to be analysed: activate, f, encArg They will be analysed ascendingly in the following order: f = if f = activate f < encArg if = activate if < encArg activate < encArg ---------------------------------------- (42) LowerBoundPropagationProof (FINISHED) Propagated lower bound. ---------------------------------------- (43) BOUNDS(n^1, INF) ---------------------------------------- (44) Obligation: TRS: Rules: f(X) -> if(X, c, n__f(n__true)) if(true, X, Y) -> X if(false, X, Y) -> activate(Y) f(X) -> n__f(X) true -> n__true activate(n__f(X)) -> f(activate(X)) activate(n__true) -> true activate(X) -> X encArg(c) -> c encArg(n__f(x_1)) -> n__f(encArg(x_1)) encArg(n__true) -> n__true encArg(false) -> false encArg(cons_f(x_1)) -> f(encArg(x_1)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_true) -> true encArg(cons_activate(x_1)) -> activate(encArg(x_1)) encode_f(x_1) -> f(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_c -> c encode_n__f(x_1) -> n__f(encArg(x_1)) encode_n__true -> n__true encode_true -> true encode_false -> false encode_activate(x_1) -> activate(encArg(x_1)) Types: f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encArg :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate cons_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_if :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_c :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__f :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_n__true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_true :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_false :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate encode_activate :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate hole_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate1_0 :: c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0 :: Nat -> c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate Lemmas: activate(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(1, n14_0))) -> *3_0, rt in Omega(n14_0) Generator Equations: gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(0) <=> c gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(x, 1)) <=> n__f(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(x)) The following defined symbols remain to be analysed: f, if, encArg They will be analysed ascendingly in the following order: f = if f = activate f < encArg if = activate if < encArg activate < encArg ---------------------------------------- (45) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: encArg(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(n763_0)) -> gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(n763_0), rt in Omega(0) Induction Base: encArg(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(0)) ->_R^Omega(0) c Induction Step: encArg(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(+(n763_0, 1))) ->_R^Omega(0) n__f(encArg(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(n763_0))) ->_IH n__f(gen_c:n__true:n__f:false:cons_f:cons_if:cons_true:cons_activate2_0(c764_0)) We have rt in Omega(1) and sz in O(n). Thus, we have irc_R in Omega(n^0). ---------------------------------------- (46) BOUNDS(1, INF)