Download benchmarks/Algorithms/maximum_subarray/rocq/helper_lib.v from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/maximum_subarray/rocq/helper_lib.v
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/maximum_subarray/rocq/helper_lib.v
-
curl -L -o helper_lib.v https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/maximum_subarray/rocq/helper_lib.v
604 Bytes
| 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. | |