]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/limits/preamble.ma
Preparing for 0.5.9 release.
[helm.git] / helm / software / matita / contribs / limits / preamble.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* Project started Wed Oct 12, 2005 ***************************************)
16 (* Project taken over by "formal_topology" and restarted Mon Apr 6, 2009 **)
17
18 include "logic/connectives.ma".
19 include "datatypes/constructors.ma".
20 include "datatypes/bool.ma".
21
22 (* notations **************************************************************)
23
24 notation < "hvbox(\iforall ident i opt (: ty) break . p)"
25   right associative with precedence 20
26 for @{ 'iforall ${ default
27   @{λ ${ident i}: $ty. $p}
28   @{λ ${ident i}. $p}
29 }}.
30
31 notation > "\iforall list1 ident x sep , opt (: T). term 19 Px"
32   with precedence 20
33 for ${ default
34   @{ ${ fold right @{$Px} rec acc @{'iforall (λ ${ident x} :$T . $acc)} } }
35   @{ ${ fold right @{$Px} rec acc @{'iforall (λ ${ident x} . $acc)} } }
36 }.
37
38 notation < "hvbox(\iexists ident i opt (: ty) break . p)"
39   right associative with precedence 20
40 for @{ 'iexists ${ default
41   @{λ ${ident i}: $ty. $p}
42   @{λ ${ident i}. $p}
43 }}.
44
45 notation > "\iexists list1 ident x sep , opt (: T). term 19 Px"
46   with precedence 20
47 for ${ default
48   @{ ${ fold right @{$Px} rec acc @{'iexists (λ ${ident x}: $T. $acc)} } }
49   @{ ${ fold right @{$Px} rec acc @{'iexists (λ ${ident x}. $acc)} } }
50 }.