X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fnlibrary%2Fdatatypes%2Fpairs.ma;fp=matita%2Fmatita%2Fnlibrary%2Fdatatypes%2Fpairs.ma;h=2165accbb557c0d2c30b291e235e1d3a274b70d1;hb=2c01ff6094173915e7023076ea48b5804dca7778;hp=0000000000000000000000000000000000000000;hpb=a050e3f80d7ea084ce0184279af98e8251c7d2a6;p=helm.git diff --git a/matita/matita/nlibrary/datatypes/pairs.ma b/matita/matita/nlibrary/datatypes/pairs.ma new file mode 100644 index 000000000..2165accbb --- /dev/null +++ b/matita/matita/nlibrary/datatypes/pairs.ma @@ -0,0 +1,31 @@ +(**************************************************************************) +(* ___ *) +(* ||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 *) +(* *) +(**************************************************************************) + +include "logic/pts.ma". + +nrecord pair (A,B: Type[0]) : Type[0] ≝ + { fst: A; + snd: B + }. + +interpretation "Pair construction" 'pair x y = (mk_pair ? ? x y). + +interpretation "Product" 'product x y = (pair x y). + +interpretation "pair pi1" 'pi1 = (fst ? ?). +interpretation "pair pi2" 'pi2 = (snd ? ?). +interpretation "pair pi1" 'pi1a x = (fst ? ? x). +interpretation "pair pi2" 'pi2a x = (snd ? ? x). +interpretation "pair pi1" 'pi1b x y = (fst ? ? x y). +interpretation "pair pi2" 'pi2b x y = (snd ? ? x y).