303.74/291.61 WORST_CASE(Omega(n^1), ?) 303.76/291.61 proof of /export/starexec/sandbox/benchmark/theBenchmark.xml 303.76/291.61 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 303.76/291.61 303.76/291.61 303.76/291.61 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 303.76/291.61 303.76/291.61 (0) CpxTRS 303.76/291.61 (1) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] 303.76/291.61 (2) CpxTRS 303.76/291.61 (3) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] 303.76/291.61 (4) typed CpxTrs 303.76/291.61 (5) OrderProof [LOWER BOUND(ID), 0 ms] 303.76/291.61 (6) typed CpxTrs 303.76/291.61 (7) RewriteLemmaProof [LOWER BOUND(ID), 277 ms] 303.76/291.61 (8) BEST 303.76/291.61 (9) proven lower bound 303.76/291.61 (10) LowerBoundPropagationProof [FINISHED, 0 ms] 303.76/291.61 (11) BOUNDS(n^1, INF) 303.76/291.61 (12) typed CpxTrs 303.76/291.61 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (0) 303.76/291.61 Obligation: 303.76/291.61 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 303.76/291.61 303.76/291.61 303.76/291.61 The TRS R consists of the following rules: 303.76/291.61 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0, x) -> false 303.76/291.61 gr(s(x), 0) -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0) -> 0 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 S is empty. 303.76/291.61 Rewrite Strategy: FULL 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (1) RenamingProof (BOTH BOUNDS(ID, ID)) 303.76/291.61 Renamed function symbols to avoid clashes with predefined symbol. 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (2) 303.76/291.61 Obligation: 303.76/291.61 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 303.76/291.61 303.76/291.61 303.76/291.61 The TRS R consists of the following rules: 303.76/291.61 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0', x) -> false 303.76/291.61 gr(s(x), 0') -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0') -> 0' 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 S is empty. 303.76/291.61 Rewrite Strategy: FULL 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (3) TypeInferenceProof (BOTH BOUNDS(ID, ID)) 303.76/291.61 Infered types. 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (4) 303.76/291.61 Obligation: 303.76/291.61 TRS: 303.76/291.61 Rules: 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0', x) -> false 303.76/291.61 gr(s(x), 0') -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0') -> 0' 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 Types: 303.76/291.61 cond :: true:false -> 0':s -> 0':s -> cond 303.76/291.61 true :: true:false 303.76/291.61 gr :: 0':s -> 0':s -> true:false 303.76/291.61 p :: 0':s -> 0':s 303.76/291.61 0' :: 0':s 303.76/291.61 false :: true:false 303.76/291.61 s :: 0':s -> 0':s 303.76/291.61 hole_cond1_0 :: cond 303.76/291.61 hole_true:false2_0 :: true:false 303.76/291.61 hole_0':s3_0 :: 0':s 303.76/291.61 gen_0':s4_0 :: Nat -> 0':s 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (5) OrderProof (LOWER BOUND(ID)) 303.76/291.61 Heuristically decided to analyse the following defined symbols: 303.76/291.61 cond, gr 303.76/291.61 303.76/291.61 They will be analysed ascendingly in the following order: 303.76/291.61 gr < cond 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (6) 303.76/291.61 Obligation: 303.76/291.61 TRS: 303.76/291.61 Rules: 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0', x) -> false 303.76/291.61 gr(s(x), 0') -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0') -> 0' 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 Types: 303.76/291.61 cond :: true:false -> 0':s -> 0':s -> cond 303.76/291.61 true :: true:false 303.76/291.61 gr :: 0':s -> 0':s -> true:false 303.76/291.61 p :: 0':s -> 0':s 303.76/291.61 0' :: 0':s 303.76/291.61 false :: true:false 303.76/291.61 s :: 0':s -> 0':s 303.76/291.61 hole_cond1_0 :: cond 303.76/291.61 hole_true:false2_0 :: true:false 303.76/291.61 hole_0':s3_0 :: 0':s 303.76/291.61 gen_0':s4_0 :: Nat -> 0':s 303.76/291.61 303.76/291.61 303.76/291.61 Generator Equations: 303.76/291.61 gen_0':s4_0(0) <=> 0' 303.76/291.61 gen_0':s4_0(+(x, 1)) <=> s(gen_0':s4_0(x)) 303.76/291.61 303.76/291.61 303.76/291.61 The following defined symbols remain to be analysed: 303.76/291.61 gr, cond 303.76/291.61 303.76/291.61 They will be analysed ascendingly in the following order: 303.76/291.61 gr < cond 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (7) RewriteLemmaProof (LOWER BOUND(ID)) 303.76/291.61 Proved the following rewrite lemma: 303.76/291.61 gr(gen_0':s4_0(n6_0), gen_0':s4_0(n6_0)) -> false, rt in Omega(1 + n6_0) 303.76/291.61 303.76/291.61 Induction Base: 303.76/291.61 gr(gen_0':s4_0(0), gen_0':s4_0(0)) ->_R^Omega(1) 303.76/291.61 false 303.76/291.61 303.76/291.61 Induction Step: 303.76/291.61 gr(gen_0':s4_0(+(n6_0, 1)), gen_0':s4_0(+(n6_0, 1))) ->_R^Omega(1) 303.76/291.61 gr(gen_0':s4_0(n6_0), gen_0':s4_0(n6_0)) ->_IH 303.76/291.61 false 303.76/291.61 303.76/291.61 We have rt in Omega(n^1) and sz in O(n). Thus, we have irc_R in Omega(n). 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (8) 303.76/291.61 Complex Obligation (BEST) 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (9) 303.76/291.61 Obligation: 303.76/291.61 Proved the lower bound n^1 for the following obligation: 303.76/291.61 303.76/291.61 TRS: 303.76/291.61 Rules: 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0', x) -> false 303.76/291.61 gr(s(x), 0') -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0') -> 0' 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 Types: 303.76/291.61 cond :: true:false -> 0':s -> 0':s -> cond 303.76/291.61 true :: true:false 303.76/291.61 gr :: 0':s -> 0':s -> true:false 303.76/291.61 p :: 0':s -> 0':s 303.76/291.61 0' :: 0':s 303.76/291.61 false :: true:false 303.76/291.61 s :: 0':s -> 0':s 303.76/291.61 hole_cond1_0 :: cond 303.76/291.61 hole_true:false2_0 :: true:false 303.76/291.61 hole_0':s3_0 :: 0':s 303.76/291.61 gen_0':s4_0 :: Nat -> 0':s 303.76/291.61 303.76/291.61 303.76/291.61 Generator Equations: 303.76/291.61 gen_0':s4_0(0) <=> 0' 303.76/291.61 gen_0':s4_0(+(x, 1)) <=> s(gen_0':s4_0(x)) 303.76/291.61 303.76/291.61 303.76/291.61 The following defined symbols remain to be analysed: 303.76/291.61 gr, cond 303.76/291.61 303.76/291.61 They will be analysed ascendingly in the following order: 303.76/291.61 gr < cond 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (10) LowerBoundPropagationProof (FINISHED) 303.76/291.61 Propagated lower bound. 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (11) 303.76/291.61 BOUNDS(n^1, INF) 303.76/291.61 303.76/291.61 ---------------------------------------- 303.76/291.61 303.76/291.61 (12) 303.76/291.61 Obligation: 303.76/291.61 TRS: 303.76/291.61 Rules: 303.76/291.61 cond(true, x, y) -> cond(gr(x, y), p(x), y) 303.76/291.61 gr(0', x) -> false 303.76/291.61 gr(s(x), 0') -> true 303.76/291.61 gr(s(x), s(y)) -> gr(x, y) 303.76/291.61 p(0') -> 0' 303.76/291.61 p(s(x)) -> x 303.76/291.61 303.76/291.61 Types: 303.76/291.61 cond :: true:false -> 0':s -> 0':s -> cond 303.76/291.61 true :: true:false 303.76/291.61 gr :: 0':s -> 0':s -> true:false 303.76/291.61 p :: 0':s -> 0':s 303.76/291.61 0' :: 0':s 303.76/291.61 false :: true:false 303.76/291.61 s :: 0':s -> 0':s 303.76/291.61 hole_cond1_0 :: cond 303.76/291.61 hole_true:false2_0 :: true:false 303.76/291.61 hole_0':s3_0 :: 0':s 303.76/291.61 gen_0':s4_0 :: Nat -> 0':s 303.76/291.61 303.76/291.61 303.76/291.61 Lemmas: 303.76/291.61 gr(gen_0':s4_0(n6_0), gen_0':s4_0(n6_0)) -> false, rt in Omega(1 + n6_0) 303.76/291.61 303.76/291.61 303.76/291.61 Generator Equations: 303.76/291.61 gen_0':s4_0(0) <=> 0' 303.76/291.61 gen_0':s4_0(+(x, 1)) <=> s(gen_0':s4_0(x)) 303.76/291.61 303.76/291.61 303.76/291.61 The following defined symbols remain to be analysed: 303.76/291.61 cond 303.76/291.65 EOF