/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), ?) proof of /export/starexec/sandbox/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(n^1, INF). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 304 ms] (4) CpxRelTRS (5) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (6) CpxRelTRS (7) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (8) typed CpxTrs (9) OrderProof [LOWER BOUND(ID), 0 ms] (10) typed CpxTrs (11) RewriteLemmaProof [LOWER BOUND(ID), 254 ms] (12) BEST (13) proven lower bound (14) LowerBoundPropagationProof [FINISHED, 0 ms] (15) BOUNDS(n^1, INF) (16) typed CpxTrs (17) RewriteLemmaProof [LOWER BOUND(ID), 73 ms] (18) typed CpxTrs (19) RewriteLemmaProof [LOWER BOUND(ID), 443 ms] (20) BOUNDS(1, INF) ---------------------------------------- (0) Obligation: The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(n^1, INF). The TRS R consists of the following rules: minus(0, y) -> 0 minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0 mod(x, 0) -> 0 mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0, y) -> false gt(s(x), 0) -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0) -> false lt(0, s(x)) -> true lt(s(x), s(y)) -> lt(x, y) 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(0) -> 0 encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) ---------------------------------------- (2) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(n^1, INF). The TRS R consists of the following rules: minus(0, y) -> 0 minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0 mod(x, 0) -> 0 mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0, y) -> false gt(s(x), 0) -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0) -> false lt(0, s(x)) -> true lt(s(x), s(y)) -> lt(x, y) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) 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(n^1, INF). The TRS R consists of the following rules: minus(0, y) -> 0 minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0 mod(x, 0) -> 0 mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0, y) -> false gt(s(x), 0) -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0) -> false lt(0, s(x)) -> true lt(s(x), s(y)) -> lt(x, y) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Rewrite Strategy: INNERMOST ---------------------------------------- (5) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (6) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(n^1, INF). The TRS R consists of the following rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) The (relative) TRS S consists of the following rules: encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Rewrite Strategy: INNERMOST ---------------------------------------- (7) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (8) Obligation: Innermost TRS: Rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Types: minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt 0' :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encArg :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_0 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt hole_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt1_4 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4 :: Nat -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt ---------------------------------------- (9) OrderProof (LOWER BOUND(ID)) Heuristically decided to analyse the following defined symbols: minus, if, gt, mod, if1, lt, encArg They will be analysed ascendingly in the following order: minus = if gt < minus minus < if1 minus < encArg if < encArg gt < encArg mod = if1 lt < mod mod < encArg if1 < encArg lt < encArg ---------------------------------------- (10) Obligation: Innermost TRS: Rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Types: minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt 0' :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encArg :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_0 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt hole_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt1_4 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4 :: Nat -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt Generator Equations: gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0) <=> 0' gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(x, 1)) <=> s(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(x)) The following defined symbols remain to be analysed: gt, minus, if, mod, if1, lt, encArg They will be analysed ascendingly in the following order: minus = if gt < minus minus < if1 minus < encArg if < encArg gt < encArg mod = if1 lt < mod mod < encArg if1 < encArg lt < encArg ---------------------------------------- (11) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4)) -> false, rt in Omega(1 + n4_4) Induction Base: gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0)) ->_R^Omega(1) false Induction Step: gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(n4_4, 1)), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(n4_4, 1))) ->_R^Omega(1) gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4)) ->_IH false We have rt in Omega(n^1) and sz in O(n). Thus, we have irc_R in Omega(n). ---------------------------------------- (12) Complex Obligation (BEST) ---------------------------------------- (13) Obligation: Proved the lower bound n^1 for the following obligation: Innermost TRS: Rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Types: minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt 0' :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encArg :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_0 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt hole_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt1_4 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4 :: Nat -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt Generator Equations: gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0) <=> 0' gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(x, 1)) <=> s(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(x)) The following defined symbols remain to be analysed: gt, minus, if, mod, if1, lt, encArg They will be analysed ascendingly in the following order: minus = if gt < minus minus < if1 minus < encArg if < encArg gt < encArg mod = if1 lt < mod mod < encArg if1 < encArg lt < encArg ---------------------------------------- (14) LowerBoundPropagationProof (FINISHED) Propagated lower bound. ---------------------------------------- (15) BOUNDS(n^1, INF) ---------------------------------------- (16) Obligation: Innermost TRS: Rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Types: minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt 0' :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encArg :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_0 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt hole_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt1_4 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4 :: Nat -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt Lemmas: gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4)) -> false, rt in Omega(1 + n4_4) Generator Equations: gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0) <=> 0' gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(x, 1)) <=> s(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(x)) The following defined symbols remain to be analysed: lt, minus, if, mod, if1, encArg They will be analysed ascendingly in the following order: minus = if minus < if1 minus < encArg if < encArg mod = if1 lt < mod mod < encArg if1 < encArg lt < encArg ---------------------------------------- (17) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: lt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4)) -> false, rt in Omega(1 + n599_4) Induction Base: lt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0)) ->_R^Omega(1) false Induction Step: lt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(n599_4, 1)), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(n599_4, 1))) ->_R^Omega(1) lt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4)) ->_IH false We have rt in Omega(n^1) and sz in O(n). Thus, we have irc_R in Omega(n). ---------------------------------------- (18) Obligation: Innermost TRS: Rules: minus(0', y) -> 0' minus(s(x), y) -> if(gt(s(x), y), x, y) if(true, x, y) -> s(minus(x, y)) if(false, x, y) -> 0' mod(x, 0') -> 0' mod(x, s(y)) -> if1(lt(x, s(y)), x, s(y)) if1(true, x, y) -> x if1(false, x, y) -> mod(minus(x, y), y) gt(0', y) -> false gt(s(x), 0') -> true gt(s(x), s(y)) -> gt(x, y) lt(x, 0') -> false lt(0', s(x)) -> true lt(s(x), s(y)) -> lt(x, y) encArg(0') -> 0' encArg(s(x_1)) -> s(encArg(x_1)) encArg(true) -> true encArg(false) -> false encArg(cons_minus(x_1, x_2)) -> minus(encArg(x_1), encArg(x_2)) encArg(cons_if(x_1, x_2, x_3)) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_mod(x_1, x_2)) -> mod(encArg(x_1), encArg(x_2)) encArg(cons_if1(x_1, x_2, x_3)) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encArg(cons_gt(x_1, x_2)) -> gt(encArg(x_1), encArg(x_2)) encArg(cons_lt(x_1, x_2)) -> lt(encArg(x_1), encArg(x_2)) encode_minus(x_1, x_2) -> minus(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_s(x_1) -> s(encArg(x_1)) encode_if(x_1, x_2, x_3) -> if(encArg(x_1), encArg(x_2), encArg(x_3)) encode_gt(x_1, x_2) -> gt(encArg(x_1), encArg(x_2)) encode_true -> true encode_false -> false encode_mod(x_1, x_2) -> mod(encArg(x_1), encArg(x_2)) encode_if1(x_1, x_2, x_3) -> if1(encArg(x_1), encArg(x_2), encArg(x_3)) encode_lt(x_1, x_2) -> lt(encArg(x_1), encArg(x_2)) Types: minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt 0' :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encArg :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt cons_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_minus :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_0 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_s :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_gt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_true :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_false :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_mod :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_if1 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt encode_lt :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt hole_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt1_4 :: 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4 :: Nat -> 0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt Lemmas: gt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n4_4)) -> false, rt in Omega(1 + n4_4) lt(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4), gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n599_4)) -> false, rt in Omega(1 + n599_4) Generator Equations: gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0) <=> 0' gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(x, 1)) <=> s(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(x)) The following defined symbols remain to be analysed: if, minus, mod, if1, encArg They will be analysed ascendingly in the following order: minus = if minus < if1 minus < encArg if < encArg mod = if1 mod < encArg if1 < encArg ---------------------------------------- (19) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: encArg(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n1498_4)) -> gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n1498_4), rt in Omega(0) Induction Base: encArg(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(0)) ->_R^Omega(0) 0' Induction Step: encArg(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(+(n1498_4, 1))) ->_R^Omega(0) s(encArg(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(n1498_4))) ->_IH s(gen_0':s:true:false:cons_minus:cons_if:cons_mod:cons_if1:cons_gt:cons_lt2_4(c1499_4)) We have rt in Omega(1) and sz in O(n). Thus, we have irc_R in Omega(n^0). ---------------------------------------- (20) BOUNDS(1, INF)