From f731a49d3d79e63f986ab73f2198051c3ada0c76 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Sun, 9 Apr 2017 17:02:38 -0400 Subject: Add Z.lt_le_flip_Proper_flip_impl --- src/Util/ZUtil.v | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Util/ZUtil.v') diff --git a/src/Util/ZUtil.v b/src/Util/ZUtil.v index 39e2c8abb..03b9e0e56 100644 --- a/src/Util/ZUtil.v +++ b/src/Util/ZUtil.v @@ -279,6 +279,9 @@ Module Z. Proof. intros ???; apply Z.log2_le_mono; assumption. Qed. Lemma pow_Zpos_le_Proper x : Proper (Z.le ==> Z.le) (Z.pow (Z.pos x)). Proof. intros ???; apply Z.pow_le_mono_r; try reflexivity; try assumption. Qed. + Lemma lt_le_flip_Proper_flip_impl + : Proper (Z.le ==> Basics.flip Z.le ==> Basics.flip Basics.impl) Z.lt. + Proof. unfold Basics.flip; repeat (omega || intro). Qed. Lemma le_Proper_ge_le_flip_impl : Proper (Z.le ==> Z.ge ==> Basics.flip Basics.impl) Z.le. Proof. intros ???????; omega. Qed. Lemma add_le_Proper_flip : Proper (Basics.flip Z.le ==> Basics.flip Z.le ==> Basics.flip Z.le) Z.add. -- cgit v1.2.3