]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/limits/Domain/defs.ma
Preparing for 0.5.9 release.
[helm.git] / helm / software / matita / contribs / limits / Domain / defs.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 include "Class/defs.ma".
16
17 (* QUANTIFICATION DOMAINS
18    - These are the categories on which we allow quantification.
19    - We set up single quantifiers, parametric on the domain.
20 *)
21
22 record Domain: Type ≝ {
23    domain:> Class
24 }.
25
26 (* internal universal quantification *)
27 inductive dall (D:Domain) (P:D → Prop): Prop ≝
28    | dall_intro: (∀d. cin ? d → P d) → dall D P
29 .
30
31 interpretation "internal for all" 'iforall η.x = (dall ? x).
32
33 (* internal existential quantification *)
34 inductive dex (D:Domain) (P:D → Prop): Prop ≝
35    | dex_intro: ∀d. cin D d → P d → dex D P
36 .
37
38 interpretation "internal exists" 'iexists η.x = (dex ? x).