Mercurial > hg > Members > kono > Proof > ZF-in-agda
annotate src/zorn.agda @ 989:ce713b5db3f3
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 16 Nov 2022 14:11:28 +0900 |
parents | 9a85233384f7 |
children | 9672214d4e13 |
rev | line source |
---|---|
478 | 1 {-# OPTIONS --allow-unsolved-metas #-} |
508 | 2 open import Level hiding ( suc ; zero ) |
431 | 3 open import Ordinals |
966 | 4 open import Relation.Binary |
552 | 5 open import Relation.Binary.Core |
6 open import Relation.Binary.PropositionalEquality | |
966 | 7 import OD |
552 | 8 module zorn {n : Level } (O : Ordinals {n}) (_<_ : (x y : OD.HOD O ) → Set n ) (PO : IsStrictPartialOrder _≡_ _<_ ) where |
431 | 9 |
560 | 10 -- |
966 | 11 -- Zorn-lemma : { A : HOD } |
12 -- → o∅ o< & A | |
560 | 13 -- → ( ( B : HOD) → (B⊆A : B ⊆ A) → IsTotalOrderSet B → SUP A B ) -- SUP condition |
966 | 14 -- → Maximal A |
560 | 15 -- |
16 | |
431 | 17 open import zf |
477 | 18 open import logic |
19 -- open import partfunc {n} O | |
20 | |
966 | 21 open import Relation.Nullary |
22 open import Data.Empty | |
23 import BAlgbra | |
431 | 24 |
555 | 25 open import Data.Nat hiding ( _<_ ; _≤_ ) |
966 | 26 open import Data.Nat.Properties |
27 open import nat | |
555 | 28 |
431 | 29 |
30 open inOrdinal O | |
31 open OD O | |
32 open OD.OD | |
33 open ODAxiom odAxiom | |
477 | 34 import OrdUtil |
35 import ODUtil | |
431 | 36 open Ordinals.Ordinals O |
37 open Ordinals.IsOrdinals isOrdinal | |
38 open Ordinals.IsNext isNext | |
39 open OrdUtil O | |
477 | 40 open ODUtil O |
41 | |
42 | |
43 import ODC | |
44 | |
45 open _∧_ | |
46 open _∨_ | |
47 open Bool | |
431 | 48 |
49 open HOD | |
50 | |
560 | 51 -- |
52 -- Partial Order on HOD ( possibly limited in A ) | |
53 -- | |
54 | |
966 | 55 _<<_ : (x y : Ordinal ) → Set n |
570 | 56 x << y = * x < * y |
57 | |
872 | 58 _<=_ : (x y : Ordinal ) → Set n -- we can't use * x ≡ * y, it is Set (Level.suc n). Level (suc n) troubles Chain |
765 | 59 x <= y = (x ≡ y ) ∨ ( * x < * y ) |
60 | |
966 | 61 POO : IsStrictPartialOrder _≡_ _<<_ |
62 POO = record { isEquivalence = record { refl = refl ; sym = sym ; trans = trans } | |
63 ; trans = IsStrictPartialOrder.trans PO | |
570 | 64 ; irrefl = λ x=y x<y → IsStrictPartialOrder.irrefl PO (cong (*) x=y) x<y |
966 | 65 ; <-resp-≈ = record { fst = λ {x} {y} {y1} y=y1 xy1 → subst (λ k → x << k ) y=y1 xy1 ; snd = λ {x} {x1} {y} x=x1 x1y → subst (λ k → k << x ) x=x1 x1y } } |
66 | |
528
8facdd7cc65a
TransitiveClosure with x <= f x is possible
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
527
diff
changeset
|
67 _≤_ : (x y : HOD) → Set (Level.suc n) |
8facdd7cc65a
TransitiveClosure with x <= f x is possible
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
527
diff
changeset
|
68 x ≤ y = ( x ≡ y ) ∨ ( x < y ) |
8facdd7cc65a
TransitiveClosure with x <= f x is possible
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
527
diff
changeset
|
69 |
966 | 70 ≤-ftrans : {x y z : HOD} → x ≤ y → y ≤ z → x ≤ z |
554 | 71 ≤-ftrans {x} {y} {z} (case1 refl ) (case1 refl ) = case1 refl |
72 ≤-ftrans {x} {y} {z} (case1 refl ) (case2 y<z) = case2 y<z | |
73 ≤-ftrans {x} {_} {z} (case2 x<y ) (case1 refl ) = case2 x<y | |
74 ≤-ftrans {x} {y} {z} (case2 x<y) (case2 y<z) = case2 ( IsStrictPartialOrder.trans PO x<y y<z ) | |
75 | |
966 | 76 <=-trans : {x y z : Ordinal } → x <= y → y <= z → x <= z |
955 | 77 <=-trans {x} {y} {z} (case1 refl ) (case1 refl ) = case1 refl |
78 <=-trans {x} {y} {z} (case1 refl ) (case2 y<z) = case2 y<z | |
79 <=-trans {x} {_} {z} (case2 x<y ) (case1 refl ) = case2 x<y | |
80 <=-trans {x} {y} {z} (case2 x<y) (case2 y<z) = case2 ( IsStrictPartialOrder.trans PO x<y y<z ) | |
779 | 81 |
966 | 82 ftrans<=-< : {x y z : Ordinal } → x <= y → y << z → x << z |
953 | 83 ftrans<=-< {x} {y} {z} (case1 eq) y<z = subst (λ k → k < * z) (sym (cong (*) eq)) y<z |
966 | 84 ftrans<=-< {x} {y} {z} (case2 lt) y<z = IsStrictPartialOrder.trans PO lt y<z |
951 | 85 |
966 | 86 <=to≤ : {x y : Ordinal } → x <= y → * x ≤ * y |
770 | 87 <=to≤ (case1 eq) = case1 (cong (*) eq) |
88 <=to≤ (case2 lt) = case2 lt | |
89 | |
966 | 90 ≤to<= : {x y : Ordinal } → * x ≤ * y → x <= y |
779 | 91 ≤to<= (case1 eq) = case1 ( subst₂ (λ j k → j ≡ k ) &iso &iso (cong (&) eq) ) |
92 ≤to<= (case2 lt) = case2 lt | |
93 | |
556 | 94 <-irr : {a b : HOD} → (a ≡ b ) ∨ (a < b ) → b < a → ⊥ |
95 <-irr {a} {b} (case1 a=b) b<a = IsStrictPartialOrder.irrefl PO (sym a=b) b<a | |
96 <-irr {a} {b} (case2 a<b) b<a = IsStrictPartialOrder.irrefl PO refl | |
97 (IsStrictPartialOrder.trans PO b<a a<b) | |
490 | 98 |
561 | 99 ptrans = IsStrictPartialOrder.trans PO |
100 | |
492 | 101 open _==_ |
102 open _⊆_ | |
103 | |
966 | 104 -- <-TransFinite : {A x : HOD} → {P : HOD → Set n} → x ∈ A |
879 | 105 -- → ({x : HOD} → A ∋ x → ({y : HOD} → A ∋ y → y < x → P y ) → P x) → P x |
106 -- <-TransFinite = ? | |
107 | |
530 | 108 -- |
560 | 109 -- Closure of ≤-monotonic function f has total order |
530 | 110 -- |
111 | |
112 ≤-monotonic-f : (A : HOD) → ( Ordinal → Ordinal ) → Set (Level.suc n) | |
113 ≤-monotonic-f A f = (x : Ordinal ) → odef A x → ( * x ≤ * (f x) ) ∧ odef A (f x ) | |
114 | |
551 | 115 data FClosure (A : HOD) (f : Ordinal → Ordinal ) (s : Ordinal) : Ordinal → Set n where |
783 | 116 init : {s1 : Ordinal } → odef A s → s ≡ s1 → FClosure A f s s1 |
555 | 117 fsuc : (x : Ordinal) ( p : FClosure A f s x ) → FClosure A f s (f x) |
554 | 118 |
556 | 119 A∋fc : {A : HOD} (s : Ordinal) {y : Ordinal } (f : Ordinal → Ordinal) (mf : ≤-monotonic-f A f) → (fcy : FClosure A f s y ) → odef A y |
783 | 120 A∋fc {A} s f mf (init as refl ) = as |
556 | 121 A∋fc {A} s f mf (fsuc y fcy) = proj2 (mf y ( A∋fc {A} s f mf fcy ) ) |
555 | 122 |
714 | 123 A∋fcs : {A : HOD} (s : Ordinal) {y : Ordinal } (f : Ordinal → Ordinal) (mf : ≤-monotonic-f A f) → (fcy : FClosure A f s y ) → odef A s |
783 | 124 A∋fcs {A} s f mf (init as refl) = as |
966 | 125 A∋fcs {A} s f mf (fsuc y fcy) = A∋fcs {A} s f mf fcy |
714 | 126 |
556 | 127 s≤fc : {A : HOD} (s : Ordinal ) {y : Ordinal } (f : Ordinal → Ordinal) (mf : ≤-monotonic-f A f) → (fcy : FClosure A f s y ) → * s ≤ * y |
783 | 128 s≤fc {A} s {.s} f mf (init x refl ) = case1 refl |
556 | 129 s≤fc {A} s {.(f x)} f mf (fsuc x fcy) with proj1 (mf x (A∋fc s f mf fcy ) ) |
130 ... | case1 x=fx = subst (λ k → * s ≤ * k ) (*≡*→≡ x=fx) ( s≤fc {A} s f mf fcy ) | |
966 | 131 ... | case2 x<fx with s≤fc {A} s f mf fcy |
556 | 132 ... | case1 s≡x = case2 ( subst₂ (λ j k → j < k ) (sym s≡x) refl x<fx ) |
133 ... | case2 s<x = case2 ( IsStrictPartialOrder.trans PO s<x x<fx ) | |
555 | 134 |
800 | 135 fcn : {A : HOD} (s : Ordinal) { x : Ordinal} {f : Ordinal → Ordinal} → (mf : ≤-monotonic-f A f) → FClosure A f s x → ℕ |
136 fcn s mf (init as refl) = zero | |
137 fcn {A} s {x} {f} mf (fsuc y p) with proj1 (mf y (A∋fc s f mf p)) | |
138 ... | case1 eq = fcn s mf p | |
139 ... | case2 y<fy = suc (fcn s mf p ) | |
140 | |
966 | 141 fcn-inject : {A : HOD} (s : Ordinal) { x y : Ordinal} {f : Ordinal → Ordinal} → (mf : ≤-monotonic-f A f) |
800 | 142 → (cx : FClosure A f s x ) (cy : FClosure A f s y ) → fcn s mf cx ≡ fcn s mf cy → * x ≡ * y |
143 fcn-inject {A} s {x} {y} {f} mf cx cy eq = fc00 (fcn s mf cx) (fcn s mf cy) eq cx cy refl refl where | |
144 fc06 : {y : Ordinal } { as : odef A s } (eq : s ≡ y ) { j : ℕ } → ¬ suc j ≡ fcn {A} s {y} {f} mf (init as eq ) | |
145 fc06 {x} {y} refl {j} not = fc08 not where | |
966 | 146 fc08 : {j : ℕ} → ¬ suc j ≡ 0 |
800 | 147 fc08 () |
148 fc07 : {x : Ordinal } (cx : FClosure A f s x ) → 0 ≡ fcn s mf cx → * s ≡ * x | |
149 fc07 {x} (init as refl) eq = refl | |
150 fc07 {.(f x)} (fsuc x cx) eq with proj1 (mf x (A∋fc s f mf cx ) ) | |
151 ... | case1 x=fx = subst (λ k → * s ≡ k ) x=fx ( fc07 cx eq ) | |
152 -- ... | case2 x<fx = ? | |
153 fc00 : (i j : ℕ ) → i ≡ j → {x y : Ordinal } → (cx : FClosure A f s x ) (cy : FClosure A f s y ) → i ≡ fcn s mf cx → j ≡ fcn s mf cy → * x ≡ * y | |
154 fc00 (suc i) (suc j) x cx (init x₃ x₄) x₁ x₂ = ⊥-elim ( fc06 x₄ x₂ ) | |
155 fc00 (suc i) (suc j) x (init x₃ x₄) (fsuc x₅ cy) x₁ x₂ = ⊥-elim ( fc06 x₄ x₁ ) | |
156 fc00 zero zero refl (init _ refl) (init x₁ refl) i=x i=y = refl | |
157 fc00 zero zero refl (init as refl) (fsuc y cy) i=x i=y with proj1 (mf y (A∋fc s f mf cy ) ) | |
158 ... | case1 y=fy = subst (λ k → * s ≡ k ) y=fy (fc07 cy i=y) -- ( fc00 zero zero refl (init as refl) cy i=x i=y ) | |
159 fc00 zero zero refl (fsuc x cx) (init as refl) i=x i=y with proj1 (mf x (A∋fc s f mf cx ) ) | |
160 ... | case1 x=fx = subst (λ k → k ≡ * s ) x=fx (sym (fc07 cx i=x)) -- ( fc00 zero zero refl cx (init as refl) i=x i=y ) | |
161 fc00 zero zero refl (fsuc x cx) (fsuc y cy) i=x i=y with proj1 (mf x (A∋fc s f mf cx ) ) | proj1 (mf y (A∋fc s f mf cy ) ) | |
162 ... | case1 x=fx | case1 y=fy = subst₂ (λ j k → j ≡ k ) x=fx y=fy ( fc00 zero zero refl cx cy i=x i=y ) | |
163 fc00 (suc i) (suc j) i=j {.(f x)} {.(f y)} (fsuc x cx) (fsuc y cy) i=x j=y with proj1 (mf x (A∋fc s f mf cx ) ) | proj1 (mf y (A∋fc s f mf cy ) ) | |
164 ... | case1 x=fx | case1 y=fy = subst₂ (λ j k → j ≡ k ) x=fx y=fy ( fc00 (suc i) (suc j) i=j cx cy i=x j=y ) | |
165 ... | case1 x=fx | case2 y<fy = subst (λ k → k ≡ * (f y)) x=fx (fc02 x cx i=x) where | |
166 fc02 : (x1 : Ordinal) → (cx1 : FClosure A f s x1 ) → suc i ≡ fcn s mf cx1 → * x1 ≡ * (f y) | |
167 fc02 x1 (init x₁ x₂) x = ⊥-elim (fc06 x₂ x) | |
168 fc02 .(f x1) (fsuc x1 cx1) i=x1 with proj1 (mf x1 (A∋fc s f mf cx1 ) ) | |
169 ... | case1 eq = trans (sym eq) ( fc02 x1 cx1 i=x1 ) -- derefence while f x ≡ x | |
170 ... | case2 lt = subst₂ (λ j k → * (f j) ≡ * (f k )) &iso &iso ( cong (λ k → * ( f (& k ))) fc04) where | |
171 fc04 : * x1 ≡ * y | |
172 fc04 = fc00 i j (cong pred i=j) cx1 cy (cong pred i=x1) (cong pred j=y) | |
173 ... | case2 x<fx | case1 y=fy = subst (λ k → * (f x) ≡ k ) y=fy (fc03 y cy j=y) where | |
174 fc03 : (y1 : Ordinal) → (cy1 : FClosure A f s y1 ) → suc j ≡ fcn s mf cy1 → * (f x) ≡ * y1 | |
175 fc03 y1 (init x₁ x₂) x = ⊥-elim (fc06 x₂ x) | |
176 fc03 .(f y1) (fsuc y1 cy1) j=y1 with proj1 (mf y1 (A∋fc s f mf cy1 ) ) | |
966 | 177 ... | case1 eq = trans ( fc03 y1 cy1 j=y1 ) eq |
800 | 178 ... | case2 lt = subst₂ (λ j k → * (f j) ≡ * (f k )) &iso &iso ( cong (λ k → * ( f (& k ))) fc05) where |
179 fc05 : * x ≡ * y1 | |
180 fc05 = fc00 i j (cong pred i=j) cx cy1 (cong pred i=x) (cong pred j=y1) | |
181 ... | case2 x₁ | case2 x₂ = subst₂ (λ j k → * (f j) ≡ * (f k) ) &iso &iso (cong (λ k → * (f (& k))) (fc00 i j (cong pred i=j) cx cy (cong pred i=x) (cong pred j=y))) | |
182 | |
183 | |
184 fcn-< : {A : HOD} (s : Ordinal ) { x y : Ordinal} {f : Ordinal → Ordinal} → (mf : ≤-monotonic-f A f) | |
185 → (cx : FClosure A f s x ) (cy : FClosure A f s y ) → fcn s mf cx Data.Nat.< fcn s mf cy → * x < * y | |
186 fcn-< {A} s {x} {y} {f} mf cx cy x<y = fc01 (fcn s mf cy) cx cy refl x<y where | |
187 fc06 : {y : Ordinal } { as : odef A s } (eq : s ≡ y ) { j : ℕ } → ¬ suc j ≡ fcn {A} s {y} {f} mf (init as eq ) | |
188 fc06 {x} {y} refl {j} not = fc08 not where | |
966 | 189 fc08 : {j : ℕ} → ¬ suc j ≡ 0 |
800 | 190 fc08 () |
191 fc01 : (i : ℕ ) → {y : Ordinal } → (cx : FClosure A f s x ) (cy : FClosure A f s y ) → (i ≡ fcn s mf cy ) → fcn s mf cx Data.Nat.< i → * x < * y | |
192 fc01 (suc i) cx (init x₁ x₂) x (s≤s x₃) = ⊥-elim (fc06 x₂ x) | |
193 fc01 (suc i) {y} cx (fsuc y1 cy) i=y (s≤s x<i) with proj1 (mf y1 (A∋fc s f mf cy ) ) | |
966 | 194 ... | case1 y=fy = subst (λ k → * x < k ) y=fy ( fc01 (suc i) {y1} cx cy i=y (s≤s x<i) ) |
800 | 195 ... | case2 y<fy with <-cmp (fcn s mf cx ) i |
196 ... | tri> ¬a ¬b c = ⊥-elim ( nat-≤> x<i c ) | |
966 | 197 ... | tri≈ ¬a b ¬c = subst (λ k → k < * (f y1) ) (fcn-inject s mf cy cx (sym (trans b (cong pred i=y) ))) y<fy |
800 | 198 ... | tri< a ¬b ¬c = IsStrictPartialOrder.trans PO fc02 y<fy where |
199 fc03 : suc i ≡ suc (fcn s mf cy) → i ≡ fcn s mf cy | |
966 | 200 fc03 eq = cong pred eq |
201 fc02 : * x < * y1 | |
800 | 202 fc02 = fc01 i cx cy (fc03 i=y ) a |
203 | |
557 | 204 |
966 | 205 fcn-cmp : {A : HOD} (s : Ordinal) { x y : Ordinal } (f : Ordinal → Ordinal) (mf : ≤-monotonic-f A f) |
554 | 206 → (cx : FClosure A f s x) → (cy : FClosure A f s y ) → Tri (* x < * y) (* x ≡ * y) (* y < * x ) |
800 | 207 fcn-cmp {A} s {x} {y} f mf cx cy with <-cmp ( fcn s mf cx ) (fcn s mf cy ) |
208 ... | tri< a ¬b ¬c = tri< fc11 (λ eq → <-irr (case1 (sym eq)) fc11) (λ lt → <-irr (case2 fc11) lt) where | |
209 fc11 : * x < * y | |
210 fc11 = fcn-< {A} s {x} {y} {f} mf cx cy a | |
211 ... | tri≈ ¬a b ¬c = tri≈ (λ lt → <-irr (case1 (sym fc10)) lt) fc10 (λ lt → <-irr (case1 fc10) lt) where | |
212 fc10 : * x ≡ * y | |
213 fc10 = fcn-inject {A} s {x} {y} {f} mf cx cy b | |
966 | 214 ... | tri> ¬a ¬b c = tri> (λ lt → <-irr (case2 fc12) lt) (λ eq → <-irr (case1 eq) fc12) fc12 where |
800 | 215 fc12 : * y < * x |
216 fc12 = fcn-< {A} s {y} {x} {f} mf cy cx c | |
600 | 217 |
563 | 218 |
729 | 219 |
560 | 220 -- open import Relation.Binary.Properties.Poset as Poset |
221 | |
222 IsTotalOrderSet : ( A : HOD ) → Set (Level.suc n) | |
223 IsTotalOrderSet A = {a b : HOD} → odef A (& a) → odef A (& b) → Tri (a < b) (a ≡ b) (b < a ) | |
224 | |
567 | 225 ⊆-IsTotalOrderSet : { A B : HOD } → B ⊆ A → IsTotalOrderSet A → IsTotalOrderSet B |
568 | 226 ⊆-IsTotalOrderSet {A} {B} B⊆A T ax ay = T (incl B⊆A ax) (incl B⊆A ay) |
567 | 227 |
568 | 228 _⊆'_ : ( A B : HOD ) → Set n |
229 _⊆'_ A B = {x : Ordinal } → odef A x → odef B x | |
560 | 230 |
231 -- | |
232 -- inductive maxmum tree from x | |
233 -- tree structure | |
234 -- | |
554 | 235 |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
236 record HasPrev (A B : HOD) ( f : Ordinal → Ordinal ) (x : Ordinal ) : Set n where |
533 | 237 field |
836 | 238 ax : odef A x |
534 | 239 y : Ordinal |
541 | 240 ay : odef B y |
966 | 241 x=fy : x ≡ f y |
529 | 242 |
962 | 243 record IsSUP (A B : HOD) {x : Ordinal } (xa : odef A x) : Set n where |
244 field | |
245 x≤sup : {y : Ordinal} → odef B y → (y ≡ x ) ∨ (y << x ) | |
957 | 246 |
960 | 247 record IsMinSUP (A B : HOD) ( f : Ordinal → Ordinal ) {x : Ordinal } (xa : odef A x) : Set n where |
654 | 248 field |
950 | 249 x≤sup : {y : Ordinal} → odef B y → (y ≡ x ) ∨ (y << x ) |
966 | 250 minsup : { sup1 : Ordinal } → odef A sup1 |
954 | 251 → ( {z : Ordinal } → odef B z → (z ≡ sup1 ) ∨ (z << sup1 )) → x o≤ sup1 |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
252 not-hp : ¬ ( HasPrev A B f x ) |
568 | 253 |
656 | 254 record SUP ( A B : HOD ) : Set (Level.suc n) where |
255 field | |
256 sup : HOD | |
804 | 257 as : A ∋ sup |
950 | 258 x≤sup : {x : HOD} → B ∋ x → (x ≡ sup ) ∨ (x < sup ) -- B is Total, use positive |
656 | 259 |
690 | 260 -- |
261 -- sup and its fclosure is in a chain HOD | |
262 -- chain HOD is sorted by sup as Ordinal and <-ordered | |
263 -- whole chain is a union of separated Chain | |
966 | 264 -- minimum index is sup of y not ϕ |
690 | 265 -- |
266 | |
787 | 267 record ChainP (A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) {y : Ordinal} (ay : odef A y) (supf : Ordinal → Ordinal) (u : Ordinal) : Set n where |
690 | 268 field |
966 | 269 fcy<sup : {z : Ordinal } → FClosure A f y z → (z ≡ supf u) ∨ ( z << supf u ) |
828 | 270 order : {s z1 : Ordinal} → (lt : supf s o< supf u ) → FClosure A f (supf s ) z1 → (z1 ≡ supf u ) ∨ ( z1 << supf u ) |
271 supu=u : supf u ≡ u | |
694 | 272 |
748 | 273 data UChain ( A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) {y : Ordinal } (ay : odef A y ) |
966 | 274 (supf : Ordinal → Ordinal) (x : Ordinal) : (z : Ordinal) → Set n where |
275 ch-init : {z : Ordinal } (fc : FClosure A f y z) → UChain A f mf ay supf x z | |
276 ch-is-sup : (u : Ordinal) {z : Ordinal } (u<x : supf u o< supf x) ( is-sup : ChainP A f mf ay supf u ) | |
748 | 277 ( fc : FClosure A f (supf u) z ) → UChain A f mf ay supf x z |
694 | 278 |
878 | 279 -- |
280 -- f (f ( ... (sup y))) f (f ( ... (sup z1))) | |
281 -- / | / | | |
282 -- / | / | | |
283 -- sup y < sup z1 < sup z2 | |
284 -- o< o< | |
861 | 285 -- data UChain is total |
286 | |
287 chain-total : (A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) {y : Ordinal} (ay : odef A y) (supf : Ordinal → Ordinal ) | |
288 {s s1 a b : Ordinal } ( ca : UChain A f mf ay supf s a ) ( cb : UChain A f mf ay supf s1 b ) → Tri (* a < * b) (* a ≡ * b) (* b < * a ) | |
289 chain-total A f mf {y} ay supf {xa} {xb} {a} {b} ca cb = ct-ind xa xb ca cb where | |
290 ct-ind : (xa xb : Ordinal) → {a b : Ordinal} → UChain A f mf ay supf xa a → UChain A f mf ay supf xb b → Tri (* a < * b) (* a ≡ * b) (* b < * a) | |
966 | 291 ct-ind xa xb {a} {b} (ch-init fca) (ch-init fcb) = fcn-cmp y f mf fca fcb |
292 ct-ind xa xb {a} {b} (ch-init fca) (ch-is-sup ub u<x supb fcb) with ChainP.fcy<sup supb fca | |
293 ... | case1 eq with s≤fc (supf ub) f mf fcb | |
294 ... | case1 eq1 = tri≈ (λ lt → ⊥-elim (<-irr (case1 (sym ct00)) lt)) ct00 (λ lt → ⊥-elim (<-irr (case1 ct00) lt)) where | |
295 ct00 : * a ≡ * b | |
296 ct00 = trans (cong (*) eq) eq1 | |
297 ... | case2 lt = tri< ct01 (λ eq → <-irr (case1 (sym eq)) ct01) (λ lt → <-irr (case2 ct01) lt) where | |
298 ct01 : * a < * b | |
299 ct01 = subst (λ k → * k < * b ) (sym eq) lt | |
300 ct-ind xa xb {a} {b} (ch-init fca) (ch-is-sup ub u<x supb fcb) | case2 lt = tri< ct01 (λ eq → <-irr (case1 (sym eq)) ct01) (λ lt → <-irr (case2 ct01) lt) where | |
301 ct00 : * a < * (supf ub) | |
302 ct00 = lt | |
303 ct01 : * a < * b | |
304 ct01 with s≤fc (supf ub) f mf fcb | |
305 ... | case1 eq = subst (λ k → * a < k ) eq ct00 | |
306 ... | case2 lt = IsStrictPartialOrder.trans POO ct00 lt | |
307 ct-ind xa xb {a} {b} (ch-is-sup ua u<x supa fca) (ch-init fcb) with ChainP.fcy<sup supa fcb | |
308 ... | case1 eq with s≤fc (supf ua) f mf fca | |
309 ... | case1 eq1 = tri≈ (λ lt → ⊥-elim (<-irr (case1 (sym ct00)) lt)) ct00 (λ lt → ⊥-elim (<-irr (case1 ct00) lt)) where | |
310 ct00 : * a ≡ * b | |
311 ct00 = sym (trans (cong (*) eq) eq1 ) | |
312 ... | case2 lt = tri> (λ lt → <-irr (case2 ct01) lt) (λ eq → <-irr (case1 eq) ct01) ct01 where | |
313 ct01 : * b < * a | |
314 ct01 = subst (λ k → * k < * a ) (sym eq) lt | |
315 ct-ind xa xb {a} {b} (ch-is-sup ua u<x supa fca) (ch-init fcb) | case2 lt = tri> (λ lt → <-irr (case2 ct01) lt) (λ eq → <-irr (case1 eq) ct01) ct01 where | |
316 ct00 : * b < * (supf ua) | |
317 ct00 = lt | |
318 ct01 : * b < * a | |
319 ct01 with s≤fc (supf ua) f mf fca | |
320 ... | case1 eq = subst (λ k → * b < k ) eq ct00 | |
321 ... | case2 lt = IsStrictPartialOrder.trans POO ct00 lt | |
861 | 322 ct-ind xa xb {a} {b} (ch-is-sup ua ua<x supa fca) (ch-is-sup ub ub<x supb fcb) with trio< ua ub |
966 | 323 ... | tri< a₁ ¬b ¬c with ChainP.order supb (subst₂ (λ j k → j o< k ) (sym (ChainP.supu=u supa )) (sym (ChainP.supu=u supb )) a₁) fca |
324 ... | case1 eq with s≤fc (supf ub) f mf fcb | |
861 | 325 ... | case1 eq1 = tri≈ (λ lt → ⊥-elim (<-irr (case1 (sym ct00)) lt)) ct00 (λ lt → ⊥-elim (<-irr (case1 ct00) lt)) where |
326 ct00 : * a ≡ * b | |
327 ct00 = trans (cong (*) eq) eq1 | |
328 ... | case2 lt = tri< ct02 (λ eq → <-irr (case1 (sym eq)) ct02) (λ lt → <-irr (case2 ct02) lt) where | |
966 | 329 ct02 : * a < * b |
861 | 330 ct02 = subst (λ k → * k < * b ) (sym eq) lt |
331 ct-ind xa xb {a} {b} (ch-is-sup ua ua<x supa fca) (ch-is-sup ub ub<x supb fcb) | tri< a₁ ¬b ¬c | case2 lt = tri< ct02 (λ eq → <-irr (case1 (sym eq)) ct02) (λ lt → <-irr (case2 ct02) lt) where | |
332 ct03 : * a < * (supf ub) | |
333 ct03 = lt | |
966 | 334 ct02 : * a < * b |
861 | 335 ct02 with s≤fc (supf ub) f mf fcb |
336 ... | case1 eq = subst (λ k → * a < k ) eq ct03 | |
337 ... | case2 lt = IsStrictPartialOrder.trans POO ct03 lt | |
966 | 338 ct-ind xa xb {a} {b} (ch-is-sup ua ua<x supa fca) (ch-is-sup ub ub<x supb fcb) | tri≈ ¬a eq ¬c |
861 | 339 = fcn-cmp (supf ua) f mf fca (subst (λ k → FClosure A f k b ) (cong supf (sym eq)) fcb ) |
966 | 340 ct-ind xa xb {a} {b} (ch-is-sup ua ua<x supa fca) (ch-is-sup ub ub<x supb fcb) | tri> ¬a ¬b c with ChainP.order supa (subst₂ (λ j k → j o< k ) (sym (ChainP.supu=u supb )) (sym (ChainP.supu=u supa )) c) fcb |
341 ... | case1 eq with s≤fc (supf ua) f mf fca | |
861 | 342 ... | case1 eq1 = tri≈ (λ lt → ⊥-elim (<-irr (case1 (sym ct00)) lt)) ct00 (λ lt → ⊥-elim (<-irr (case1 ct00) lt)) where |
343 ct00 : * a ≡ * b | |
344 ct00 = sym (trans (cong (*) eq) eq1) | |
345 ... | case2 lt = tri> (λ lt → <-irr (case2 ct02) lt) (λ eq → <-irr (case1 eq) ct02) ct02 where | |
966 | 346 ct02 : * b < * a |
861 | 347 ct02 = subst (λ k → * k < * a ) (sym eq) lt |
348 ct-ind xa xb {a} {b} (ch-is-sup ua ua<x supa fca) (ch-is-sup ub ub<x supb fcb) | tri> ¬a ¬b c | case2 lt = tri> (λ lt → <-irr (case2 ct04) lt) (λ eq → <-irr (case1 (eq)) ct04) ct04 where | |
349 ct05 : * b < * (supf ua) | |
350 ct05 = lt | |
966 | 351 ct04 : * b < * a |
861 | 352 ct04 with s≤fc (supf ua) f mf fca |
353 ... | case1 eq = subst (λ k → * b < k ) eq ct05 | |
354 ... | case2 lt = IsStrictPartialOrder.trans POO ct05 lt | |
355 | |
694 | 356 ∈∧P→o< : {A : HOD } {y : Ordinal} → {P : Set n} → odef A y ∧ P → y o< & A |
357 ∈∧P→o< {A } {y} p = subst (λ k → k o< & A) &iso ( c<→o< (subst (λ k → odef A k ) (sym &iso ) (proj1 p ))) | |
358 | |
803 | 359 -- Union of supf z which o< x |
360 -- | |
966 | 361 UnionCF : ( A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) {y : Ordinal } (ay : odef A y ) |
694 | 362 ( supf : Ordinal → Ordinal ) ( x : Ordinal ) → HOD |
363 UnionCF A f mf ay supf x | |
894 | 364 = record { od = record { def = λ z → odef A z ∧ UChain A f mf ay supf x z } ; odmax = & A ; <odmax = λ {y} sy → ∈∧P→o< sy } |
662 | 365 |
966 | 366 supf-inject0 : {x y : Ordinal } {supf : Ordinal → Ordinal } → (supf-mono : {x y : Ordinal } → x o≤ y → supf x o≤ supf y ) |
367 → supf x o< supf y → x o< y | |
842 | 368 supf-inject0 {x} {y} {supf} supf-mono sx<sy with trio< x y |
369 ... | tri< a ¬b ¬c = a | |
370 ... | tri≈ ¬a refl ¬c = ⊥-elim ( o<¬≡ (cong supf refl) sx<sy ) | |
371 ... | tri> ¬a ¬b y<x with osuc-≡< (supf-mono (o<→≤ y<x) ) | |
372 ... | case1 eq = ⊥-elim ( o<¬≡ (sym eq) sx<sy ) | |
373 ... | case2 lt = ⊥-elim ( o<> sx<sy lt ) | |
374 | |
879 | 375 record MinSUP ( A B : HOD ) : Set n where |
376 field | |
377 sup : Ordinal | |
378 asm : odef A sup | |
966 | 379 x≤sup : {x : Ordinal } → odef B x → (x ≡ sup ) ∨ (x << sup ) |
380 minsup : { sup1 : Ordinal } → odef A sup1 | |
879 | 381 → ( {x : Ordinal } → odef B x → (x ≡ sup1 ) ∨ (x << sup1 )) → sup o≤ sup1 |
382 | |
383 z09 : {b : Ordinal } { A : HOD } → odef A b → b o< & A | |
384 z09 {b} {A} ab = subst (λ k → k o< & A) &iso ( c<→o< (subst (λ k → odef A k ) (sym &iso ) ab)) | |
385 | |
880 | 386 M→S : { A : HOD } { f : Ordinal → Ordinal } {mf : ≤-monotonic-f A f} {y : Ordinal} {ay : odef A y} { x : Ordinal } |
387 → (supf : Ordinal → Ordinal ) | |
966 | 388 → MinSUP A (UnionCF A f mf ay supf x) |
389 → SUP A (UnionCF A f mf ay supf x) | |
390 M→S {A} {f} {mf} {y} {ay} {x} supf ms = record { sup = * (MinSUP.sup ms) | |
950 | 391 ; as = subst (λ k → odef A k) (sym &iso) (MinSUP.asm ms) ; x≤sup = ms00 } where |
880 | 392 msup = MinSUP.sup ms |
393 ms00 : {z : HOD} → UnionCF A f mf ay supf x ∋ z → (z ≡ * msup) ∨ (z < * msup) | |
966 | 394 ms00 {z} uz with MinSUP.x≤sup ms uz |
880 | 395 ... | case1 eq = case1 (subst (λ k → k ≡ _) *iso ( cong (*) eq)) |
396 ... | case2 lt = case2 (subst₂ (λ j k → j < k ) *iso refl lt ) | |
397 | |
867 | 398 |
966 | 399 chain-mono : {A : HOD} ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {y : Ordinal} (ay : odef A y) (supf : Ordinal → Ordinal ) |
919 | 400 (supf-mono : {x y : Ordinal } → x o≤ y → supf x o≤ supf y ) {a b c : Ordinal} → a o≤ b |
908
d917831fb607
supf (supf x) ≡ supf x is bad
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
907
diff
changeset
|
401 → odef (UnionCF A f mf ay supf a) c → odef (UnionCF A f mf ay supf b) c |
966 | 402 chain-mono f mf ay supf supf-mono {a} {b} {c} a≤b ⟪ ua , ch-init fc ⟫ = |
403 ⟪ ua , ch-init fc ⟫ | |
919 | 404 chain-mono f mf ay supf supf-mono {a} {b} {c} a≤b ⟪ uaa , ch-is-sup ua ua<x is-sup fc ⟫ = |
966 | 405 ⟪ uaa , ch-is-sup ua (ordtrans<-≤ ua<x (supf-mono a≤b ) ) is-sup fc ⟫ |
908
d917831fb607
supf (supf x) ≡ supf x is bad
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
907
diff
changeset
|
406 |
966 | 407 record ZChain ( A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) |
783 | 408 {y : Ordinal} (ay : odef A y) ( z : Ordinal ) : Set (Level.suc n) where |
655 | 409 field |
966 | 410 supf : Ordinal → Ordinal |
411 sup=u : {b : Ordinal} → (ab : odef A b) → b o≤ z | |
412 → IsSUP A (UnionCF A f mf ay supf b) ab ∧ (¬ HasPrev A (UnionCF A f mf ay supf b) f b ) → supf b ≡ b | |
880 | 413 |
868 | 414 asupf : {x : Ordinal } → odef A (supf x) |
880 | 415 supf-mono : {x y : Ordinal } → x o≤ y → supf x o≤ supf y |
416 supf-< : {x y : Ordinal } → supf x o< supf y → supf x << supf y | |
891 | 417 supfmax : {x : Ordinal } → z o< x → supf x ≡ supf z |
880 | 418 |
966 | 419 minsup : {x : Ordinal } → x o≤ z → MinSUP A (UnionCF A f mf ay supf x) |
891 | 420 supf-is-minsup : {x : Ordinal } → (x≤z : x o≤ z) → supf x ≡ MinSUP.sup ( minsup x≤z ) |
985
0d8dafbecb0d
zc10 : supf c ≡ supf (& A) → {x : Ordinal } → odef A x → ¬ ( c << x ) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
978
diff
changeset
|
421 csupf : {b : Ordinal } → supf b o< supf z → odef (UnionCF A f mf ay supf z) (supf b) -- supf z is not an element of this chain |
880 | 422 |
608
6655f03984f9
mutual tranfinite in zorn
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
607
diff
changeset
|
423 chain : HOD |
703 | 424 chain = UnionCF A f mf ay supf z |
861 | 425 chain⊆A : chain ⊆' A |
426 chain⊆A = λ lt → proj1 lt | |
934 | 427 |
966 | 428 sup : {x : Ordinal } → x o≤ z → SUP A (UnionCF A f mf ay supf x) |
429 sup {x} x≤z = M→S supf (minsup x≤z) | |
934 | 430 |
431 s=ms : {x : Ordinal } → (x≤z : x o≤ z ) → & (SUP.sup (sup x≤z)) ≡ MinSUP.sup (minsup x≤z) | |
432 s=ms {x} x≤z = &iso | |
878 | 433 |
966 | 434 chain∋init : odef chain y |
435 chain∋init = ⟪ ay , ch-init (init ay refl) ⟫ | |
908
d917831fb607
supf (supf x) ≡ supf x is bad
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
907
diff
changeset
|
436 f-next : {a z : Ordinal} → odef (UnionCF A f mf ay supf z) a → odef (UnionCF A f mf ay supf z) (f a) |
966 | 437 f-next {a} ⟪ aa , ch-init fc ⟫ = ⟪ proj2 (mf a aa) , ch-init (fsuc _ fc) ⟫ |
938 | 438 f-next {a} ⟪ aa , ch-is-sup u u<x is-sup fc ⟫ = ⟪ proj2 (mf a aa) , ch-is-sup u u<x is-sup (fsuc _ fc ) ⟫ |
861 | 439 initial : {z : Ordinal } → odef chain z → * y ≤ * z |
440 initial {a} ⟪ aa , ua ⟫ with ua | |
966 | 441 ... | ch-init fc = s≤fc y f mf fc |
938 | 442 ... | ch-is-sup u u<x is-sup fc = ≤-ftrans (<=to≤ zc7) (s≤fc _ f mf fc) where |
966 | 443 zc7 : y <= supf u |
861 | 444 zc7 = ChainP.fcy<sup is-sup (init ay refl) |
445 f-total : IsTotalOrderSet chain | |
966 | 446 f-total {a} {b} ca cb = subst₂ (λ j k → Tri (j < k) (j ≡ k) (k < j)) *iso *iso uz01 where |
861 | 447 uz01 : Tri (* (& a) < * (& b)) (* (& a) ≡ * (& b)) (* (& b) < * (& a) ) |
966 | 448 uz01 = chain-total A f mf ay supf ( (proj2 ca)) ( (proj2 cb)) |
861 | 449 |
871 | 450 supf-<= : {x y : Ordinal } → supf x <= supf y → supf x o≤ supf y |
451 supf-<= {x} {y} (case1 sx=sy) = o≤-refl0 sx=sy | |
452 supf-<= {x} {y} (case2 sx<sy) with trio< (supf x) (supf y) | |
453 ... | tri< a ¬b ¬c = o<→≤ a | |
454 ... | tri≈ ¬a b ¬c = o≤-refl0 b | |
455 ... | tri> ¬a ¬b c = ⊥-elim (<-irr (case2 sx<sy ) (supf-< c) ) | |
456 | |
966 | 457 supf-inject : {x y : Ordinal } → supf x o< supf y → x o< y |
825 | 458 supf-inject {x} {y} sx<sy with trio< x y |
459 ... | tri< a ¬b ¬c = a | |
460 ... | tri≈ ¬a refl ¬c = ⊥-elim ( o<¬≡ (cong supf refl) sx<sy ) | |
461 ... | tri> ¬a ¬b y<x with osuc-≡< (supf-mono (o<→≤ y<x) ) | |
462 ... | case1 eq = ⊥-elim ( o<¬≡ (sym eq) sx<sy ) | |
463 ... | case2 lt = ⊥-elim ( o<> sx<sy lt ) | |
798 | 464 |
966 | 465 fcy<sup : {u w : Ordinal } → u o≤ z → FClosure A f y w → (w ≡ supf u ) ∨ ( w << supf u ) -- different from order because y o< supf |
466 fcy<sup {u} {w} u≤z fc with MinSUP.x≤sup (minsup u≤z) ⟪ subst (λ k → odef A k ) (sym &iso) (A∋fc {A} y f mf fc) | |
467 , ch-init (subst (λ k → FClosure A f y k) (sym &iso) fc ) ⟫ | |
468 ... | case1 eq = case1 (subst (λ k → k ≡ supf u ) &iso (trans eq (sym (supf-is-minsup u≤z ) ) )) | |
469 ... | case2 lt = case2 (subst₂ (λ j k → j << k ) &iso (sym (supf-is-minsup u≤z )) lt ) | |
965
1c1c6a6ed4fa
removing ch-init is no good because of initialization
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
964
diff
changeset
|
470 |
966 | 471 -- ordering is not proved here but in ZChain1 |
825 | 472 |
966 | 473 IsMinSUP→NotHasPrev : {x sp : Ordinal } → odef A sp |
960 | 474 → ({y : Ordinal} → odef (UnionCF A f mf ay supf x) y → (y ≡ sp ) ∨ (y << sp )) |
475 → ( {a : Ordinal } → a << f a ) | |
476 → ¬ ( HasPrev A (UnionCF A f mf ay supf x) f sp ) | |
477 IsMinSUP→NotHasPrev {x} {sp} asp is-sup <-mono-f hp = ⊥-elim (<-irr ( <=to≤ fsp≤sp) sp<fsp ) where | |
478 sp<fsp : sp << f sp | |
966 | 479 sp<fsp = <-mono-f |
480 pr = HasPrev.y hp | |
960 | 481 im00 : f (f pr) <= sp |
482 im00 = is-sup ( f-next (f-next (HasPrev.ay hp))) | |
483 fsp≤sp : f sp <= sp | |
484 fsp≤sp = subst (λ k → f k <= sp ) (sym (HasPrev.x=fy hp)) im00 | |
485 | |
969 | 486 UChain⊆ : ( A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) |
487 {z y : Ordinal} (ay : odef A y) { supf supf1 : Ordinal → Ordinal } | |
488 → (supf-mono : {x y : Ordinal } → x o≤ y → supf x o≤ supf y ) | |
966 | 489 → ( { x : Ordinal } → x o< z → supf x ≡ supf1 x) |
490 → ( { x : Ordinal } → z o≤ x → supf z o≤ supf1 x) | |
491 → UnionCF A f mf ay supf z ⊆' UnionCF A f mf ay supf1 z | |
969 | 492 UChain⊆ A f mf {z} {y} ay {supf} {supf1} supf-mono eq<x lex ⟪ az , ch-init fc ⟫ = ⟪ az , ch-init fc ⟫ |
978 | 493 UChain⊆ A f mf {z} {y} ay {supf} {supf1} supf-mono eq<x lex ⟪ az , ch-is-sup u {x} u<x is-sup fc ⟫ = ⟪ az , ch-is-sup u u<x1 cp1 fc1 ⟫ where |
966 | 494 u<x0 : u o< z |
978 | 495 u<x0 = supf-inject0 supf-mono u<x |
966 | 496 u<x1 : supf1 u o< supf1 z |
497 u<x1 = subst (λ k → k o< supf1 z ) (eq<x u<x0) (ordtrans<-≤ u<x (lex o≤-refl ) ) | |
498 fc1 : FClosure A f (supf1 u) x | |
499 fc1 = subst (λ k → FClosure A f k x ) (eq<x u<x0) fc | |
500 uc01 : {s : Ordinal } → supf1 s o< supf1 u → s o< z | |
501 uc01 {s} s<u with trio< s z | |
502 ... | tri< a ¬b ¬c = a | |
503 ... | tri≈ ¬a b ¬c = ⊥-elim ( o≤> uc02 s<u ) where -- (supf-mono (o<→≤ u<x0)) | |
504 uc02 : supf1 u o≤ supf1 s | |
505 uc02 = begin | |
506 supf1 u <⟨ u<x1 ⟩ | |
507 supf1 z ≡⟨ cong supf1 (sym b) ⟩ | |
508 supf1 s ∎ where open o≤-Reasoning O | |
509 ... | tri> ¬a ¬b c = ⊥-elim ( o≤> uc03 s<u ) where | |
510 uc03 : supf1 u o≤ supf1 s | |
511 uc03 = begin | |
512 supf1 u ≡⟨ sym (eq<x u<x0) ⟩ | |
513 supf u <⟨ u<x ⟩ | |
514 supf z ≤⟨ lex (o<→≤ c) ⟩ | |
515 supf1 s ∎ where open o≤-Reasoning O | |
516 cp1 : ChainP A f mf ay supf1 u | |
517 cp1 = record { fcy<sup = λ {z} fc → subst (λ k → (z ≡ k) ∨ ( z << k ) ) (eq<x u<x0) (ChainP.fcy<sup is-sup fc ) | |
518 ; order = λ {s} {z} s<u fc → subst (λ k → (z ≡ k) ∨ ( z << k ) ) (eq<x u<x0) | |
519 (ChainP.order is-sup (subst₂ (λ j k → j o< k ) (sym (eq<x (uc01 s<u) )) (sym (eq<x u<x0)) s<u) | |
520 (subst (λ k → FClosure A f k z ) (sym (eq<x (uc01 s<u) )) fc )) | |
521 ; supu=u = trans (sym (eq<x u<x0)) (ChainP.supu=u is-sup) } | |
522 | |
523 record ZChain1 ( A : HOD ) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) | |
783 | 524 {y : Ordinal} (ay : odef A y) (zc : ZChain A f mf ay (& A)) ( z : Ordinal ) : Set (Level.suc n) where |
869 | 525 supf = ZChain.supf zc |
728 | 526 field |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
527 is-max : {a b : Ordinal } → (ca : odef (UnionCF A f mf ay supf z) a ) → b o< z → (ab : odef A b) |
966 | 528 → HasPrev A (UnionCF A f mf ay supf z) f b ∨ IsSUP A (UnionCF A f mf ay supf b) ab |
869 | 529 → * a < * b → odef ((UnionCF A f mf ay supf z)) b |
949 | 530 order : {b s z1 : Ordinal} → b o< & A → supf s o< supf b → FClosure A f (supf s) z1 → (z1 ≡ supf b) ∨ (z1 << supf b) |
531 | |
568 | 532 record Maximal ( A : HOD ) : Set (Level.suc n) where |
533 field | |
534 maximal : HOD | |
804 | 535 as : A ∋ maximal |
568 | 536 ¬maximal<x : {x : HOD} → A ∋ x → ¬ maximal < x -- A is Partial, use negative |
567 | 537 |
966 | 538 init-uchain : (A : HOD) ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) {y : Ordinal } → (ay : odef A y ) |
539 { supf : Ordinal → Ordinal } { x : Ordinal } → odef (UnionCF A f mf ay supf x) y | |
540 init-uchain A f mf ay = ⟪ ay , ch-init (init ay refl) ⟫ | |
541 | |
542 Zorn-lemma : { A : HOD } | |
543 → o∅ o< & A | |
568 | 544 → ( ( B : HOD) → (B⊆A : B ⊆' A) → IsTotalOrderSet B → SUP A B ) -- SUP condition |
966 | 545 → Maximal A |
552 | 546 Zorn-lemma {A} 0<A supP = zorn00 where |
571 | 547 <-irr0 : {a b : HOD} → A ∋ a → A ∋ b → (a ≡ b ) ∨ (a < b ) → b < a → ⊥ |
548 <-irr0 {a} {b} A∋a A∋b = <-irr | |
788 | 549 z07 : {y : Ordinal} {A : HOD } → {P : Set n} → odef A y ∧ P → y o< & A |
550 z07 {y} {A} p = subst (λ k → k o< & A) &iso ( c<→o< (subst (λ k → odef A k ) (sym &iso ) (proj1 p ))) | |
530 | 551 s : HOD |
966 | 552 s = ODC.minimal O A (λ eq → ¬x<0 ( subst (λ k → o∅ o< k ) (=od∅→≡o∅ eq) 0<A )) |
568 | 553 as : A ∋ * ( & s ) |
554 as = subst (λ k → odef A (& k) ) (sym *iso) ( ODC.x∋minimal O A (λ eq → ¬x<0 ( subst (λ k → o∅ o< k ) (=od∅→≡o∅ eq) 0<A )) ) | |
608
6655f03984f9
mutual tranfinite in zorn
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
607
diff
changeset
|
555 as0 : odef A (& s ) |
6655f03984f9
mutual tranfinite in zorn
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
607
diff
changeset
|
556 as0 = subst (λ k → odef A k ) &iso as |
547 | 557 s<A : & s o< & A |
568 | 558 s<A = c<→o< (subst (λ k → odef A (& k) ) *iso as ) |
530 | 559 HasMaximal : HOD |
966 | 560 HasMaximal = record { od = record { def = λ x → odef A x ∧ ( (m : Ordinal) → odef A m → ¬ (* x < * m)) } ; odmax = & A ; <odmax = z07 } |
537 | 561 no-maximum : HasMaximal =h= od∅ → (x : Ordinal) → odef A x ∧ ((m : Ordinal) → odef A m → odef A x ∧ (¬ (* x < * m) )) → ⊥ |
966 | 562 no-maximum nomx x P = ¬x<0 (eq→ nomx {x} ⟪ proj1 P , (λ m ma p → proj2 ( proj2 P m ma ) p ) ⟫ ) |
532 | 563 Gtx : { x : HOD} → A ∋ x → HOD |
966 | 564 Gtx {x} ax = record { od = record { def = λ y → odef A y ∧ (x < (* y)) } ; odmax = & A ; <odmax = z07 } |
537 | 565 z08 : ¬ Maximal A → HasMaximal =h= od∅ |
804 | 566 z08 nmx = record { eq→ = λ {x} lt → ⊥-elim ( nmx record {maximal = * x ; as = subst (λ k → odef A k) (sym &iso) (proj1 lt) |
537 | 567 ; ¬maximal<x = λ {y} ay → subst (λ k → ¬ (* x < k)) *iso (proj2 lt (& y) ay) } ) ; eq← = λ {y} lt → ⊥-elim ( ¬x<0 lt )} |
568 x-is-maximal : ¬ Maximal A → {x : Ordinal} → (ax : odef A x) → & (Gtx (subst (λ k → odef A k ) (sym &iso) ax)) ≡ o∅ → (m : Ordinal) → odef A m → odef A x ∧ (¬ (* x < * m)) | |
569 x-is-maximal nmx {x} ax nogt m am = ⟪ subst (λ k → odef A k) &iso (subst (λ k → odef A k ) (sym &iso) ax) , ¬x<m ⟫ where | |
570 ¬x<m : ¬ (* x < * m) | |
966 | 571 ¬x<m x<m = ∅< {Gtx (subst (λ k → odef A k ) (sym &iso) ax)} {* m} ⟪ subst (λ k → odef A k) (sym &iso) am , subst (λ k → * x < k ) (cong (*) (sym &iso)) x<m ⟫ (≡o∅→=od∅ nogt) |
543 | 572 |
966 | 573 minsupP : ( B : HOD) → (B⊆A : B ⊆' A) → IsTotalOrderSet B → MinSUP A B |
879 | 574 minsupP B B⊆A total = m02 where |
575 xsup : (sup : Ordinal ) → Set n | |
576 xsup sup = {w : Ordinal } → odef B w → (w ≡ sup ) ∨ (w << sup ) | |
577 ∀-imply-or : {A : Ordinal → Set n } {B : Set n } | |
578 → ((x : Ordinal ) → A x ∨ B) → ((x : Ordinal ) → A x) ∨ B | |
579 ∀-imply-or {A} {B} ∀AB with ODC.p∨¬p O ((x : Ordinal ) → A x) -- LEM | |
580 ∀-imply-or {A} {B} ∀AB | case1 t = case1 t | |
581 ∀-imply-or {A} {B} ∀AB | case2 x = case2 (lemma (λ not → x not )) where | |
582 lemma : ¬ ((x : Ordinal ) → A x) → B | |
583 lemma not with ODC.p∨¬p O B | |
584 lemma not | case1 b = b | |
585 lemma not | case2 ¬b = ⊥-elim (not (λ x → dont-orb (∀AB x) ¬b )) | |
586 m00 : (x : Ordinal ) → ( ( z : Ordinal) → z o< x → ¬ (odef A z ∧ xsup z) ) ∨ MinSUP A B | |
587 m00 x = TransFinite0 ind x where | |
588 ind : (x : Ordinal) → ((z : Ordinal) → z o< x → ( ( w : Ordinal) → w o< z → ¬ (odef A w ∧ xsup w )) ∨ MinSUP A B) | |
589 → ( ( w : Ordinal) → w o< x → ¬ (odef A w ∧ xsup w) ) ∨ MinSUP A B | |
590 ind x prev = ∀-imply-or m01 where | |
591 m01 : (z : Ordinal) → (z o< x → ¬ (odef A z ∧ xsup z)) ∨ MinSUP A B | |
592 m01 z with trio< z x | |
593 ... | tri≈ ¬a b ¬c = case1 ( λ lt → ⊥-elim ( ¬a lt ) ) | |
594 ... | tri> ¬a ¬b c = case1 ( λ lt → ⊥-elim ( ¬a lt ) ) | |
595 ... | tri< a ¬b ¬c with prev z a | |
596 ... | case2 mins = case2 mins | |
597 ... | case1 not with ODC.p∨¬p O (odef A z ∧ xsup z) | |
950 | 598 ... | case1 mins = case2 record { sup = z ; asm = proj1 mins ; x≤sup = proj2 mins ; minsup = m04 } where |
879 | 599 m04 : {sup1 : Ordinal} → odef A sup1 → ({w : Ordinal} → odef B w → (w ≡ sup1) ∨ (w << sup1)) → z o≤ sup1 |
600 m04 {s} as lt with trio< z s | |
601 ... | tri< a ¬b ¬c = o<→≤ a | |
602 ... | tri≈ ¬a b ¬c = o≤-refl0 b | |
603 ... | tri> ¬a ¬b s<z = ⊥-elim ( not s s<z ⟪ as , lt ⟫ ) | |
604 ... | case2 notz = case1 (λ _ → notz ) | |
605 m03 : ¬ ((z : Ordinal) → z o< & A → ¬ odef A z ∧ xsup z) | |
606 m03 not = ⊥-elim ( not s1 (z09 (SUP.as S)) ⟪ SUP.as S , m05 ⟫ ) where | |
607 S : SUP A B | |
608 S = supP B B⊆A total | |
609 s1 = & (SUP.sup S) | |
610 m05 : {w : Ordinal } → odef B w → (w ≡ s1 ) ∨ (w << s1 ) | |
950 | 611 m05 {w} bw with SUP.x≤sup S {* w} (subst (λ k → odef B k) (sym &iso) bw ) |
879 | 612 ... | case1 eq = case1 ( subst₂ (λ j k → j ≡ k ) &iso refl (cong (&) eq) ) |
613 ... | case2 lt = case2 ( subst (λ k → _ < k ) (sym *iso) lt ) | |
966 | 614 m02 : MinSUP A B |
879 | 615 m02 = dont-or (m00 (& A)) m03 |
616 | |
560 | 617 -- Uncountable ascending chain by axiom of choice |
530 | 618 cf : ¬ Maximal A → Ordinal → Ordinal |
532 | 619 cf nmx x with ODC.∋-p O A (* x) |
620 ... | no _ = o∅ | |
621 ... | yes ax with is-o∅ (& ( Gtx ax )) | |
538 | 622 ... | yes nogt = -- no larger element, so it is maximal |
623 ⊥-elim (no-maximum (z08 nmx) x ⟪ subst (λ k → odef A k) &iso ax , x-is-maximal nmx (subst (λ k → odef A k ) &iso ax) nogt ⟫ ) | |
532 | 624 ... | no not = & (ODC.minimal O (Gtx ax) (λ eq → not (=od∅→≡o∅ eq))) |
537 | 625 is-cf : (nmx : ¬ Maximal A ) → {x : Ordinal} → odef A x → odef A (cf nmx x) ∧ ( * x < * (cf nmx x) ) |
626 is-cf nmx {x} ax with ODC.∋-p O A (* x) | |
627 ... | no not = ⊥-elim ( not (subst (λ k → odef A k ) (sym &iso) ax )) | |
628 ... | yes ax with is-o∅ (& ( Gtx ax )) | |
629 ... | yes nogt = ⊥-elim (no-maximum (z08 nmx) x ⟪ subst (λ k → odef A k) &iso ax , x-is-maximal nmx (subst (λ k → odef A k ) &iso ax) nogt ⟫ ) | |
630 ... | no not = ODC.x∋minimal O (Gtx ax) (λ eq → not (=od∅→≡o∅ eq)) | |
606 | 631 |
632 --- | |
633 --- infintie ascention sequence of f | |
634 --- | |
530 | 635 cf-is-<-monotonic : (nmx : ¬ Maximal A ) → (x : Ordinal) → odef A x → ( * x < * (cf nmx x) ) ∧ odef A (cf nmx x ) |
537 | 636 cf-is-<-monotonic nmx x ax = ⟪ proj2 (is-cf nmx ax ) , proj1 (is-cf nmx ax ) ⟫ |
530 | 637 cf-is-≤-monotonic : (nmx : ¬ Maximal A ) → ≤-monotonic-f A ( cf nmx ) |
532 | 638 cf-is-≤-monotonic nmx x ax = ⟪ case2 (proj1 ( cf-is-<-monotonic nmx x ax )) , proj2 ( cf-is-<-monotonic nmx x ax ) ⟫ |
543 | 639 |
803 | 640 -- |
953 | 641 -- maximality of chain |
642 -- | |
643 -- supf is fixed for z ≡ & A , we can prove order and is-max | |
803 | 644 -- |
645 | |
966 | 646 SZ1 : ( f : Ordinal → Ordinal ) (mf : ≤-monotonic-f A f) |
728 | 647 {init : Ordinal} (ay : odef A init) (zc : ZChain A f mf ay (& A)) (x : Ordinal) → ZChain1 A f mf ay zc x |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
648 SZ1 f mf {y} ay zc x = TransFinite { λ x → ZChain1 A f mf ay zc x } zc1 x where |
900 | 649 chain-mono1 : {a b c : Ordinal} → a o≤ b |
788 | 650 → odef (UnionCF A f mf ay (ZChain.supf zc) a) c → odef (UnionCF A f mf ay (ZChain.supf zc) b) c |
919 | 651 chain-mono1 {a} {b} {c} a≤b = chain-mono f mf ay (ZChain.supf zc) (ZChain.supf-mono zc) a≤b |
966 | 652 is-max-hp : (x : Ordinal) {a : Ordinal} {b : Ordinal} → odef (UnionCF A f mf ay (ZChain.supf zc) x) a → (ab : odef A b) |
653 → HasPrev A (UnionCF A f mf ay (ZChain.supf zc) x) f b | |
920 | 654 → * a < * b → odef (UnionCF A f mf ay (ZChain.supf zc) x) b |
655 is-max-hp x {a} {b} ua ab has-prev a<b with HasPrev.ay has-prev | |
966 | 656 ... | ⟪ ab0 , ch-init fc ⟫ = ⟪ ab , ch-init ( subst (λ k → FClosure A f y k) (sym (HasPrev.x=fy has-prev)) (fsuc _ fc )) ⟫ |
938 | 657 ... | ⟪ ab0 , ch-is-sup u u<x is-sup fc ⟫ = ⟪ ab , subst (λ k → UChain A f mf ay (ZChain.supf zc) x k ) |
966 | 658 (sym (HasPrev.x=fy has-prev)) ( ch-is-sup u u<x is-sup (fsuc _ fc)) ⟫ |
868 | 659 |
869 | 660 supf = ZChain.supf zc |
661 | |
920 | 662 csupf-fc : {b s z1 : Ordinal} → b o< & A → supf s o< supf b → FClosure A f (supf s) z1 → UnionCF A f mf ay supf b ∋ * z1 |
663 csupf-fc {b} {s} {z1} b<z ss<sb (init x refl ) = subst (λ k → odef (UnionCF A f mf ay supf b) k ) (sym &iso) zc05 where | |
869 | 664 s<b : s o< b |
665 s<b = ZChain.supf-inject zc ss<sb | |
920 | 666 s<z : s o< & A |
667 s<z = ordtrans s<b b<z | |
870 | 668 zc04 : odef (UnionCF A f mf ay supf (& A)) (supf s) |
986 | 669 zc04 = ZChain.csupf zc (ordtrans<-≤ ss<sb (ZChain.supf-mono zc (o<→≤ b<z))) |
869 | 670 zc05 : odef (UnionCF A f mf ay supf b) (supf s) |
671 zc05 with zc04 | |
966 | 672 ... | ⟪ as , ch-init fc ⟫ = ⟪ as , ch-init fc ⟫ |
938 | 673 ... | ⟪ as , ch-is-sup u u<x is-sup fc ⟫ = ⟪ as , ch-is-sup u zc08 is-sup fc ⟫ where |
870 | 674 zc07 : FClosure A f (supf u) (supf s) -- supf u ≤ supf s → supf u o≤ supf s |
675 zc07 = fc | |
869 | 676 zc06 : supf u ≡ u |
677 zc06 = ChainP.supu=u is-sup | |
966 | 678 zc08 : supf u o< supf b |
894 | 679 zc08 = ordtrans≤-< (ZChain.supf-<= zc (≤to<= ( s≤fc _ f mf fc ))) ss<sb |
869 | 680 csupf-fc {b} {s} {z1} b<z ss≤sb (fsuc x fc) = subst (λ k → odef (UnionCF A f mf ay supf b) k ) (sym &iso) zc04 where |
681 zc04 : odef (UnionCF A f mf ay supf b) (f x) | |
682 zc04 with subst (λ k → odef (UnionCF A f mf ay supf b) k ) &iso (csupf-fc b<z ss≤sb fc ) | |
966 | 683 ... | ⟪ as , ch-init fc ⟫ = ⟪ proj2 (mf _ as) , ch-init (fsuc _ fc) ⟫ |
684 ... | ⟪ as , ch-is-sup u u<x is-sup fc ⟫ = ⟪ proj2 (mf _ as) , ch-is-sup u u<x is-sup (fsuc _ fc) ⟫ | |
869 | 685 order : {b s z1 : Ordinal} → b o< & A → supf s o< supf b → FClosure A f (supf s) z1 → (z1 ≡ supf b) ∨ (z1 << supf b) |
686 order {b} {s} {z1} b<z ss<sb fc = zc04 where | |
891 | 687 zc00 : ( z1 ≡ MinSUP.sup (ZChain.minsup zc (o<→≤ b<z) )) ∨ ( z1 << MinSUP.sup ( ZChain.minsup zc (o<→≤ b<z) ) ) |
950 | 688 zc00 = MinSUP.x≤sup (ZChain.minsup zc (o<→≤ b<z) ) (subst (λ k → odef (UnionCF A f mf ay (ZChain.supf zc) b) k ) &iso (csupf-fc b<z ss<sb fc )) |
870 | 689 -- supf (supf b) ≡ supf b |
869 | 690 zc04 : (z1 ≡ supf b) ∨ (z1 << supf b) |
691 zc04 with zc00 | |
892 | 692 ... | case1 eq = case1 (subst₂ (λ j k → j ≡ k ) refl (sym (ZChain.supf-is-minsup zc (o<→≤ b<z)) ) eq ) |
693 ... | case2 lt = case2 (subst₂ (λ j k → j < * k ) refl (sym (ZChain.supf-is-minsup zc (o<→≤ b<z) )) lt ) | |
868 | 694 |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
695 zc1 : (x : Ordinal) → ((y : Ordinal) → y o< x → ZChain1 A f mf ay zc y) → ZChain1 A f mf ay zc x |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
696 zc1 x prev with Oprev-p x |
949 | 697 ... | yes op = record { is-max = is-max ; order = order } where |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
698 px = Oprev.oprev op |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
699 is-max : {a : Ordinal} {b : Ordinal} → odef (UnionCF A f mf ay supf x) a → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
700 b o< x → (ab : odef A b) → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
701 HasPrev A (UnionCF A f mf ay supf x) f b ∨ IsSUP A (UnionCF A f mf ay supf b) ab → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
702 * a < * b → odef (UnionCF A f mf ay supf x) b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
703 is-max {a} {b} ua b<x ab P a<b with ODC.or-exclude O P |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
704 is-max {a} {b} ua b<x ab P a<b | case1 has-prev = is-max-hp x {a} {b} ua ab has-prev a<b |
989 | 705 is-max {a} {b} ua b<x ab P a<b | case2 is-sup with osuc-≡< (ZChain.supf-mono zc (o<→≤ b<x)) |
706 ... | case2 sb<sx = ⟪ ab , ch-is-sup b sb<sx m06 (subst (λ k → FClosure A f k b) (sym m05) (init ab refl)) ⟫ where | |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
707 b<A : b o< & A |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
708 b<A = z09 ab |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
709 m04 : ¬ HasPrev A (UnionCF A f mf ay supf b) f b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
710 m04 nhp = proj1 is-sup ( record { ax = HasPrev.ax nhp ; y = HasPrev.y nhp ; ay = |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
711 chain-mono1 (o<→≤ b<x) (HasPrev.ay nhp) ; x=fy = HasPrev.x=fy nhp } ) |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
712 m05 : ZChain.supf zc b ≡ b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
713 m05 = ZChain.sup=u zc ab (o<→≤ (z09 ab) ) ⟪ record { x≤sup = λ {z} uz → IsSUP.x≤sup (proj2 is-sup) uz } , m04 ⟫ |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
714 m08 : {z : Ordinal} → (fcz : FClosure A f y z ) → z <= ZChain.supf zc b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
715 m08 {z} fcz = ZChain.fcy<sup zc (o<→≤ b<A) fcz |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
716 m09 : {s z1 : Ordinal} → ZChain.supf zc s o< ZChain.supf zc b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
717 → FClosure A f (ZChain.supf zc s) z1 → z1 <= ZChain.supf zc b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
718 m09 {s} {z} s<b fcz = order b<A s<b fcz |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
719 m06 : ChainP A f mf ay supf b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
720 m06 = record { fcy<sup = m08 ; order = m09 ; supu=u = m05 } |
989 | 721 ... | case1 sb=sx = ? where |
722 m09 : IsSUP A (UnionCF A f mf ay (ZChain.supf zc) b) ab | |
723 m09 = proj2 is-sup | |
724 m04 : ¬ HasPrev A (UnionCF A f mf ay supf b) f b | |
725 m04 nhp = proj1 is-sup ( record { ax = HasPrev.ax nhp ; y = HasPrev.y nhp ; ay = | |
726 chain-mono1 (o<→≤ b<x) (HasPrev.ay nhp) ; x=fy = HasPrev.x=fy nhp } ) | |
727 m05 : ZChain.supf zc b ≡ b | |
728 m05 = ZChain.sup=u zc ab (o<→≤ (z09 ab) ) ⟪ record { x≤sup = λ {z} uz → IsSUP.x≤sup (proj2 is-sup) uz } , m04 ⟫ | |
729 | |
730 m07 : MinSUP A (UnionCF A f mf ay supf (supf x)) -- supf z o< supf ( supf x ) | |
731 m07 = ZChain.minsup zc (o<→≤ (z09 (ZChain.asupf zc))) | |
732 m08 : MinSUP A (UnionCF A f mf ay supf b) | |
733 m08 = ZChain.minsup zc (o<→≤ (z09 ab)) -- supf z o< supf b | |
734 | |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
735 ... | no lim = record { is-max = is-max ; order = order } where |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
736 is-max : {a : Ordinal} {b : Ordinal} → odef (UnionCF A f mf ay supf x) a → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
737 b o< x → (ab : odef A b) → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
738 HasPrev A (UnionCF A f mf ay supf x) f b ∨ IsSUP A (UnionCF A f mf ay supf b) ab → |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
739 * a < * b → odef (UnionCF A f mf ay supf x) b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
740 is-max {a} {b} ua b<x ab P a<b with ODC.or-exclude O P |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
741 is-max {a} {b} ua b<x ab P a<b | case1 has-prev = is-max-hp x {a} {b} ua ab has-prev a<b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
742 is-max {a} {b} ua b<x ab P a<b | case2 is-sup with IsSUP.x≤sup (proj2 is-sup) (init-uchain A f mf ay ) |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
743 ... | case1 b=y = ⟪ subst (λ k → odef A k ) b=y ay , ch-init (subst (λ k → FClosure A f y k ) b=y (init ay refl )) ⟫ |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
744 ... | case2 y<b = ⟪ ab , ch-is-sup b sb<sx m06 (subst (λ k → FClosure A f k b) (sym m05) (init ab refl)) ⟫ where |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
745 m09 : b o< & A |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
746 m09 = subst (λ k → k o< & A) &iso ( c<→o< (subst (λ k → odef A k ) (sym &iso ) ab)) |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
747 sb<sx : supf b o< supf x |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
748 sb<sx = ? |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
749 m07 : {z : Ordinal} → FClosure A f y z → z <= ZChain.supf zc b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
750 m07 {z} fc = ZChain.fcy<sup zc (o<→≤ m09) fc |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
751 m08 : {s z1 : Ordinal} → ZChain.supf zc s o< ZChain.supf zc b |
825 | 752 → FClosure A f (ZChain.supf zc s) z1 → z1 <= ZChain.supf zc b |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
753 m08 {s} {z1} s<b fc = order m09 s<b fc |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
754 m04 : ¬ HasPrev A (UnionCF A f mf ay supf b) f b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
755 m04 nhp = proj1 is-sup ( record { ax = HasPrev.ax nhp ; y = HasPrev.y nhp ; ay = |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
756 chain-mono1 (o<→≤ b<x) (HasPrev.ay nhp) |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
757 ; x=fy = HasPrev.x=fy nhp } ) |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
758 m05 : ZChain.supf zc b ≡ b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
759 m05 = ZChain.sup=u zc ab (o<→≤ m09) ⟪ record { x≤sup = λ lt → IsSUP.x≤sup (proj2 is-sup) lt } , m04 ⟫ -- ZChain on x |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
760 m06 : ChainP A f mf ay supf b |
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
761 m06 = record { fcy<sup = m07 ; order = m08 ; supu=u = m05 } |
727 | 762 |
757 | 763 uchain : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {y : Ordinal} (ay : odef A y) → HOD |
966 | 764 uchain f mf {y} ay = record { od = record { def = λ x → FClosure A f y x } ; odmax = & A ; <odmax = |
757 | 765 λ {z} cz → subst (λ k → k o< & A) &iso ( c<→o< (subst (λ k → odef A k ) (sym &iso ) (A∋fc y f mf cz ))) } |
766 | |
966 | 767 utotal : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {y : Ordinal} (ay : odef A y) |
757 | 768 → IsTotalOrderSet (uchain f mf ay) |
966 | 769 utotal f mf {y} ay {a} {b} ca cb = subst₂ (λ j k → Tri (j < k) (j ≡ k) (k < j)) *iso *iso uz01 where |
757 | 770 uz01 : Tri (* (& a) < * (& b)) (* (& a) ≡ * (& b)) (* (& b) < * (& a) ) |
771 uz01 = fcn-cmp y f mf ca cb | |
772 | |
966 | 773 ysup : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {y : Ordinal} (ay : odef A y) |
928 | 774 → MinSUP A (uchain f mf ay) |
966 | 775 ysup f mf {y} ay = minsupP (uchain f mf ay) (λ lt → A∋fc y f mf lt) (utotal f mf ay) |
757 | 776 |
965
1c1c6a6ed4fa
removing ch-init is no good because of initialization
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
964
diff
changeset
|
777 |
793 | 778 SUP⊆ : { B C : HOD } → B ⊆' C → SUP A C → SUP A B |
950 | 779 SUP⊆ {B} {C} B⊆C sup = record { sup = SUP.sup sup ; as = SUP.as sup ; x≤sup = λ lt → SUP.x≤sup sup (B⊆C lt) } |
711 | 780 |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
781 record xSUP (B : HOD) (f : Ordinal → Ordinal ) (x : Ordinal) : Set n where |
833 | 782 field |
783 ax : odef A x | |
960 | 784 is-sup : IsMinSUP A B f ax |
833 | 785 |
560 | 786 -- |
547 | 787 -- create all ZChains under o< x |
560 | 788 -- |
608
6655f03984f9
mutual tranfinite in zorn
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
607
diff
changeset
|
789 |
966 | 790 ind : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {y : Ordinal} (ay : odef A y) → (x : Ordinal) |
703 | 791 → ((z : Ordinal) → z o< x → ZChain A f mf ay z) → ZChain A f mf ay x |
707 | 792 ind f mf {y} ay x prev with Oprev-p x |
954 | 793 ... | yes op = zc41 where |
682 | 794 -- |
795 -- we have previous ordinal to use induction | |
796 -- | |
797 px = Oprev.oprev op | |
703 | 798 zc : ZChain A f mf ay (Oprev.oprev op) |
966 | 799 zc = prev px (subst (λ k → px o< k) (Oprev.oprev=x op) <-osuc ) |
682 | 800 px<x : px o< x |
801 px<x = subst (λ k → px o< k) (Oprev.oprev=x op) <-osuc | |
918
4c33f8383d7d
supf px o< px is in csupf
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
911
diff
changeset
|
802 opx=x : osuc px ≡ x |
4c33f8383d7d
supf px o< px is in csupf
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
911
diff
changeset
|
803 opx=x = Oprev.oprev=x op |
4c33f8383d7d
supf px o< px is in csupf
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
911
diff
changeset
|
804 |
709 | 805 zc-b<x : (b : Ordinal ) → b o< x → b o< osuc px |
966 | 806 zc-b<x b lt = subst (λ k → b o< k ) (sym (Oprev.oprev=x op)) lt |
697 | 807 |
754 | 808 supf0 = ZChain.supf zc |
869 | 809 pchain : HOD |
810 pchain = UnionCF A f mf ay supf0 px | |
835 | 811 |
966 | 812 supf-mono : {a b : Ordinal } → a o≤ b → supf0 a o≤ supf0 b |
857 | 813 supf-mono = ZChain.supf-mono zc |
844 | 814 |
861 | 815 zc04 : {b : Ordinal} → b o≤ x → (b o≤ px ) ∨ (b ≡ x ) |
966 | 816 zc04 {b} b≤x with trio< b px |
861 | 817 ... | tri< a ¬b ¬c = case1 (o<→≤ a) |
818 ... | tri≈ ¬a b ¬c = case1 (o≤-refl0 b) | |
819 ... | tri> ¬a ¬b px<b with osuc-≡< b≤x | |
820 ... | case1 eq = case2 eq | |
966 | 821 ... | case2 b<x = ⊥-elim ( ¬p<x<op ⟪ px<b , subst (λ k → b o< k ) (sym (Oprev.oprev=x op)) b<x ⟫ ) |
840 | 822 |
954 | 823 -- |
824 -- find the next value of supf | |
825 -- | |
826 | |
827 pchainpx : HOD | |
966 | 828 pchainpx = record { od = record { def = λ z → (odef A z ∧ UChain A f mf ay supf0 px z ) |
954 | 829 ∨ FClosure A f (supf0 px) z } ; odmax = & A ; <odmax = zc00 } where |
830 zc00 : {z : Ordinal } → (odef A z ∧ UChain A f mf ay supf0 px z ) ∨ FClosure A f (supf0 px) z → z o< & A | |
966 | 831 zc00 {z} (case1 lt) = z07 lt |
954 | 832 zc00 {z} (case2 fc) = z09 ( A∋fc (supf0 px) f mf fc ) |
833 | |
834 zc02 : { a b : Ordinal } → odef A a ∧ UChain A f mf ay supf0 px a → FClosure A f (supf0 px) b → a <= b | |
835 zc02 {a} {b} ca fb = zc05 fb where | |
836 zc06 : MinSUP.sup (ZChain.minsup zc o≤-refl) ≡ supf0 px | |
837 zc06 = trans (sym ( ZChain.supf-is-minsup zc o≤-refl )) refl | |
838 zc05 : {b : Ordinal } → FClosure A f (supf0 px) b → a <= b | |
839 zc05 (fsuc b1 fb ) with proj1 ( mf b1 (A∋fc (supf0 px) f mf fb )) | |
840 ... | case1 eq = subst (λ k → a <= k ) (subst₂ (λ j k → j ≡ k) &iso &iso (cong (&) eq)) (zc05 fb) | |
966 | 841 ... | case2 lt = <=-trans (zc05 fb) (case2 lt) |
842 zc05 (init b1 refl) with MinSUP.x≤sup (ZChain.minsup zc o≤-refl) | |
954 | 843 (subst (λ k → odef A k ∧ UChain A f mf ay supf0 px k) (sym &iso) ca ) |
844 ... | case1 eq = case1 (subst₂ (λ j k → j ≡ k ) &iso zc06 eq ) | |
966 | 845 ... | case2 lt = case2 (subst₂ (λ j k → j < k ) *iso (cong (*) zc06) lt ) |
846 | |
954 | 847 ptotal : IsTotalOrderSet pchainpx |
966 | 848 ptotal (case1 a) (case1 b) = subst₂ (λ j k → Tri (j < k) (j ≡ k) (k < j)) *iso *iso |
849 (chain-total A f mf ay supf0 (proj2 a) (proj2 b)) | |
954 | 850 ptotal {a0} {b0} (case1 a) (case2 b) with zc02 a b |
851 ... | case1 eq = tri≈ (<-irr (case1 (sym eq1))) eq1 (<-irr (case1 eq1)) where | |
852 eq1 : a0 ≡ b0 | |
853 eq1 = subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) eq ) | |
854 ... | case2 lt = tri< lt1 (λ eq → <-irr (case1 (sym eq)) lt1) (<-irr (case2 lt1)) where | |
855 lt1 : a0 < b0 | |
856 lt1 = subst₂ (λ j k → j < k ) *iso *iso lt | |
857 ptotal {b0} {a0} (case2 b) (case1 a) with zc02 a b | |
858 ... | case1 eq = tri≈ (<-irr (case1 eq1)) (sym eq1) (<-irr (case1 (sym eq1))) where | |
859 eq1 : a0 ≡ b0 | |
860 eq1 = subst₂ (λ j k → j ≡ k ) *iso *iso (cong (*) eq ) | |
861 ... | case2 lt = tri> (<-irr (case2 lt1)) (λ eq → <-irr (case1 eq) lt1) lt1 where | |
862 lt1 : a0 < b0 | |
863 lt1 = subst₂ (λ j k → j < k ) *iso *iso lt | |
864 ptotal (case2 a) (case2 b) = subst₂ (λ j k → Tri (j < k) (j ≡ k) (k < j)) *iso *iso (fcn-cmp (supf0 px) f mf a b) | |
966 | 865 |
954 | 866 pcha : pchainpx ⊆' A |
867 pcha (case1 lt) = proj1 lt | |
868 pcha (case2 fc) = A∋fc _ f mf fc | |
966 | 869 |
870 sup1 : MinSUP A pchainpx | |
954 | 871 sup1 = minsupP pchainpx pcha ptotal |
872 sp1 = MinSUP.sup sup1 | |
873 | |
972 | 874 sfpx<=sp1 : supf0 px <= sp1 |
875 sfpx<=sp1 = MinSUP.x≤sup sup1 (case2 (init (ZChain.asupf zc {px}) refl )) | |
876 | |
877 sfpx≤sp1 : supf0 px o≤ sp1 | |
878 sfpx≤sp1 = subst ( λ k → k o≤ sp1) (sym (ZChain.supf-is-minsup zc o≤-refl )) | |
879 ( MinSUP.minsup (ZChain.minsup zc o≤-refl) (MinSUP.asm sup1) | |
880 (λ {x} ux → MinSUP.x≤sup sup1 (case1 ux)) ) | |
967 | 881 |
954 | 882 -- |
883 -- supf0 px o≤ sp1 | |
966 | 884 -- |
885 | |
967 | 886 --- x ≦ supf px ≦ x ≦ sp ≦ x |
887 -- x may apper any place | |
888 | |
889 -- x < sp → supf x = supf px | |
890 -- x ≡ sp → supf x = sp | |
891 -- sp < x → supf x = sp ≡ supf px | |
892 -- UnionCF A f mf ay supf px ⊆ UnionCF A f mf ay supf x | |
893 | |
894 -- supf x does not affect UnionCF A f mf ay supf x | |
895 | |
896 -- supf px < px → UnionCF A f mf ay supf px ≡ UnionCF A f mf ay supf x | |
897 -- supf px ≡ px → UnionCF A f mf ay supf px ⊂ UnionCF A f mf ay supf x ≡ pchainx | |
898 -- x < supf px → UnionCF A f mf ay supf px ≡ UnionCF A f mf ay supf x | |
899 | |
972 | 900 zc43 : (x : Ordinal ) → ( x o< sp1 ) ∨ ( sp1 o≤ x ) |
901 zc43 x with trio< x sp1 | |
971 | 902 ... | tri< a ¬b ¬c = case1 a |
903 ... | tri≈ ¬a b ¬c = case2 (o≤-refl0 (sym b)) | |
904 ... | tri> ¬a ¬b c = case2 (o<→≤ c) | |
967 | 905 |
966 | 906 zc41 : ZChain A f mf ay x |
972 | 907 zc41 with zc43 x |
968 | 908 zc41 | (case2 sp≤x ) = record { supf = supf1 ; sup=u = ? ; asupf = ? ; supf-mono = supf1-mono ; supf-< = ? |
901 | 909 ; supfmax = ? ; minsup = ? ; supf-is-minsup = ? ; csupf = csupf1 } where |
969 | 910 -- supf0 px is included in the chain of sp1 |
911 -- supf0 px ≡ px ∧ supf0 px o< sp1 → ( UnionCF A f mf ay supf0 px ∪ FClosure (supf0 px) ) ≡ UnionCF supf1 x | |
912 -- else UnionCF A f mf ay supf0 px ≡ UnionCF supf1 x | |
901 | 913 -- supf1 x ≡ sp1, which is not included now |
883 | 914 |
871 | 915 supf1 : Ordinal → Ordinal |
966 | 916 supf1 z with trio< z px |
871 | 917 ... | tri< a ¬b ¬c = supf0 z |
966 | 918 ... | tri≈ ¬a b ¬c = supf0 z |
901 | 919 ... | tri> ¬a ¬b c = sp1 |
871 | 920 |
886 | 921 sf1=sf0 : {z : Ordinal } → z o≤ px → supf1 z ≡ supf0 z |
901 | 922 sf1=sf0 {z} z≤px with trio< z px |
874 | 923 ... | tri< a ¬b ¬c = refl |
901 | 924 ... | tri≈ ¬a b ¬c = refl |
925 ... | tri> ¬a ¬b c = ⊥-elim ( o≤> z≤px c ) | |
883 | 926 |
901 | 927 sf1=sp1 : {z : Ordinal } → px o< z → supf1 z ≡ sp1 |
928 sf1=sp1 {z} px<z with trio< z px | |
929 ... | tri< a ¬b ¬c = ⊥-elim ( o<> px<z a ) | |
930 ... | tri≈ ¬a b ¬c = ⊥-elim ( o<¬≡ (sym b) px<z ) | |
931 ... | tri> ¬a ¬b c = refl | |
873 | 932 |
968 | 933 sf=eq : { z : Ordinal } → z o< x → supf0 z ≡ supf1 z |
934 sf=eq {z} z<x = sym (sf1=sf0 (subst (λ k → z o< k ) (sym (Oprev.oprev=x op)) z<x )) | |
935 | |
903 | 936 asupf1 : {z : Ordinal } → odef A (supf1 z) |
937 asupf1 {z} with trio< z px | |
966 | 938 ... | tri< a ¬b ¬c = ZChain.asupf zc |
939 ... | tri≈ ¬a b ¬c = ZChain.asupf zc | |
903 | 940 ... | tri> ¬a ¬b c = MinSUP.asm sup1 |
941 | |
966 | 942 supf1-mono : {a b : Ordinal } → a o≤ b → supf1 a o≤ supf1 b |
943 supf1-mono {a} {b} a≤b with trio< b px | |
901 | 944 ... | tri< a ¬b ¬c = subst₂ (λ j k → j o≤ k ) (sym (sf1=sf0 (o<→≤ (ordtrans≤-< a≤b a)))) refl ( supf-mono a≤b ) |
945 ... | tri≈ ¬a b ¬c = subst₂ (λ j k → j o≤ k ) (sym (sf1=sf0 (subst (λ k → a o≤ k) b a≤b))) refl ( supf-mono a≤b ) | |
946 supf1-mono {a} {b} a≤b | tri> ¬a ¬b c with trio< a px | |
947 ... | tri< a<px ¬b ¬c = zc19 where | |
948 zc21 : MinSUP A (UnionCF A f mf ay supf0 a) | |
949 zc21 = ZChain.minsup zc (o<→≤ a<px) | |
950 zc24 : {x₁ : Ordinal} → odef (UnionCF A f mf ay supf0 a) x₁ → (x₁ ≡ sp1) ∨ (x₁ << sp1) | |
950 | 951 zc24 {x₁} ux = MinSUP.x≤sup sup1 (case1 (chain-mono f mf ay supf0 (ZChain.supf-mono zc) (o<→≤ a<px) ux ) ) |
966 | 952 zc19 : supf0 a o≤ sp1 |
901 | 953 zc19 = subst (λ k → k o≤ sp1) (sym (ZChain.supf-is-minsup zc (o<→≤ a<px))) ( MinSUP.minsup zc21 (MinSUP.asm sup1) zc24 ) |
954 ... | tri≈ ¬a b ¬c = zc18 where | |
955 zc21 : MinSUP A (UnionCF A f mf ay supf0 a) | |
956 zc21 = ZChain.minsup zc (o≤-refl0 b) | |
957 zc20 : MinSUP.sup zc21 ≡ supf0 a | |
966 | 958 zc20 = sym (ZChain.supf-is-minsup zc (o≤-refl0 b)) |
901 | 959 zc24 : {x₁ : Ordinal} → odef (UnionCF A f mf ay supf0 a) x₁ → (x₁ ≡ sp1) ∨ (x₁ << sp1) |
950 | 960 zc24 {x₁} ux = MinSUP.x≤sup sup1 (case1 (chain-mono f mf ay supf0 (ZChain.supf-mono zc) (o≤-refl0 b) ux ) ) |
966 | 961 zc18 : supf0 a o≤ sp1 |
901 | 962 zc18 = subst (λ k → k o≤ sp1) zc20( MinSUP.minsup zc21 (MinSUP.asm sup1) zc24 ) |
963 ... | tri> ¬a ¬b c = o≤-refl | |
885 | 964 |
968 | 965 sf≤ : { z : Ordinal } → x o≤ z → supf0 x o≤ supf1 z |
966 sf≤ {z} x≤z with trio< z px | |
967 ... | tri< a ¬b ¬c = ⊥-elim ( o<> (osucc a) (subst (λ k → k o≤ z) (sym (Oprev.oprev=x op)) x≤z ) ) | |
968 ... | tri≈ ¬a b ¬c = ⊥-elim ( o≤> x≤z (subst (λ k → k o< x ) (sym b) px<x )) | |
969 ... | tri> ¬a ¬b c = subst₂ (λ j k → j o≤ k ) (trans (sf1=sf0 o≤-refl ) (sym (ZChain.supfmax zc px<x))) (sf1=sp1 c) | |
970 (supf1-mono (o<→≤ c )) | |
978 | 971 -- px o<z → supf x ≡ supf0 px ≡ supf1 px o≤ supf1 z |
903 | 972 |
966 | 973 fcup : {u z : Ordinal } → FClosure A f (supf1 u) z → u o≤ px → FClosure A f (supf0 u) z |
903 | 974 fcup {u} {z} fc u≤px = subst (λ k → FClosure A f k z ) (sf1=sf0 u≤px) fc |
966 | 975 fcpu : {u z : Ordinal } → FClosure A f (supf0 u) z → u o≤ px → FClosure A f (supf1 u) z |
903 | 976 fcpu {u} {z} fc u≤px = subst (λ k → FClosure A f k z ) (sym (sf1=sf0 u≤px)) fc |
967 | 977 |
903 | 978 zc11 : {z : Ordinal} → odef (UnionCF A f mf ay supf1 x) z → odef pchainpx z |
966 | 979 zc11 {z} ⟪ az , ch-init fc ⟫ = case1 ⟪ az , ch-init fc ⟫ |
919 | 980 zc11 {z} ⟪ az , ch-is-sup u su<sx is-sup fc ⟫ = zc21 fc where |
981 u<x : u o< x | |
953 | 982 u<x = supf-inject0 supf1-mono su<sx |
983 u≤px : u o≤ px | |
984 u≤px = zc-b<x _ u<x | |
903 | 985 zc21 : {z1 : Ordinal } → FClosure A f (supf1 u) z1 → odef pchainpx z1 |
986 zc21 {z1} (fsuc z2 fc ) with zc21 fc | |
966 | 987 ... | case1 ⟪ ua1 , ch-init fc₁ ⟫ = case1 ⟪ proj2 ( mf _ ua1) , ch-init (fsuc _ fc₁) ⟫ |
988 ... | case1 ⟪ ua1 , ch-is-sup u u<x u1-is-sup fc₁ ⟫ = case1 ⟪ proj2 ( mf _ ua1) , ch-is-sup u u<x u1-is-sup (fsuc _ fc₁) ⟫ | |
989 ... | case2 fc = case2 (fsuc _ fc) | |
953 | 990 zc21 (init asp refl ) with trio< (supf0 u) (supf0 px) | inspect supf1 u |
991 ... | tri< a ¬b ¬c | _ = case1 ⟪ asp , ch-is-sup u a record {fcy<sup = zc13 ; order = zc17 | |
992 ; supu=u = trans (sym (sf1=sf0 (o<→≤ u<px))) (ChainP.supu=u is-sup) } (init asp0 (sym (sf1=sf0 (o<→≤ u<px))) ) ⟫ where | |
993 u<px : u o< px | |
994 u<px = ZChain.supf-inject zc a | |
995 asp0 : odef A (supf0 u) | |
966 | 996 asp0 = ZChain.asupf zc |
903 | 997 zc17 : {s : Ordinal} {z1 : Ordinal} → supf0 s o< supf0 u → |
998 FClosure A f (supf0 s) z1 → (z1 ≡ supf0 u) ∨ (z1 << supf0 u) | |
966 | 999 zc17 {s} {z1} ss<spx fc = subst (λ k → (z1 ≡ k) ∨ (z1 << k)) ((sf1=sf0 u≤px)) ( ChainP.order is-sup |
953 | 1000 (subst₂ (λ j k → j o< k ) (sym (sf1=sf0 zc18)) (sym (sf1=sf0 u≤px)) ss<spx) (fcpu fc zc18) ) where |
903 | 1001 zc18 : s o≤ px |
953 | 1002 zc18 = ordtrans (ZChain.supf-inject zc ss<spx) u≤px |
903 | 1003 zc13 : {z : Ordinal } → FClosure A f y z → (z ≡ supf0 u) ∨ ( z << supf0 u ) |
953 | 1004 zc13 {z} fc = subst (λ k → (z ≡ k) ∨ ( z << k )) (sf1=sf0 (o<→≤ u<px)) ( ChainP.fcy<sup is-sup fc ) |
1005 ... | tri≈ ¬a b ¬c | _ = case2 (init (subst (λ k → odef A k) b (ZChain.asupf zc) ) (sym (trans (sf1=sf0 u≤px) b ))) | |
1006 ... | tri> ¬a ¬b c | _ = ⊥-elim ( ¬p<x<op ⟪ ZChain.supf-inject zc c , subst (λ k → u o< k ) (sym (Oprev.oprev=x op)) u<x ⟫ ) | |
967 | 1007 |
885 | 1008 record STMP {z : Ordinal} (z≤x : z o≤ x ) : Set (Level.suc n) where |
1009 field | |
907 | 1010 tsup : MinSUP A (UnionCF A f mf ay supf1 z) |
966 | 1011 tsup=sup : supf1 z ≡ MinSUP.sup tsup |
885 | 1012 |
1013 sup : {z : Ordinal} → (z≤x : z o≤ x ) → STMP z≤x | |
966 | 1014 sup {z} z≤x with trio< z px |
1015 ... | tri< a ¬b ¬c = record { tsup = record { sup = MinSUP.sup m ; asm = MinSUP.asm m | |
950 | 1016 ; x≤sup = ms00 ; minsup = ms01 } ; tsup=sup = trans (sf1=sf0 (o<→≤ a) ) (ZChain.supf-is-minsup zc (o<→≤ a)) } where |
885 | 1017 m = ZChain.minsup zc (o<→≤ a) |
907 | 1018 ms00 : {x : Ordinal} → odef (UnionCF A f mf ay supf1 z) x → (x ≡ MinSUP.sup m) ∨ (x << MinSUP.sup m) |
950 | 1019 ms00 {x} ux = MinSUP.x≤sup m ? |
907 | 1020 ms01 : {sup2 : Ordinal} → odef A sup2 → ({x : Ordinal} → |
1021 odef (UnionCF A f mf ay supf1 z) x → (x ≡ sup2) ∨ (x << sup2)) → MinSUP.sup m o≤ sup2 | |
1022 ms01 {sup2} us P = MinSUP.minsup m ? ? | |
966 | 1023 ... | tri≈ ¬a b ¬c = record { tsup = record { sup = MinSUP.sup m ; asm = MinSUP.asm m |
950 | 1024 ; x≤sup = ms00 ; minsup = ms01 } ; tsup=sup = trans (sf1=sf0 (o≤-refl0 b) ) (ZChain.supf-is-minsup zc (o≤-refl0 b)) } where |
885 | 1025 m = ZChain.minsup zc (o≤-refl0 b) |
907 | 1026 ms00 : {x : Ordinal} → odef (UnionCF A f mf ay supf1 z) x → (x ≡ MinSUP.sup m) ∨ (x << MinSUP.sup m) |
950 | 1027 ms00 {x} ux = MinSUP.x≤sup m ? |
907 | 1028 ms01 : {sup2 : Ordinal} → odef A sup2 → ({x : Ordinal} → |
1029 odef (UnionCF A f mf ay supf1 z) x → (x ≡ sup2) ∨ (x << sup2)) → MinSUP.sup m o≤ sup2 | |
1030 ms01 {sup2} us P = MinSUP.minsup m ? ? | |
901 | 1031 ... | tri> ¬a ¬b px<z = record { tsup = record { sup = sp1 ; asm = MinSUP.asm sup1 |
950 | 1032 ; x≤sup = ms00 ; minsup = ms01 } ; tsup=sup = sf1=sp1 px<z } where |
907 | 1033 m = sup1 |
1034 ms00 : {x : Ordinal} → odef (UnionCF A f mf ay supf1 z) x → (x ≡ MinSUP.sup m) ∨ (x << MinSUP.sup m) | |
950 | 1035 ms00 {x} ux = MinSUP.x≤sup m ? |
907 | 1036 ms01 : {sup2 : Ordinal} → odef A sup2 → ({x : Ordinal} → |
1037 odef (UnionCF A f mf ay supf1 z) x → (x ≡ sup2) ∨ (x << sup2)) → MinSUP.sup m o≤ sup2 | |
1038 ms01 {sup2} us P = MinSUP.minsup m ? ? | |
885 | 1039 |
986 | 1040 csupf0 : {z1 : Ordinal } → supf1 z1 o< supf1 px → z1 o≤ px → odef (UnionCF A f mf ay supf1 x) (supf1 z1) |
978 | 1041 csupf0 {z1} s0z<px z≤px = subst (λ k → odef (UnionCF A f mf ay supf1 x) k ) (sym (sf1=sf0 z≤px)) ( |
1042 UChain⊆ A f mf {x} {y} ay {supf0} {supf1} (ZChain.supf-mono zc) sf=eq sf≤ | |
1043 (chain-mono f mf ay supf0 (ZChain.supf-mono zc) (o<→≤ px<x) | |
985
0d8dafbecb0d
zc10 : supf c ≡ supf (& A) → {x : Ordinal } → odef A x → ¬ ( c << x ) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
978
diff
changeset
|
1044 (ZChain.csupf zc ? ))) -- (subst (λ k → k o< px) (sf1=sf0 z≤px) s0z<px)))) |
978 | 1045 -- px o< z1 , px o≤ supf1 z1 --> px o≤ sp1 o< x -- sp1 ≡ px--> odef (UnionCF A f mf ay supf1 x) sp1 |
1046 | |
985
0d8dafbecb0d
zc10 : supf c ≡ supf (& A) → {x : Ordinal } → odef A x → ¬ ( c << x ) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
978
diff
changeset
|
1047 csupf1 : {z1 : Ordinal } → supf1 z1 o< supf1 x → odef (UnionCF A f mf ay supf1 x) (supf1 z1) |
986 | 1048 csupf1 {z1} sz<sx = ⟪ asupf1 , ch-is-sup (supf1 z1) (subst (λ k → k o< supf1 x) (sym cs00) sz<sx) cp (init asupf1 cs00 ) ⟫ where |
1049 z<x : z1 o< x | |
1050 z<x = supf-inject0 supf1-mono sz<sx | |
1051 cs00 : supf1 (supf1 z1) ≡ supf1 z1 | |
1052 cs00 = ? | |
1053 cp : ChainP A f mf ay supf1 (supf1 z1) | |
1054 cp = ? | |
918
4c33f8383d7d
supf px o< px is in csupf
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
911
diff
changeset
|
1055 |
877 | 1056 |
968 | 1057 zc41 | (case1 x<sp ) = record { supf = supf0 ; sup=u = ? ; asupf = ? ; supf-mono = ? ; supf-< = ? |
901 | 1058 ; supfmax = ? ; minsup = ? ; supf-is-minsup = ? ; csupf = ? } where |
883 | 1059 |
901 | 1060 -- supf0 px not is included by the chain |
1061 -- supf1 x ≡ supf0 px because of supfmax | |
883 | 1062 |
872 | 1063 supf1 : Ordinal → Ordinal |
966 | 1064 supf1 z with trio< z px |
871 | 1065 ... | tri< a ¬b ¬c = supf0 z |
968 | 1066 ... | tri≈ ¬a b ¬c = supf0 z |
871 | 1067 ... | tri> ¬a ¬b c = supf0 px |
1068 | |
886 | 1069 sf1=sf0 : {z : Ordinal } → z o< px → supf1 z ≡ supf0 z |
1070 sf1=sf0 {z} z<px with trio< z px | |
874 | 1071 ... | tri< a ¬b ¬c = refl |
1072 ... | tri≈ ¬a b ¬c = ⊥-elim ( ¬a z<px ) | |
1073 ... | tri> ¬a ¬b c = ⊥-elim ( ¬a z<px ) | |
1074 | |
968 | 1075 sf=eq : { z : Ordinal } → z o< x → supf0 z ≡ supf1 z |
1076 sf=eq {z} z<x with trio< z px | |
1077 ... | tri< a ¬b ¬c = refl | |
1078 ... | tri≈ ¬a b ¬c = refl | |
1079 ... | tri> ¬a ¬b c = ⊥-elim ( ¬p<x<op ⟪ c , subst (λ k → z o< k) (sym (Oprev.oprev=x op)) z<x ⟫ ) | |
1080 sf≤ : { z : Ordinal } → x o≤ z → supf0 x o≤ supf1 z | |
1081 sf≤ {z} x≤z with trio< z px | |
1082 ... | tri< a ¬b ¬c = ⊥-elim ( o<> (osucc a) (subst (λ k → k o≤ z) (sym (Oprev.oprev=x op)) x≤z ) ) | |
1083 ... | tri≈ ¬a b ¬c = ⊥-elim ( o≤> x≤z (subst (λ k → k o< x ) (sym b) px<x )) | |
1084 ... | tri> ¬a ¬b c = o≤-refl0 ( ZChain.supfmax zc px<x ) | |
1085 | |
969 | 1086 sf=eq0 : { z : Ordinal } → z o< x → supf1 z ≡ supf0 z |
1087 sf=eq0 {z} z<x with trio< z px | |
1088 ... | tri< a ¬b ¬c = refl | |
1089 ... | tri≈ ¬a b ¬c = refl | |
1090 ... | tri> ¬a ¬b c = ⊥-elim ( ¬p<x<op ⟪ c , subst (λ k → z o< k) (sym (Oprev.oprev=x op)) z<x ⟫ ) | |
1091 sf≤0 : { z : Ordinal } → x o≤ z → supf1 x o≤ supf0 z | |
1092 sf≤0 {z} x≤z with trio< z px | |
1093 ... | tri< a ¬b ¬c = ⊥-elim ( o<> (osucc a) (subst (λ k → k o≤ z) (sym (Oprev.oprev=x op)) x≤z ) ) | |
1094 ... | tri≈ ¬a b ¬c = ⊥-elim ( o≤> x≤z (subst (λ k → k o< x ) (sym b) px<x )) | |
1095 ... | tri> ¬a ¬b c = o≤-refl0 ? -- (sym ( ZChain.supfmax zc px<x )) | |
1096 | |
874 | 1097 zc17 : {z : Ordinal } → supf0 z o≤ supf0 px |
1098 zc17 = ? -- px o< z, px o< supf0 px | |
1099 | |
1100 supf-mono1 : {z w : Ordinal } → z o≤ w → supf1 z o≤ supf1 w | |
966 | 1101 supf-mono1 {z} {w} z≤w with trio< w px |
886 | 1102 ... | tri< a ¬b ¬c = subst₂ (λ j k → j o≤ k ) (sym (sf1=sf0 (ordtrans≤-< z≤w a))) refl ( supf-mono z≤w ) |
874 | 1103 ... | tri≈ ¬a refl ¬c with trio< z px |
1104 ... | tri< a ¬b ¬c = zc17 | |
1105 ... | tri≈ ¬a refl ¬c = o≤-refl | |
1106 ... | tri> ¬a ¬b c = o≤-refl | |
1107 supf-mono1 {z} {w} z≤w | tri> ¬a ¬b c with trio< z px | |
1108 ... | tri< a ¬b ¬c = zc17 | |
968 | 1109 ... | tri≈ ¬a b ¬c = o≤-refl0 ? |
874 | 1110 ... | tri> ¬a ¬b c = o≤-refl |
1111 | |
872 | 1112 pchain1 : HOD |
1113 pchain1 = UnionCF A f mf ay supf1 x | |
871 | 1114 |
863 | 1115 zc10 : {z : Ordinal} → OD.def (od pchain) z → OD.def (od pchain1) z |
966 | 1116 zc10 {z} ⟪ az , ch-init fc ⟫ = ⟪ az , ch-init fc ⟫ |
894 | 1117 zc10 {z} ⟪ az , ch-is-sup u1 u1<x u1-is-sup fc ⟫ = ⟪ az , ch-is-sup u1 ? ? ? ⟫ |
873 | 1118 |
966 | 1119 zc111 : {z : Ordinal} → z o< px → OD.def (od pchain1) z → OD.def (od pchain) z |
1120 zc111 {z} z<px ⟪ az , ch-init fc ⟫ = ⟪ az , ch-init fc ⟫ | |
894 | 1121 zc111 {z} z<px ⟪ az , ch-is-sup u1 u1<x u1-is-sup fc ⟫ = ⟪ az , ch-is-sup u1 ? ? ? ⟫ |
873 | 1122 |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
1123 zc11 : (¬ xSUP (UnionCF A f mf ay supf0 px) f x ) ∨ (HasPrev A pchain f x ) |
864 | 1124 → {z : Ordinal} → OD.def (od pchain1) z → OD.def (od pchain) z ∨ ( (supf0 px ≡ px) ∧ FClosure A f px z ) |
966 | 1125 zc11 P {z} ⟪ az , ch-init fc ⟫ = case1 ⟪ az , ch-init fc ⟫ |
1126 zc11 P {z} ⟪ az , ch-is-sup u1 u1<x u1-is-sup fc ⟫ with trio< u1 px | |
1127 ... | tri< u1<px ¬b ¬c = case1 ⟪ az , ch-is-sup u1 ? ? fc ⟫ | |
872 | 1128 ... | tri≈ ¬a eq ¬c = case2 ⟪ subst (λ k → supf0 k ≡ k) eq s1u=u , subst (λ k → FClosure A f k z) zc12 ? ⟫ where |
863 | 1129 s1u=u : supf0 u1 ≡ u1 |
872 | 1130 s1u=u = ? -- ChainP.supu=u u1-is-sup |
966 | 1131 zc12 : supf0 u1 ≡ px |
872 | 1132 zc12 = trans s1u=u eq |
863 | 1133 zc11 (case1 ¬sp=x) {z} ⟪ az , ch-is-sup u1 u1<x u1-is-sup fc ⟫ | tri> ¬a ¬b px<u = ⊥-elim (¬sp=x zcsup) where |
966 | 1134 eq : u1 ≡ x |
863 | 1135 eq with trio< u1 x |
1136 ... | tri< a ¬b ¬c = ⊥-elim ( ¬p<x<op ⟪ px<u , subst (λ k → u1 o< k ) (sym (Oprev.oprev=x op )) a ⟫ ) | |
1137 ... | tri≈ ¬a b ¬c = b | |
890 | 1138 ... | tri> ¬a ¬b c = ⊥-elim ( o<> u1<x ? ) |
863 | 1139 s1u=x : supf0 u1 ≡ x |
872 | 1140 s1u=x = trans ? eq |
863 | 1141 zc13 : osuc px o< osuc u1 |
966 | 1142 zc13 = o≤-refl0 ( trans (Oprev.oprev=x op) (sym eq ) ) |
950 | 1143 x≤sup : {w : Ordinal} → odef (UnionCF A f mf ay supf0 px) w → (w ≡ x) ∨ (w << x) |
966 | 1144 x≤sup {w} ⟪ az , ch-init {w} fc ⟫ = subst (λ k → (w ≡ k) ∨ (w << k)) s1u=x ? |
950 | 1145 x≤sup {w} ⟪ az , ch-is-sup u u<x is-sup fc ⟫ with osuc-≡< ( supf-mono (ordtrans (o<→≤ u<x) ? )) |
890 | 1146 ... | case1 eq1 = ⊥-elim ( o<¬≡ zc14 ? ) where |
851 | 1147 zc14 : u ≡ osuc px |
1148 zc14 = begin | |
966 | 1149 u ≡⟨ sym ( ChainP.supu=u is-sup) ⟩ |
1150 supf0 u ≡⟨ ? ⟩ | |
1151 supf0 u1 ≡⟨ s1u=x ⟩ | |
1152 x ≡⟨ sym (Oprev.oprev=x op) ⟩ | |
851 | 1153 osuc px ∎ where open ≡-Reasoning |
872 | 1154 ... | case2 lt = subst (λ k → (w ≡ k) ∨ (w << k)) s1u=x ? |
863 | 1155 zc12 : supf0 x ≡ u1 |
872 | 1156 zc12 = subst (λ k → supf0 k ≡ u1) eq ? |
966 | 1157 zcsup : xSUP (UnionCF A f mf ay supf0 px) f x |
868 | 1158 zcsup = record { ax = subst (λ k → odef A k) (trans zc12 eq) (ZChain.asupf zc) |
954 | 1159 ; is-sup = record { x≤sup = x≤sup ; minsup = ? } } |
872 | 1160 zc11 (case2 hp) {z} ⟪ az , ch-is-sup u1 u1<x u1-is-sup fc ⟫ | tri> ¬a ¬b px<u = case1 ? where |
966 | 1161 eq : u1 ≡ x |
864 | 1162 eq with trio< u1 x |
1163 ... | tri< a ¬b ¬c = ⊥-elim ( ¬p<x<op ⟪ px<u , subst (λ k → u1 o< k ) (sym (Oprev.oprev=x op )) a ⟫ ) | |
1164 ... | tri≈ ¬a b ¬c = b | |
890 | 1165 ... | tri> ¬a ¬b c = ⊥-elim ( o<> u1<x ? ) |
858 | 1166 zc20 : {z : Ordinal} → FClosure A f (supf0 u1) z → OD.def (od pchain) z |
1167 zc20 {z} (init asu su=z ) = zc13 where | |
1168 zc14 : x ≡ z | |
1169 zc14 = begin | |
1170 x ≡⟨ sym eq ⟩ | |
872 | 1171 u1 ≡⟨ sym ? ⟩ |
858 | 1172 supf0 u1 ≡⟨ su=z ⟩ |
1173 z ∎ where open ≡-Reasoning | |
1174 zc13 : odef pchain z | |
1175 zc13 = subst (λ k → odef pchain k) (trans (sym (HasPrev.x=fy hp)) zc14) ( ZChain.f-next zc (HasPrev.ay hp) ) | |
1176 zc20 {.(f w)} (fsuc w fc) = ZChain.f-next zc (zc20 fc) | |
891 | 1177 |
857 | 1178 record STMP {z : Ordinal} (z≤x : z o≤ x ) : Set (Level.suc n) where |
1179 field | |
891 | 1180 tsup : MinSUP A (UnionCF A f mf ay supf1 z) |
966 | 1181 tsup=sup : supf1 z ≡ MinSUP.sup tsup |
891 | 1182 |
857 | 1183 sup : {z : Ordinal} → (z≤x : z o≤ x ) → STMP z≤x |
966 | 1184 sup {z} z≤x with trio< z px |
891 | 1185 ... | tri< a ¬b ¬c = ? -- jrecord { tsup = ZChain.minsup zc (o<→≤ a) ; tsup=sup = ZChain.supf-is-minsup zc (o<→≤ a) } |
1186 ... | tri≈ ¬a b ¬c = ? -- record { tsup = ZChain.minsup zc (o≤-refl0 b) ; tsup=sup = ZChain.supf-is-minsup zc (o≤-refl0 b) } | |
865 | 1187 ... | tri> ¬a ¬b px<z = zc35 where |
840 | 1188 zc30 : z ≡ x |
1189 zc30 with osuc-≡< z≤x | |
1190 ... | case1 eq = eq | |
1191 ... | case2 z<x = ⊥-elim (¬p<x<op ⟪ px<z , subst (λ k → z o< k ) (sym (Oprev.oprev=x op)) z<x ⟫ ) | |
966 | 1192 zc32 = ZChain.sup zc o≤-refl |
865 | 1193 zc34 : ¬ (supf0 px ≡ px) → {w : HOD} → UnionCF A f mf ay supf0 z ∋ w → (w ≡ SUP.sup zc32) ∨ (w < SUP.sup zc32) |
882 | 1194 zc34 ne {w} lt with zc11 ? ⟪ proj1 lt , ? ⟫ |
966 | 1195 ... | case1 lt = SUP.x≤sup zc32 lt |
865 | 1196 ... | case2 ⟪ spx=px , fc ⟫ = ⊥-elim ( ne spx=px ) |
857 | 1197 zc33 : supf0 z ≡ & (SUP.sup zc32) |
891 | 1198 zc33 = ? -- trans (sym (supfx (o≤-refl0 (sym zc30)))) ( ZChain.supf-is-minsup zc o≤-refl ) |
865 | 1199 zc36 : ¬ (supf0 px ≡ px) → STMP z≤x |
966 | 1200 zc36 ne = ? -- record { tsup = record { sup = SUP.sup zc32 ; as = SUP.as zc32 ; x≤sup = zc34 ne } ; tsup=sup = zc33 } |
865 | 1201 zc35 : STMP z≤x |
1202 zc35 with trio< (supf0 px) px | |
1203 ... | tri< a ¬b ¬c = zc36 ¬b | |
1204 ... | tri> ¬a ¬b c = zc36 ¬b | |
891 | 1205 ... | tri≈ ¬a b ¬c = record { tsup = ? ; tsup=sup = ? } where |
1206 zc37 : MinSUP A (UnionCF A f mf ay supf0 z) | |
950 | 1207 zc37 = record { sup = ? ; asm = ? ; x≤sup = ? } |
803 | 1208 sup=u : {b : Ordinal} (ab : odef A b) → |
960 | 1209 b o≤ x → IsMinSUP A (UnionCF A f mf ay supf0 b) supf0 ab ∧ (¬ HasPrev A (UnionCF A f mf ay supf0 b) f b ) → supf0 b ≡ b |
814 | 1210 sup=u {b} ab b≤x is-sup with trio< b px |
966 | 1211 ... | tri< a ¬b ¬c = ZChain.sup=u zc ab (o<→≤ a) ⟪ record { x≤sup = λ lt → IsMinSUP.x≤sup (proj1 is-sup) lt } , proj2 is-sup ⟫ |
1212 ... | tri≈ ¬a b ¬c = ZChain.sup=u zc ab (o≤-refl0 b) ⟪ record { x≤sup = λ lt → IsMinSUP.x≤sup (proj1 is-sup) lt } , proj2 is-sup ⟫ | |
882 | 1213 ... | tri> ¬a ¬b px<b = zc31 ? where |
815 | 1214 zc30 : x ≡ b |
1215 zc30 with osuc-≡< b≤x | |
1216 ... | case1 eq = sym (eq) | |
1217 ... | case2 b<x = ⊥-elim (¬p<x<op ⟪ px<b , subst (λ k → b o< k ) (sym (Oprev.oprev=x op)) b<x ⟫ ) | |
966 | 1218 zcsup : xSUP (UnionCF A f mf ay supf0 px) supf0 x |
859 | 1219 zcsup with zc30 |
966 | 1220 ... | refl = record { ax = ab ; is-sup = record { x≤sup = λ {w} lt → |
1221 IsMinSUP.x≤sup (proj1 is-sup) ? ; minsup = ? } } | |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
1222 zc31 : ( (¬ xSUP (UnionCF A f mf ay supf0 px) supf0 x ) ∨ HasPrev A (UnionCF A f mf ay supf0 px) f x ) → supf0 b ≡ b |
860
105f8d6c51fb
no-extension on immidate ordinal passed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
859
diff
changeset
|
1223 zc31 (case1 ¬sp=x) with zc30 |
105f8d6c51fb
no-extension on immidate ordinal passed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
859
diff
changeset
|
1224 ... | refl = ⊥-elim (¬sp=x zcsup ) |
105f8d6c51fb
no-extension on immidate ordinal passed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
859
diff
changeset
|
1225 zc31 (case2 hasPrev ) with zc30 |
966 | 1226 ... | refl = ⊥-elim ( proj2 is-sup record { ax = HasPrev.ax hasPrev ; y = HasPrev.y hasPrev |
1227 ; ay = ? ; x=fy = HasPrev.x=fy hasPrev } ) | |
833 | 1228 |
728 | 1229 ... | no lim = zc5 where |
726
b2e2cd12e38f
psupf-mono and is-max conflict
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
1230 |
703 | 1231 pzc : (z : Ordinal) → z o< x → ZChain A f mf ay z |
1232 pzc z z<x = prev z z<x | |
726
b2e2cd12e38f
psupf-mono and is-max conflict
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
1233 |
928 | 1234 ysp = MinSUP.sup (ysup f mf ay) |
755 | 1235 |
835 | 1236 supf0 : Ordinal → Ordinal |
1237 supf0 z with trio< z x | |
1238 ... | tri< a ¬b ¬c = ZChain.supf (pzc (osuc z) (ob<x lim a)) z | |
836 | 1239 ... | tri≈ ¬a b ¬c = ysp |
1240 ... | tri> ¬a ¬b c = ysp | |
835 | 1241 |
838 | 1242 pchain : HOD |
1243 pchain = UnionCF A f mf ay supf0 x | |
835 | 1244 |
838 | 1245 ptotal0 : IsTotalOrderSet pchain |
966 | 1246 ptotal0 {a} {b} ca cb = subst₂ (λ j k → Tri (j < k) (j ≡ k) (k < j)) *iso *iso uz01 where |
835 | 1247 uz01 : Tri (* (& a) < * (& b)) (* (& a) ≡ * (& b)) (* (& b) < * (& a) ) |
966 | 1248 uz01 = chain-total A f mf ay supf0 ( (proj2 ca)) ( (proj2 cb)) |
1249 | |
880 | 1250 usup : MinSUP A pchain |
1251 usup = minsupP pchain (λ lt → proj1 lt) ptotal0 | |
1252 spu = MinSUP.sup usup | |
834 | 1253 |
794 | 1254 supf1 : Ordinal → Ordinal |
835 | 1255 supf1 z with trio< z x |
1256 ... | tri< a ¬b ¬c = ZChain.supf (pzc (osuc z) (ob<x lim a)) z | |
836 | 1257 ... | tri≈ ¬a b ¬c = spu |
1258 ... | tri> ¬a ¬b c = spu | |
755 | 1259 |
838 | 1260 pchain1 : HOD |
1261 pchain1 = UnionCF A f mf ay supf1 x | |
704 | 1262 |
758
a2947dfff80d
is-max on first transfinite induction is not good
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
757
diff
changeset
|
1263 is-max-hp : (supf : Ordinal → Ordinal) (x : Ordinal) {a : Ordinal} {b : Ordinal} → odef (UnionCF A f mf ay supf x) a → |
a2947dfff80d
is-max on first transfinite induction is not good
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
757
diff
changeset
|
1264 b o< x → (ab : odef A b) → |
966 | 1265 HasPrev A (UnionCF A f mf ay supf x) f b → |
758
a2947dfff80d
is-max on first transfinite induction is not good
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
757
diff
changeset
|
1266 * a < * b → odef (UnionCF A f mf ay supf x) b |
a2947dfff80d
is-max on first transfinite induction is not good
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
757
diff
changeset
|
1267 is-max-hp supf x {a} {b} ua b<x ab has-prev a<b with HasPrev.ay has-prev |
966 | 1268 ... | ⟪ ab0 , ch-init fc ⟫ = ⟪ ab , ch-init ( subst (λ k → FClosure A f y k) (sym (HasPrev.x=fy has-prev)) (fsuc _ fc )) ⟫ |
1269 ... | ⟪ ab0 , ch-is-sup u u<x is-sup fc ⟫ = ? -- ⟪ ab , | |
890 | 1270 -- subst (λ k → UChain A f mf ay supf x k ) |
966 | 1271 -- (sym (HasPrev.x=fy has-prev)) ( ch-is-sup u u<x is-sup (fsuc _ fc)) ⟫ |
758
a2947dfff80d
is-max on first transfinite induction is not good
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
757
diff
changeset
|
1272 |
966 | 1273 zc70 : HasPrev A pchain f x → ¬ xSUP pchain f x |
844 | 1274 zc70 pr xsup = ? |
1275 | |
958
33891adf80ea
IsMinSup contains not HasPrev
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
957
diff
changeset
|
1276 no-extension : ¬ ( xSUP (UnionCF A f mf ay supf0 x) supf0 x ) → ZChain A f mf ay x |
966 | 1277 no-extension ¬sp=x = ? where -- record { supf = supf1 ; sup=u = sup=u |
879 | 1278 -- ; sup = sup ; supf-is-sup = sis ; supf-mono = {!!} ; asupf = ? } where |
795
408e7e8a3797
csupf depends on order cyclicly
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
794
diff
changeset
|
1279 supfu : {u : Ordinal } → ( a : u o< x ) → (z : Ordinal) → Ordinal |
408e7e8a3797
csupf depends on order cyclicly
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
794
diff
changeset
|
1280 supfu {u} a z = ZChain.supf (pzc (osuc u) (ob<x lim a)) z |
838 | 1281 pchain0=1 : pchain ≡ pchain1 |
1282 pchain0=1 = ==→o≡ record { eq→ = zc10 ; eq← = zc11 } where | |
1283 zc10 : {z : Ordinal} → OD.def (od pchain) z → OD.def (od pchain1) z | |
966 | 1284 zc10 {z} ⟪ az , ch-init fc ⟫ = ⟪ az , ch-init fc ⟫ |
938 | 1285 zc10 {z} ⟪ az , ch-is-sup u u<x is-sup fc ⟫ = zc12 fc where |
838 | 1286 zc12 : {z : Ordinal} → FClosure A f (supf0 u) z → odef pchain1 z |
1287 zc12 (fsuc x fc) with zc12 fc | |
966 | 1288 ... | ⟪ ua1 , ch-init fc₁ ⟫ = ⟪ proj2 ( mf _ ua1) , ch-init (fsuc _ fc₁) ⟫ |
1289 ... | ⟪ ua1 , ch-is-sup u u<x is-sup fc₁ ⟫ = ⟪ proj2 ( mf _ ua1) , ch-is-sup u u<x is-sup (fsuc _ fc₁) ⟫ | |
1290 zc12 (init asu su=z ) = ⟪ subst (λ k → odef A k) su=z asu , ch-is-sup u ? ? (init ? ? ) ⟫ | |
838 | 1291 zc11 : {z : Ordinal} → OD.def (od pchain1) z → OD.def (od pchain) z |
966 | 1292 zc11 {z} ⟪ az , ch-init fc ⟫ = ⟪ az , ch-init fc ⟫ |
938 | 1293 zc11 {z} ⟪ az , ch-is-sup u u<x is-sup fc ⟫ = zc13 fc where |
838 | 1294 zc13 : {z : Ordinal} → FClosure A f (supf1 u) z → odef pchain z |
1295 zc13 (fsuc x fc) with zc13 fc | |
966 | 1296 ... | ⟪ ua1 , ch-init fc₁ ⟫ = ⟪ proj2 ( mf _ ua1) , ch-init (fsuc _ fc₁) ⟫ |
1297 ... | ⟪ ua1 , ch-is-sup u u<x is-sup fc₁ ⟫ = ⟪ proj2 ( mf _ ua1) , ch-is-sup u u<x is-sup (fsuc _ fc₁) ⟫ | |
838 | 1298 zc13 (init asu su=z ) with trio< u x |
966 | 1299 ... | tri< a ¬b ¬c = ⟪ ? , ch-is-sup u ? ? (init ? ? ) ⟫ |
838 | 1300 ... | tri≈ ¬a b ¬c = ? |
938 | 1301 ... | tri> ¬a ¬b c = ? -- ⊥-elim ( o≤> u<x c ) |
832 | 1302 sup : {z : Ordinal} → z o≤ x → SUP A (UnionCF A f mf ay supf1 z) |
797 | 1303 sup {z} z≤x with trio< z x |
838 | 1304 ... | tri< a ¬b ¬c = SUP⊆ ? (ZChain.sup (pzc (osuc z) {!!}) {!!} ) |
815 | 1305 ... | tri≈ ¬a b ¬c = {!!} |
966 | 1306 ... | tri> ¬a ¬b x<z = ⊥-elim (o<¬≡ refl (ordtrans<-≤ x<z z≤x )) |
832 | 1307 sis : {z : Ordinal} (x≤z : z o≤ x) → supf1 z ≡ & (SUP.sup (sup {!!})) |
843 | 1308 sis {z} z≤x with trio< z x |
800 | 1309 ... | tri< a ¬b ¬c = {!!} where |
891 | 1310 zc8 = ZChain.supf-is-minsup (pzc z a) {!!} |
815 | 1311 ... | tri≈ ¬a b ¬c = {!!} |
966 | 1312 ... | tri> ¬a ¬b x<z = ⊥-elim (o<¬≡ refl (ordtrans<-≤ x<z z≤x )) |
960 | 1313 sup=u : {b : Ordinal} (ab : odef A b) → b o≤ x → IsMinSUP A (UnionCF A f mf ay supf1 b) f ab ∧ (¬ HasPrev A (UnionCF A f mf ay supf1 b) f b ) → supf1 b ≡ b |
843 | 1314 sup=u {z} ab z≤x is-sup with trio< z x |
950 | 1315 ... | tri< a ¬b ¬c = ? -- ZChain.sup=u (pzc (osuc b) (ob<x lim a)) ab {!!} record { x≤sup = {!!} } |
1316 ... | tri≈ ¬a b ¬c = {!!} -- ZChain.sup=u (pzc (osuc ?) ?) ab {!!} record { x≤sup = {!!} } | |
966 | 1317 ... | tri> ¬a ¬b x<z = ⊥-elim (o<¬≡ refl (ordtrans<-≤ x<z z≤x )) |
797 | 1318 |
966 | 1319 zc5 : ZChain A f mf ay x |
697 | 1320 zc5 with ODC.∋-p O A (* x) |
796 | 1321 ... | no noax = no-extension {!!} -- ¬ A ∋ p, just skip |
966 | 1322 ... | yes ax with ODC.p∨¬p O ( HasPrev A pchain f x ) |
703 | 1323 -- we have to check adding x preserve is-max ZChain A y f mf x |
966 | 1324 ... | case1 pr = no-extension {!!} |
960 | 1325 ... | case2 ¬fy<x with ODC.p∨¬p O (IsMinSUP A pchain f ax ) |
966 | 1326 ... | case1 is-sup = ? -- record { supf = supf1 ; sup=u = {!!} |
1327 -- ; sup = {!!} ; supf-is-sup = {!!} ; supf-mono = {!!}; asupf = {!!} } -- where -- x is a sup of (zc ?) | |
796 | 1328 ... | case2 ¬x=sup = no-extension {!!} -- x is not f y' nor sup of former ZChain from y -- no extention |
966 | 1329 |
921 | 1330 --- |
1331 --- the maximum chain has fix point of any ≤-monotonic function | |
1332 --- | |
1333 | |
1334 SZ : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) → {y : Ordinal} (ay : odef A y) → (x : Ordinal) → ZChain A f mf ay x | |
1335 SZ f mf {y} ay x = TransFinite {λ z → ZChain A f mf ay z } (λ x → ind f mf ay x ) x | |
1336 | |
966 | 1337 msp0 : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) {x y : Ordinal} (ay : odef A y) |
1338 → (zc : ZChain A f mf ay x ) | |
934 | 1339 → MinSUP A (UnionCF A f mf ay (ZChain.supf zc) x) |
960 | 1340 msp0 f mf {x} ay zc = minsupP (UnionCF A f mf ay (ZChain.supf zc) x) (ZChain.chain⊆A zc) (ZChain.f-total zc) |
922 | 1341 |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1342 fixpoint : ( f : Ordinal → Ordinal ) → (mf : ≤-monotonic-f A f ) (zc : ZChain A f mf as0 (& A) ) |
966 | 1343 → (sp1 : MinSUP A (ZChain.chain zc)) |
959 | 1344 → f (MinSUP.sup sp1) ≡ MinSUP.sup sp1 |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
1345 fixpoint f mf zc sp1 = z14 where |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1346 chain = ZChain.chain zc |
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1347 supf = ZChain.supf zc |
935
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1348 sp : Ordinal |
959 | 1349 sp = MinSUP.sup sp1 |
935
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1350 asp : odef A sp |
959 | 1351 asp = MinSUP.asm sp1 |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
1352 z10 : {a b : Ordinal } → (ca : odef chain a ) → b o< (& A) → (ab : odef A b ) |
964 | 1353 → HasPrev A chain f b ∨ IsSUP A (UnionCF A f mf as0 (ZChain.supf zc) b) ab |
921 | 1354 → * a < * b → odef chain b |
960 | 1355 z10 = ZChain1.is-max (SZ1 f mf as0 zc (& A) ) |
935
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1356 z22 : sp o< & A |
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1357 z22 = z09 asp |
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1358 z12 : odef chain sp |
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1359 z12 with o≡? (& s) sp |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1360 ... | yes eq = subst (λ k → odef chain k) eq ( ZChain.chain∋init zc ) |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
1361 ... | no ne = ZChain1.is-max (SZ1 f mf as0 zc (& A)) {& s} {sp} ( ZChain.chain∋init zc ) (z09 asp) asp (case2 z19 ) z13 where |
935
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1362 z13 : * (& s) < * sp |
960 | 1363 z13 with MinSUP.x≤sup sp1 ( ZChain.chain∋init zc ) |
1364 ... | case1 eq = ⊥-elim ( ne eq ) | |
966 | 1365 ... | case2 lt = lt |
964 | 1366 z19 : IsSUP A (UnionCF A f mf as0 (ZChain.supf zc) sp) asp |
1367 z19 = record { x≤sup = z20 } where | |
959 | 1368 z20 : {y : Ordinal} → odef (UnionCF A f mf as0 (ZChain.supf zc) sp) y → (y ≡ sp) ∨ (y << sp) |
966 | 1369 z20 {y} zy with MinSUP.x≤sup sp1 |
961 | 1370 (subst (λ k → odef chain k ) (sym &iso) (chain-mono f mf as0 supf (ZChain.supf-mono zc) (o<→≤ z22) zy )) |
966 | 1371 ... | case1 y=p = case1 (subst (λ k → k ≡ _ ) &iso y=p ) |
960 | 1372 ... | case2 y<p = case2 (subst (λ k → * k < _ ) &iso y<p ) |
935
ed711d7be191
mem exhaust fix on fixpoint
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
934
diff
changeset
|
1373 z14 : f sp ≡ sp |
960 | 1374 z14 with ZChain.f-total zc (subst (λ k → odef chain k) (sym &iso) (ZChain.f-next zc z12 )) (subst (λ k → odef chain k) (sym &iso) z12 ) |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1375 ... | tri< a ¬b ¬c = ⊥-elim z16 where |
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1376 z16 : ⊥ |
959 | 1377 z16 with proj1 (mf (( MinSUP.sup sp1)) ( MinSUP.asm sp1 )) |
966 | 1378 ... | case1 eq = ⊥-elim (¬b (sym eq) ) |
1379 ... | case2 lt = ⊥-elim (¬c lt ) | |
1380 ... | tri≈ ¬a b ¬c = subst₂ (λ j k → j ≡ k ) &iso &iso ( cong (&) b ) | |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1381 ... | tri> ¬a ¬b c = ⊥-elim z17 where |
959 | 1382 z15 : (f sp ≡ MinSUP.sup sp1) ∨ (* (f sp) < * (MinSUP.sup sp1) ) |
960 | 1383 z15 = MinSUP.x≤sup sp1 (ZChain.f-next zc z12 ) |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1384 z17 : ⊥ |
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1385 z17 with z15 |
960 | 1386 ... | case1 eq = ¬b (cong (*) eq) |
1387 ... | case2 lt = ¬a lt | |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1388 |
952 | 1389 tri : {n : Level} (u w : Ordinal ) { R : Set n } → ( u o< w → R ) → ( u ≡ w → R ) → ( w o< u → R ) → R |
1390 tri {_} u w p q r with trio< u w | |
1391 ... | tri< a ¬b ¬c = p a | |
1392 ... | tri≈ ¬a b ¬c = q b | |
1393 ... | tri> ¬a ¬b c = r c | |
1394 | |
1395 or : {n m r : Level } {P : Set n } {Q : Set m} {R : Set r} → P ∨ Q → ( P → R ) → (Q → R ) → R | |
1396 or (case1 p) p→r q→r = p→r p | |
1397 or (case2 q) p→r q→r = q→r q | |
1398 | |
921 | 1399 |
1400 -- ZChain contradicts ¬ Maximal | |
1401 -- | |
1402 -- ZChain forces fix point on any ≤-monotonic function (fixpoint) | |
1403 -- ¬ Maximal create cf which is a <-monotonic function by axiom of choice. This contradicts fix point of ZChain | |
1404 -- | |
924
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1405 |
a48dc906796c
supf usp0 instead of supf (& A) ?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
1406 z04 : (nmx : ¬ Maximal A ) → (zc : ZChain A (cf nmx) (cf-is-≤-monotonic nmx) as0 (& A)) → ⊥ |
966 | 1407 z04 nmx zc = <-irr0 {* (cf nmx c)} {* c} |
1408 (subst (λ k → odef A k ) (sym &iso) (proj1 (is-cf nmx (MinSUP.asm msp1 )))) | |
965
1c1c6a6ed4fa
removing ch-init is no good because of initialization
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
964
diff
changeset
|
1409 (subst (λ k → odef A k) (sym &iso) (MinSUP.asm msp1) ) |
988
9a85233384f7
is-max and supf b = supf x
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
987
diff
changeset
|
1410 (case1 ( cong (*)( fixpoint (cf nmx) (cf-is-≤-monotonic nmx ) zc msp1 ))) -- x ≡ f x ̄ |
959 | 1411 (proj1 (cf-is-<-monotonic nmx c (MinSUP.asm msp1 ))) where -- x < f x |
937 | 1412 |
927 | 1413 supf = ZChain.supf zc |
934 | 1414 msp1 : MinSUP A (ZChain.chain zc) |
966 | 1415 msp1 = msp0 (cf nmx) (cf-is-≤-monotonic nmx) as0 zc |
1416 c : Ordinal | |
1417 c = MinSUP.sup msp1 | |
934 | 1418 |
966 | 1419 zorn00 : Maximal A |
1420 zorn00 with is-o∅ ( & HasMaximal ) -- we have no Level (suc n) LEM | |
804 | 1421 ... | no not = record { maximal = ODC.minimal O HasMaximal (λ eq → not (=od∅→≡o∅ eq)) ; as = zorn01 ; ¬maximal<x = zorn02 } where |
551 | 1422 -- yes we have the maximal |
1423 zorn03 : odef HasMaximal ( & ( ODC.minimal O HasMaximal (λ eq → not (=od∅→≡o∅ eq)) ) ) | |
606 | 1424 zorn03 = ODC.x∋minimal O HasMaximal (λ eq → not (=od∅→≡o∅ eq)) -- Axiom of choice |
551 | 1425 zorn01 : A ∋ ODC.minimal O HasMaximal (λ eq → not (=od∅→≡o∅ eq)) |
966 | 1426 zorn01 = proj1 zorn03 |
551 | 1427 zorn02 : {x : HOD} → A ∋ x → ¬ (ODC.minimal O HasMaximal (λ eq → not (=od∅→≡o∅ eq)) < x) |
1428 zorn02 {x} ax m<x = proj2 zorn03 (& x) ax (subst₂ (λ j k → j < k) (sym *iso) (sym *iso) m<x ) | |
927 | 1429 ... | yes ¬Maximal = ⊥-elim ( z04 nmx (SZ (cf nmx) (cf-is-≤-monotonic nmx) as0 (& A) )) where |
551 | 1430 -- if we have no maximal, make ZChain, which contradict SUP condition |
966 | 1431 nmx : ¬ Maximal A |
551 | 1432 nmx mx = ∅< {HasMaximal} zc5 ( ≡o∅→=od∅ ¬Maximal ) where |
966 | 1433 zc5 : odef A (& (Maximal.maximal mx)) ∧ (( y : Ordinal ) → odef A y → ¬ (* (& (Maximal.maximal mx)) < * y)) |
804 | 1434 zc5 = ⟪ Maximal.as mx , (λ y ay mx<y → Maximal.¬maximal<x mx (subst (λ k → odef A k ) (sym &iso) ay) (subst (λ k → k < * y) *iso mx<y) ) ⟫ |
551 | 1435 |
516 | 1436 -- usage (see filter.agda ) |
1437 -- | |
497 | 1438 -- _⊆'_ : ( A B : HOD ) → Set n |
1439 -- _⊆'_ A B = (x : Ordinal ) → odef A x → odef B x | |
482 | 1440 |
966 | 1441 -- MaximumSubset : {L P : HOD} |
497 | 1442 -- → o∅ o< & L → o∅ o< & P → P ⊆ L |
1443 -- → IsPartialOrderSet P _⊆'_ | |
1444 -- → ( (B : HOD) → B ⊆ P → IsTotalOrderSet B _⊆'_ → SUP P B _⊆'_ ) | |
1445 -- → Maximal P (_⊆'_) | |
1446 -- MaximumSubset {L} {P} 0<L 0<P P⊆L PO SP = Zorn-lemma {P} {_⊆'_} 0<P PO SP |