[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 12 from proof kadane-correct (previous step)

max_ending_here = max_ending_here1 + a[n], max_ending_here0 = 0, max_so_far0 = 0, n = n0, n1 = 0, size = # a, n < # a, n < size, maximum-sum(subarray(a, 0, n), max_so_far), 0 ≤ max_ending_here1, max_ending_here1 ≤ max_so_far, n ≤ size, ∃ m. maximum-suffix-sum(subarray(a, 0, n), m, max_ending_here1) ⊦ ⟪if max_so_far < max_ending_here then max_so_far := max_ending_here; n := n + 1⟫ ( ( 0 ≤ max_ending_here ∧ max_ending_here ≤ max_so_far ∧ n ≤ size ∧ maximum-sum(subarray(a, 0, n), max_so_far) ∧ (∃ m. maximum-suffix-sum(subarray(a, 0, n), m, max_ending_here))) ∧ size - n < size - n0), max_ending_here < 0

Heuristic conditional right split applied rule if right

And obtained the following new goals

Rule argument

Additional information