Skip to content

Commit 4d18146

Browse files
author
Patrick Nicodemus
committed
Convert a 1-category to a 1-bicategory.
1 parent deac631 commit 4d18146

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

theories/WildCat/TwoOneCat.v

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ Proof.
3737
- exact (@bicat_idr _ _ _ _ _).
3838
Defined.
3939

40+
Definition is1bicat_is1cat (A : Type) `{Is1Cat A}
41+
: Is1Bicat A.
42+
Proof.
43+
rapply Build_Is1Bicat.
44+
- exact (@cat_assoc _ _ _ _ _).
45+
- exact (@cat_assoc_opp _ _ _ _ _).
46+
- exact (@cat_idl _ _ _ _ _).
47+
- intros a b f. symmetry. apply cat_idl.
48+
- exact (@cat_idr _ _ _ _ _).
49+
- intros a b f. symmetry. apply cat_idr.
50+
Defined.
51+
4052
Notation "p $@R h" := (fmap (cat_precomp _ h) p) : twocat.
4153
Notation "h $@L p" := (fmap (cat_postcomp _ h) p) : twocat.
4254
Notation "a $| b" := (cat_comp (A:=Hom _ _) b a) : twocat.

0 commit comments

Comments
 (0)