Debian Codegraph @

src/Util/ZUtil/Sgn.v

raw
1 From Coq Require Import ZArith Lia.
2 Require Import Crypto.Util.ZUtil.Hints.Core.
3 Local Open Scope Z_scope.
4
5 Module Z.
6 Lemma div_abs_sgn_nonneg a b : 0 <= Z.sgn (Z.abs a / Z.abs b).
7 Proof.
8 generalize (Zdiv_sgn (Z.abs a) (Z.abs b)).
9 destruct a, b; simpl; lia.
10 Qed.
11 #[global]
12 Hint Resolve div_abs_sgn_nonneg : zarith.
13 End Z.