]> matita.cs.unibo.it Git - helm.git/commitdiff
Hand-made generated inversion lemma.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 11 Jan 2006 11:26:28 +0000 (11:26 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 11 Jan 2006 11:26:28 +0000 (11:26 +0000)
It heavily uses the new tinycal features.

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