Trim mess
This commit is contained in:
parent
8ef61d9db0
commit
860c91f913
|
@ -137,53 +137,27 @@ module _ {ℓa ℓb : Level} {C : RawCategory ℓa ℓb} {ℂ : IsCategory C} wh
|
||||||
propUnivalent a b i = propPi (λ iso → propHasLevel ⟨-2⟩) a b i
|
propUnivalent a b i = propPi (λ iso → propHasLevel ⟨-2⟩) a b i
|
||||||
|
|
||||||
module _ {ℓa} {ℓb} {ℂ : RawCategory ℓa ℓb} where
|
module _ {ℓa} {ℓb} {ℂ : RawCategory ℓa ℓb} where
|
||||||
-- TODO, provable by using arrow-is-set and that isProp (isEquiv _ _ _)
|
open RawCategory ℂ
|
||||||
-- This lemma will be useful to prove the equality of two categories.
|
private
|
||||||
IsCategory-is-prop : isProp (IsCategory ℂ)
|
module _ (x y : IsCategory ℂ) where
|
||||||
IsCategory-is-prop x y i = record
|
module IC = IsCategory
|
||||||
-- Why choose `x`'s `propIsAssociative`?
|
module X = IsCategory x
|
||||||
-- Well, probably it could be pulled out of the record.
|
module Y = IsCategory y
|
||||||
{ assoc = x.propIsAssociative x.assoc y.assoc i
|
ident = X.propIsIdentity X.ident Y.ident
|
||||||
; ident = ident' i
|
done : x ≡ y
|
||||||
; arrowIsSet = x.propArrowIsSet x.arrowIsSet y.arrowIsSet i
|
|
||||||
; univalent = eqUni i
|
|
||||||
}
|
|
||||||
where
|
|
||||||
module x = IsCategory x
|
|
||||||
module y = IsCategory y
|
|
||||||
ident' = x.propIsIdentity x.ident y.ident
|
|
||||||
ident'' = ident' i
|
|
||||||
xuni : x.Univalent
|
|
||||||
xuni = x.univalent
|
|
||||||
yuni : y.Univalent
|
|
||||||
yuni = y.univalent
|
|
||||||
open RawCategory ℂ
|
|
||||||
Pp : (x.ident ≡ y.ident) → I → Set (ℓa ⊔ ℓb)
|
|
||||||
Pp eqIdent i = {A B : Object} →
|
|
||||||
isEquiv (A ≡ B) (A ≅ B)
|
|
||||||
(λ A≡B →
|
|
||||||
transp
|
|
||||||
(λ j →
|
|
||||||
Σ-syntax (Arrow A (A≡B j))
|
|
||||||
(λ f → Σ-syntax (Arrow (A≡B j) A) (λ g → g ∘ f ≡ 𝟙 × f ∘ g ≡ 𝟙)))
|
|
||||||
( 𝟙
|
|
||||||
, 𝟙
|
|
||||||
, ident' i
|
|
||||||
)
|
|
||||||
)
|
|
||||||
T : I → Set (ℓa ⊔ ℓb)
|
T : I → Set (ℓa ⊔ ℓb)
|
||||||
T = Pp {!ident'!}
|
T i = {A B : Object} →
|
||||||
open Cubical.NType.Properties
|
isEquiv (A ≡ B) (A ≅ B)
|
||||||
test : (λ _ → x.Univalent) [ xuni ≡ xuni ]
|
(λ eq → transp (λ i₁ → A ≅ eq i₁) (𝟙 , 𝟙 , ident i))
|
||||||
test = refl
|
eqUni : T [ X.univalent ≡ Y.univalent ]
|
||||||
t = {!!}
|
|
||||||
P : (uni : x.Univalent) → xuni ≡ uni → Set (ℓa ⊔ ℓb)
|
|
||||||
P = {!!}
|
|
||||||
-- T i0 ≡ x.Univalent
|
|
||||||
-- T i1 ≡ y.Univalent
|
|
||||||
eqUni : T [ xuni ≡ yuni ]
|
|
||||||
eqUni = {!!}
|
eqUni = {!!}
|
||||||
|
IC.assoc (done i) = X.propIsAssociative X.assoc Y.assoc i
|
||||||
|
IC.ident (done i) = ident i
|
||||||
|
IC.arrowIsSet (done i) = X.propArrowIsSet X.arrowIsSet Y.arrowIsSet i
|
||||||
|
IC.univalent (done i) = eqUni i
|
||||||
|
|
||||||
|
propIsCategory : isProp (IsCategory ℂ)
|
||||||
|
propIsCategory = done
|
||||||
|
|
||||||
record Category (ℓa ℓb : Level) : Set (lsuc (ℓa ⊔ ℓb)) where
|
record Category (ℓa ℓb : Level) : Set (lsuc (ℓa ⊔ ℓb)) where
|
||||||
field
|
field
|
||||||
|
|
Loading…
Reference in a new issue