Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-enriched categories #1467

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
d884132
Uniqueness of general products (up to isomorphism)
langston-barrett Oct 21, 2018
0d97d7f
Associativity of binary products
langston-barrett Oct 21, 2018
b222d1f
Fix notation conflict
langston-barrett Oct 21, 2018
c13d72e
monoidal structure on categories with products
langston-barrett Oct 22, 2018
e629c8b
Migrate proof of binary product associativity to binproducts.v
langston-barrett Oct 28, 2018
dabdc7b
Add Cartesian.v to CONTENTS.md
langston-barrett Oct 28, 2018
ca9bf06
fix errors
umedaikiti Nov 23, 2021
38574c7
Merge branch 'master' into univalence-slices
nmvdw Feb 13, 2022
2d319b9
Merge pull request #1457 from nmvdw/univalence-slices
benediktahrens Feb 14, 2022
096421b
Street (op)fibs in Cat
nmvdw Feb 14, 2022
70324d3
Merge branch 'master' into street-fib-in-cat
nmvdw Feb 14, 2022
d2273bf
Merge pull request #1458 from nmvdw/street-fib-in-cat
benediktahrens Feb 14, 2022
d04c63d
try to get the unicode notation table to look nice in ASCII viewing mode
DanGrayson Feb 17, 2022
36b3874
Merge branch 'master' of github.com:UniMath/UniMath
DanGrayson Feb 17, 2022
5ff1ae2
add some remarks about emacs to USAGE.md
DanGrayson Feb 17, 2022
c725e07
try to get the unicode notation table to look nice in ASCII viewing m…
DanGrayson Feb 17, 2022
f3bb66e
Duality involutions, rework discrete bicats
nmvdw Feb 18, 2022
393e08c
Merge branch 'master' into duality-involution
nmvdw Feb 18, 2022
fc49805
Whoops....
nmvdw Feb 18, 2022
d239668
Remove comments
nmvdw Feb 18, 2022
368f71d
Forgot to add a file
nmvdw Feb 18, 2022
91d2bb0
Merge pull request #1460 from nmvdw/duality-involution
benediktahrens Feb 18, 2022
6cc9f2e
Uniqueness of general products (up to isomorphism)
langston-barrett Oct 21, 2018
8018188
Associativity of binary products
langston-barrett Oct 21, 2018
e1dd9d7
Fix notation conflict
langston-barrett Oct 21, 2018
6c4c07b
monoidal structure on categories with products
langston-barrett Oct 22, 2018
7e7b846
Migrate proof of binary product associativity to binproducts.v
langston-barrett Oct 28, 2018
740c86e
Add Cartesian.v to CONTENTS.md
langston-barrett Oct 28, 2018
2eeccd0
fix errors
umedaikiti Nov 23, 2021
503a80e
remove obsolete file Cats.v with def of precat of cats
benediktahrens Feb 20, 2022
b76613d
dissolve DispCat/Aux
benediktahrens Feb 20, 2022
c08e9d4
Merge pull request #1461 from benediktahrens/issue-1404
DanGrayson Feb 21, 2022
0da7f1c
Merge branch 'master' into issue-1421-sq
benediktahrens Feb 21, 2022
9abbfb0
Merge pull request #1462 from benediktahrens/issue-1421-sq
DanGrayson Feb 21, 2022
ac60705
remove duplicate z_iso_inv_mor
benediktahrens Feb 22, 2022
9ff746c
remove duplicate z_iso_is_z_isomorphism2
benediktahrens Feb 22, 2022
bb95381
remove comments
benediktahrens Feb 22, 2022
f0da7e2
arguments now implicit
benediktahrens Feb 22, 2022
c5f099d
arguments now implicit II
benediktahrens Feb 22, 2022
78e12b4
arguments now implicit III
benediktahrens Feb 22, 2022
b089c47
arguments now implicit IV
benediktahrens Feb 22, 2022
5362f3a
Merge pull request #1463 from benediktahrens/issue-948
benediktahrens Feb 23, 2022
ff504a7
mention tags-search in the INSTALL file
DanGrayson Mar 2, 2022
e4111db
move tags-search discussion from USAGE to INSTALL
DanGrayson Mar 2, 2022
dbda0c0
remove autorewrite
umedaikiti Mar 4, 2022
6d7c516
Merge branch 'cartesian-monoidal' of github.com:umedaikiti/UniMath in…
umedaikiti Mar 4, 2022
2ac52f4
add correspondence between HSET-enriched and ordinary categories
umedaikiti Mar 5, 2022
126a7e9
improve proofs
umedaikiti Mar 5, 2022
39ea615
Merge branch 'UniMath:master' into cartesian-monoidal
umedaikiti Mar 5, 2022
ea2e038
Merge branch 'UniMath:master' into cartesian-monoidal
umedaikiti Mar 5, 2022
0a08dae
remove auto and autorewrite
umedaikiti Mar 5, 2022
16ae6a5
move some parts to UniMath/Bicategories/EnrichedCategories
umedaikiti Mar 7, 2022
18f4a6c
Merge branch 'master' into cartesian-monoidal
benediktahrens Mar 11, 2022
7166753
Merge branch 'master' into cartesian-monoidal
benediktahrens Oct 18, 2022
70c125f
Update UniMath/CategoryTheory/limits/binproducts.v
benediktahrens Nov 7, 2022
9788301
Update UniMath/CategoryTheory/limits/binproducts.v
benediktahrens Nov 7, 2022
2a7cdc5
Update UniMath/CategoryTheory/limits/binproducts.v
benediktahrens Nov 7, 2022
5d42579
Update UniMath/CategoryTheory/limits/binproducts.v
benediktahrens Nov 7, 2022
7c41460
Update UniMath/CategoryTheory/limits/binproducts.v
benediktahrens Nov 7, 2022
98f0cc6
Merge branch 'master' into cartesian-monoidal
benediktahrens Nov 7, 2022
41339c6
Merge branch 'master' into cartesian-monoidal
benediktahrens Nov 18, 2022
9d5e0e4
Update UniMath/CategoryTheory/Monoidal/Cartesian.v
benediktahrens Nov 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
321 changes: 321 additions & 0 deletions UniMath/Bicategories/DisplayMapBicat.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Require Import UniMath.Bicategories.Core.Unitors.
Require Import UniMath.Bicategories.Core.BicategoryLaws.
Require Import UniMath.Bicategories.Morphisms.FullyFaithful.
Require Import UniMath.Bicategories.Morphisms.Adjunctions.
Require Import UniMath.Bicategories.Morphisms.FullyFaithful.
Require Import UniMath.Bicategories.Morphisms.DiscreteMorphisms.
Require Import UniMath.Bicategories.Morphisms.InternalStreetFibration.
Require Import UniMath.Bicategories.Morphisms.InternalStreetOpFibration.
Require Import UniMath.Bicategories.Morphisms.Properties.ClosedUnderPullback.
Expand Down Expand Up @@ -299,6 +301,62 @@ Proof.
+ exact (pr2 HD₂ _ _ _ _ p₁ p₂ fe).
Defined.

