]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/inversion2.ma
- renamed ocaml/ to components/
[helm.git] / helm / matita / tests / inversion2.ma
diff --git a/helm/matita/tests/inversion2.ma b/helm/matita/tests/inversion2.ma
deleted file mode 100644 (file)
index 65dc75d..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-(**************************************************************************)
-(*       ___                                                              *)
-(*      ||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                  *)
-(*                                                                        *)
-(**************************************************************************)
-
-set "baseuri" "cic:/matita/tests/inversion/".
-include "legacy/coq.ma".
-
-inductive nat : Set \def
-   O : nat
- | S : nat \to nat.
-
-
-inductive le (n:nat) : nat \to Prop \def
-   leO : le n n
- | leS : \forall m. le n m \to le n (S m).
-theorem le_inv:
- \forall n,m.
-  \forall P: nat -> nat -> Prop.
-   ? -> ? -> le n m -> P n m.
-[7:
-  intros;
-  inversion H;
-  [ apply x
-  | simplify;
-    apply x1
-  ]
-| skip
-| skip
-| skip
-| skip
-| skip
-| skip
-]
-qed.
-
-inductive ledx : nat \to nat \to Prop \def
-   ledxO : \forall n. ledx n n
- | ledxS : \forall m.\forall n. ledx n m \to ledx n (S m).
-
-
-alias symbol "eq" (instance 0) = "Coq's leibnitz's equality".
-
-theorem test_inversion: \forall n. le n O \to n=O.
- intros.
- inversion H.
- (* cut n=n \to O=O \to n=O.
-  apply Hcut; reflexivity. *)
-  (* elim H. BUG DI UNSHARING *)
-  (*apply (ledx_ind (\lambda x.\lambda y.  n=x \to O=y \to x=y) ? ? ? ? H).*)
-    simplify. intros. reflexivity.    
-    simplify. intros. discriminate H3.
-qed.