Debian Codegraph @

src/Util/ZUtil/Ge.v

raw
1 From Coq Require Import ZArith RelationClasses.
2
3 Local Open Scope Z_scope.
4
5 Module Z.
6 Lemma ge_refl x : x >= x.
7 Proof. rewrite !Z.ge_le_iff; reflexivity. Qed.
8 Lemma ge_trans n m p : n >= m -> m >= p -> n >= p.
9 Proof. rewrite !Z.ge_le_iff; eauto using Z.le_trans. Qed.
10
11 Global Instance ge_preorder : PreOrder Z.ge.
12 Proof. constructor; hnf; [ apply ge_refl | apply ge_trans ]. Defined.
13 End Z.