Definition faithful_subbicat
(B : bicat)
: arrow_subbicat B
:= full_arrow_subbicat (λ _ _ f, faithful_1cell f).

Definition faithful_subbicat_props
(B : bicat)
: arrow_subbicat_props (faithful_subbicat B).
Proof.
use full_arrow_subbicat_props.
intros.
apply isaprop_faithful_1cell.
Defined.

Definition fully_faithful_subbicat
(B : bicat)
: arrow_subbicat B
:= full_arrow_subbicat (λ _ _ f, fully_faithful_1cell f).

Definition fully_faithful_subbicat_props
(B : bicat)
: arrow_subbicat_props (fully_faithful_subbicat B).
Proof.
use full_arrow_subbicat_props.
intros.
apply isaprop_fully_faithful_1cell.
Defined.

Definition conservative_subbicat
(B : bicat)
: arrow_subbicat B
:= full_arrow_subbicat (λ _ _ f, conservative_1cell f).

Definition conservative_subbicat_props
(B : bicat)
: arrow_subbicat_props (conservative_subbicat B).
Proof.
use full_arrow_subbicat_props.
intros.
apply isaprop_conservative_1cell.
Defined.

Definition discrete_subbicat
(B : bicat)
: arrow_subbicat B
:= full_arrow_subbicat (λ _ _ f, discrete_1cell f).

Definition discrete_subbicat_props
(B : bicat)
: arrow_subbicat_props (discrete_subbicat B).
Proof.
use full_arrow_subbicat_props.
intros.
apply isaprop_discrete_1cell.
Defined.

Definition sfib_subbicat
(B : bicat)
: arrow_subbicat B.
Expand Down Expand Up @@ -355,6 +413,40 @@ Proof.
apply isaprop_mor_preserves_opcartesian.
Defined.

