]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/nlibrary/topology/cantor.ma
Release 0.5.9.
[helm.git] / helm / software / matita / nlibrary / topology / cantor.ma
1
2
3 include "topology/igft.ma".
4
5 ntheorem axiom_cond: âˆ€A:Ax.∀a:A.∀i:𝐈 a.a â—ƒ đ‚ a i.
6 #A; #a; #i; @2 i; #x; #H; @; napply H;
7 nqed.
8
9 nlemma hint_auto1 : âˆ€A,U,V. (∀x.x âˆˆ U â†’ x â—ƒ V) â†’ cover_set cover A U V.
10 nnormalize; nauto.
11 nqed.
12
13 alias symbol "covers" (instance 1) = "covers".
14 alias symbol "covers" (instance 2) = "covers set".
15 alias symbol "covers" (instance 3) = "covers".
16 ntheorem transitivity: âˆ€A:Ax.∀a:A.∀U,V. a â—ƒ U â†’ U â—ƒ V â†’ a â—ƒ V.
17 #A; #a; #U; #V; #aU; #UV; nelim aU; nauto depth=4;
18 nqed.
19
20 ndefinition emptyset: âˆ€A.Ί^A â‰ ÎťA.{x | False}.
21
22 notation "∅" non associative with precedence 90 for @{ 'empty }.
23 interpretation "empty" 'empty = (emptyset ?).
24
25 naxiom EM : âˆ€A:Ax.∀a:A.∀i_star.(a âˆˆ đ‚ a i_star) âˆ¨ ÂŹ( a âˆˆ đ‚ a i_star).
26
27 alias symbol "covers" = "covers".
28 ntheorem th2_3 :
29   âˆ€A:Ax.∀a:A. a â—ƒ âˆ… â†’ âˆƒi. ÂŹ a âˆˆ đ‚ a i.
30 #A; #a; #H; nelim H;
31 ##[ #n; *;
32 ##| #b; #i_star; #IH1; #IH2; ncases (EM â€Ś b i_star); nauto;
33 ##] 
34 nqed.
35
36 ninductive eq1 (A : Type[0]) : Type[0] â†’ CProp[0] â‰ 
37 | refl1 : eq1 A A.
38
39 notation "hvbox( a break âˆź b)" non associative with precedence 40 
40 for @{ 'eqT $a $b }.
41
42 interpretation "eq between types" 'eqT a b = (eq1 a b).
43
44 ninductive unit : Type[0] â‰ one : unit.
45
46 nrecord uAx : Type[1] â‰ {
47   uax_ : Ax;
48   with_ : âˆ€a:uax_.𝐈 a âˆź unit
49 }.
50
51 ndefinition uax : uAx â†’ Ax.
52 #A; @ (uax_ A) (Îťx.unit); #a; #_; 
53 napply (𝐂 a ?);  nlapply one; ncases (with_ A a); nauto; 
54 nqed.
55
56 ncoercion uax : âˆ€u:uAx. Ax â‰ uax on _u : uAx to Ax.
57
58 naxiom A: Type[0].
59 naxiom S: A â†’ ÎŠ^A.
60
61 ndefinition axs: uAx.
62 @; ##[ @ A (Îť_.unit) (Îťa,x.S a); ##| #_; @; ##]
63 nqed.
64  
65 alias id "S" = "cic:/matita/ng/topology/igft/S.fix(0,0,1)".
66 unification hint 0 â‰” ;
67          x â‰Ÿ axs  
68   (* -------------- *) âŠ˘
69          S x â‰Ą A. 
70
71
72 ntheorem col2_4 :
73   âˆ€A:uAx.∀a:A. a â—ƒ âˆ… â†’ ÂŹ a âˆˆ đ‚ a one. 
74 #A; #a; #H; nelim H;
75 ##[ #n; *;
76 ##| #b; #i_star; #IH1; #IH2; #H3; nlapply (IH2 â€Ś H3); nauto;
77 ##] 
78 nqed.
79
80 ndefinition Z : ÎŠ^axs â‰ { x | x â—ƒ âˆ… }.
81
82 ntheorem cover_monotone: âˆ€A:Ax.∀a:A.∀U,V.U âŠ† V â†’ a â—ƒ U â†’ a â—ƒ V.
83 #A; #a; #U; #V; #HUV; #H; nelim H; nauto depth=4; 
84 nqed.
85
86 ntheorem th3_1: ÂŹâˆƒa:axs.Z âŠ† S a âˆ§ S a âŠ† Z.
87 *; #a; *; #ZSa; #SaZ; 
88 ncut (a â—ƒ Z); ##[
89   nlapply (axiom_cond â€Ś a one); #AxCon; nchange in AxCon with (a â—ƒ S a);
90   napply (cover_monotone â€Ś AxCon); nassumption; ##] #H; 
91 ncut (a â—ƒ âˆ…); ##[ napply (transitivity â€Ś H); nwhd in match Z; nauto; ##] #H1;
92 ncut (ÂŹ a âˆˆ S a); ##[ napply (col2_4 â€Ś H1); ##] #H2;
93 ncut (a âˆˆ S a); ##[ napply ZSa; napply H1; ##] #H3;
94 nauto;
95 nqed.
96
97 include "nat/nat.ma".
98
99 naxiom phi : nat â†’ nat â†’ nat.
100
101 notation > "ϕ" non associative with precedence 90 for @{ 'phi }.
102 interpretation "phi" 'phi = phi.
103  
104 notation < "ϕ a i" non associative with precedence 90 for @{ 'phi2 $a $i}.
105 interpretation "phi2" 'phi2 a i = (phi a i). 
106 notation < "ϕ a" non associative with precedence 90 for @{ 'phi1 $a }.
107 interpretation "phi2" 'phi1 a = (phi a). 
108
109 ndefinition caxs : uAx. 
110 @; ##[ @ nat (Îť_.unit); #a; #_; napply { x | Ď• a x = O } ##| #_; @; ##]
111 nqed.
112
113
114 alias id "S" = "cic:/matita/ng/topology/igft/S.fix(0,0,1)".
115 unification hint 0 â‰” ;
116          x â‰Ÿ caxs  
117   (* -------------- *) âŠ˘
118          S x â‰Ą nat. 
119
120 naxiom h : nat â†’ nat. 
121
122 alias symbol "eq" = "leibnitz's equality".
123 alias symbol "eq" = "setoid1 eq".
124 alias symbol "covers" = "covers".
125 alias symbol "eq" = "leibnitz's equality".
126 naxiom Ph :  âˆ€x.h x = O \liff  x â—ƒ âˆ….
127
128 nlemma replace_char:
129   âˆ€A:Ax.∀U,V.U âŠ† V â†’ V âŠ† U â†’ âˆ€a:A.a â—ƒ U â†’ a â—ƒ V.
130 #A; #U; #V;  #UV; #VU; #a; #aU; nelim aU; nauto;
131 nqed.
132
133 ntheorem th_ch3: ÂŹâˆƒa:caxs.∀x.ϕ a x = h x.
134 *; #a; #H;
135 ncut (a â—ƒ { x | x â—ƒ âˆ…}); ##[
136   napply (replace_char â€Ś { x | h x = O }); ##[ ##1,2: #x; ncases (Ph x); nauto; ##]
137   napply (replace_char â€Ś { x | Ď• a x = O }); ##[##1,2: #x; nrewrite > (H x); nauto; ##]
138   napply (axiom_cond â€Ś a one); ##] #H1;
139 ncut (a â—ƒ âˆ…); ##[ napply (transitivity â€Ś H1); nauto; ##] #H2;
140 nlapply (col2_4 â€ŚH2); #H3;
141 ncut (a âˆˆ đ‚ a one); ##[
142   nnormalize; ncases (Ph a); nrewrite > (H a); nauto; ##] #H4;
143 nauto;
144 nqed.
145
146