Download benchmarks/Algorithms/modular_mul/lean/spec_lib.lean from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/modular_mul/lean/spec_lib.lean
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/modular_mul/lean/spec_lib.lean
-
curl -L -o spec_lib.lean https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/modular_mul/lean/spec_lib.lean
297 Bytes
| import compcert.lib.ZArithCompat | |
| namespace Algorithms.modular_mul.lean | |
| def ModularMul (multiplicand multiplier modulus result : Int) : Prop := | |
| (-modulus < result ∧ result < modulus) ∧ | |
| ∃ quotient, multiplicand * multiplier = result + modulus * quotient | |
| end Algorithms.modular_mul.lean | |