| 1 |
From Coq Require Import ZArith. |
| 2 |
Require Import Crypto.Util.ZUtil.Definitions. |
| 3 |
Local Open Scope Z_scope. |
| 4 |
|
| 5 |
Module Z. |
| 6 |
Lemma add_modulo_correct x y modulus : |
| 7 |
Z.add_modulo x y modulus = if (modulus <=? x + y) then (x + y) - modulus else (x + y). |
| 8 |
Proof. reflexivity. Qed. |
| 9 |
End Z. |