]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/inversion2.ma
Hand-made generated inversion lemma.
[helm.git] / helm / matita / tests / inversion2.ma
index 1125212dcd9c0bb86d58d8a47ac71cf099531951..65dc75d4082f1ddecd21bd866d5de31e705f2d69 100644 (file)
@@ -24,6 +24,25 @@ 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