Download benchmarks/Algorithms/integer_divide/lean/helper_lib.lean from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/integer_divide/lean/helper_lib.lean
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/integer_divide/lean/helper_lib.lean
-
curl -L -o helper_lib.lean https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/integer_divide/lean/helper_lib.lean
485 Bytes
| import Algorithms.integer_divide.lean.spec_lib | |
| namespace Algorithms.integer_divide.lean | |
| open AUXLib | |
| def FactorizationProgress (original : Int) (factors : List Int) | |
| (remaining candidate : Int) : Prop := | |
| factors.foldr (· * ·) 1 * remaining = original ∧ | |
| Forall prime factors ∧ Sorted (· ≤ ·) factors ∧ | |
| Forall (fun factor => factor ≤ candidate) factors ∧ | |
| ∀ d : Int, 2 ≤ d ∧ d < candidate → ¬ Z.divide d remaining | |
| end Algorithms.integer_divide.lean | |