X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fmatch_inference.ma;h=afb2513eeb9344df5c7b54feafea0ba91bac97a5;hb=fc414b7e91d15ce6cccd9a4e8b558c2ab71b4b60;hp=5cfa19cc9d326b9fb82715f9962b6eaa934704bf;hpb=ebc063e65d908c9f35619c92454dbbe76bdabd40;p=helm.git diff --git a/helm/matita/tests/match_inference.ma b/helm/matita/tests/match_inference.ma index 5cfa19cc9..afb2513ee 100644 --- a/helm/matita/tests/match_inference.ma +++ b/helm/matita/tests/match_inference.ma @@ -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].