# HG changeset patch # User Shinji KONO # Date 1651263113 -32400 # Node ID d09f9a1d6c2f93c4441423df5fefd7dbbc9e2c9b # Parent 9ba98ecfbe626ceafed5dfe5ed07e79e1082fb4f ... diff -r 9ba98ecfbe62 -r d09f9a1d6c2f src/zorn.agda --- a/src/zorn.agda Sat Apr 30 04:41:06 2022 +0900 +++ b/src/zorn.agda Sat Apr 30 05:11:53 2022 +0900 @@ -7,6 +7,13 @@ import OD module zorn {n : Level } (O : Ordinals {n}) (_<_ : (x y : OD.HOD O ) → Set n ) (PO : IsStrictPartialOrder _≡_ _<_ ) where +-- +-- Zorn-lemma : { A : HOD } +-- → o∅ o< & A +-- → ( ( B : HOD) → (B⊆A : B ⊆ A) → IsTotalOrderSet B → SUP A B ) -- SUP condition +-- → Maximal A +-- + open import zf open import logic -- open import partfunc {n} O @@ -43,6 +50,10 @@ open HOD +-- +-- Partial Order on HOD ( possibly limited in A ) +-- + _≤_ : (x y : HOD) → Set (Level.suc n) x ≤ y = ( x ≡ y ) ∨ ( x < y ) @@ -60,28 +71,15 @@ open _==_ open _⊆_ --- open import Relation.Binary.Properties.Poset as Poset - -IsTotalOrderSet : ( A : HOD ) → Set (Level.suc n) -IsTotalOrderSet A = {a b : HOD} → odef A (& a) → odef A (& b) → Tri (a < b) (a ≡ b) (b < a ) - - -record Maximal ( A : HOD ) : Set (Level.suc n) where - field - maximal : HOD - A∋maximal : A ∋ maximal - ¬maximaly = tri< lt (λ eq → <-irr (case1 (sym eq)) lt ) (λ lt1 → <-irr (case2 lt1) lt ) where --- lt : * s < * (f y) --- lt with s≤fc s f mf cy --- ... | case1 s=y = subst (λ k → * k < * (f y) ) (sym (*≡*→≡ s=y)) fy>y --- ... | case2 sy --- fcn-cmp {A} s {x} f mf imm cx (init x₁) with s≤fc s f mf cx --- ... | case1 eq = tri≈ (λ lt → <-irr (case1 eq) lt) (sym eq) (λ lt → <-irr (case1 (sym eq)) lt) --- ... | case2 s (λ lt → <-irr (case2 s ¬a ¬b c = {!!} +-- open import Relation.Binary.Properties.Poset as Poset + +IsTotalOrderSet : ( A : HOD ) → Set (Level.suc n) +IsTotalOrderSet A = {a b : HOD} → odef A (& a) → odef A (& b) → Tri (a < b) (a ≡ b) (b < a ) + + +record Maximal ( A : HOD ) : Set (Level.suc n) where + field + maximal : HOD + A∋maximal : A ∋ maximal + ¬maximal