X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Flibrary%2Fdama%2Fsequence.ma;fp=helm%2Fsoftware%2Fmatita%2Flibrary%2Fdama%2Fsequence.ma;h=948d14f67963ef2e929bba924e40edbe58572ea4;hb=6fbeff97e37927fd95b3aee3eb23b4309fc465c4;hp=0000000000000000000000000000000000000000;hpb=7a9277a3775b7150a22b2039548508e85751f85a;p=helm.git diff --git a/helm/software/matita/library/dama/sequence.ma b/helm/software/matita/library/dama/sequence.ma new file mode 100644 index 000000000..948d14f67 --- /dev/null +++ b/helm/software/matita/library/dama/sequence.ma @@ -0,0 +1,38 @@ +(**************************************************************************) +(* ___ *) +(* ||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 "nat/nat.ma". + +inductive sequence (O:Type) : Type ≝ + | mk_seq : (nat → O) → sequence O. + +definition fun_of_seq: ∀O:Type.sequence O → nat → O ≝ + λO.λx:sequence O.match x with [ mk_seq f ⇒ f ]. + +coercion cic:/matita/dama/sequence/fun_of_seq.con 1. + +notation < "hvbox((\lfloor term 19 p \rfloor) \sub ident i)" with precedence 90 +for @{ 'sequence (\lambda ${ident i} : $t . $p)}. + +notation > "hvbox((\lfloor term 19 p \rfloor) \sub ident i)" with precedence 90 +for @{ 'sequence (\lambda ${ident i} . $p)}. + +notation > "hvbox(\lfloor ident i, term 19 p \rfloor)" with precedence 90 +for @{ 'sequence (\lambda ${ident i} . $p)}. + +notation "a \sub i" left associative with precedence 90 + for @{ 'sequence_appl $a $i }. + +interpretation "sequence" 'sequence \eta.x = (mk_seq _ x). +interpretation "sequence element" 'sequence_appl s i = (fun_of_seq _ s i).