X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fmatch_inference.ma;h=0e27ce4098d58eeee7276da93673e292b443d7df;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=d5df929bbfb14f791f982875f29eb51296ca1fdb;hpb=d9394782ed9580f3565eb9b4682d8348aae6349e;p=helm.git diff --git a/helm/matita/tests/match_inference.ma b/helm/matita/tests/match_inference.ma index d5df929bb..0e27ce409 100644 --- a/helm/matita/tests/match_inference.ma +++ b/helm/matita/tests/match_inference.ma @@ -1,4 +1,18 @@ -set "baseuri" "cic:/matita/tests/". +(**************************************************************************) +(* ___ *) +(* ||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/match_inference/". inductive pos: Set \def | one : pos @@ -29,3 +43,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].