File size: 297 Bytes
bff4ec7 | 1 2 3 4 5 6 7 8 9 10 | 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
|