Mercurial > hg > Members > kono > Proof > ZF-in-agda
annotate src/Tychonoff.agda @ 1240:fbe072447243
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Mar 2023 13:02:09 +0900 |
parents | 5223f0b40d91 |
children | b15dd4438d50 |
rev | line source |
---|---|
1175 | 1 {-# OPTIONS --allow-unsolved-metas #-} |
431 | 2 open import Level |
3 open import Ordinals | |
1170 | 4 module Tychonoff {n : Level } (O : Ordinals {n}) where |
431 | 5 |
6 open import zf | |
7 open import logic | |
8 open _∧_ | |
9 open _∨_ | |
10 open Bool | |
11 | |
1113
384ba5a3c019
fix Topology definition
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1112
diff
changeset
|
12 import OD |
384ba5a3c019
fix Topology definition
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1112
diff
changeset
|
13 open import Relation.Nullary |
384ba5a3c019
fix Topology definition
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1112
diff
changeset
|
14 open import Data.Empty |
431 | 15 open import Relation.Binary.Core |
1143 | 16 open import Relation.Binary.Definitions |
431 | 17 open import Relation.Binary.PropositionalEquality |
1124 | 18 import BAlgebra |
19 open BAlgebra O | |
431 | 20 open inOrdinal O |
21 open OD O | |
22 open OD.OD | |
23 open ODAxiom odAxiom | |
24 import OrdUtil | |
25 import ODUtil | |
26 open Ordinals.Ordinals O | |
27 open Ordinals.IsOrdinals isOrdinal | |
28 open Ordinals.IsNext isNext | |
29 open OrdUtil O | |
30 open ODUtil O | |
31 | |
32 import ODC | |
33 open ODC O | |
34 | |
1102 | 35 open import filter O |
1218 | 36 open import ZProduct O |
1170 | 37 open import Topology O |
1235 | 38 open import maximum-filter O |
431 | 39 |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
40 open Filter |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
41 open Topology |
1169 | 42 |
1237 | 43 -- |
44 -- Tychonoff : {P Q : HOD } → (TP : Topology P) → (TQ : Topology Q) | |
45 -- → Compact TP → Compact TQ → Compact (ProductTopology TP TQ) | |
46 -- | |
47 -- ULFP : Compact <=> Every ultra filter F have a limit i.e. open sets which contains the limit (Neighbor limit) is in F | |
48 -- | |
49 -- Tychonoff {P} {Q} TP TQ CP CQ = FIP→Compact (ProductTopology TP TQ) (UFLP→FIP (ProductTopology TP TQ) uflPQ ) where | |
50 -- | |
51 -- FP FQ : create projections of a filter F, so it is ULFP | |
52 -- | |
53 -- Pf : odef (ZFP P Q) (& < * (UFLP.limit uflp) , * (UFLP.limit uflq) >) | |
54 -- | |
55 -- the product of each limits must be a limit of ultra filter F | |
56 -- | |
57 -- its neighbor is in F, because we can decompose Neighbors nei into subbase of Product Topology which is a open set of P ∋ p or Q ∋ q | |
58 -- so (P x q) ∋ limit ∨ (q x P) ∋ limit. P x q ⊆ nei , so nei ∋ limit | |
59 -- | |
60 -- uflPQ : (F : Filter {Power (ZFP P Q)} {ZFP P Q} (λ x → x)) (UF : ultra-filter F) | |
61 -- → UFLP (ProductTopology TP TQ) F UF | |
62 -- | |
63 -- QED. | |
64 | |
431 | 65 -- FIP is UFL |
66 | |
1159 | 67 -- filter Base |
1205 | 68 record FBase (P : HOD ) (X : Ordinal ) (u : Ordinal) : Set n where |
1153 | 69 field |
1161 | 70 b x : Ordinal |
1155 | 71 b⊆X : * b ⊆ * X |
1161 | 72 sb : Subbase (* b) x |
1158 | 73 u⊆P : * u ⊆ P |
1154 | 74 x⊆u : * x ⊆ * u |
1155 | 75 |
1170 | 76 record UFLP {P : HOD} (TP : Topology P) (F : Filter {Power P} {P} (λ x → x) ) |
77 (ultra : ultra-filter F ) : Set (suc (suc n)) where | |
78 field | |
79 limit : Ordinal | |
80 P∋limit : odef P limit | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
81 is-limit : {v : Ordinal} → Neighbor TP limit v → filter F ∋ (* v) |
1165 | 82 |
1161 | 83 UFLP→FIP : {P : HOD} (TP : Topology P) → |
1169 | 84 ((F : Filter {Power P} {P} (λ x → x) ) (UF : ultra-filter F ) → UFLP TP F UF ) → FIP TP |
1163 | 85 UFLP→FIP {P} TP uflp with trio< (& P) o∅ |
86 ... | tri< a ¬b ¬c = ⊥-elim ( ¬x<0 a ) | |
1201 | 87 ... | tri≈ ¬a P=0 ¬c = record { limit = λ CX fip → o∅ ; is-limit = fip03 } where |
1237 | 88 -- P is empty ( this case cannot happen because ulfp → 0 < P ) |
1163 | 89 fip02 : {x : Ordinal } → ¬ odef P x |
1201 | 90 fip02 {x} Px = ⊥-elim ( o<¬≡ (sym P=0) (∈∅< Px) ) |
91 fip03 : {X : Ordinal} (CX : * X ⊆ CS TP) (fip : {x : Ordinal} → Subbase (* X) x → o∅ o< x) {x : Ordinal} → | |
92 odef (* X) x → odef (* x) o∅ | |
93 -- empty P case | |
94 -- if 0 < X then 0 < x ∧ P ∋ xfrom fip | |
95 -- if 0 ≡ X then ¬ odef X x | |
96 fip03 {X} CX fip {x} xx with trio< o∅ X | |
97 ... | tri< 0<X ¬b ¬c = ⊥-elim ( ¬∅∋ (subst₂ (λ j k → odef j k ) (trans (trans (sym *iso) (cong (*) P=0)) o∅≡od∅ ) (sym &iso) | |
98 ( cs⊆L TP (subst (λ k → odef (CS TP) k ) (sym &iso) (CX xx)) xe ))) where | |
99 0<x : o∅ o< x | |
100 0<x = fip (gi xx ) | |
101 e : HOD -- we have an element of x | |
102 e = ODC.minimal O (* x) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) 0<x) ) | |
103 xe : odef (* x) (& e) | |
104 xe = ODC.x∋minimal O (* x) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) 0<x) ) | |
105 ... | tri≈ ¬a 0=X ¬c = ⊥-elim ( ¬∅∋ (subst₂ (λ j k → odef j k ) ( begin | |
106 * X ≡⟨ cong (*) (sym 0=X) ⟩ | |
107 * o∅ ≡⟨ o∅≡od∅ ⟩ | |
108 od∅ ∎ ) (sym &iso) xx ) ) where open ≡-Reasoning | |
109 ... | tri> ¬a ¬b c = ⊥-elim ( ¬x<0 c ) | |
1204 | 110 ... | tri> ¬a ¬b 0<P = record { limit = λ CSX fip → limit CSX fip ; is-limit = uf01 } where |
1143 | 111 fip : {X : Ordinal} → * X ⊆ CS TP → Set n |
1187 | 112 fip {X} CSX = {x : Ordinal} → Subbase (* X) x → o∅ o< x |
1154 | 113 N : {X : Ordinal} → (CSX : * X ⊆ CS TP) → fip CSX → HOD |
1161 | 114 N {X} CSX fp = record { od = record { def = λ u → FBase P X u } ; odmax = osuc (& P) |
1159 | 115 ; <odmax = λ {x} lt → subst₂ (λ j k → j o< osuc k) &iso refl (⊆→o≤ (FBase.u⊆P lt)) } |
1158 | 116 N⊆PP : {X : Ordinal } → (CSX : * X ⊆ CS TP) → (fp : fip CSX) → N CSX fp ⊆ Power P |
1159 | 117 N⊆PP CSX fp nx b xb = FBase.u⊆P nx xb |
1237 | 118 -- filter base is not empty, it is necessary to maximize fip filter |
1204 | 119 nc : {X : Ordinal} → o∅ o< X → (CSX : * X ⊆ CS TP) → (fip : fip CSX) → HOD |
1205 | 120 nc {X} 0<X CSX fip = ODC.minimal O (* X) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) 0<X) ) -- an element of X |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
121 N∋nc :{X : Ordinal} → (0<X : o∅ o< X) → (CSX : * X ⊆ CS TP) |
1204 | 122 → (fip : fip CSX) → odef (N CSX fip) (& (nc 0<X CSX fip) ) |
1205 | 123 N∋nc {X} 0<X CSX fip = record { b = X ; x = & e ; b⊆X = λ x → x ; sb = gi Xe ; u⊆P = nn02 ; x⊆u = λ x → x } where |
1201 | 124 e : HOD -- we have an element of X |
125 e = ODC.minimal O (* X) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) 0<X) ) | |
126 Xe : odef (* X) (& e) | |
127 Xe = ODC.x∋minimal O (* X) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) 0<X) ) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
128 nn01 = ODC.minimal O (* (& e)) (0<P→ne (subst (λ k → o∅ o< k) (sym &iso) (fip (gi Xe))) ) |
1205 | 129 nn02 : * (& (nc 0<X CSX fip)) ⊆ P |
130 nn02 = subst (λ k → k ⊆ P ) (sym *iso) (cs⊆L TP (CSX Xe ) ) | |
131 | |
1237 | 132 0<PP : o∅ o< & (Power P) -- Power P contaisn od∅, so it is not empty |
1201 | 133 0<PP = subst (λ k → k o< & (Power P)) &iso ( c<→o< (subst (λ k → odef (Power P) k) (sym &iso) nn00 )) where |
134 nn00 : odef (Power P) o∅ | |
135 nn00 x lt with subst (λ k → odef k x) o∅≡od∅ lt | |
136 ... | x<0 = ⊥-elim ( ¬x<0 x<0) | |
1174 | 137 -- |
138 -- FIP defines a filter | |
139 -- | |
1158 | 140 F : {X : Ordinal} → (CSX : * X ⊆ CS TP) → (fp : fip CSX) → Filter {Power P} {P} (λ x → x) |
141 F {X} CSX fp = record { filter = N CSX fp ; f⊆L = N⊆PP CSX fp ; filter1 = f1 ; filter2 = f2 } where | |
142 f1 : {p q : HOD} → Power P ∋ q → N CSX fp ∋ p → p ⊆ q → N CSX fp ∋ q | |
1161 | 143 f1 {p} {q} Xq record { b = b ; x = x ; b⊆X = b⊆X ; sb = sb ; u⊆P = Xp ; x⊆u = x⊆p } p⊆q = |
144 record { b = b ; x = x ; b⊆X = b⊆X ; sb = sb ; u⊆P = subst (λ k → k ⊆ P) (sym *iso) f10 ; x⊆u = λ {z} xp → | |
1158 | 145 subst (λ k → odef k z) (sym *iso) (p⊆q (subst (λ k → odef k z) *iso (x⊆p xp))) } where |
146 f10 : q ⊆ P | |
147 f10 {x} qx = subst (λ k → odef P k) &iso (power→ P _ Xq (subst (λ k → odef q k) (sym &iso) qx )) | |
148 f2 : {p q : HOD} → N CSX fp ∋ p → N CSX fp ∋ q → Power P ∋ (p ∩ q) → N CSX fp ∋ (p ∩ q) | |
149 f2 {p} {q} Np Nq Xpq = record { b = & Np+Nq ; x = & xp∧xq ; b⊆X = f20 ; sb = sbpq ; u⊆P = p∩q⊆p ; x⊆u = f22 } where | |
150 p∩q⊆p : * (& (p ∩ q)) ⊆ P | |
151 p∩q⊆p {x} pqx = subst (λ k → odef P k) &iso (power→ P _ Xpq (subst₂ (λ j k → odef j k ) *iso (sym &iso) pqx )) | |
1159 | 152 Np+Nq = * (FBase.b Np) ∪ * (FBase.b Nq) |
153 xp∧xq = * (FBase.x Np) ∩ * (FBase.x Nq) | |
1155 | 154 sbpq : Subbase (* (& Np+Nq)) (& xp∧xq) |
1159 | 155 sbpq = subst₂ (λ j k → Subbase j k ) (sym *iso) refl ( g∩ (sb⊆ case1 (FBase.sb Np)) (sb⊆ case2 (FBase.sb Nq))) |
1155 | 156 f20 : * (& Np+Nq) ⊆ * X |
157 f20 {x} npq with subst (λ k → odef k x) *iso npq | |
1159 | 158 ... | case1 np = FBase.b⊆X Np np |
159 ... | case2 nq = FBase.b⊆X Nq nq | |
1155 | 160 f22 : * (& xp∧xq) ⊆ * (& (p ∩ q)) |
1161 | 161 f22 = subst₂ ( λ j k → j ⊆ k ) (sym *iso) (sym *iso) (λ {w} xpq |
1159 | 162 → ⟪ subst (λ k → odef k w) *iso ( FBase.x⊆u Np (proj1 xpq)) , subst (λ k → odef k w) *iso ( FBase.x⊆u Nq (proj2 xpq)) ⟫ ) |
1174 | 163 -- |
1207 | 164 -- it contains no empty sets becase it is a finite intersection ( Subbase (* X) x ) |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
165 -- |
1207 | 166 proper : {X : Ordinal} → (CSX : * X ⊆ CS TP) → (fip : fip {X} CSX) → ¬ (N CSX fip ∋ od∅) |
167 proper {X} CSX fip record { b = b ; x = x ; b⊆X = b⊆X ; sb = sb ; u⊆P = u⊆P ; x⊆u = x⊆u } = o≤> x≤0 (fip (fp00 _ _ b⊆X sb)) where | |
168 x≤0 : x o< osuc o∅ | |
169 x≤0 = subst₂ (λ j k → j o< osuc k) &iso (trans (cong (&) *iso) ord-od∅ ) (⊆→o≤ (x⊆u)) | |
170 fp00 : (b x : Ordinal) → * b ⊆ * X → Subbase (* b) x → Subbase (* X) x | |
171 fp00 b y b<X (gi by ) = gi ( b<X by ) | |
172 fp00 b _ b<X (g∩ {y} {z} sy sz ) = g∩ (fp00 _ _ b<X sy) (fp00 _ _ b<X sz) | |
1174 | 173 -- |
1237 | 174 -- then we have maximum ultra filter ( Zorn lemma ) |
1239 | 175 -- to debug this file, commet out the maximum filter and open import |
1237 | 176 -- otherwise the check requires a minute |
1174 | 177 -- |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
178 maxf : {X : Ordinal} → o∅ o< X → (CSX : * X ⊆ CS TP) → (fp : fip {X} CSX) → MaximumFilter (λ x → x) (F CSX fp) |
1235 | 179 maxf {X} 0<X CSX fp = F→Maximum {Power P} {P} (λ x → x) (CAP P) (F CSX fp) 0<PP (N∋nc 0<X CSX fp) (proper CSX fp) |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
180 mf : {X : Ordinal} → o∅ o< X → (CSX : * X ⊆ CS TP) → (fp : fip {X} CSX) → Filter {Power P} {P} (λ x → x) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
181 mf {X} 0<X CSX fp = MaximumFilter.mf (maxf 0<X CSX fp) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
182 ultraf : {X : Ordinal} → (0<X : o∅ o< X ) → (CSX : * X ⊆ CS TP) → (fp : fip {X} CSX) → ultra-filter ( mf 0<X CSX fp) |
1235 | 183 ultraf {X} 0<X CSX fp = F→ultra {Power P} {P} (λ x → x) (CAP P) (F CSX fp) 0<PP (N∋nc 0<X CSX fp) (proper CSX fp) |
1174 | 184 -- |
1237 | 185 -- so it has a limit as a limit of UIP |
1174 | 186 -- |
1170 | 187 limit : {X : Ordinal} → (CSX : * X ⊆ CS TP) → fip {X} CSX → Ordinal |
1203 | 188 limit {X} CSX fp with trio< o∅ X |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
189 ... | tri< 0<X ¬b ¬c = UFLP.limit ( uflp ( mf 0<X CSX fp ) (ultraf 0<X CSX fp)) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
190 ... | tri≈ ¬a 0=X ¬c = o∅ |
1203 | 191 ... | tri> ¬a ¬b c = ⊥-elim ( ¬x<0 c ) |
1174 | 192 -- |
1201 | 193 -- the limit is an limit of entire elements of X |
1174 | 194 -- |
1170 | 195 uf01 : {X : Ordinal} (CSX : * X ⊆ CS TP) (fp : fip {X} CSX) {x : Ordinal} → odef (* X) x → odef (* x) (limit CSX fp) |
1204 | 196 uf01 {X} CSX fp {x} xx with trio< o∅ X |
1206 | 197 ... | tri> ¬a ¬b c = ⊥-elim ( ¬x<0 c ) |
1205 | 198 ... | tri≈ ¬a 0=X ¬c = ⊥-elim ( ¬a (subst (λ k → o∅ o< k) &iso ( ∈∅< xx ))) |
1237 | 199 -- 0<X limit is in * x or P \ * x |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
200 ... | tri< 0<X ¬b ¬c with ∨L\X {P} {* x} {UFLP.limit ( uflp ( mf 0<X CSX fp ) (ultraf 0<X CSX fp))} |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
201 (UFLP.P∋limit ( uflp ( mf 0<X CSX fp ) (ultraf 0<X CSX fp))) |
1206 | 202 ... | case1 lt = lt -- odef (* x) y |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
203 ... | case2 nlxy = ⊥-elim (MaximumFilter.proper (maxf 0<X CSX fp) uf11 ) where |
1237 | 204 -- |
205 -- if (* x) do not conatins a limit, P \ * x contains it, (P \ * x) is open so it is the maxf ( UFLP.is-limit ) | |
206 -- UFLP contains (* x) and P \ * x, it contains od∅, contradicts the proper | |
207 -- | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
208 y = UFLP.limit ( uflp ( mf 0<X CSX fp ) (ultraf 0<X CSX fp)) |
1207 | 209 x⊆P : * x ⊆ P |
210 x⊆P = cs⊆L TP (CSX (subst (λ k → odef (* X) k) (sym &iso) xx)) | |
1206 | 211 uf10 : odef (P \ * x ) y |
212 uf10 = nlxy | |
213 uf03 : Neighbor TP y (& (P \ * x )) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
214 uf03 = record { u = _ ; ou = P\CS=OS TP (CSX (subst (λ k → odef (* X) k ) (sym &iso) xx)) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
215 ; ux = subst (λ k → odef k y) (sym *iso) uf10 |
1206 | 216 ; v⊆P = λ {z} xz → proj1 (subst(λ k → odef k z) *iso xz ) |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
217 ; u⊆v = λ x → x } |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
218 uf07 : * (& (* x , * x)) ⊆ * X |
1207 | 219 uf07 {y} lt with subst (λ k → odef k y) *iso lt |
220 ... | case1 refl = subst (λ k → odef (* X) k ) (sym &iso) xx | |
221 ... | case2 refl = subst (λ k → odef (* X) k ) (sym &iso) xx | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
222 uf05 : odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) x |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
223 uf05 = MaximumFilter.F⊆mf (maxf 0<X CSX fp) record { b = & (* x , * x) ; b⊆X = uf07 |
1207 | 224 ; sb = gi (subst (λ k → odef k x) (sym *iso) (case1 (sym &iso)) ) ; u⊆P = x⊆P ; x⊆u = λ x → x } |
1213 | 225 uf061 : odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) (& (* (& (P \ * x )))) |
226 uf061 = UFLP.is-limit ( uflp (mf 0<X CSX fp) (ultraf 0<X CSX fp)) {& (P \ * x)} uf03 | |
227 -- uf06 (same as uf061) have yellow if zorn lemma is not imported | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
228 uf06 : odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) (& (P \ * x )) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
229 uf06 = subst (λ k → odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) k) &iso (UFLP.is-limit ( uflp (mf 0<X CSX fp) (ultraf 0<X CSX fp)) {& (P \ * x)} uf03 ) |
1206 | 230 uf13 : & ((* x) ∩ (P \ * x )) ≡ o∅ |
1207 | 231 uf13 = subst₂ (λ j k → j ≡ k ) refl ord-od∅ (cong (&) ( ==→o≡ record { eq→ = uf14 ; eq← = λ {x} lt → ⊥-elim (¬x<0 lt) } ) ) where |
232 uf14 : {y : Ordinal} → odef (* x ∩ (P \ * x)) y → odef od∅ y | |
233 uf14 {y} ⟪ xy , ⟪ Px , ¬xy ⟫ ⟫ = ⊥-elim ( ¬xy xy ) | |
1206 | 234 uf12 : odef (Power P) (& ((* x) ∩ (P \ * x ))) |
1207 | 235 uf12 z pz with subst (λ k → odef k z) *iso pz |
236 ... | ⟪ xz , ⟪ Pz , ¬xz ⟫ ⟫ = Pz | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
237 uf11 : filter (MaximumFilter.mf (maxf 0<X CSX fp)) ∋ od∅ |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
238 uf11 = subst (λ k → odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) k ) (trans uf13 (sym ord-od∅)) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
239 ( filter2 (MaximumFilter.mf (maxf 0<X CSX fp)) (subst (λ k → odef (filter (MaximumFilter.mf (maxf 0<X CSX fp))) k) (sym &iso) uf05) uf06 uf12 ) |
1142 | 240 |
1208 | 241 x⊆Clx : {P : HOD} (TP : Topology P) → {x : HOD} → x ⊆ P → x ⊆ Cl TP x |
242 x⊆Clx {P} TP {x} x<p {y} xy = ⟪ x<p xy , (λ c csc x<c → x<c xy ) ⟫ | |
243 P⊆Clx : {P : HOD} (TP : Topology P) → {x : HOD} → x ⊆ P → Cl TP x ⊆ P | |
244 P⊆Clx {P} TP {x} x<p {y} xy = proj1 xy | |
245 | |
1158 | 246 FIP→UFLP : {P : HOD} (TP : Topology P) → FIP TP |
1169 | 247 → (F : Filter {Power P} {P} (λ x → x)) (UF : ultra-filter F ) → UFLP {P} TP F UF |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
248 FIP→UFLP {P} TP fip F UF = record { limit = FIP.limit fip (subst (λ k → k ⊆ CS TP) (sym *iso) CF⊆CS) ufl01 |
1209 | 249 ; P∋limit = ufl10 ; is-limit = ufl00 } where |
250 F∋P : odef (filter F) (& P) | |
251 F∋P with ultra-filter.ultra UF {od∅} (λ z az → ⊥-elim (¬x<0 (subst (λ k → odef k z) *iso az)) ) (λ z az → proj1 (subst (λ k → odef k z) *iso az ) ) | |
252 ... | case1 fp = ⊥-elim ( ultra-filter.proper UF fp ) | |
253 ... | case2 flp = subst (λ k → odef (filter F) k) (cong (&) (==→o≡ fl20)) flp where | |
254 fl20 : (P \ Ord o∅) =h= P | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
255 fl20 = record { eq→ = λ {x} lt → proj1 lt ; eq← = λ {x} lt → ⟪ lt , (λ lt → ⊥-elim (¬x<0 lt) ) ⟫ } |
1209 | 256 0<P : o∅ o< & P |
257 0<P with trio< o∅ (& P) | |
258 ... | tri< a ¬b ¬c = a | |
259 ... | tri≈ ¬a b ¬c = ⊥-elim (ultra-filter.proper UF (subst (λ k → odef (filter F) k) (trans (sym b) (sym ord-od∅)) F∋P) ) | |
260 ... | tri> ¬a ¬b c = ⊥-elim (¬x<0 c) | |
1174 | 261 -- |
262 -- take closure of given filter elements | |
263 -- | |
1160 | 264 CF : HOD |
1188 | 265 CF = Replace (filter F) (λ x → Cl TP x ) |
1160 | 266 CF⊆CS : CF ⊆ CS TP |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
267 CF⊆CS {x} record { z = z ; az = az ; x=ψz = x=ψz } = subst (λ k → odef (CS TP) k) (sym x=ψz) (CS∋Cl TP (* z)) |
1174 | 268 -- |
269 -- it is set of closed set and has FIP ( F is proper ) | |
270 -- | |
1208 | 271 ufl08 : {z : Ordinal} → odef (Power P) (& (Cl TP (* z))) |
272 ufl08 {z} w zw with subst (λ k → odef k w ) *iso zw | |
273 ... | t = proj1 t | |
274 fx→px : {x : Ordinal} → odef (filter F) x → Power P ∋ * x | |
275 fx→px {x} fx z xz = f⊆L F fx _ (subst (λ k → odef k z) *iso xz ) | |
276 F∋sb : {x : Ordinal} → Subbase CF x → odef (filter F) x | |
277 F∋sb {x} (gi record { z = z ; az = az ; x=ψz = x=ψz }) = ufl07 where | |
278 ufl09 : * z ⊆ P | |
279 ufl09 {y} zy = f⊆L F az _ zy | |
280 ufl07 : odef (filter F) x | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
281 ufl07 = subst (λ k → odef (filter F) k) &iso ( filter1 F (subst (λ k → odef (Power P) k) (trans (sym x=ψz) (sym &iso)) ufl08 ) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
282 (subst (λ k → odef (filter F) k) (sym &iso) az) |
1208 | 283 (subst (λ k → * z ⊆ k ) (trans (sym *iso) (sym (cong (*) x=ψz)) ) (x⊆Clx TP {* z} ufl09 ) )) |
284 F∋sb (g∩ {x} {y} sx sy) = filter2 F (subst (λ k → odef (filter F) k) (sym &iso) (F∋sb sx)) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
285 (subst (λ k → odef (filter F) k) (sym &iso) (F∋sb sy)) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
286 (λ z xz → fx→px (F∋sb sx) _ (subst (λ k → odef k _) (sym *iso) (proj1 (subst (λ k → odef k z) *iso xz) ))) |
1187 | 287 ufl01 : {x : Ordinal} → Subbase (* (& CF)) x → o∅ o< x |
1208 | 288 ufl01 {x} sb = ufl04 where |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
289 ufl04 : o∅ o< x |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
290 ufl04 with trio< o∅ x |
1208 | 291 ... | tri< a ¬b ¬c = a |
292 ... | tri≈ ¬a b ¬c = ⊥-elim ( ultra-filter.proper UF (subst (λ k → odef (filter F) k) ( | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
293 begin |
1208 | 294 x ≡⟨ sym b ⟩ |
295 o∅ ≡⟨ sym ord-od∅ ⟩ | |
296 & od∅ ∎ ) (F∋sb (subst (λ k → Subbase k x) *iso sb )) )) where open ≡-Reasoning | |
297 ... | tri> ¬a ¬b c = ⊥-elim (¬x<0 c) | |
1209 | 298 ufl10 : odef P (FIP.limit fip (subst (λ k → k ⊆ CS TP) (sym *iso) CF⊆CS) ufl01) |
299 ufl10 = FIP.L∋limit fip (subst (λ k → k ⊆ CS TP) (sym *iso) CF⊆CS) ufl01 {& P} ufl11 where | |
300 ufl11 : odef (* (& CF)) (& P) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
301 ufl11 = subst (λ k → odef k (& P)) (sym *iso) record { z = _ ; az = F∋P ; x=ψz = sym (cong (&) (trans (cong (Cl TP) *iso) (ClL TP))) } |
1174 | 302 -- |
303 -- so we have a limit | |
304 -- | |
1170 | 305 limit : Ordinal |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
306 limit = FIP.limit fip (subst (λ k → k ⊆ CS TP) (sym *iso) CF⊆CS) ufl01 |
1170 | 307 ufl02 : {y : Ordinal } → odef (* (& CF)) y → odef (* y) limit |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
308 ufl02 = FIP.is-limit fip (subst (λ k → k ⊆ CS TP) (sym *iso) CF⊆CS) ufl01 |
1174 | 309 -- |
310 -- Neigbor of limit ⊆ Filter | |
311 -- | |
1210 | 312 -- if odef (* X) x, Cl TP x contains limit (ufl02) |
313 -- in (nei : Neighbor TP limit v) , there is an open Set u which contains the limit | |
314 -- F contains u or P \ u because F is ultra | |
315 -- if F ∋ u, then F ∋ v from u ⊆ v which is a propetery of Neighbor | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
316 -- if F ∋ P \ u, it is a closed set (Cl (P \ u) ≡ P \ u) and it does not contains the limit |
1210 | 317 -- this contradicts ufl02 |
318 pp : {v : Ordinal} → (nei : Neighbor TP limit v ) → Power P ∋ (* (Neighbor.u nei)) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
319 pp {v} record { u = u ; ou = ou ; ux = ux ; v⊆P = v⊆P ; u⊆v = u⊆v } z pz |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
320 = os⊆L TP (subst (λ k → odef (OS TP) k) (sym &iso) ou ) (subst (λ k → odef k z) *iso pz ) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
321 ufl00 : {v : Ordinal} → Neighbor TP limit v → filter F ∋ * v |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
322 ufl00 {v} nei with ultra-filter.ultra UF (pp nei ) (NEG P (pp nei )) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
323 ... | case1 fu = subst (λ k → odef (filter F) k) &iso |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
324 ( filter1 F (subst (λ k → odef (Power P) k ) (sym &iso) px) fu (subst (λ k → u ⊆ k ) (sym *iso) (Neighbor.u⊆v nei))) where |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
325 u = * (Neighbor.u nei) |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
326 px : Power P ∋ * v |
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
327 px z vz = Neighbor.v⊆P nei (subst (λ k → odef k z) *iso vz ) |
1210 | 328 ... | case2 nfu = ⊥-elim ( ¬P\u∋limit P\u∋limit ) where |
329 u = * (Neighbor.u nei) | |
330 P\u : HOD | |
331 P\u = P \ u | |
332 P\u∋limit : odef P\u limit | |
333 P\u∋limit = subst (λ k → odef k limit) *iso ( ufl02 (subst (λ k → odef k (& P\u)) (sym *iso) ufl03 )) where | |
334 ufl04 : & P\u ≡ & (Cl TP (* (& P\u))) | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
335 ufl04 = cong (&) (sym (trans (cong (Cl TP) *iso) |
1210 | 336 (CS∋x→Clx=x TP (P\OS=CS TP (subst (λ k → odef (OS TP) k) (sym &iso) (Neighbor.ou nei) ))))) |
337 ufl03 : odef CF (& P\u ) | |
338 ufl03 = record { z = _ ; az = nfu ; x=ψz = ufl04 } | |
339 ¬P\u∋limit : ¬ odef P\u limit | |
340 ¬P\u∋limit ⟪ Pl , nul ⟫ = nul ( Neighbor.ux nei ) | |
1163 | 341 |
1124 | 342 -- product topology of compact topology is compact |
431 | 343 |
1218 | 344 import Axiom.Extensionality.Propositional |
345 postulate f-extensionality : { n m : Level} → Axiom.Extensionality.Propositional.Extensionality n m | |
346 open import Relation.Binary.HeterogeneousEquality as HE using (_≅_ ) | |
347 | |
348 | |
1142 | 349 Tychonoff : {P Q : HOD } → (TP : Topology P) → (TQ : Topology Q) → Compact TP → Compact TQ → Compact (ProductTopology TP TQ) |
1158 | 350 Tychonoff {P} {Q} TP TQ CP CQ = FIP→Compact (ProductTopology TP TQ) (UFLP→FIP (ProductTopology TP TQ) uflPQ ) where |
1169 | 351 uflP : (F : Filter {Power P} {P} (λ x → x)) (UF : ultra-filter F) |
352 → UFLP TP F UF | |
353 uflP F UF = FIP→UFLP TP (Compact→FIP TP CP) F UF | |
354 uflQ : (F : Filter {Power Q} {Q} (λ x → x)) (UF : ultra-filter F) | |
355 → UFLP TQ F UF | |
356 uflQ F UF = FIP→UFLP TQ (Compact→FIP TQ CQ) F UF | |
1201 | 357 -- Product of UFL has a limit point |
1169 | 358 uflPQ : (F : Filter {Power (ZFP P Q)} {ZFP P Q} (λ x → x)) (UF : ultra-filter F) |
359 → UFLP (ProductTopology TP TQ) F UF | |
360 uflPQ F UF = record { limit = & < * ( UFLP.limit uflp ) , * ( UFLP.limit uflq ) > ; P∋limit = Pf ; is-limit = isL } where | |
1213 | 361 F∋PQ : odef (filter F) (& (ZFP P Q)) |
362 F∋PQ with ultra-filter.ultra UF {od∅} (λ z az → ⊥-elim (¬x<0 (subst (λ k → odef k z) *iso az)) ) (λ z az → proj1 (subst (λ k → odef k z) *iso az ) ) | |
363 ... | case1 fp = ⊥-elim ( ultra-filter.proper UF fp ) | |
364 ... | case2 flp = subst (λ k → odef (filter F) k) (cong (&) (==→o≡ fl20)) flp where | |
365 fl20 : (ZFP P Q \ Ord o∅) =h= ZFP P Q | |
366 fl20 = record { eq→ = λ {x} lt → proj1 lt ; eq← = λ {x} lt → ⟪ lt , (λ lt → ⊥-elim (¬x<0 lt) ) ⟫ } | |
1218 | 367 0<PQ : o∅ o< & (ZFP P Q) |
368 0<PQ with trio< o∅ (& (ZFP P Q)) | |
1213 | 369 ... | tri< a ¬b ¬c = a |
370 ... | tri≈ ¬a b ¬c = ⊥-elim (ultra-filter.proper UF (subst (λ k → odef (filter F) k) (trans (sym b) (sym ord-od∅)) F∋PQ) ) | |
371 ... | tri> ¬a ¬b c = ⊥-elim (¬x<0 c) | |
1218 | 372 apq : HOD |
373 apq = ODC.minimal O (ZFP P Q) (0<P→ne 0<PQ) | |
374 is-apq : ZFP P Q ∋ apq | |
375 is-apq = ODC.x∋minimal O (ZFP P Q) (0<P→ne 0<PQ) | |
376 ap : odef P ( zπ1 is-apq ) | |
377 ap = zp1 is-apq | |
378 aq : odef Q ( zπ2 is-apq ) | |
379 aq = zp2 is-apq | |
1223 | 380 F⊆pxq : {x : HOD } → filter F ∋ x → x ⊆ ZFP P Q |
381 F⊆pxq {x} fx {y} xy = f⊆L F fx y (subst (λ k → odef k y) (sym *iso) xy) | |
382 | |
1229 | 383 --- |
384 --- FP is a P-projection of F, which is a ultra filter | |
385 --- | |
386 isP→PxQ : {x : HOD} → (x⊆P : x ⊆ P ) → ZFP x Q ⊆ ZFP P Q | |
1213 | 387 isP→PxQ {x} x⊆P (ab-pair p q) = ab-pair (x⊆P p) q |
1229 | 388 fx→px : {x : HOD } → filter F ∋ x → HOD |
1216 | 389 fx→px {x} fx = Replace' x ( λ y xy → * (zπ1 (F⊆pxq fx xy) )) |
1217 | 390 fx→px1 : {p : HOD } {q : Ordinal } → odef Q q → (fp : filter F ∋ ZFP p Q ) → fx→px fp ≡ p |
391 fx→px1 {p} {q} qq fp = ==→o≡ record { eq→ = ty20 ; eq← = ty22 } where | |
392 ty21 : {a b : Ordinal } → (pz : odef p a) → (qz : odef Q b) → ZFProduct P Q (& (* (& < * a , * b >))) | |
1229 | 393 ty21 pz qz = F⊆pxq fp (subst (odef (ZFP p Q)) (sym &iso) (ab-pair pz qz )) |
1217 | 394 ty32 : {a b : Ordinal } → (pz : odef p a) → (qz : odef Q b) → zπ1 (ty21 pz qz) ≡ a |
395 ty32 {a} {b} pz qz = ty33 (ty21 pz qz) (cong (&) *iso) where | |
396 ty33 : {a b x : Ordinal } ( p : ZFProduct P Q x ) → x ≡ & < * a , * b > → zπ1 p ≡ a | |
397 ty33 {a} {b} (ab-pair {c} {d} zp zq) eq with prod-≡ (subst₂ (λ j k → j ≡ k) *iso *iso (cong (*) eq)) | |
398 ... | ⟪ a=c , b=d ⟫ = subst₂ (λ j k → j ≡ k) &iso &iso (cong (&) a=c) | |
1216 | 399 ty20 : {x : Ordinal} → odef (fx→px fp) x → odef p x |
1217 | 400 ty20 {x} record { z = _ ; az = ab-pair {a} {b} pz qz ; x=ψz = x=ψz } = subst (λ k → odef p k) a=x pz where |
1229 | 401 ty24 : * x ≡ * a |
1216 | 402 ty24 = begin |
1217 | 403 * x ≡⟨ cong (*) x=ψz ⟩ |
404 _ ≡⟨ *iso ⟩ | |
405 * (zπ1 (F⊆pxq fp (subst (odef (ZFP p Q)) (sym &iso) (ab-pair pz qz)))) ≡⟨ cong (*) (ty32 pz qz) ⟩ | |
406 * a ∎ where open ≡-Reasoning | |
1229 | 407 a=x : a ≡ x |
1217 | 408 a=x = subst₂ (λ j k → j ≡ k ) &iso &iso (cong (&) (sym ty24)) |
1229 | 409 ty22 : {x : Ordinal} → odef p x → odef (fx→px fp) x |
1217 | 410 ty22 {x} px = record { z = _ ; az = ab-pair px qq ; x=ψz = subst₂ (λ j k → j ≡ k) &iso refl (cong (&) ty12 ) } where |
411 ty12 : * x ≡ * (zπ1 (F⊆pxq fp (subst (odef (ZFP p Q)) (sym &iso) (ab-pair px qq )))) | |
412 ty12 = begin | |
413 * x ≡⟨ sym (cong (*) (ty32 px qq )) ⟩ | |
414 * (zπ1 (F⊆pxq fp (subst (odef (ZFP p Q)) (sym &iso) (ab-pair px qq )))) ∎ where open ≡-Reasoning | |
1229 | 415 |
416 -- Projection of F | |
1213 | 417 FPSet : HOD |
418 FPSet = Replace' (filter F) (λ x fx → Replace' x ( λ y xy → * (zπ1 (F⊆pxq fx xy) ))) | |
1229 | 419 |
420 -- Projection ⁻¹ F (which is in F) is in FPSet | |
1215 | 421 FPSet∋zpq : {q : HOD} → q ⊆ P → filter F ∋ ZFP q Q → FPSet ∋ q |
1217 | 422 FPSet∋zpq {q} q⊆P fq = record { z = _ ; az = fq ; x=ψz = sym (cong (&) ty10) } where |
1218 | 423 -- brain damaged one |
1229 | 424 ty11 : {y : HOD} {xy : (* (& (ZFP q Q))) ∋ y } → |
1218 | 425 * (zπ1 ( (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) ≡ * (zπ1 ( (F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) ))) |
426 ty11 {y} {xy} = cong (λ k → * (zπ1 k)) ( HE.≅-to-≡ (∋-irr {ZFP P Q} a b )) where | |
427 a = F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy | |
1229 | 428 b = F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) |
1217 | 429 ty10 : Replace' (* (& (ZFP q Q))) (λ y xy → * (zπ1 (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) ≡ q |
430 ty10 = begin | |
1229 | 431 Replace' (* (& (ZFP q Q))) (λ y xy → * (zπ1 (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) |
432 ≡⟨ | |
1218 | 433 cong (λ k → Replace' (* (& (ZFP q Q))) k ) (f-extensionality (λ y → (f-extensionality (λ xy → ty11 {y} {xy})))) |
434 ⟩ | |
1229 | 435 Replace' (* (& (ZFP q Q))) (λ y xy → * (zπ1 (F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) ))) |
1218 | 436 ≡⟨ Replace'-iso _ ( λ y xy → * (zπ1 (F⊆pxq fq xy) )) ⟩ |
1229 | 437 Replace' (ZFP q Q) ( λ y xy → * (zπ1 (F⊆pxq fq xy) )) ≡⟨ refl ⟩ |
1218 | 438 fx→px fq ≡⟨ fx→px1 aq fq ⟩ |
1217 | 439 q ∎ where open ≡-Reasoning |
1213 | 440 FPSet⊆PP : FPSet ⊆ Power P |
441 FPSet⊆PP {x} record { z = z ; az = fz ; x=ψz = x=ψz } w xw with subst (λ k → odef k w) (trans (cong (*) x=ψz) *iso) xw | |
1229 | 442 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } |
443 = subst (λ k → odef P k) (sym (trans x=ψz1 &iso)) | |
1213 | 444 (zp1 (F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fz) (subst (λ k → odef (* z) k) (sym &iso) az1)) ) |
1223 | 445 X=F1 : (x : Ordinal) (p : HOD) (fx : odef (filter F) x) → Set n |
446 X=F1 x p fx = & p ≡ & (Replace' (* x) (λ y xy → | |
1222 | 447 * (zπ1 (f⊆L F |
448 (subst (odef (filter F)) (sym &iso) fx) | |
449 (& y) (subst (λ k → OD.def (HOD.od k) (& y)) (sym *iso) xy))))) | |
1223 | 450 x⊆pxq : {x : Ordinal} {p : HOD} (fx : odef (filter F) x) → X=F1 x p fx → * x ⊆ ZFP p Q |
1222 | 451 x⊆pxq {x} {p} fx x=ψz {w} xw with F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fx) xw |
452 ... | ab-pair {a} {b} pw qw = ab-pair ty08 qw where | |
453 ty21 : ZFProduct P Q (& (* (& < * a , * b >))) | |
1229 | 454 ty21 = subst (λ k → ZFProduct P Q k) (cong & (sym *iso)) (ab-pair pw qw) |
1222 | 455 ty32 : ZFProduct P Q (& (* (& < * a , * b >))) |
456 ty32 = f⊆L F (subst (odef (filter F)) (sym &iso) fx) | |
1229 | 457 (& (* (& < * a , * b >))) (subst (λ k → odef k |
1222 | 458 (& (* (& < * a , * b >)))) (sym *iso) (subst (odef (* x)) (sym &iso) xw)) |
1229 | 459 ty07 : odef (* x) (& < * a , * b >) |
1222 | 460 ty07 = xw |
461 ty08 : odef p a | |
1229 | 462 ty08 = subst (λ k → odef k a ) (subst₂ (λ j k → j ≡ k) *iso *iso (sym (cong (*) x=ψz))) |
1222 | 463 record { z = _ ; az = xw ; x=ψz = sym (trans &iso (ty33 ty32 (cong (&) *iso ))) } where |
464 ty33 : {a b x : Ordinal } ( p : ZFProduct P Q x ) → x ≡ & < * a , * b > → zπ1 p ≡ a | |
465 ty33 {a} {b} (ab-pair {c} {d} zp zq) eq with prod-≡ (subst₂ (λ j k → j ≡ k) *iso *iso (cong (*) eq)) | |
466 ... | ⟪ a=c , b=d ⟫ = subst₂ (λ j k → j ≡ k) &iso &iso (cong (&) a=c) | |
1223 | 467 p⊆P : {x : Ordinal} {p : HOD} (fx : odef (filter F) x) → X=F1 x p fx → p ⊆ P |
1222 | 468 p⊆P {x} {p} fx x=ψz {w} pw with subst (λ k → odef k w) (subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) x=ψz)) pw |
1229 | 469 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } = subst (λ k → odef P k) (sym (trans x=ψz1 &iso)) |
1222 | 470 (zp1 (F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fx) (subst (λ k → odef (* x) k) (sym &iso) az1 )) ) |
1169 | 471 FP : Filter {Power P} {P} (λ x → x) |
1218 | 472 FP = record { filter = FPSet ; f⊆L = FPSet⊆PP ; filter1 = ty01 ; filter2 = ty02 } where |
1213 | 473 ty01 : {p q : HOD} → Power P ∋ q → FPSet ∋ p → p ⊆ q → FPSet ∋ q |
1215 | 474 ty01 {p} {q} Pq record { z = x ; az = fx ; x=ψz = x=ψz } p⊆q = FPSet∋zpq q⊆P (ty10 ty05 ty06 ) |
475 where | |
1222 | 476 -- p ≡ (Replace' (* x) (λ y xy → (zπ1 (F⊆pxq (subst (odef (filter F)) (sym &iso) fx) xy)) |
1213 | 477 -- x = ( px , qx ) , px ⊆ q |
478 ty03 : Power (ZFP P Q) ∋ ZFP q Q | |
479 ty03 z zpq = isP→PxQ {* (& q)} (Pq _) ( subst (λ k → odef k z ) (trans *iso (cong (λ k → ZFP k Q) (sym *iso))) zpq ) | |
1215 | 480 q⊆P : q ⊆ P |
481 q⊆P {w} qw = Pq _ (subst (λ k → odef k w ) (sym *iso) qw ) | |
1213 | 482 ty05 : filter F ∋ ZFP p Q |
1222 | 483 ty05 = filter1 F (λ z wz → isP→PxQ (p⊆P fx x=ψz) (subst (λ k → odef k z) *iso wz)) (subst (λ k → odef (filter F) k) (sym &iso) fx) (x⊆pxq fx x=ψz) |
1213 | 484 ty06 : ZFP p Q ⊆ ZFP q Q |
485 ty06 (ab-pair wp wq ) = ab-pair (p⊆q wp) wq | |
1215 | 486 ty10 : filter F ∋ ZFP p Q → ZFP p Q ⊆ ZFP q Q → filter F ∋ ZFP q Q |
487 ty10 fzp zp⊆zq = filter1 F ty03 fzp zp⊆zq | |
1218 | 488 ty02 : {p q : HOD} → FPSet ∋ p → FPSet ∋ q → Power P ∋ (p ∩ q) → FPSet ∋ (p ∩ q) |
1222 | 489 ty02 {p} {q} record { z = zp ; az = fzp ; x=ψz = x=ψzp } |
1229 | 490 record { z = zq ; az = fzq ; x=ψz = x=ψzq } Ppq |
1219 | 491 = FPSet∋zpq (λ {z} xz → Ppq z (subst (λ k → odef k z) (sym *iso) xz )) ty50 where |
1220 | 492 ty54 : Power (ZFP P Q) ∋ (ZFP p Q ∩ ZFP q Q) |
1221 | 493 ty54 z xz = subst (λ k → ZFProduct P Q k ) (zp-iso pqz) (ab-pair pqz1 pqz2 ) where |
494 pqz : odef (ZFP (p ∩ q) Q) z | |
495 pqz = subst (λ k → odef k z ) (trans *iso (sym (proj1 ZFP∩) )) xz | |
1222 | 496 pqz1 : odef P (zπ1 pqz) |
497 pqz1 = p⊆P fzp x=ψzp (proj1 (zp1 pqz)) | |
498 pqz2 : odef Q (zπ2 pqz) | |
499 pqz2 = zp2 pqz | |
1229 | 500 ty53 : filter F ∋ ZFP p Q |
501 ty53 = filter1 F (λ z wz → isP→PxQ (p⊆P fzp x=ψzp) | |
502 (subst (λ k → odef k z) *iso wz)) | |
1222 | 503 (subst (λ k → odef (filter F) k) (sym &iso) fzp ) (x⊆pxq fzp x=ψzp) |
1229 | 504 ty52 : filter F ∋ ZFP q Q |
505 ty52 = filter1 F (λ z wz → isP→PxQ (p⊆P fzq x=ψzq) | |
506 (subst (λ k → odef k z) *iso wz)) | |
1222 | 507 (subst (λ k → odef (filter F) k) (sym &iso) fzq ) (x⊆pxq fzq x=ψzq) |
1219 | 508 ty51 : filter F ∋ ( ZFP p Q ∩ ZFP q Q ) |
1220 | 509 ty51 = filter2 F ty53 ty52 ty54 |
1219 | 510 ty50 : filter F ∋ ZFP (p ∩ q) Q |
1220 | 511 ty50 = subst (λ k → filter F ∋ k ) (sym (proj1 ZFP∩)) ty51 |
1161 | 512 UFP : ultra-filter FP |
1223 | 513 UFP = record { proper = ty61 ; ultra = ty60 } where |
514 ty61 : ¬ (FPSet ∋ od∅) | |
1229 | 515 ty61 record { z = z ; az = az ; x=ψz = x=ψz } = ultra-filter.proper UF ty62 where |
1223 | 516 ty63 : {x : Ordinal} → ¬ odef (* z) x |
517 ty63 {x} zx with x⊆pxq az x=ψz zx | |
518 ... | ab-pair xp xq = ¬x<0 xp | |
519 ty62 : odef (filter F) (& od∅) | |
520 ty62 = subst (λ k → odef (filter F) k ) (trans (sym &iso) (cong (&) (¬x∋y→x≡od∅ ty63)) ) az | |
521 ty60 : {p : HOD} → Power P ∋ p → Power P ∋ (P \ p) → (FPSet ∋ p) ∨ (FPSet ∋ (P \ p)) | |
1229 | 522 ty60 {p} Pp Pnp with ultra-filter.ultra UF {ZFP p Q} |
523 (λ z xz → isP→PxQ (λ {x} lt → Pp _ (subst (λ k → odef k x) (sym *iso) lt)) (subst (λ k → odef k z) *iso xz)) | |
1226 | 524 (λ z xz → proj1 (subst (λ k → odef k z) *iso xz )) |
1223 | 525 ... | case1 fp = case1 (FPSet∋zpq (λ {z} xz → Pp z (subst (λ k → odef k z) (sym *iso) xz )) fp ) |
1224 | 526 ... | case2 fnp = case2 (FPSet∋zpq (λ pp → proj1 pp) (subst (λ k → odef (filter F) k) (cong (&) (proj1 ZFP\Q)) fnp )) |
1169 | 527 uflp : UFLP TP FP UFP |
528 uflp = FIP→UFLP TP (Compact→FIP TP CP) FP UFP | |
1229 | 529 |
530 -- FPSet is in Projection ⁻¹ F | |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
531 FPSet⊆F : {x : Ordinal } → odef FPSet x → odef (filter F) (& (ZFP (* x) Q)) |
1233 | 532 FPSet⊆F {x} record { z = z ; az = az ; x=ψz = x=ψz } = filter1 F ty80 (subst (λ k → odef (filter F) k) (sym &iso) az) ty71 where |
1231 | 533 Rx : HOD |
534 Rx = Replace' (* z) (λ y xy → * (zπ1 (F⊆pxq (subst (odef (filter F)) (sym &iso) az) xy))) | |
535 RxQ∋z : * z ⊆ ZFP Rx Q | |
1235 | 536 RxQ∋z {w} zw = subst (λ k → ZFProduct Rx Q k ) ty70 ( ab-pair record { z = w ; az = zw ; x=ψz = refl } (zp2 b )) where |
1232 | 537 a = F⊆pxq (subst (odef (filter F)) (sym &iso) az) (subst (odef (* z)) (sym &iso) zw) |
538 b = subst (λ k → odef (ZFP P Q) k ) (sym &iso) ( f⊆L F az w zw ) | |
1235 | 539 ty73 : & (* (zπ1 a)) ≡ zπ1 b |
540 ty73 = begin | |
541 & (* (zπ1 a)) ≡⟨ &iso ⟩ | |
542 zπ1 a ≡⟨ cong zπ1 (HE.≅-to-≡ (∋-irr {ZFP _ _ } a b)) ⟩ | |
543 zπ1 b ∎ where open ≡-Reasoning | |
544 ty70 : & < * (& (* (zπ1 a))) , * (zπ2 b) > ≡ w | |
545 ty70 with zp-iso (subst (λ k → odef (ZFP P Q) k) (sym &iso) (f⊆L F az _ zw )) | |
546 ... | eq = trans (cong₂ (λ j k → & < * j , k > ) ty73 refl ) (trans eq &iso ) | |
1231 | 547 ty71 : * z ⊆ ZFP (* x) Q |
548 ty71 = subst (λ k → * z ⊆ ZFP k Q) ty72 RxQ∋z where | |
549 ty72 : Rx ≡ * x | |
550 ty72 = begin | |
551 Rx ≡⟨ sym *iso ⟩ | |
552 * (& Rx) ≡⟨ cong (*) (sym x=ψz ) ⟩ | |
553 * x ∎ where open ≡-Reasoning | |
1233 | 554 ty80 : Power (ZFP P Q) ∋ ZFP (* x) Q |
555 ty80 y yx = isP→PxQ ty81 (subst (λ k → odef k y ) *iso yx ) where | |
556 ty81 : * x ⊆ P | |
557 ty81 {w} xw with subst (λ k → odef k w) (trans (cong (*) x=ψz ) *iso ) xw | |
1235 | 558 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } = subst (λ k → odef P k) (sym ty84) ty87 where |
559 a = f⊆L F (subst (odef (filter F)) (sym &iso) az) (& (* z1)) | |
560 (subst (λ k → odef k (& (* z1))) (sym *iso) (subst (odef (* z)) (sym &iso) az1)) | |
561 b = subst (λ k → odef (ZFP P Q) k ) (sym &iso) (f⊆L F az _ az1 ) | |
562 ty87 : odef P (zπ1 b) | |
563 ty87 = zp1 b | |
564 ty84 : w ≡ (zπ1 b) | |
565 ty84 = begin | |
566 w ≡⟨ trans x=ψz1 &iso ⟩ | |
567 zπ1 a ≡⟨ cong zπ1 (HE.≅-to-≡ (∋-irr {ZFP _ _ } a b )) ⟩ | |
568 zπ1 b ∎ where open ≡-Reasoning | |
1154 | 569 |
1227 | 570 -- copy and pasted, sorry |
571 -- | |
1229 | 572 isQ→PxQ : {x : HOD} → (x⊆Q : x ⊆ Q ) → ZFP P x ⊆ ZFP P Q |
573 isQ→PxQ {x} x⊆Q (ab-pair p q) = ab-pair p (x⊆Q q) | |
574 fx→qx : {x : HOD } → filter F ∋ x → HOD | |
1225 | 575 fx→qx {x} fx = Replace' x ( λ y xy → * (zπ2 (F⊆pxq fx xy) )) |
576 fx→qx1 : {q : HOD } {p : Ordinal } → odef P p → (fq : filter F ∋ ZFP P q ) → fx→qx fq ≡ q | |
577 fx→qx1 {q} {p} qq fq = ==→o≡ record { eq→ = ty20 ; eq← = ty22 } where | |
578 ty21 : {a b : Ordinal } → (qz : odef q b) → (pz : odef P a) → ZFProduct P Q (& (* (& < * a , * b >))) | |
1229 | 579 ty21 qz pz = F⊆pxq fq (subst (odef (ZFP P q)) (sym &iso) (ab-pair pz qz )) |
1225 | 580 ty32 : {a b : Ordinal } → (qz : odef q b) → (pz : odef P a) → zπ2 (ty21 qz pz) ≡ b |
581 ty32 {a} {b} pz qz = ty33 (ty21 pz qz) (cong (&) *iso) where | |
582 ty33 : {a b x : Ordinal } ( q : ZFProduct P Q x ) → x ≡ & < * a , * b > → zπ2 q ≡ b | |
583 ty33 {a} {b} (ab-pair {c} {d} zp zq) eq with prod-≡ (subst₂ (λ j k → j ≡ k) *iso *iso (cong (*) eq)) | |
584 ... | ⟪ a=c , b=d ⟫ = subst₂ (λ j k → j ≡ k) &iso &iso (cong (&) b=d) | |
585 ty20 : {x : Ordinal} → odef (fx→qx fq) x → odef q x | |
586 ty20 {x} record { z = _ ; az = ab-pair {a} {b} pz qz ; x=ψz = x=ψz } = subst (λ k → odef q k) b=x qz where | |
1229 | 587 ty24 : * x ≡ * b |
1225 | 588 ty24 = begin |
589 * x ≡⟨ cong (*) x=ψz ⟩ | |
590 _ ≡⟨ *iso ⟩ | |
591 * (zπ2 (F⊆pxq fq (subst (odef (ZFP P q)) (sym &iso) (ab-pair pz qz)))) ≡⟨ cong (*) (ty32 qz pz) ⟩ | |
592 * b ∎ where open ≡-Reasoning | |
1229 | 593 b=x : b ≡ x |
1225 | 594 b=x = subst₂ (λ j k → j ≡ k ) &iso &iso (cong (&) (sym ty24)) |
1229 | 595 ty22 : {x : Ordinal} → odef q x → odef (fx→qx fq) x |
1226 | 596 ty22 {x} qx = record { z = _ ; az = ab-pair qq qx ; x=ψz = subst₂ (λ j k → j ≡ k) &iso refl (cong (&) ty12 ) } where |
1225 | 597 ty12 : * x ≡ * (zπ2 (F⊆pxq fq (subst (odef (ZFP P q)) (sym &iso) (ab-pair qq qx )))) |
598 ty12 = begin | |
599 * x ≡⟨ sym (cong (*) (ty32 qx qq )) ⟩ | |
600 * (zπ2 (F⊆pxq fq (subst (odef (ZFP P q)) (sym &iso) (ab-pair qq qx )))) ∎ where open ≡-Reasoning | |
601 FQSet : HOD | |
602 FQSet = Replace' (filter F) (λ x fx → Replace' x ( λ y xy → * (zπ2 (F⊆pxq fx xy) ))) | |
603 FQSet∋zpq : {q : HOD} → q ⊆ Q → filter F ∋ ZFP P q → FQSet ∋ q | |
604 FQSet∋zpq {q} q⊆P fq = record { z = _ ; az = fq ; x=ψz = sym (cong (&) ty10) } where | |
605 -- brain damaged one | |
1229 | 606 ty11 : {y : HOD} {xy : (* (& (ZFP P q ))) ∋ y } → |
1225 | 607 * (zπ2 ( (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) ≡ * (zπ2 ( (F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) ))) |
608 ty11 {y} {xy} = cong (λ k → * (zπ2 k)) ( HE.≅-to-≡ (∋-irr {ZFP P Q} a b )) where | |
609 a = F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy | |
1229 | 610 b = F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) |
1225 | 611 ty10 : Replace' (* (& (ZFP P q ))) (λ y xy → * (zπ2 (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) ≡ q |
612 ty10 = begin | |
1229 | 613 Replace' (* (& (ZFP P q))) (λ y xy → * (zπ2 (F⊆pxq (subst (odef (filter F)) (sym &iso) fq) xy))) |
614 ≡⟨ | |
1225 | 615 cong (λ k → Replace' (* (& (ZFP P q ))) k ) (f-extensionality (λ y → (f-extensionality (λ xy → ty11 {y} {xy})))) |
616 ⟩ | |
1229 | 617 Replace' (* (& (ZFP P q))) (λ y xy → * (zπ2 (F⊆pxq fq (subst (λ k → odef k (& y)) *iso xy) ))) |
1225 | 618 ≡⟨ Replace'-iso _ ( λ y xy → * (zπ2 (F⊆pxq fq xy) )) ⟩ |
1229 | 619 Replace' (ZFP P q ) ( λ y xy → * (zπ2 (F⊆pxq fq xy) )) ≡⟨ refl ⟩ |
1226 | 620 fx→qx fq ≡⟨ fx→qx1 ap fq ⟩ |
1225 | 621 q ∎ where open ≡-Reasoning |
622 FQSet⊆PP : FQSet ⊆ Power Q | |
623 FQSet⊆PP {x} record { z = z ; az = fz ; x=ψz = x=ψz } w xw with subst (λ k → odef k w) (trans (cong (*) x=ψz) *iso) xw | |
1229 | 624 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } |
625 = subst (λ k → odef Q k) (sym (trans x=ψz1 &iso)) | |
1225 | 626 (zp2 (F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fz) (subst (λ k → odef (* z) k) (sym &iso) az1)) ) |
627 X=F2 : (x : Ordinal) (q : HOD) (fx : odef (filter F) x) → Set n | |
628 X=F2 x q fx = & q ≡ & (Replace' (* x) (λ y xy → | |
629 * (zπ2 (f⊆L F | |
630 (subst (odef (filter F)) (sym &iso) fx) | |
631 (& y) (subst (λ k → OD.def (HOD.od k) (& y)) (sym *iso) xy))))) | |
632 x⊆qxq : {x : Ordinal} {q : HOD} (fx : odef (filter F) x) → X=F2 x q fx → * x ⊆ ZFP P q | |
633 x⊆qxq {x} {p} fx x=ψz {w} xw with F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fx) xw | |
634 ... | ab-pair {a} {b} pw qw = ab-pair pw ty08 where | |
635 ty21 : ZFProduct P Q (& (* (& < * a , * b >))) | |
1229 | 636 ty21 = subst (λ k → ZFProduct P Q k) (cong & (sym *iso)) (ab-pair pw qw) |
1225 | 637 ty32 : ZFProduct P Q (& (* (& < * a , * b >))) |
638 ty32 = f⊆L F (subst (odef (filter F)) (sym &iso) fx) | |
1229 | 639 (& (* (& < * a , * b >))) (subst (λ k → odef k |
1225 | 640 (& (* (& < * a , * b >)))) (sym *iso) (subst (odef (* x)) (sym &iso) xw)) |
1229 | 641 ty07 : odef (* x) (& < * a , * b >) |
1225 | 642 ty07 = xw |
643 ty08 : odef p b | |
1229 | 644 ty08 = subst (λ k → odef k b ) (subst₂ (λ j k → j ≡ k) *iso *iso (sym (cong (*) x=ψz))) |
1225 | 645 record { z = _ ; az = xw ; x=ψz = sym (trans &iso (ty33 ty32 (cong (&) *iso ))) } where |
646 ty33 : {a b x : Ordinal } ( p : ZFProduct P Q x ) → x ≡ & < * a , * b > → zπ2 p ≡ b | |
647 ty33 {a} {b} (ab-pair {c} {d} zp zq) eq with prod-≡ (subst₂ (λ j k → j ≡ k) *iso *iso (cong (*) eq)) | |
648 ... | ⟪ a=c , b=d ⟫ = subst₂ (λ j k → j ≡ k) &iso &iso (cong (&) b=d) | |
1226 | 649 q⊆Q : {x : Ordinal} {p : HOD} (fx : odef (filter F) x) → X=F2 x p fx → p ⊆ Q |
1225 | 650 q⊆Q {x} {p} fx x=ψz {w} pw with subst (λ k → odef k w) (subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) x=ψz)) pw |
1229 | 651 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } = subst (λ k → odef Q k) (sym (trans x=ψz1 &iso)) |
1226 | 652 (zp2 (F⊆pxq (subst (λ k → odef (filter F) k) (sym &iso) fx) (subst (λ k → odef (* x) k) (sym &iso) az1 )) ) |
1169 | 653 FQ : Filter {Power Q} {Q} (λ x → x) |
1225 | 654 FQ = record { filter = FQSet ; f⊆L = FQSet⊆PP ; filter1 = ty01 ; filter2 = ty02 } where |
655 ty01 : {p q : HOD} → Power Q ∋ q → FQSet ∋ p → p ⊆ q → FQSet ∋ q | |
1229 | 656 ty01 {p} {q} Pq record { z = x ; az = fx ; x=ψz = x=ψz } p⊆q = FQSet∋zpq q⊆P (ty10 ty05 ty06 ) |
1225 | 657 where |
1226 | 658 -- p ≡ (Replace' (* x) (λ y xy → (zπ2 (F⊆qxq (subst (odef (filter F)) (sym &iso) fx) xy)) |
659 -- x = ( px , qx ) , qx ⊆ q | |
1229 | 660 ty03 : Power (ZFP P Q) ∋ ZFP P q |
661 ty03 z zpq = isQ→PxQ {* (& q)} (Pq _) ( subst (λ k → odef k z ) (trans *iso (cong (λ k → ZFP P k ) (sym *iso))) zpq ) | |
1225 | 662 q⊆P : q ⊆ Q |
663 q⊆P {w} qw = Pq _ (subst (λ k → odef k w ) (sym *iso) qw ) | |
664 ty05 : filter F ∋ ZFP P p | |
1226 | 665 ty05 = filter1 F (λ z wz → isQ→PxQ (q⊆Q fx x=ψz) (subst (λ k → odef k z) *iso wz)) (subst (λ k → odef (filter F) k) (sym &iso) fx) (x⊆qxq fx x=ψz) |
1229 | 666 ty06 : ZFP P p ⊆ ZFP P q |
667 ty06 (ab-pair wp wq ) = ab-pair wp (p⊆q wq) | |
668 ty10 : filter F ∋ ZFP P p → ZFP P p ⊆ ZFP P q → filter F ∋ ZFP P q | |
1225 | 669 ty10 fzp zp⊆zq = filter1 F ty03 fzp zp⊆zq |
670 ty02 : {p q : HOD} → FQSet ∋ p → FQSet ∋ q → Power Q ∋ (p ∩ q) → FQSet ∋ (p ∩ q) | |
671 ty02 {p} {q} record { z = zp ; az = fzp ; x=ψz = x=ψzp } | |
1229 | 672 record { z = zq ; az = fzq ; x=ψz = x=ψzq } Ppq |
1226 | 673 = FQSet∋zpq (λ {z} xz → Ppq z (subst (λ k → odef k z) (sym *iso) xz )) ty50 where |
674 ty54 : Power (ZFP P Q) ∋ (ZFP P p ∩ ZFP P q ) | |
1225 | 675 ty54 z xz = subst (λ k → ZFProduct P Q k ) (zp-iso pqz) (ab-pair pqz1 pqz2 ) where |
676 pqz : odef (ZFP P (p ∩ q) ) z | |
1226 | 677 pqz = subst (λ k → odef k z ) (trans *iso (sym (proj2 ZFP∩) )) xz |
1225 | 678 pqz1 : odef P (zπ1 pqz) |
679 pqz1 = zp1 pqz | |
680 pqz2 : odef Q (zπ2 pqz) | |
1226 | 681 pqz2 = q⊆Q fzp x=ψzp (proj1 (zp2 pqz)) |
1229 | 682 ty53 : filter F ∋ ZFP P p |
683 ty53 = filter1 F (λ z wz → isQ→PxQ (q⊆Q fzp x=ψzp) | |
684 (subst (λ k → odef k z) *iso wz)) | |
1226 | 685 (subst (λ k → odef (filter F) k) (sym &iso) fzp ) (x⊆qxq fzp x=ψzp) |
1229 | 686 ty52 : filter F ∋ ZFP P q |
687 ty52 = filter1 F (λ z wz → isQ→PxQ (q⊆Q fzq x=ψzq) | |
688 (subst (λ k → odef k z) *iso wz)) | |
1226 | 689 (subst (λ k → odef (filter F) k) (sym &iso) fzq ) (x⊆qxq fzq x=ψzq) |
690 ty51 : filter F ∋ ( ZFP P p ∩ ZFP P q ) | |
691 ty51 = filter2 F ty53 ty52 ty54 | |
1229 | 692 ty50 : filter F ∋ ZFP P (p ∩ q) |
1226 | 693 ty50 = subst (λ k → filter F ∋ k ) (sym (proj2 ZFP∩)) ty51 |
1166 | 694 UFQ : ultra-filter FQ |
1225 | 695 UFQ = record { proper = ty61 ; ultra = ty60 } where |
696 ty61 : ¬ (FQSet ∋ od∅) | |
1229 | 697 ty61 record { z = z ; az = az ; x=ψz = x=ψz } = ultra-filter.proper UF ty62 where |
1225 | 698 ty63 : {x : Ordinal} → ¬ odef (* z) x |
699 ty63 {x} zx with x⊆qxq az x=ψz zx | |
700 ... | ab-pair xp xq = ¬x<0 xq | |
701 ty62 : odef (filter F) (& od∅) | |
702 ty62 = subst (λ k → odef (filter F) k ) (trans (sym &iso) (cong (&) (¬x∋y→x≡od∅ ty63)) ) az | |
703 ty60 : {p : HOD} → Power Q ∋ p → Power Q ∋ (Q \ p) → (FQSet ∋ p) ∨ (FQSet ∋ (Q \ p)) | |
1229 | 704 ty60 {q} Pp Pnp with ultra-filter.ultra UF {ZFP P q} |
705 (λ z xz → isQ→PxQ (λ {x} lt → Pp _ (subst (λ k → odef k x) (sym *iso) lt)) (subst (λ k → odef k z) *iso xz)) | |
1226 | 706 (λ z xz → proj1 (subst (λ k → odef k z) *iso xz )) |
1225 | 707 ... | case1 fq = case1 (FQSet∋zpq (λ {z} xz → Pp z (subst (λ k → odef k z) (sym *iso) xz )) fq ) |
708 ... | case2 fnp = case2 (FQSet∋zpq (λ pp → proj1 pp) (subst (λ k → odef (filter F) k) (cong (&) (proj2 ZFP\Q)) fnp )) | |
709 | |
1229 | 710 |
711 -- FQSet is in Projection ⁻¹ F | |
712 FQSet⊆F : {x : Ordinal } → odef FQSet x → odef (filter F) (& (ZFP P (* x) )) | |
1236 | 713 FQSet⊆F {x} record { z = z ; az = az ; x=ψz = x=ψz } = filter1 F ty80 (subst (λ k → odef (filter F) k) (sym &iso) az) ty71 where |
714 Rx : HOD | |
715 Rx = Replace' (* z) (λ y xy → * (zπ2 (F⊆pxq (subst (odef (filter F)) (sym &iso) az) xy))) | |
716 PxRx∋z : * z ⊆ ZFP P Rx | |
717 PxRx∋z {w} zw = subst (λ k → ZFProduct P Rx k ) ty70 ( ab-pair (zp1 b) record { z = w ; az = zw ; x=ψz = refl } ) where | |
718 a = F⊆pxq (subst (odef (filter F)) (sym &iso) az) (subst (odef (* z)) (sym &iso) zw) | |
719 b = subst (λ k → odef (ZFP P Q) k ) (sym &iso) ( f⊆L F az w zw ) | |
720 ty73 : & (* (zπ2 a)) ≡ zπ2 b | |
721 ty73 = begin | |
722 & (* (zπ2 a)) ≡⟨ &iso ⟩ | |
723 zπ2 a ≡⟨ cong zπ2 (HE.≅-to-≡ (∋-irr {ZFP _ _ } a b)) ⟩ | |
724 zπ2 b ∎ where open ≡-Reasoning | |
725 ty70 : & < * (zπ1 b) , * (& (* (zπ2 a))) > ≡ w | |
726 ty70 with zp-iso (subst (λ k → odef (ZFP P Q) k) (sym &iso) (f⊆L F az _ zw )) | |
727 ... | eq = trans (cong₂ (λ j k → & < j , * k > ) refl ty73 ) (trans eq &iso ) | |
728 ty71 : * z ⊆ ZFP P (* x) | |
729 ty71 = subst (λ k → * z ⊆ ZFP P k ) ty72 PxRx∋z where | |
730 ty72 : Rx ≡ * x | |
731 ty72 = begin | |
732 Rx ≡⟨ sym *iso ⟩ | |
733 * (& Rx) ≡⟨ cong (*) (sym x=ψz ) ⟩ | |
734 * x ∎ where open ≡-Reasoning | |
735 ty80 : Power (ZFP P Q) ∋ ZFP P (* x) | |
736 ty80 y yx = isQ→PxQ ty81 (subst (λ k → odef k y ) *iso yx ) where | |
737 ty81 : * x ⊆ Q | |
738 ty81 {w} xw with subst (λ k → odef k w) (trans (cong (*) x=ψz ) *iso ) xw | |
739 ... | record { z = z1 ; az = az1 ; x=ψz = x=ψz1 } = subst (λ k → odef Q k) (sym ty84) ty87 where | |
740 a = f⊆L F (subst (odef (filter F)) (sym &iso) az) (& (* z1)) | |
741 (subst (λ k → odef k (& (* z1))) (sym *iso) (subst (odef (* z)) (sym &iso) az1)) | |
742 b = subst (λ k → odef (ZFP P Q) k ) (sym &iso) (f⊆L F az _ az1 ) | |
743 ty87 : odef Q (zπ2 b) | |
744 ty87 = zp2 b | |
745 ty84 : w ≡ (zπ2 b) | |
746 ty84 = begin | |
747 w ≡⟨ trans x=ψz1 &iso ⟩ | |
748 zπ2 a ≡⟨ cong zπ2 (HE.≅-to-≡ (∋-irr {ZFP _ _ } a b )) ⟩ | |
749 zπ2 b ∎ where open ≡-Reasoning | |
750 | |
1229 | 751 |
1169 | 752 uflq : UFLP TQ FQ UFQ |
753 uflq = FIP→UFLP TQ (Compact→FIP TQ CQ) FQ UFQ | |
1154 | 754 |
1166 | 755 Pf : odef (ZFP P Q) (& < * (UFLP.limit uflp) , * (UFLP.limit uflq) >) |
1229 | 756 Pf = ab-pair (UFLP.P∋limit uflp) (UFLP.P∋limit uflq) |
757 | |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
758 isL : {v : Ordinal} → Neighbor (ProductTopology TP TQ) (& < * (UFLP.limit uflp) , * (UFLP.limit uflq) >) v → filter F ∋ * v |
1229 | 759 isL {v} nei = filter1 F (λ z xz → Neighbor.v⊆P nei (subst (λ k → odef k z) *iso xz)) |
760 (subst (λ k → odef (filter F) k) (sym &iso) (F∋base pqb b∋l )) bpq⊆v where | |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
761 -- |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
762 -- Product Topolgy's open set contains a subbase which is an element of ZPF p Q or ZPF P q |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
763 -- Neighbor of limit contains an open set which conatins a limit |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
764 -- every point of an open set is covered by a subbase |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
765 -- so there is a subbase which contains a limit, the subbase is an element of projection of a filter (P or Q) |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
766 TPQ = ProductTopology TP TQ |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
767 lim = & < * (UFLP.limit uflp) , * (UFLP.limit uflq) > |
1229 | 768 bpq : Base (ZFP P Q) (pbase TP TQ) (Neighbor.u nei) (& < * (UFLP.limit uflp) , * (UFLP.limit uflq) >) |
769 bpq = Neighbor.ou nei (Neighbor.ux nei) | |
770 b∋l : odef (* (Base.b bpq)) lim | |
771 b∋l = Base.bx bpq | |
1172 | 772 pqb : Subbase (pbase TP TQ) (Base.b bpq ) |
1211
f17d060e0bda
UFLP→FIP FIP→UFLP with Zorn done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1210
diff
changeset
|
773 pqb = Base.sb bpq |
1229 | 774 pqb⊆opq : * (Base.b bpq) ⊆ * ( Neighbor.u nei ) |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
775 bpq⊆v : * (Base.b bpq) ⊆ * v |
1229 | 776 bpq⊆v {x} bx = Neighbor.u⊆v nei (pqb⊆opq bx) |
1173 | 777 pqb⊆opq = Base.b⊆u bpq |
1229 | 778 F∋base : {b : Ordinal } → Subbase (pbase TP TQ) b → odef (* b) lim → odef (filter F) b |
779 F∋base {b} (gi (case1 px)) bl = subst (λ k → odef (filter F) k) (sym (BaseP.prod px)) f∋b where | |
780 -- | |
781 -- subbase of product topology which includes lim is in FP, so in F | |
782 -- | |
783 isl00 : odef (ZFP (* (BaseP.p px)) Q) lim | |
784 isl00 = subst (λ k → odef k lim ) (trans (cong (*) (BaseP.prod px)) *iso ) bl | |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
785 px∋limit : odef (* (BaseP.p px)) (UFLP.limit uflp) |
1229 | 786 px∋limit = isl01 isl00 refl where |
787 isl01 : {x : Ordinal } → odef (ZFP (* (BaseP.p px)) Q) x → x ≡ lim → odef (* (BaseP.p px)) (UFLP.limit uflp) | |
788 isl01 (ab-pair {a} {b} bx qx) ab=lim = subst (λ k → odef (* (BaseP.p px)) k) a=lim bx where | |
789 a=lim : a ≡ UFLP.limit uflp | |
790 a=lim = subst₂ (λ j k → j ≡ k ) &iso &iso (cong (&) (proj1 ( prod-≡ (subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) ab=lim) ) ))) | |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
791 fp∋b : filter FP ∋ * (BaseP.p px) |
1229 | 792 fp∋b = UFLP.is-limit uflp record { u = _ ; ou = BaseP.op px ; ux = px∋limit |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
793 ; v⊆P = λ {x} lt → os⊆L TP (subst (λ k → odef (OS TP) k) (sym &iso) (BaseP.op px)) lt ; u⊆v = λ x → x } |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
794 f∋b : odef (filter F) (& (ZFP (* (BaseP.p px)) Q)) |
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
795 f∋b = FPSet⊆F (subst (λ k → odef (filter FP) k ) &iso fp∋b ) |
1229 | 796 F∋base {b} (gi (case2 qx)) bl = subst (λ k → odef (filter F) k) (sym (BaseQ.prod qx)) f∋b where |
797 isl00 : odef (ZFP P (* (BaseQ.q qx))) lim | |
798 isl00 = subst (λ k → odef k lim ) (trans (cong (*) (BaseQ.prod qx)) *iso ) bl | |
799 qx∋limit : odef (* (BaseQ.q qx)) (UFLP.limit uflq) | |
800 qx∋limit = isl01 isl00 refl where | |
801 isl01 : {x : Ordinal } → odef (ZFP P (* (BaseQ.q qx)) ) x → x ≡ lim → odef (* (BaseQ.q qx)) (UFLP.limit uflq) | |
802 isl01 (ab-pair {a} {b} px bx) ab=lim = subst (λ k → odef (* (BaseQ.q qx)) k) b=lim bx where | |
803 b=lim : b ≡ UFLP.limit uflq | |
804 b=lim = subst₂ (λ j k → j ≡ k ) &iso &iso (cong (&) (proj2 ( prod-≡ (subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) ab=lim) ) ))) | |
805 fp∋b : filter FQ ∋ * (BaseQ.q qx) | |
806 fp∋b = UFLP.is-limit uflq record { u = _ ; ou = BaseQ.oq qx ; ux = qx∋limit | |
807 ; v⊆P = λ {x} lt → os⊆L TQ (subst (λ k → odef (OS TQ) k) (sym &iso) (BaseQ.oq qx)) lt ; u⊆v = λ x → x } | |
808 f∋b : odef (filter F) (& (ZFP P (* (BaseQ.q qx)) )) | |
809 f∋b = FQSet⊆F (subst (λ k → odef (filter FQ) k ) &iso fp∋b ) | |
810 F∋base (g∩ {x} {y} b1 b2) bl = F∋x∩y where | |
811 -- filter contains finite intersection | |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
812 fb01 : odef (filter F) x |
1229 | 813 fb01 = F∋base b1 (proj1 (subst (λ k → odef k lim) *iso bl)) |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
814 fb02 : odef (filter F) y |
1229 | 815 fb02 = F∋base b2 (proj2 (subst (λ k → odef k lim) *iso bl)) |
1228
e3f20bc4fac9
last part of Tychonoff
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1227
diff
changeset
|
816 F∋x∩y : odef (filter F) (& (* x ∩ * y)) |
1229 | 817 F∋x∩y = filter2 F (subst (λ k → odef (filter F) k) (sym &iso) fb01) (subst (λ k → odef (filter F) k) (sym &iso) fb02) |
818 (CAP (ZFP P Q) (subst (λ k → odef (Power (ZFP P Q)) k) (sym &iso) (f⊆L F fb01)) | |
819 (subst (λ k → odef (Power (ZFP P Q)) k) (sym &iso) (f⊆L F fb02))) | |
1154 | 820 |
1170 | 821 |
822 | |
823 | |
824 | |
825 |