]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/PREDICATIVE-TOPOLOGY/domain_data.ma
generalize no more useful for elim
[helm.git] / helm / software / matita / contribs / PREDICATIVE-TOPOLOGY / domain_data.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 (* STATO: NON COMPILA: dev'essere aggiornato *)
16
17 set "baseuri" "cic:/matita/PREDICATIVE-TOPOLOGY/domain_data".
18
19 include "datatypes/constructors.ma".
20 include "datatypes/bool.ma".
21 include "domain_defs.ma".
22
23 (* QUANTIFICATION DOMAINS
24    - Here we define some useful domains based on data types
25 *)
26
27 definition DBool : Domain \def
28    mk_Domain (mk_Class bool (true_f ?) (eq ?)).
29
30 definition dbool_ixfam : \forall (C:Class). C \to C \to (DBool \to C) \def
31    \lambda C,c0,c1,b.
32    match b in bool with 
33       [ false \Rightarrow c0
34       | true \Rightarrow c1
35       ].
36
37 definition DVoid : Domain \def
38    mk_Domain (mk_Class void (true_f ?) (eq ?)).
39
40 definition dvoid_ixfam : \forall (C:Class). (DVoid \to C) \def
41    \lambda C,v.
42    match v in void with [].