Mercurial > hg > Members > kono > Proof > ZF-in-agda
annotate OD.agda @ 306:b07fc3ef5aab
fix sup
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 29 Jun 2020 20:33:19 +0900 |
parents | 4804f3f3485f |
children | d5c5d87b72df |
rev | line source |
---|---|
16 | 1 open import Level |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
2 open import Ordinals |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
3 module OD {n : Level } (O : Ordinals {n} ) where |
3 | 4 |
14
e11e95d5ddee
separete constructible set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
5 open import zf |
23 | 6 open import Data.Nat renaming ( zero to Zero ; suc to Suc ; ℕ to Nat ; _⊔_ to _n⊔_ ) |
14
e11e95d5ddee
separete constructible set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
7 open import Relation.Binary.PropositionalEquality |
e11e95d5ddee
separete constructible set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
11
diff
changeset
|
8 open import Data.Nat.Properties |
6 | 9 open import Data.Empty |
10 open import Relation.Nullary | |
11 open import Relation.Binary | |
12 open import Relation.Binary.Core | |
13 | |
213
22d435172d1a
separate logic and nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
210
diff
changeset
|
14 open import logic |
22d435172d1a
separate logic and nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
210
diff
changeset
|
15 open import nat |
22d435172d1a
separate logic and nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
210
diff
changeset
|
16 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
17 open inOrdinal O |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
18 |
27 | 19 -- Ordinal Definable Set |
11 | 20 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
21 record OD : Set (suc n ) where |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
22 field |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
23 def : (x : Ordinal ) → Set n |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
24 |
141 | 25 open OD |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
26 |
120 | 27 open _∧_ |
213
22d435172d1a
separate logic and nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
210
diff
changeset
|
28 open _∨_ |
22d435172d1a
separate logic and nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
210
diff
changeset
|
29 open Bool |
44
fcac01485f32
od→lv : {n : Level} → OD {n} → Nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
43
diff
changeset
|
30 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
31 record _==_ ( a b : OD ) : Set n where |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
32 field |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
33 eq→ : ∀ { x : Ordinal } → def a x → def b x |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
34 eq← : ∀ { x : Ordinal } → def b x → def a x |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
35 |
234
e06b76e5b682
ac from LEM in abstract ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
228
diff
changeset
|
36 id : {A : Set n} → A → A |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
37 id x = x |
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
38 |
271 | 39 ==-refl : { x : OD } → x == x |
40 ==-refl {x} = record { eq→ = id ; eq← = id } | |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
41 |
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
42 open _==_ |
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
43 |
271 | 44 ==-trans : { x y z : OD } → x == y → y == z → x == z |
45 ==-trans x=y y=z = record { eq→ = λ {m} t → eq→ y=z (eq→ x=y t) ; eq← = λ {m} t → eq← x=y (eq← y=z t) } | |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
46 |
271 | 47 ==-sym : { x y : OD } → x == y → y == x |
48 ==-sym x=y = record { eq→ = λ {m} t → eq← x=y t ; eq← = λ {m} t → eq→ x=y t } | |
49 | |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
50 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
51 ⇔→== : { x y : OD } → ( {z : Ordinal } → def x z ⇔ def y z) → x == y |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
52 eq→ ( ⇔→== {x} {y} eq ) {z} m = proj1 eq m |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
53 eq← ( ⇔→== {x} {y} eq ) {z} m = proj2 eq m |
120 | 54 |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
55 -- next assumptions are our axiom |
290 | 56 -- In classical Set Theory, HOD is used, as a subset of OD, |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
57 -- HOD = { x | TC x ⊆ OD } |
290 | 58 -- where TC x is a transitive clusure of x, i.e. Union of all elemnts of all subset of x. |
59 -- This is not possible because we don't have V yet. | |
60 -- We simply assume V=OD here. | |
61 -- | |
62 -- We also assumes ODs are isomorphic to Ordinals, which is ususally proved by Goedel number tricks. | |
63 -- ODs have an ovbious maximum, but Ordinals are not. This means, od→ord is not an on-to mapping. | |
64 -- | |
65 -- ==→o≡ is necessary to prove axiom of extensionality. | |
66 -- | |
67 -- In classical Set Theory, sup is defined by Uion. Since we are working on constructive logic, | |
68 -- we need explict assumption on sup. | |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
69 |
303 | 70 data One : Set n where |
71 OneObj : One | |
72 | |
73 -- Ordinals in OD , the maximum | |
74 Ords : OD | |
75 Ords = record { def = λ x → One } | |
76 | |
77 record HOD : Set (suc n) where | |
302
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
78 field |
303 | 79 od : OD |
304 | 80 odmax : Ordinal |
81 <odmax : {x : Ordinal} → def od x → x o< odmax | |
302
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
82 |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
83 record OrdinalSubset (maxordinal : Ordinal) : Set (suc n) where |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
84 field |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
85 os→ : (x : Ordinal) → x o< maxordinal → Ordinal |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
86 os← : Ordinal → Ordinal |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
87 os←limit : (x : Ordinal) → os← x o< maxordinal |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
88 os-iso← : {x : Ordinal} → os→ (os← x) (os←limit x) ≡ x |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
89 os-iso→ : {x : Ordinal} → (lt : x o< maxordinal ) → os← (os→ x lt) ≡ x |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
90 |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
91 open HOD |
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
92 |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
93 record ODAxiom : Set (suc n) where |
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
94 field |
304 | 95 -- HOD is isomorphic to Ordinal (by means of Goedel number) |
303 | 96 od→ord : HOD → Ordinal |
97 ord→od : Ordinal → HOD | |
98 c<→o< : {x y : HOD } → def (od y) ( od→ord x ) → od→ord x o< od→ord y | |
99 oiso : {x : HOD } → ord→od ( od→ord x ) ≡ x | |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
100 diso : {x : Ordinal } → od→ord ( ord→od x ) ≡ x |
303 | 101 ==→o≡ : { x y : HOD } → (od x == od y) → x ≡ y |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
102 -- supermum as Replacement Axiom ( corresponding Ordinal of OD has maximum ) |
306 | 103 sup-o : (A : HOD) → (( x : Ordinal ) → def (od A) x → Ordinal ) → Ordinal |
104 sup-o< : (A : HOD) → { ψ : ( x : Ordinal ) → def (od A) x → Ordinal } → ∀ {x : Ordinal } → (lt : def (od A) x ) → ψ x lt o< sup-o A ψ | |
302
304c271b3d47
HOD and reduction mapping of Ordinals
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
301
diff
changeset
|
105 |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
106 postulate odAxiom : ODAxiom |
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
107 open ODAxiom odAxiom |
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
108 |
303 | 109 -- maxod : {x : OD} → od→ord x o< od→ord Ords |
110 -- maxod {x} = c<→o< OneObj | |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
111 |
304 | 112 -- we have not this contradiction |
303 | 113 -- bad-bad : ⊥ |
304 | 114 -- bad-bad = osuc-< <-osuc (c<→o< { record { od = record { def = λ x → One }; <odmax = {!!} } } OneObj) |
301
b012a915bbb5
contradiction found ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
300
diff
changeset
|
115 |
179 | 116 -- Ordinal in OD ( and ZFSet ) Transitive Set |
303 | 117 Ord : ( a : Ordinal ) → HOD |
304 | 118 Ord a = record { od = record { def = λ y → y o< a } ; odmax = a ; <odmax = lemma } where |
119 lemma : {x : Ordinal} → x o< a → x o< a | |
120 lemma {x} lt = lt | |
109
dab56d357fa3
remove o<→c< and add otrans in OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
103
diff
changeset
|
121 |
303 | 122 od∅ : HOD |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
123 od∅ = Ord o∅ |
40 | 124 |
306 | 125 sup-od : ( HOD → HOD ) → HOD |
126 sup-od = {!!} | |
127 sup-c< : ( ψ : HOD → HOD ) → ∀ {x : HOD } → def (od ( sup-od ψ )) (od→ord ( ψ x )) | |
128 sup-c< = {!!} | |
258 | 129 |
303 | 130 odef : HOD → Ordinal → Set n |
131 odef A x = def ( od A ) x | |
123 | 132 |
303 | 133 o<→c<→HOD=Ord : ( {x y : Ordinal } → x o< y → odef (ord→od y) x ) → {x : HOD } → x ≡ Ord (od→ord x) |
134 o<→c<→HOD=Ord o<→c< {x} = ==→o≡ ( record { eq→ = lemma1 ; eq← = lemma2 } ) where | |
135 lemma1 : {y : Ordinal} → odef x y → odef (Ord (od→ord x)) y | |
136 lemma1 {y} lt = subst ( λ k → k o< od→ord x ) diso (c<→o< {ord→od y} {x} (subst (λ k → odef x k ) (sym diso) lt)) | |
137 lemma2 : {y : Ordinal} → odef (Ord (od→ord x)) y → odef x y | |
138 lemma2 {y} lt = subst (λ k → odef k y ) oiso (o<→c< {y} {od→ord x} lt ) | |
95 | 139 |
303 | 140 _∋_ : ( a x : HOD ) → Set n |
141 _∋_ a x = odef a ( od→ord x ) | |
142 | |
143 _c<_ : ( x a : HOD ) → Set n | |
109
dab56d357fa3
remove o<→c< and add otrans in OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
103
diff
changeset
|
144 x c< a = a ∋ x |
103 | 145 |
303 | 146 cseq : {n : Level} → HOD → HOD |
306 | 147 cseq x = record { od = record { def = λ y → odef x (osuc y) } ; odmax = osuc (odmax x) ; <odmax = {!!} } where |
95 | 148 |
303 | 149 odef-subst : {Z : HOD } {X : Ordinal }{z : HOD } {x : Ordinal }→ odef Z X → Z ≡ z → X ≡ x → odef z x |
150 odef-subst df refl refl = df | |
95 | 151 |
303 | 152 otrans : {n : Level} {a x y : Ordinal } → odef (Ord a) x → odef (Ord x) y → odef (Ord a) y |
187 | 153 otrans x<a y<x = ordtrans y<x x<a |
123 | 154 |
303 | 155 odef→o< : {X : HOD } → {x : Ordinal } → odef X x → x o< od→ord X |
156 odef→o< {X} {x} lt = o<-subst {_} {_} {x} {od→ord X} ( c<→o< ( odef-subst {X} {x} lt (sym oiso) (sym diso) )) diso diso | |
44
fcac01485f32
od→lv : {n : Level} → OD {n} → Nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
43
diff
changeset
|
157 |
258 | 158 |
51 | 159 -- avoiding lv != Zero error |
303 | 160 orefl : { x : HOD } → { y : Ordinal } → od→ord x ≡ y → od→ord x ≡ y |
51 | 161 orefl refl = refl |
162 | |
303 | 163 ==-iso : { x y : HOD } → od (ord→od (od→ord x)) == od (ord→od (od→ord y)) → od x == od y |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
164 ==-iso {x} {y} eq = record { |
303 | 165 eq→ = λ d → lemma ( eq→ eq (odef-subst d (sym oiso) refl )) ; |
166 eq← = λ d → lemma ( eq← eq (odef-subst d (sym oiso) refl )) } | |
51 | 167 where |
303 | 168 lemma : {x : HOD } {z : Ordinal } → odef (ord→od (od→ord x)) z → odef x z |
169 lemma {x} {z} d = odef-subst d oiso refl | |
51 | 170 |
303 | 171 =-iso : {x y : HOD } → (od x == od y) ≡ (od (ord→od (od→ord x)) == od y) |
172 =-iso {_} {y} = cong ( λ k → od k == od y ) (sym oiso) | |
57 | 173 |
303 | 174 ord→== : { x y : HOD } → od→ord x ≡ od→ord y → od x == od y |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
175 ord→== {x} {y} eq = ==-iso (lemma (od→ord x) (od→ord y) (orefl eq)) where |
303 | 176 lemma : ( ox oy : Ordinal ) → ox ≡ oy → od (ord→od ox) == od (ord→od oy) |
271 | 177 lemma ox ox refl = ==-refl |
51 | 178 |
303 | 179 o≡→== : { x y : Ordinal } → x ≡ y → od (ord→od x) == od (ord→od y) |
271 | 180 o≡→== {x} {.x} refl = ==-refl |
51 | 181 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
182 o∅≡od∅ : ord→od (o∅ ) ≡ od∅ |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
183 o∅≡od∅ = ==→o≡ lemma where |
303 | 184 lemma0 : {x : Ordinal} → odef (ord→od o∅) x → odef od∅ x |
185 lemma0 {x} lt = o<-subst (c<→o< {ord→od x} {ord→od o∅} (odef-subst {ord→od o∅} {x} lt refl (sym diso)) ) diso diso | |
186 lemma1 : {x : Ordinal} → odef od∅ x → odef (ord→od o∅) x | |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
187 lemma1 {x} lt = ⊥-elim (¬x<0 lt) |
303 | 188 lemma : od (ord→od o∅) == od od∅ |
150 | 189 lemma = record { eq→ = lemma0 ; eq← = lemma1 } |
190 | |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
191 ord-od∅ : od→ord (od∅ ) ≡ o∅ |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
192 ord-od∅ = sym ( subst (λ k → k ≡ od→ord (od∅ ) ) diso (cong ( λ k → od→ord k ) o∅≡od∅ ) ) |
80 | 193 |
303 | 194 ∅0 : record { def = λ x → Lift n ⊥ } == od od∅ |
109
dab56d357fa3
remove o<→c< and add otrans in OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
103
diff
changeset
|
195 eq→ ∅0 {w} (lift ()) |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
196 eq← ∅0 {w} lt = lift (¬x<0 lt) |
109
dab56d357fa3
remove o<→c< and add otrans in OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
103
diff
changeset
|
197 |
303 | 198 ∅< : { x y : HOD } → odef x (od→ord y ) → ¬ ( od x == od od∅ ) |
271 | 199 ∅< {x} {y} d eq with eq→ (==-trans eq (==-sym ∅0) ) d |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
200 ∅< {x} {y} d eq | lift () |
57 | 201 |
303 | 202 ∅6 : { x : HOD } → ¬ ( x ∋ x ) -- no Russel paradox |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
203 ∅6 {x} x∋x = o<¬≡ refl ( c<→o< {x} {x} x∋x ) |
51 | 204 |
303 | 205 odef-iso : {A B : HOD } {x y : Ordinal } → x ≡ y → (odef A y → odef B y) → odef A x → odef B x |
206 odef-iso refl t = t | |
76 | 207 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
208 is-o∅ : ( x : Ordinal ) → Dec ( x ≡ o∅ ) |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
209 is-o∅ x with trio< x o∅ |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
210 is-o∅ x | tri< a ¬b ¬c = no ¬b |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
211 is-o∅ x | tri≈ ¬a b ¬c = yes b |
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
212 is-o∅ x | tri> ¬a ¬b c = no ¬b |
57 | 213 |
303 | 214 _,_ : HOD → HOD → HOD |
304 | 215 x , y = record { od = record { def = λ t → (t ≡ od→ord x ) ∨ ( t ≡ od→ord y ) } ; odmax = {!!} ; <odmax = {!!} } -- Ord (omax (od→ord x) (od→ord y)) |
188
1f2c8b094908
axiom of choice → p ∨ ¬ p
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
187
diff
changeset
|
216 |
79 | 217 -- open import Relation.Binary.HeterogeneousEquality as HE using (_≅_ ) |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
218 -- postulate f-extensionality : { n : Level} → Relation.Binary.PropositionalEquality.Extensionality n (suc n) |
59
d13d1351a1fa
lemma = cong₂ (λ x not → minimul x not ) oiso { }6
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
219 |
303 | 220 in-codomain : (X : HOD ) → ( ψ : HOD → HOD ) → HOD |
304 | 221 in-codomain X ψ = record { od = record { def = λ x → ¬ ( (y : Ordinal ) → ¬ ( odef X y ∧ ( x ≡ od→ord (ψ (ord→od y ))))) } ; odmax = {!!} ; <odmax = {!!} } |
141 | 222 |
303 | 223 -- Power Set of X ( or constructible by λ y → odef X (od→ord y ) |
97
f2b579106770
power set using sup on Def
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
224 |
303 | 225 ZFSubset : (A x : HOD ) → HOD |
304 | 226 ZFSubset A x = record { od = record { def = λ y → odef A y ∧ odef x y } ; odmax = {!!} ; <odmax = {!!} } -- roughly x = A → Set |
97
f2b579106770
power set using sup on Def
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
227 |
303 | 228 OPwr : (A : HOD ) → HOD |
306 | 229 OPwr A = Ord ( sup-o {!!} {!!} ) -- ( λ x → od→ord ( ZFSubset A x) ) ) |
190 | 230 |
303 | 231 -- _⊆_ : ( A B : HOD ) → ∀{ x : HOD } → Set n |
271 | 232 -- _⊆_ A B {x} = A ∋ x → B ∋ x |
233 | |
303 | 234 record _⊆_ ( A B : HOD ) : Set (suc n) where |
271 | 235 field |
303 | 236 incl : { x : HOD } → A ∋ x → B ∋ x |
271 | 237 |
238 open _⊆_ | |
190 | 239 |
240 infixr 220 _⊆_ | |
241 | |
303 | 242 subset-lemma : {A x : HOD } → ( {y : HOD } → x ∋ y → ZFSubset A x ∋ y ) ⇔ ( x ⊆ A ) |
271 | 243 subset-lemma {A} {x} = record { |
244 proj1 = λ lt → record { incl = λ x∋z → proj1 (lt x∋z) } | |
245 ; proj2 = λ x⊆A lt → record { proj1 = incl x⊆A lt ; proj2 = lt } | |
190 | 246 } |
247 | |
261
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
248 open import Data.Unit |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
249 |
303 | 250 ε-induction : { ψ : HOD → Set (suc n)} |
251 → ( {x : HOD } → ({ y : HOD } → x ∋ y → ψ y ) → ψ x ) | |
252 → (x : HOD ) → ψ x | |
261
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
253 ε-induction {ψ} ind x = subst (λ k → ψ k ) oiso (ε-induction-ord (osuc (od→ord x)) <-osuc ) where |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
254 induction : (ox : Ordinal) → ((oy : Ordinal) → oy o< ox → ψ (ord→od oy)) → ψ (ord→od ox) |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
255 induction ox prev = ind ( λ {y} lt → subst (λ k → ψ k ) oiso (prev (od→ord y) (o<-subst (c<→o< lt) refl diso ))) |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
256 ε-induction-ord : (ox : Ordinal) { oy : Ordinal } → oy o< ox → ψ (ord→od oy) |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
257 ε-induction-ord ox {oy} lt = TransFinite {λ oy → ψ (ord→od oy)} induction oy |
d9d178d1457c
ε-induction from TransFinite induction
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
260
diff
changeset
|
258 |
303 | 259 -- minimal-2 : (x : HOD ) → ( ne : ¬ (x == od∅ ) ) → (y : HOD ) → ¬ ( odef (minimal x ne) (od→ord y)) ∧ (odef x (od→ord y) ) |
262 | 260 -- minimal-2 x ne y = contra-position ( ε-induction (λ {z} ind → {!!} ) x ) ( λ p → {!!} ) |
261 | |
303 | 262 HOD→ZF : ZF |
263 HOD→ZF = record { | |
264 ZFSet = HOD | |
43
0d9b9db14361
equalitu and internal parametorisity
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
42
diff
changeset
|
265 ; _∋_ = _∋_ |
303 | 266 ; _≈_ = _=h=_ |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
267 ; ∅ = od∅ |
28 | 268 ; _,_ = _,_ |
269 ; Union = Union | |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
270 ; Power = Power |
28 | 271 ; Select = Select |
272 ; Replace = Replace | |
161 | 273 ; infinite = infinite |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
274 ; isZF = isZF |
28 | 275 } where |
303 | 276 ZFSet = HOD -- is less than Ords because of maxod |
277 Select : (X : HOD ) → ((x : HOD ) → Set n ) → HOD | |
304 | 278 Select X ψ = record { od = record { def = λ x → ( odef X x ∧ ψ ( ord→od x )) } ; odmax = {!!} ; <odmax = {!!} } |
303 | 279 Replace : HOD → (HOD → HOD ) → HOD |
306 | 280 Replace X ψ = record { od = record { def = λ x → (x o< sup-o {!!} {!!} ) ∧ odef (in-codomain X ψ) x } ; odmax = {!!} ; <odmax = {!!} } -- ( λ x → od→ord (ψ x)) |
144 | 281 _∩_ : ( A B : ZFSet ) → ZFSet |
304 | 282 A ∩ B = record { od = record { def = λ x → odef A x ∧ odef B x } ; odmax = {!!} ; <odmax = {!!} } |
303 | 283 Union : HOD → HOD |
304 | 284 Union U = record { od = record { def = λ x → ¬ (∀ (u : Ordinal ) → ¬ ((odef U u) ∧ (odef (ord→od u) x))) } ; odmax = {!!} ; <odmax = {!!} } |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
285 _∈_ : ( A B : ZFSet ) → Set n |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
286 A ∈ B = B ∋ A |
303 | 287 Power : HOD → HOD |
300
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
288 Power A = Replace (OPwr (Ord (od→ord A))) ( λ x → A ∩ x ) |
277
d9d3654baee1
seperate choice from LEM
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
276
diff
changeset
|
289 -- {_} : ZFSet → ZFSet |
287 | 290 -- { x } = ( x , x ) -- it works but we don't use |
109
dab56d357fa3
remove o<→c< and add otrans in OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
103
diff
changeset
|
291 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
292 data infinite-d : ( x : Ordinal ) → Set n where |
161 | 293 iφ : infinite-d o∅ |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
294 isuc : {x : Ordinal } → infinite-d x → |
161 | 295 infinite-d (od→ord ( Union (ord→od x , (ord→od x , ord→od x ) ) )) |
296 | |
303 | 297 infinite : HOD |
304 | 298 infinite = record { od = record { def = λ x → infinite-d x } ; odmax = {!!} ; <odmax = {!!} } |
303 | 299 |
300 _=h=_ : (x y : HOD) → Set n | |
301 x =h= y = od x == od y | |
161 | 302 |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
303 infixr 200 _∈_ |
96 | 304 -- infixr 230 _∩_ _∪_ |
303 | 305 isZF : IsZF (HOD ) _∋_ _=h=_ od∅ _,_ Union Power Select Replace infinite |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
306 isZF = record { |
271 | 307 isEquivalence = record { refl = ==-refl ; sym = ==-sym; trans = ==-trans } |
247 | 308 ; pair→ = pair→ |
309 ; pair← = pair← | |
72 | 310 ; union→ = union→ |
311 ; union← = union← | |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
312 ; empty = empty |
129 | 313 ; power→ = power→ |
76 | 314 ; power← = power← |
186 | 315 ; extensionality = λ {A} {B} {w} → extensionality {A} {B} {w} |
274 | 316 ; ε-induction = ε-induction |
78
9a7a64b2388c
infinite and replacement begin
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
77
diff
changeset
|
317 ; infinity∅ = infinity∅ |
160 | 318 ; infinity = infinity |
116 | 319 ; selection = λ {X} {ψ} {y} → selection {X} {ψ} {y} |
135 | 320 ; replacement← = replacement← |
321 ; replacement→ = replacement→ | |
274 | 322 -- ; choice-func = choice-func |
323 -- ; choice = choice | |
29
fce60b99dc55
posturate OD is isomorphic to Ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
324 } where |
129 | 325 |
303 | 326 pair→ : ( x y t : ZFSet ) → (x , y) ∋ t → ( t =h= x ) ∨ ( t =h= y ) |
327 pair→ x y t (case1 t≡x ) = case1 (subst₂ (λ j k → j =h= k ) oiso oiso (o≡→== t≡x )) | |
328 pair→ x y t (case2 t≡y ) = case2 (subst₂ (λ j k → j =h= k ) oiso oiso (o≡→== t≡y )) | |
247 | 329 |
303 | 330 pair← : ( x y t : ZFSet ) → ( t =h= x ) ∨ ( t =h= y ) → (x , y) ∋ t |
331 pair← x y t (case1 t=h=x) = case1 (cong (λ k → od→ord k ) (==→o≡ t=h=x)) | |
332 pair← x y t (case2 t=h=y) = case2 (cong (λ k → od→ord k ) (==→o≡ t=h=y)) | |
247 | 333 |
303 | 334 empty : (x : HOD ) → ¬ (od∅ ∋ x) |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
335 empty x = ¬x<0 |
129 | 336 |
271 | 337 o<→c< : {x y : Ordinal } → x o< y → (Ord x) ⊆ (Ord y) |
338 o<→c< lt = record { incl = λ z → ordtrans z lt } | |
155 | 339 |
271 | 340 ⊆→o< : {x y : Ordinal } → (Ord x) ⊆ (Ord y) → x o< osuc y |
155 | 341 ⊆→o< {x} {y} lt with trio< x y |
342 ⊆→o< {x} {y} lt | tri< a ¬b ¬c = ordtrans a <-osuc | |
343 ⊆→o< {x} {y} lt | tri≈ ¬a b ¬c = subst ( λ k → k o< osuc y) (sym b) <-osuc | |
271 | 344 ⊆→o< {x} {y} lt | tri> ¬a ¬b c with (incl lt) (o<-subst c (sym diso) refl ) |
155 | 345 ... | ttt = ⊥-elim ( o<¬≡ refl (o<-subst ttt diso refl )) |
151 | 346 |
303 | 347 union→ : (X z u : HOD) → (X ∋ u) ∧ (u ∋ z) → Union X ∋ z |
157
afc030b7c8d0
explict logical definition of Union failed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
156
diff
changeset
|
348 union→ X z u xx not = ⊥-elim ( not (od→ord u) ( record { proj1 = proj1 xx |
303 | 349 ; proj2 = subst ( λ k → odef k (od→ord z)) (sym oiso) (proj2 xx) } )) |
350 union← : (X z : HOD) (X∋z : Union X ∋ z) → ¬ ( (u : HOD ) → ¬ ((X ∋ u) ∧ (u ∋ z ))) | |
258 | 351 union← X z UX∋z = FExists _ lemma UX∋z where |
303 | 352 lemma : {y : Ordinal} → odef X y ∧ odef (ord→od y) (od→ord z) → ¬ ((u : HOD) → ¬ (X ∋ u) ∧ (u ∋ z)) |
353 lemma {y} xx not = not (ord→od y) record { proj1 = subst ( λ k → odef X k ) (sym diso) (proj1 xx ) ; proj2 = proj2 xx } | |
144 | 354 |
303 | 355 ψiso : {ψ : HOD → Set n} {x y : HOD } → ψ x → x ≡ y → ψ y |
144 | 356 ψiso {ψ} t refl = t |
303 | 357 selection : {ψ : HOD → Set n} {X y : HOD} → ((X ∋ y) ∧ ψ y) ⇔ (Select X ψ ∋ y) |
144 | 358 selection {ψ} {X} {y} = record { |
359 proj1 = λ cond → record { proj1 = proj1 cond ; proj2 = ψiso {ψ} (proj2 cond) (sym oiso) } | |
360 ; proj2 = λ select → record { proj1 = proj1 select ; proj2 = ψiso {ψ} (proj2 select) oiso } | |
361 } | |
303 | 362 replacement← : {ψ : HOD → HOD} (X x : HOD) → X ∋ x → Replace X ψ ∋ ψ x |
304 | 363 replacement← {ψ} X x lt = record { proj1 = {!!} ; proj2 = lemma } where -- sup-c< ψ {x} |
303 | 364 lemma : odef (in-codomain X ψ) (od→ord (ψ x)) |
150 | 365 lemma not = ⊥-elim ( not ( od→ord x ) (record { proj1 = lt ; proj2 = cong (λ k → od→ord (ψ k)) (sym oiso)} )) |
303 | 366 replacement→ : {ψ : HOD → HOD} (X x : HOD) → (lt : Replace X ψ ∋ x) → ¬ ( (y : HOD) → ¬ (x =h= ψ y)) |
150 | 367 replacement→ {ψ} X x lt = contra-position lemma (lemma2 (proj2 lt)) where |
303 | 368 lemma2 : ¬ ((y : Ordinal) → ¬ odef X y ∧ ((od→ord x) ≡ od→ord (ψ (ord→od y)))) |
369 → ¬ ((y : Ordinal) → ¬ odef X y ∧ (ord→od (od→ord x) =h= ψ (ord→od y))) | |
144 | 370 lemma2 not not2 = not ( λ y d → not2 y (record { proj1 = proj1 d ; proj2 = lemma3 (proj2 d)})) where |
303 | 371 lemma3 : {y : Ordinal } → (od→ord x ≡ od→ord (ψ (ord→od y))) → (ord→od (od→ord x) =h= ψ (ord→od y)) |
372 lemma3 {y} eq = subst (λ k → ord→od (od→ord x) =h= k ) oiso (o≡→== eq ) | |
373 lemma : ( (y : HOD) → ¬ (x =h= ψ y)) → ( (y : Ordinal) → ¬ odef X y ∧ (ord→od (od→ord x) =h= ψ (ord→od y)) ) | |
374 lemma not y not2 = not (ord→od y) (subst (λ k → k =h= ψ (ord→od y)) oiso ( proj2 not2 )) | |
144 | 375 |
376 --- | |
377 --- Power Set | |
378 --- | |
303 | 379 --- First consider ordinals in HOD |
100 | 380 --- |
303 | 381 --- ZFSubset A x = record { def = λ y → odef A y ∧ odef x y } subset of A |
100 | 382 -- |
383 -- | |
303 | 384 ∩-≡ : { a b : HOD } → ({x : HOD } → (a ∋ x → b ∋ x)) → a =h= ( b ∩ a ) |
142 | 385 ∩-≡ {a} {b} inc = record { |
386 eq→ = λ {x} x<a → record { proj2 = x<a ; | |
303 | 387 proj1 = odef-subst {_} {_} {b} {x} (inc (odef-subst {_} {_} {a} {_} x<a refl (sym diso) )) refl diso } ; |
142 | 388 eq← = λ {x} x<a∩b → proj2 x<a∩b } |
100 | 389 -- |
258 | 390 -- Transitive Set case |
303 | 391 -- we have t ∋ x → Ord a ∋ x means t is a subset of Ord a, that is ZFSubset (Ord a) t =h= t |
300
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
392 -- OPwr (Ord a) is a sup of ZFSubset (Ord a) t, so OPwr (Ord a) ∋ t |
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
393 -- OPwr A = Ord ( sup-o ( λ x → od→ord ( ZFSubset A (ord→od x )) ) ) |
100 | 394 -- |
303 | 395 ord-power← : (a : Ordinal ) (t : HOD) → ({x : HOD} → (t ∋ x → (Ord a) ∋ x)) → OPwr (Ord a) ∋ t |
396 ord-power← a t t→A = odef-subst {_} {_} {OPwr (Ord a)} {od→ord t} | |
127 | 397 lemma refl (lemma1 lemma-eq )where |
303 | 398 lemma-eq : ZFSubset (Ord a) t =h= t |
97
f2b579106770
power set using sup on Def
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
399 eq→ lemma-eq {z} w = proj2 w |
f2b579106770
power set using sup on Def
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
400 eq← lemma-eq {z} w = record { proj2 = w ; |
303 | 401 proj1 = odef-subst {_} {_} {(Ord a)} {z} |
402 ( t→A (odef-subst {_} {_} {t} {od→ord (ord→od z)} w refl (sym diso) )) refl diso } | |
403 lemma1 : {a : Ordinal } { t : HOD } | |
404 → (eq : ZFSubset (Ord a) t =h= t) → od→ord (ZFSubset (Ord a) (ord→od (od→ord t))) ≡ od→ord t | |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
405 lemma1 {a} {t} eq = subst (λ k → od→ord (ZFSubset (Ord a) k) ≡ od→ord t ) (sym oiso) (cong (λ k → od→ord k ) (==→o≡ eq )) |
306 | 406 lemma : od→ord (ZFSubset (Ord a) (ord→od (od→ord t)) ) o< sup-o {!!} {!!} -- (λ x → od→ord (ZFSubset (Ord a) x)) |
407 lemma = {!!} -- sup-o< | |
129 | 408 |
144 | 409 -- |
303 | 410 -- Every set in HOD is a subset of Ordinals, so make OPwr (Ord (od→ord A)) first |
258 | 411 -- then replace of all elements of the Power set by A ∩ y |
144 | 412 -- |
300
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
413 -- Power A = Replace (OPwr (Ord (od→ord A))) ( λ y → A ∩ y ) |
166 | 414 |
415 -- we have oly double negation form because of the replacement axiom | |
416 -- | |
303 | 417 power→ : ( A t : HOD) → Power A ∋ t → {x : HOD} → t ∋ x → ¬ ¬ (A ∋ x) |
258 | 418 power→ A t P∋t {x} t∋x = FExists _ lemma5 lemma4 where |
142 | 419 a = od→ord A |
303 | 420 lemma2 : ¬ ( (y : HOD) → ¬ (t =h= (A ∩ y))) |
300
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
421 lemma2 = replacement→ (OPwr (Ord (od→ord A))) t P∋t |
303 | 422 lemma3 : (y : HOD) → t =h= ( A ∩ y ) → ¬ ¬ (A ∋ x) |
166 | 423 lemma3 y eq not = not (proj1 (eq→ eq t∋x)) |
303 | 424 lemma4 : ¬ ((y : Ordinal) → ¬ (t =h= (A ∩ ord→od y))) |
425 lemma4 not = lemma2 ( λ y not1 → not (od→ord y) (subst (λ k → t =h= ( A ∩ k )) (sym oiso) not1 )) | |
426 lemma5 : {y : Ordinal} → t =h= (A ∩ ord→od y) → ¬ ¬ (odef A (od→ord x)) | |
166 | 427 lemma5 {y} eq not = (lemma3 (ord→od y) eq) not |
428 | |
303 | 429 power← : (A t : HOD) → ({x : HOD} → (t ∋ x → A ∋ x)) → Power A ∋ t |
142 | 430 power← A t t→A = record { proj1 = lemma1 ; proj2 = lemma2 } where |
431 a = od→ord A | |
303 | 432 lemma0 : {x : HOD} → t ∋ x → Ord a ∋ x |
142 | 433 lemma0 {x} t∋x = c<→o< (t→A t∋x) |
300
e70980bd80c7
-- the set of finite partial functions from ω to 2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
291
diff
changeset
|
434 lemma3 : OPwr (Ord a) ∋ t |
142 | 435 lemma3 = ord-power← a t lemma0 |
152 | 436 lemma4 : (A ∩ ord→od (od→ord t)) ≡ t |
437 lemma4 = let open ≡-Reasoning in begin | |
438 A ∩ ord→od (od→ord t) | |
439 ≡⟨ cong (λ k → A ∩ k) oiso ⟩ | |
440 A ∩ t | |
441 ≡⟨ sym (==→o≡ ( ∩-≡ t→A )) ⟩ | |
442 t | |
443 ∎ | |
306 | 444 lemma1 : od→ord t o< sup-o {!!} {!!} -- (λ x → od→ord (A ∩ x)) |
445 lemma1 = subst (λ k → od→ord k o< sup-o {!!} {!!}) -- (λ x → od→ord (A ∩ x))) | |
446 lemma4 {!!} -- (sup-o< {λ x → od→ord (A ∩ x)} ) | |
303 | 447 lemma2 : odef (in-codomain (OPwr (Ord (od→ord A))) (_∩_ A)) (od→ord t) |
151 | 448 lemma2 not = ⊥-elim ( not (od→ord t) (record { proj1 = lemma3 ; proj2 = lemma6 }) ) where |
449 lemma6 : od→ord t ≡ od→ord (A ∩ ord→od (od→ord t)) | |
303 | 450 lemma6 = cong ( λ k → od→ord k ) (==→o≡ (subst (λ k → t =h= (A ∩ k)) (sym oiso) ( ∩-≡ t→A ))) |
142 | 451 |
271 | 452 ord⊆power : (a : Ordinal) → (Ord (osuc a)) ⊆ (Power (Ord a)) |
453 ord⊆power a = record { incl = λ {x} lt → power← (Ord a) x (lemma lt) } where | |
303 | 454 lemma : {x y : HOD} → od→ord x o< osuc a → x ∋ y → Ord a ∋ y |
271 | 455 lemma lt y<x with osuc-≡< lt |
456 lemma lt y<x | case1 refl = c<→o< y<x | |
457 lemma lt y<x | case2 x<a = ordtrans (c<→o< y<x) x<a | |
262 | 458 |
276 | 459 continuum-hyphotheis : (a : Ordinal) → Set (suc n) |
460 continuum-hyphotheis a = Power (Ord a) ⊆ Ord (osuc a) | |
129 | 461 |
303 | 462 extensionality0 : {A B : HOD } → ((z : HOD) → (A ∋ z) ⇔ (B ∋ z)) → A =h= B |
463 eq→ (extensionality0 {A} {B} eq ) {x} d = odef-iso {A} {B} (sym diso) (proj1 (eq (ord→od x))) d | |
464 eq← (extensionality0 {A} {B} eq ) {x} d = odef-iso {B} {A} (sym diso) (proj2 (eq (ord→od x))) d | |
186 | 465 |
303 | 466 extensionality : {A B w : HOD } → ((z : HOD ) → (A ∋ z) ⇔ (B ∋ z)) → (w ∋ A) ⇔ (w ∋ B) |
186 | 467 proj1 (extensionality {A} {B} {w} eq ) d = subst (λ k → w ∋ k) ( ==→o≡ (extensionality0 {A} {B} eq) ) d |
468 proj2 (extensionality {A} {B} {w} eq ) d = subst (λ k → w ∋ k) (sym ( ==→o≡ (extensionality0 {A} {B} eq) )) d | |
129 | 469 |
223
2e1f19c949dc
sepration of ordinal from OD
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
219
diff
changeset
|
470 infinity∅ : infinite ∋ od∅ |
303 | 471 infinity∅ = odef-subst {_} {_} {infinite} {od→ord (od∅ )} iφ refl lemma where |
161 | 472 lemma : o∅ ≡ od→ord od∅ |
473 lemma = let open ≡-Reasoning in begin | |
474 o∅ | |
475 ≡⟨ sym diso ⟩ | |
476 od→ord ( ord→od o∅ ) | |
477 ≡⟨ cong ( λ k → od→ord k ) o∅≡od∅ ⟩ | |
478 od→ord od∅ | |
479 ∎ | |
303 | 480 infinity : (x : HOD) → infinite ∋ x → infinite ∋ Union (x , (x , x )) |
481 infinity x lt = odef-subst {_} {_} {infinite} {od→ord (Union (x , (x , x )))} ( isuc {od→ord x} lt ) refl lemma where | |
161 | 482 lemma : od→ord (Union (ord→od (od→ord x) , (ord→od (od→ord x) , ord→od (od→ord x)))) |
483 ≡ od→ord (Union (x , (x , x))) | |
484 lemma = cong (λ k → od→ord (Union ( k , ( k , k ) ))) oiso | |
485 | |
234
e06b76e5b682
ac from LEM in abstract ordinal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
228
diff
changeset
|
486 |
303 | 487 Union = ZF.Union HOD→ZF |
488 Power = ZF.Power HOD→ZF | |
489 Select = ZF.Select HOD→ZF | |
490 Replace = ZF.Replace HOD→ZF | |
491 isZF = ZF.isZF HOD→ZF |