]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/contribs/RELATIONAL/NLE/inv.ma
branch for universe
[helm.git] / matita / contribs / RELATIONAL / NLE / inv.ma
diff --git a/matita/contribs/RELATIONAL/NLE/inv.ma b/matita/contribs/RELATIONAL/NLE/inv.ma
new file mode 100644 (file)
index 0000000..af2fa81
--- /dev/null
@@ -0,0 +1,40 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+
+
+include "NLE/defs.ma".
+
+theorem nle_inv_succ_1: \forall x,y. x < y \to 
+                        \exists z. y = succ z \land x <= z.
+ intros. inversion H; clear H; intros; destruct. autobatch.
+qed.
+
+theorem nle_inv_succ_succ: \forall x,y. x < succ y \to x <= y.
+ intros. inversion H; clear H; intros; destruct. autobatch.
+qed.
+
+theorem nle_inv_succ_zero: \forall x. x < zero \to False.
+ intros. inversion H; clear H; intros; destruct.
+qed.
+
+theorem nle_inv_zero_2: \forall x. x <= zero \to x = zero.
+ intros. inversion H; clear H; intros; destruct. autobatch.
+qed.
+
+theorem nle_inv_succ_2: \forall y,x. x <= succ y \to
+                        x = zero \lor \exists z. x = succ z \land z <= y.
+ intros. inversion H; clear H; intros; destruct;
+ autobatch depth = 4.
+qed.