]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/library/formal_topology/o-formal_topologies.ma
af9da702ae14c526716cd88911d7e6233fc92b5d
[helm.git] / helm / software / matita / library / formal_topology / o-formal_topologies.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 "formal_topology/o-basic_topologies.ma".
16
17 (*
18 (*
19 definition downarrow: ∀S:BTop. unary_morphism (Ω \sup S) (Ω \sup S).
20  intros; constructor 1;
21   [ apply (λU:Ω \sup S.{a | ∃b:carrbt S. b ∈ U ∧ a ∈ A ? (singleton ? b)});
22     intros; simplify; split; intro; cases H1; cases x; exists [1,3: apply w]
23     split; try assumption; [ apply (. H‡#) | apply (. H \sup -1‡#) ] assumption
24   | intros; split; intros 2; cases f; exists; [1,3: apply w] cases x; split;
25     try assumption; [ apply (. #‡H) | apply (. #‡H \sup -1)] assumption]
26 qed.
27
28 interpretation "downarrow" 'downarrow a = (fun_1 ?? (downarrow ?) a).
29
30 definition ffintersects: ∀S:BTop. binary_morphism1 (Ω \sup S) (Ω \sup S) (Ω \sup S).
31  intros; constructor 1;
32   [ apply (λU,V. ↓U ∩ ↓V);
33   | intros; apply (.= (†H)‡(†H1)); apply refl1]
34 qed.
35
36 interpretation "ffintersects" 'fintersects U V = (fun1 ??? (ffintersects ?) U V).
37 *)
38
39 record formal_topology: Type ≝
40  { bt:> OBTop;
41    converges: ∀U,V: bt. oA bt (U ↓ V) = (oA ? U ∧ oA ? V)
42  }.
43
44 (*
45
46 definition ffintersects': ∀S:BTop. binary_morphism1 S S (Ω \sup S).
47  intros; constructor 1;
48   [ apply (λb,c:S. (singleton S b) ↓ (singleton S c));
49   | intros; apply (.= (†H)‡(†H1)); apply refl1]
50 qed.
51
52 interpretation "ffintersects'" 'fintersects U V = (fun1 ??? (ffintersects' ?) U V).
53 *)
54 record formal_map (S,T: formal_topology) : Type ≝
55  { cr:> continuous_relation_setoid S T;
56    C1: ∀b,c. extS ?? cr (b ↓ c) = ext ?? cr b ↓ ext ?? cr c;
57    C2: extS ?? cr T = S
58  }.
59
60 definition formal_map_setoid: formal_topology → formal_topology → setoid1.
61  intros (S T); constructor 1;
62   [ apply (formal_map S T);
63   | constructor 1;
64      [ apply (λf,f1: formal_map S T.f=f1);
65      | simplify; intros 1; apply refl1
66      | simplify; intros 2; apply sym1
67      | simplify; intros 3; apply trans1]]
68 qed.
69
70 axiom C1':
71  ∀S,T: formal_topology.∀f:formal_map_setoid S T.∀U,V: Ω \sup T.
72   extS ?? f (U ↓ V) = extS ?? f U ↓ extS ?? f V.
73
74 definition formal_map_composition:
75  ∀o1,o2,o3: formal_topology.
76   binary_morphism1
77    (formal_map_setoid o1 o2)
78    (formal_map_setoid o2 o3)
79    (formal_map_setoid o1 o3).
80  intros; constructor 1;
81   [ intros; whd in c c1; constructor 1;
82      [ apply (comp1 BTop ??? c c1);
83      | intros;
84        apply (.= (extS_com ??? c c1 ?));
85        apply (.= †(C1 ?????));
86        apply (.= (C1' ?????));
87        apply (.= ((†((extS_singleton ????) \sup -1))‡(†((extS_singleton ????) \sup -1))));
88        apply (.= (extS_com ??????)\sup -1 ‡ (extS_com ??????) \sup -1);
89        apply (.= (extS_singleton ????)‡(extS_singleton ????));
90        apply refl1;
91      | apply (.= (extS_com ??? c c1 ?));
92        apply (.= (†(C2 ???)));
93        apply (.= (C2 ???));
94        apply refl1;]
95   | intros; simplify;
96     change with (comp1 BTop ??? a b = comp1 BTop ??? a' b');
97     apply prop1; assumption]
98 qed.
99 *)