File size: 604 Bytes
3805fe5 bff4ec7 3805fe5 bff4ec7 3805fe5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Require Export PVbench.Algorithms.maximum_subarray.rocq.spec_lib.
Require Import Coq.ZArith.ZArith.
Require Import Coq.Lists.List.
From AUXLib Require Import ListLib.
From MaxMinLib Require Import MaxMin Interface.
Import ListNotations.
Local Open Scope Z_scope.
Local Open Scope list_scope.
Definition max_Z (a b : Z) : Z := Z.max a b.
Definition MaxSuffixSumPrefix (l : list Z) (i ans : Z) : Prop :=
max_value_of_subset Z.le
(fun lo => 0 <= lo /\ lo < i)
(fun lo => sum (sublist lo i l))
ans.
Require Import Coq.micromega.Lia.
Require Import SetsClass.SetsClass.
Import SetsNotation.
|