Debian Codegraph @

src/Util/ZUtil/Div/Bootstrap.v

raw
1 (** Basic lemmas about [Z.div] for bootstrapping various tactics *)
2 From Coq Require Import ZArith.
3 From Coq Require Import Lia.
4 Require Import Crypto.Util.ZUtil.Hints.Core.
5 Local Open Scope Z_scope.
6
7 Module Z.
8 Lemma div_0_r_eq a b : b = 0 -> a / b = 0.
9 Proof. intro; subst; auto with zarith. Qed.
10 #[global]
11 Hint Resolve div_0_r_eq : zarith.
12 #[global]
13 Hint Rewrite div_0_r_eq using assumption : zsimplify.
14 End Z.