annotate subcat.agda @ 920:c10ee19a1ea3

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 04 May 2020 14:34:42 +0900
parents 635418b4b2f3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
912
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 open import Category
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 open import Level
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 module subcat {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁' c₂' ℓ') (B : Category c₁ c₂ ℓ) (F : Functor A B) where
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 open import cat-utility
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 open import Relation.Binary.PropositionalEquality
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 open Functor
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 FCat : Category c₁' c₂ ℓ
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 FCat = record {
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 Obj = Obj A
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 ; Hom = λ a b → Hom B (FObj F a) (FObj F b)
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 ; _o_ = Category._o_ B
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 ; _≈_ = Category._≈_ B
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 ; Id = λ {a} → id1 B (FObj F a)
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 ; isCategory = record {
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 isEquivalence = IsCategory.isEquivalence (Category.isCategory B) ;
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 identityL = λ {a b f} → IsCategory.identityL (Category.isCategory B) ;
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 identityR = λ {a b f} → IsCategory.identityR (Category.isCategory B) ;
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 o-resp-≈ = λ {a b c f g h i} → IsCategory.o-resp-≈ (Category.isCategory B);
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 associative = λ{a b c d f g h } → IsCategory.associative (Category.isCategory B)
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 }
635418b4b2f3 add subcat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 }