-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dc8429
commit 36c6bea
Showing
12 changed files
with
950 additions
and
1,061 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
Cubical/Categories/Constructions/DisplayedCategory/DisplayedPoset.agda
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
Cubical/Categories/Constructions/DisplayedCategory/Grothendieck.agda
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{-# OPTIONS --safe #-} | ||
-- | ||
module Cubical.Categories.Displayed.Base.More where | ||
|
||
|
||
open import Cubical.Foundations.Prelude | ||
|
||
open import Cubical.Categories.Category.Base | ||
open import Cubical.Categories.Functor | ||
|
||
open import Cubical.Categories.Displayed.Base | ||
|
||
private | ||
variable | ||
ℓC ℓC' ℓCᴰ ℓCᴰ' : Level | ||
|
||
module _ {C : Category ℓC ℓC'} {Cᴰ : Categoryᴰ C ℓCᴰ ℓCᴰ'} where | ||
open Functor | ||
|
||
Fst : Functor (∫C Cᴰ) C | ||
Fst .F-ob = fst | ||
Fst .F-hom = fst | ||
Fst .F-id = refl | ||
Fst .F-seq = | ||
λ f g → cong {x = f ⋆⟨ ∫C Cᴰ ⟩ g} fst refl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{-# OPTIONS --safe #-} | ||
|
||
module Cubical.Categories.Displayed.Preorder where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.HLevels | ||
open import Cubical.Data.Sigma | ||
|
||
open import Cubical.Categories.Category.Base | ||
open import Cubical.Categories.Functor | ||
|
||
open import Cubical.Categories.Displayed.Base | ||
open import Cubical.Categories.Displayed.Base.More | ||
|
||
private | ||
variable | ||
ℓC ℓC' ℓCᴰ ℓCᴰ' : Level | ||
|
||
record Preorderᴰ (C : Category ℓC ℓC') ℓCᴰ ℓCᴰ' : | ||
Type (ℓ-suc (ℓ-max (ℓ-max ℓC ℓC') (ℓ-max ℓCᴰ ℓCᴰ'))) where | ||
open Category C | ||
field | ||
ob[_] : ob → Type ℓCᴰ | ||
Hom[_][_,_] : {x y : ob} → Hom[ x , y ] → ob[ x ] → ob[ y ] → Type ℓCᴰ' | ||
idᴰ : ∀ {x} {p : ob[ x ]} → Hom[ id ][ p , p ] | ||
_⋆ᴰ_ : ∀ {x y z} {f : Hom[ x , y ]} {g : Hom[ y , z ]} {xᴰ yᴰ zᴰ} | ||
→ Hom[ f ][ xᴰ , yᴰ ] → Hom[ g ][ yᴰ , zᴰ ] → Hom[ f ⋆ g ][ xᴰ , zᴰ ] | ||
isPropHomᴰ : ∀ {x y} {f : Hom[ x , y ]} {xᴰ yᴰ} → isProp Hom[ f ][ xᴰ , yᴰ ] | ||
|
||
module _ {C : Category ℓC ℓC'} (Pᴰ : Preorderᴰ C ℓCᴰ ℓCᴰ') where | ||
open Category | ||
open Preorderᴰ | ||
Preorderᴰ→Catᴰ : Categoryᴰ C ℓCᴰ ℓCᴰ' | ||
Preorderᴰ→Catᴰ = record | ||
{ ob[_] = Pᴰ .ob[_] | ||
; Hom[_][_,_] = Pᴰ .Hom[_][_,_] | ||
; idᴰ = Pᴰ .idᴰ | ||
; _⋆ᴰ_ = Pᴰ ._⋆ᴰ_ | ||
; ⋆IdLᴰ = λ _ → | ||
isProp→PathP ((λ i → Pᴰ .isPropHomᴰ {f = ((C .⋆IdL _) i)})) _ _ | ||
; ⋆IdRᴰ = λ _ → | ||
isProp→PathP ((λ i → Pᴰ .isPropHomᴰ {f = ((C .⋆IdR _) i)})) _ _ | ||
; ⋆Assocᴰ = λ _ _ _ → | ||
isProp→PathP ((λ i → Pᴰ .isPropHomᴰ {f = ((C .⋆Assoc _ _ _) i)})) _ _ | ||
; isSetHomᴰ = isProp→isSet (Pᴰ .isPropHomᴰ) | ||
} | ||
|
||
open Functor | ||
|
||
Preorderᴰ→FstFaithful : isFaithful (Fst {Cᴰ = Preorderᴰ→Catᴰ}) | ||
Preorderᴰ→FstFaithful x y f g p = | ||
ΣPathP (p , isProp→PathP (λ i → Pᴰ .isPropHomᴰ {f = p i}) (f .snd) (g .snd)) |
Oops, something went wrong.