# HG changeset patch # User Shinji KONO # Date 1649993078 -32400 # Node ID d0ae1e3288f28bd713d19f1bded1891734eda931 # Parent 99b8ea24e6cd9bd29608ffe1577bb4461ec08fc5 ... diff -r 99b8ea24e6cd -r d0ae1e3288f2 src/zorn.agda --- a/src/zorn.agda Fri Apr 15 08:14:41 2022 +0900 +++ b/src/zorn.agda Fri Apr 15 12:24:38 2022 +0900 @@ -1,5 +1,5 @@ {-# OPTIONS --allow-unsolved-metas #-} -open import Level +open import Level hiding ( suc ; zero ) open import Ordinals import OD module zorn {n : Level } (O : Ordinals {n}) (_<_ : (x y : OD.HOD O ) → Set n ) where @@ -40,18 +40,18 @@ open HOD -record Element (A : HOD) : Set (suc n) where +record Element (A : HOD) : Set (Level.suc n) where field elm : HOD is-elm : A ∋ elm open Element -IsPartialOrderSet : ( A : HOD ) → Set (suc n) +IsPartialOrderSet : ( A : HOD ) → Set (Level.suc n) IsPartialOrderSet A = IsStrictPartialOrder _≡A_ _ ¬a ¬b c = ⊥-elim ( nat-≤> (s≤s le) c ) + IC-is-total : {A : HOD} → (ax : Element A ) → IsPartialOrderSet A → IsTotalOrderSet (IChainSet {A} ax) IC-is-total {A} ax PO = record { isEquivalence = IsStrictPartialOrder.isEquivalence IPO ; trans = λ {x} {y} {z} → IsStrictPartialOrder.trans IPO {x} {y} {z} ; compare = cmp } where IPO : IsPartialOrderSet (IChainSet {A} ax) IPO = ⊆-IsPartialOrderSet record { incl = λ {x} lt → proj1 lt } PO cmp : Trichotomous _ _ - cmp x y with IChained.iy (proj2 (is-elm x)) | IChained.iy (proj2 (is-elm y)) - ... | ifirst x₁ | ifirst x₂ = tri≈ {!!} {!!} {!!} - ... | ifirst x₁ | inext x₂ x₃ s = {!!} - ... | inext x₁ x₂ t | ifirst x₃ = {!!} - ... | inext x₁ x₂ t | inext x₃ x₄ s with cmp (me ⟪ subst (λ k → odef A k) (sym &iso) (ic→odef t) , - record { iy = subst (λ k → IChain A k) (sym &iso) t ; ic = ic1 } ⟫) (me ⟪ subst (λ k → odef A k) (sym &iso) (ic→odef s) , - record { iy = subst (λ k → IChain A k) (sym &iso) s ; ic = ic2 } ⟫) where - ic1 : ic-connect (& (elm ax)) (subst (λ k → IChain A k) (sym &iso) t) - ic1 = {!!} - ic2 : ic-connect (& (elm ax)) (subst (λ k → IChain A k) (sym &iso) s) - ic2 = {!!} - ... | t = {!!} + cmp x y with iclen A (IChained.iy (proj2 (is-elm x))) | iclen A (IChained.iy (proj2 (is-elm y))) + ... | zero | zero = {!!} + ... | zero | suc t = {!!} + ... | suc s | zero = {!!} + ... | suc s | suc t = {!!} -- there is a y, & y > & x record OSup> (A : HOD) {x : Ordinal} (ax : A ∋ * x) : Set n where @@ -193,7 +228,7 @@ icy : odef (IChainSet {A} (me ax)) y c-finite : ¬ IChainSup> A ax -record Maximal ( A : HOD ) : Set (suc n) where +record Maximal ( A : HOD ) : Set (Level.suc n) where field maximal : HOD A∋maximal : A ∋ maximal @@ -246,7 +281,7 @@ ... | yes inifite = case2 (case2 record { chain