Definition discrete_sfib_subbicat
(B : bicat)
: arrow_subbicat B
:= intersection_arrow_subbicat
(sfib_subbicat B)
(discrete_subbicat B).

Definition discrete_sfib_subbicat_props
(B : bicat)
(HB_2_1 : is_univalent_2_1 B)
: arrow_subbicat_props (discrete_sfib_subbicat B).
Proof.
use intersection_arrow_subbicat_props.
- exact (sfib_subbicat_props _ HB_2_1).
- exact (discrete_subbicat_props B).
Defined.

Definition discrete_sopfib_subbicat
(B : bicat)
: arrow_subbicat B
:= intersection_arrow_subbicat
(sopfib_subbicat B)
(discrete_subbicat B).

Definition discrete_sopfib_subbicat_props
(B : bicat)
(HB_2_1 : is_univalent_2_1 B)
: arrow_subbicat_props (discrete_sopfib_subbicat B).
Proof.
use intersection_arrow_subbicat_props.
- exact (sopfib_subbicat_props _ HB_2_1).
- exact (discrete_subbicat_props B).
Defined.

(**
3. Display map bicategories
*)
Expand Down Expand Up @@ -584,6 +676,31 @@ Defined.
(**
4. Examples of display map bicategories
*)
Definition full_disp_map_bicat
{B : bicat_with_pb}
(P₀ : ∏ (x y : B), x --> y → UU)
(closed_pb : ∏ (pb x y z : B)
(f : x --> z)
(g : y --> z)
(p₁ : pb --> x)
(p₂ : pb --> y)
(γ : invertible_2cell (p₁ · f) (p₂ · g)),
P₀ x z f
has_pb_ump (make_pb_cone pb p₁ p₂ γ)
P₀ pb y p₂)
: disp_map_bicat B.
Proof.
use make_disp_map_bicat_with_pb.
- exact (full_arrow_subbicat P₀).
- exact (λ pb x y z f g p₁ p₂ γ H₁ H₂,
closed_pb pb x y z f g p₁ p₂ γ H₁ H₂
,,
tt).
- exact (λ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _, tt).
Defined.

Definition intersection_disp_map_bicat
{B : bicat}
(D₁ D₂ : disp_map_bicat B)
Expand Down Expand Up @@ -611,6 +728,46 @@ Proof.
(pr2 Hf) (pr2 Hp₁) (pr2 Hcp₁)).
Defined.

Definition faithful_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B.
Proof.
use full_disp_map_bicat.
- exact (λ _ _ f, faithful_1cell f).
- intros pb x y z f g p₁ p₂ γ Hf Hpb.
exact (pb_of_faithful_1cell Hpb Hf).
Defined.

Definition fully_faithful_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B.
Proof.
use full_disp_map_bicat.
- exact (λ _ _ f, fully_faithful_1cell f).
- intros pb x y z f g p₁ p₂ γ Hf Hpb.
exact (pb_of_fully_faithful_1cell Hpb Hf).
Defined.

Definition conservative_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B.
Proof.
use full_disp_map_bicat.
- exact (λ _ _ f, conservative_1cell f).
- intros pb x y z f g p₁ p₂ γ Hf Hpb.
exact (pb_of_conservative_1cell Hpb Hf).
Defined.

Definition discrete_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B.
Proof.
use full_disp_map_bicat.
- exact (λ _ _ f, discrete_1cell f).
- intros pb x y z f g p₁ p₂ γ Hf Hpb.
exact (pb_of_discrete_1cell Hpb Hf).
Defined.

Definition sfib_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B.
Expand Down Expand Up @@ -641,6 +798,20 @@ Proof.
exact H₃.
Defined.

Definition discrete_sfib_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B
:= intersection_disp_map_bicat
(sfib_disp_map_bicat B)
(discrete_disp_map_bicat B).

Definition discrete_sopfib_disp_map_bicat
(B : bicat_with_pb)
: disp_map_bicat B
:= intersection_disp_map_bicat
(sopfib_disp_map_bicat B)
(discrete_disp_map_bicat B).

(**
5. Properties of display map bicategories
*)
Expand All @@ -660,6 +831,128 @@ Definition is_contravariant_disp_map_bicat
×
pred_mor_is_mor_preserves_cartesian D.

