]> matita.cs.unibo.it Git - helm.git/commitdiff
Another "hard" test that used to fail.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 5 Jul 2005 15:08:59 +0000 (15:08 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 5 Jul 2005 15:08:59 +0000 (15:08 +0000)
helm/matita/tests/match_inference.ma

index 5cfa19cc9d326b9fb82715f9962b6eaa934704bf..afb2513eeb9344df5c7b54feafea0ba91bac97a5 100644 (file)
@@ -29,3 +29,10 @@ definition r : True \def
  match (le_n O) with
   [ le_n \Rightarrow I
   | (le_S y p') \Rightarrow I ].
+
+inductive Prod (A,B:Set): Set \def
+pair : A \to B \to Prod A B.
+
+definition fst : \forall A,B:Set. (Prod A B) \to A \def
+\lambda A,B:Set. \lambda p:(Prod A B). match p with
+[(pair a b) \Rightarrow a].