aboutsummaryrefslogtreecommitdiff
path: root/src/Util/ZUtil/Le.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/ZUtil/Le.v')
-rw-r--r--src/Util/ZUtil/Le.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Util/ZUtil/Le.v b/src/Util/ZUtil/Le.v
index ca180c556..a32d0fdd0 100644
--- a/src/Util/ZUtil/Le.v
+++ b/src/Util/ZUtil/Le.v
@@ -55,4 +55,10 @@ Module Z.
Lemma sub_pos_bound a b X : 0 <= a < X -> 0 <= b < X -> -X < a - b < X.
Proof. lia. Qed.
+
+ Lemma le_sub_1_iff x y : x <= y - 1 <-> x < y.
+ Proof. lia. Qed.
+
+ Lemma le_add_1_iff x y : x + 1 <= y <-> x < y.
+ Proof. lia. Qed.
End Z.