]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/library/nat/compare.ma
Towards chebyshev.
[helm.git] / matita / library / nat / compare.ma
index 78dc50318197c3dbc449c50d3e757e868aec527d..b002d78cccdedd6ad690ffeea67aaa0402c14288 100644 (file)
@@ -126,6 +126,23 @@ apply nat_elim2; intros; simplify
   ]
 qed.
 
+theorem leb_true_to_le:\forall n,m.
+leb n m = true \to (n \le m).
+intros 2.
+apply leb_elim
+  [intros.assumption
+  |intros.destruct H1.
+  ]
+qed.
+
+theorem leb_false_to_not_le:\forall n,m.
+leb n m = false \to \lnot (n \le m).
+intros 2.
+apply leb_elim
+  [intros.destruct H1
+  |intros.assumption
+  ]
+qed.
 (*
 theorem decidable_le: \forall n,m. n \leq m \lor n \nleq m. 
 intros.