Move some more things into RawCategory

This commit is contained in:
Frederik Hanghøj Iversen 2018-02-20 18:14:42 +01:00
parent 0c861c4bde
commit d2da84269f

View file

@ -65,6 +65,22 @@ record RawCategory (a b : Level) : Set (lsuc (a ⊔ b)) where
Monomorphism : {X : Object} (f : Arrow A B) Set b
Monomorphism {X} f = ( g₀ g₁ : Arrow X A ) f g₀ f g₁ g₀ g₁
unique = isContr
IsInitial : Object Set (a b)
IsInitial I = {X : Object} unique (Arrow I X)
IsTerminal : Object Set (a b)
-- ∃![ ? ] ?
IsTerminal T = {X : Object} unique (Arrow X T)
Initial : Set (a b)
Initial = Σ (Object) IsInitial
Terminal : Set (a b)
Terminal = Σ (Object) IsTerminal
-- Univalence is indexed by a raw category as well as an identity proof.
module Univalence {a b : Level} ( : RawCategory a b) where
open RawCategory
@ -235,20 +251,3 @@ module _ {a b : Level} { : Category a b} where
Opposite-is-involution : Opposite (Opposite )
raw (Opposite-is-involution i) = rawOp i
isCategory (Opposite-is-involution i) = rawIsCat i
module _ {a b : Level} ( : Category a b) where
open Category
unique = isContr
IsInitial : Object Set (a b)
IsInitial I = {X : Object } unique ( [ I , X ])
IsTerminal : Object Set (a b)
-- ∃![ ? ] ?
IsTerminal T = {X : Object } unique ( [ X , T ])
Initial : Set (a b)
Initial = Σ (Object ) IsInitial
Terminal : Set (a b)
Terminal = Σ (Object ) IsTerminal