Definition intersection_is_covariant
{B : bicat}
{D₁ D₂ : disp_map_bicat B}
(HD₁ : is_covariant_disp_map_bicat D₁)
(HD₂ : is_covariant_disp_map_bicat D₂)
: is_covariant_disp_map_bicat (intersection_disp_map_bicat D₁ D₂).
Proof.
split.
- intros x y f Hf.
apply HD₁.
apply Hf.
- intros e₁ e₂ b₁ b₂ p₁ p₂ fe.
split.
+ intro H.
apply HD₁.
apply H.
+ intro H.
split.
* apply HD₁.
apply H.
* apply HD₂.
apply H.
Defined.

Definition intersection_with_full_is_covariant
{B : bicat_with_pb}
(P₀ : ∏ (x y : B), x --> y → UU)
(closed_pb : ∏ (pb x y z : B)
(f : x --> z)
(g : y --> z)
(p₁ : pb --> x)
(p₂ : pb --> y)
(γ : invertible_2cell (p₁ · f) (p₂ · g)),
P₀ x z f
has_pb_ump (make_pb_cone pb p₁ p₂ γ)
P₀ pb y p₂)
{D : disp_map_bicat B}
(HD : is_covariant_disp_map_bicat D)
: is_covariant_disp_map_bicat
(intersection_disp_map_bicat
D
(full_disp_map_bicat P₀ closed_pb)).
Proof.
split.
- intros x y f Hf.
apply HD.
apply Hf.
- intros e₁ e₂ b₁ b₂ p₁ p₂ fe.
split.
+ intro H.
apply HD.
apply H.
+ intro H.
split.
* apply HD.
apply H.
* exact tt.
Defined.

Definition intersection_is_contravariant
{B : bicat}
{D₁ D₂ : disp_map_bicat B}
(HD₁ : is_contravariant_disp_map_bicat D₁)
(HD₂ : is_contravariant_disp_map_bicat D₂)
: is_contravariant_disp_map_bicat (intersection_disp_map_bicat D₁ D₂).
Proof.
split.
- intros x y f Hf.
apply HD₁.
apply Hf.
- intros e₁ e₂ b₁ b₂ p₁ p₂ fe.
split.
+ intro H.
apply HD₁.
apply H.
+ intro H.
split.
* apply HD₁.
apply H.
* apply HD₂.
apply H.
Defined.

Definition intersection_with_full_is_contravariant
{B : bicat_with_pb}
(P₀ : ∏ (x y : B), x --> y → UU)
(closed_pb : ∏ (pb x y z : B)
(f : x --> z)
(g : y --> z)
(p₁ : pb --> x)
(p₂ : pb --> y)
(γ : invertible_2cell (p₁ · f) (p₂ · g)),
P₀ x z f
has_pb_ump (make_pb_cone pb p₁ p₂ γ)
P₀ pb y p₂)
{D : disp_map_bicat B}
(HD : is_contravariant_disp_map_bicat D)
: is_contravariant_disp_map_bicat
(intersection_disp_map_bicat
D
(full_disp_map_bicat P₀ closed_pb)).
Proof.
split.
- intros x y f Hf.
apply HD.
apply Hf.
- intros e₁ e₂ b₁ b₂ p₁ p₂ fe.
split.
+ intro H.
apply HD.
apply H.
+ intro H.
split.
* apply HD.
apply H.
* exact tt.
Defined.

Definition sopfib_disp_map_bicat_is_covariant
(B : bicat_with_pb)
: is_covariant_disp_map_bicat (sopfib_disp_map_bicat B).
Expand All @@ -685,3 +978,31 @@ Proof.
+ exact (λ H, H).
+ exact (λ H, H).
Defined.

Definition discrete_sopfib_disp_map_bicat_is_covariant
(B : bicat_with_pb)
: is_covariant_disp_map_bicat (discrete_sopfib_disp_map_bicat B).
Proof.
use intersection_with_full_is_covariant.
split.
- intros ? ? ? H.
exact H.
- intros ? ? ? ? ? ? ?.
split.
+ exact (λ H, H).
+ exact (λ H, H).
Defined.

Definition discrete_sfib_disp_map_bicat_is_covariant
(B : bicat_with_pb)
: is_contravariant_disp_map_bicat (discrete_sfib_disp_map_bicat B).
Proof.
use intersection_with_full_is_contravariant.
split.
- intros ? ? ? H.
exact H.
- intros ? ? ? ? ? ? ?.
split.
+ exact (λ H, H).
+ exact (λ H, H).
Defined.
Loading