# HG changeset patch # User Shinji KONO # Date 1558704136 -32400 # Node ID 0d9b9db1436155f4a27a8fa6d2ad5ea1fb2ff26f # Parent 4d5fc63815462490bfb80ed2ec0cf4ebb3940f6a equalitu and internal parametorisity diff -r 4d5fc6381546 -r 0d9b9db14361 ordinal-definable.agda --- a/ordinal-definable.agda Fri May 24 10:28:02 2019 +0900 +++ b/ordinal-definable.agda Fri May 24 22:22:16 2019 +0900 @@ -34,6 +34,28 @@ _c<_ : { n : Level } → ( a x : OD {n} ) → Set n x c< a = a ∋ x +-- _=='_ : {n : Level} → Set (suc n) -- Rel (OD {n}) (suc n) +-- _=='_ {n} = ( a b : OD {n} ) → ( ∀ { x : OD {n} } → a ∋ x → b ∋ x ) ∧ ( ∀ { x : OD {n} } → a ∋ x → b ∋ x ) + +record _==_ {n : Level} ( a b : OD {n} ) : Set n where + field + eq→ : ∀ { x : Ordinal {n} } → def a x → def b x + eq← : ∀ { x : Ordinal {n} } → def b x → def a x + +id : {n : Level} {A : Set n} → A → A +id x = x + +eq-refl : {n : Level} { x : OD {n} } → x == x +eq-refl {n} {x} = record { eq→ = id ; eq← = id } + +open _==_ + +eq-sym : {n : Level} { x y : OD {n} } → x == y → y == x +eq-sym eq = record { eq→ = eq← eq ; eq← = eq→ eq } + +eq-trans : {n : Level} { x y z : OD {n} } → x == y → y == z → x == z +eq-trans x=y y=z = record { eq→ = λ t → eq→ y=z ( eq→ x=y t) ; eq← = λ t → eq← x=y ( eq← y=z t) } + _c≤_ : {n : Level} → OD {n} → OD {n} → Set (suc n) a c≤ b = (a ≡ b) ∨ ( b ∋ a ) @@ -136,8 +158,8 @@ open Ordinal -∋-subst : {n : Level} {X Y x y : OD {suc n} } → X ≡ x → Y ≡ y → X ∋ Y → x ∋ y -∋-subst refl refl x = x +-- ∋-subst : {n : Level} {X Y x y : OD {suc n} } → X ≡ x → Y ≡ y → X ∋ Y → x ∋ y +-- ∋-subst refl refl x = x -- ∅77 : {n : Level} → (x : OD {suc n} ) → ¬ ( ord→od (o∅ {suc n}) ∋ x ) -- ∅77 {n} x lt = {!!} where @@ -145,19 +167,26 @@ ∅7' : {n : Level} → ord→od (o∅ {n}) ≡ od∅ {n} ∅7' {n} = cong ( λ k → record { def = k }) ( ∅-base-def ) where -∅7 : {n : Level} → ( x : OD {n} ) → od→ord x ≡ o∅ {n} → x ≡ od∅ {n} -∅7 {n} x eq = trans ( trans (sym oiso)( cong ( λ k → ord→od k ) eq ) ) ∅7' +∅7 : {n : Level} → ( x : OD {n} ) → od→ord x ≡ o∅ {n} → x == od∅ {n} +∅7 {n} x eq = record { eq→ = e1 ; eq← = e2 } where + e0 : {y : Ordinal {n}} → y o< o∅ {n} → def od∅ y + e0 {y} (case1 ()) + e0 {y} (case2 ()) + e1 : {y : Ordinal {n}} → def x y → def od∅ y + e1 {y} y