Skip to content

Commit e721f44

Browse files
Some more precat->cat, following UniMath/UniMath#1426
1 parent 2cb5000 commit e721f44

File tree

10 files changed

+47
-47
lines changed

10 files changed

+47
-47
lines changed

TypeTheory/ALV1/CwF_SplitTypeCat_Cats_Standalone.v

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -727,33 +727,33 @@ Qed.
727727
Definition compat_structures_category : category
728728
:= make_category _ has_homsets_compat_structures_precategory.
729729

730-
Definition pr1_equiv : @adj_equivalence_of_precats
730+
Definition pr1_equiv : @adj_equivalence_of_cats
731731
compat_structures_category
732732
term_fun_category
733733
compat_structures_pr1_functor.
734734
Proof.
735-
use adj_equivalence_of_precats_ff_split.
735+
use adj_equivalence_of_cats_ff_split.
736736
- apply compat_structures_pr1_fully_faithful.
737737
- apply compat_structures_pr1_split_ess_surj.
738738
Defined.
739739

740-
Definition pr2_equiv : @adj_equivalence_of_precats
740+
Definition pr2_equiv : @adj_equivalence_of_cats
741741
compat_structures_category
742742
qq_structure_category
743743
compat_structures_pr2_functor.
744744
Proof.
745-
use adj_equivalence_of_precats_ff_split.
745+
use adj_equivalence_of_cats_ff_split.
746746
- apply compat_structures_pr2_fully_faithful.
747747
- apply compat_structures_pr2_split_ess_surj.
748748
Defined.
749749

750-
Definition pr1_equiv_inv : adj_equivalence_of_precats (right_adjoint pr1_equiv).
750+
Definition pr1_equiv_inv : adj_equivalence_of_cats (right_adjoint pr1_equiv).
751751
Proof.
752-
use adj_equivalence_of_precats_inv.
752+
use adj_equivalence_of_cats_inv.
753753
Defined.
754754

755-
Definition equiv_of_structures : adj_equivalence_of_precats _
756-
:= @comp_adj_equivalence_of_precats _ _ _ _ _
755+
Definition equiv_of_structures : adj_equivalence_of_cats _
756+
:= @comp_adj_equivalence_of_cats _ _ _ _ _
757757
pr1_equiv_inv pr2_equiv.
758758

759759
Definition equiv_of_types_of_structures

TypeTheory/ALV1/CwF_def.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ Proof.
418418
apply XT.
419419
Defined.
420420

421-
Let Fopequiv : adj_equivalence_of_precats _ := equiv_Fcomp F F_ff F_es.
421+
Let Fopequiv : adj_equivalence_of_cats _ := equiv_Fcomp F F_ff F_es.
422422

423423

424424
Definition pp'_eta :
@@ -495,7 +495,7 @@ Proof.
495495
Defined.
496496

497497

498-
Let RCequiv : adj_equivalence_of_precats _ := Rezk_op_adj_equiv C
498+
Let RCequiv : adj_equivalence_of_cats _ := Rezk_op_adj_equiv C
499499
HSET is_univalent_HSET.
500500

501501
Lemma has_homsets_preShv (D : category) : has_homsets (preShv D).

TypeTheory/ALV1/Transport_along_Equivs.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ Proof.
8888
Defined.
8989

9090

91-
Definition equiv_Fcomp : adj_equivalence_of_precats Fop_precomp.
91+
Definition equiv_Fcomp : adj_equivalence_of_cats Fop_precomp.
9292
Proof.
93-
apply rad_equivalence_of_precats.
93+
apply rad_equivalence_of_cats.
9494
- apply is_univalent_functor_category.
9595
apply is_univalent_HSET.
9696
- apply ff_Fop_precomp.
@@ -116,7 +116,7 @@ Defined.
116116
Definition epsinv : iso (C:=[_ , _])
117117
(functor_identity (preShv C)) (ext ∙ Fop_precomp).
118118
Proof.
119-
set (XR':= (counit_iso_from_adj_equivalence_of_precats equiv_Fcomp)).
119+
set (XR':= (counit_iso_from_adj_equivalence_of_cats equiv_Fcomp)).
120120
apply iso_inv_from_iso.
121121
apply XR'.
122122
Defined.
@@ -125,7 +125,7 @@ Defined.
125125
Definition etainv : iso (C:=[ _ , _])
126126
(Fop_precomp ∙ ext) (functor_identity (preShv D)).
127127
Proof.
128-
set (XR := (unit_iso_from_adj_equivalence_of_precats equiv_Fcomp)).
128+
set (XR := (unit_iso_from_adj_equivalence_of_cats equiv_Fcomp)).
129129
apply iso_inv_from_iso.
130130
apply XR.
131131
Defined.
@@ -148,7 +148,7 @@ Proof.
148148
apply functor_assoc_iso.
149149
eapply iso_comp.
150150
eapply functor_precomp_iso.
151-
apply (counit_iso_from_adj_equivalence_of_precats equiv_Fcomp).
151+
apply (counit_iso_from_adj_equivalence_of_cats equiv_Fcomp).
152152
eapply iso_comp.
153153
apply functor_comp_id_iso.
154154

TypeTheory/ALV2/CwF_SplitTypeCat_Equiv_Cats.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,10 @@ Proof.
632632
Defined.
633633

634634
Definition term_struc_to_qq_struc_is_equiv
635-
: adj_equivalence_of_precats
635+
: adj_equivalence_of_cats
636636
term_struc_to_qq_struc_fiber_functor.
637637
Proof.
638-
use comp_adj_equivalence_of_precats.
638+
use comp_adj_equivalence_of_cats.
639639
- apply fiber_equiv.
640640
apply is_equiv_of_equiv_over_id.
641641
- apply fiber_equiv.

TypeTheory/ALV2/FullyFaithfulDispFunctor.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ Section FullyFaithfulDispFunctor.
620620
Definition disp_cat_path_precat
621621
{C : category}
622622
(D D' : disp_cat C)
623-
: D = D' ≃ disp_cat_data_from_disp_precat D = D'.
623+
: D = D' ≃ disp_cat_data_from_disp_cat D = D'.
624624
Proof.
625625
apply path_sigma_hprop, isaprop_disp_cat_axioms.
626626
Defined.

TypeTheory/ALV2/RelUnivTransfer.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Section RelUniv_Transfer.
341341
Let E := ((S,, (invS,, (pr1 eta, pr1 eps)))
342342
,, ((λ d, (pr2 (Constructions.pointwise_iso_from_nat_iso eta d )))
343343
, (λ d', (pr2 (Constructions.pointwise_iso_from_nat_iso eps d')))))
344-
: equivalence_of_precats D D'.
344+
: equivalence_of_cats D D'.
345345

346346
Let AE := adjointificiation E.
347347
Let η' := pr1 (pr121 AE) : nat_trans (functor_identity _) (S ∙ invS).

TypeTheory/ALV2/SplitTypeCat_ComprehensionCat.v

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,9 @@ Section DiscreteComprehensionCat_from_SplitTypeCat.
453453
- intros. apply isasetaprop. apply (pr1 (pr2 TC)).
454454
Qed.
455455

456-
Definition disp_precat_from_split_typecat_structure
457-
: disp_precat C
458-
:= (_ ,, disp_cat_axioms_from_split_typecat_structure).
459-
460456
Definition disp_cat_from_split_typecat_structure
461457
: disp_cat C
462-
:= disp_precat_from_split_typecat_structure.
458+
:= (_ ,, disp_cat_axioms_from_split_typecat_structure).
463459

464460
Definition disp_cat_from_split_typecat_structure_is_univalent
465461
: is_univalent_disp disp_cat_from_split_typecat_structure.

TypeTheory/Articles/ALV_2018.v

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,27 @@ Admitted.
6060
(** ** Equivalence between two versions of cwf structures *)
6161

6262
Definition equiv_cat_cwf_cwf'_structure (C : category)
63-
: equivalence_of_precats (cwf_structure_cat C) (cwf'_structure_cat C).
63+
: equivalence_of_cats (cwf_structure_cat C) (cwf'_structure_cat C).
6464
Admitted.
6565

6666
(** ** Equivalence between two versions of split typecat structures *)
6767

6868
Definition equiv_cat_standalone_to_regrouped (C : category)
69-
: equivalence_of_precats
69+
: equivalence_of_cats
7070
(split_typecat_structure_cat C) (split_typecat'_structure_cat C).
7171
Admitted.
7272

7373
(** ** Auxiliary equivalence between the reordered structures *)
7474

7575
Definition weq_cwf'_sty' (C : category)
76-
: equivalence_of_precats
76+
: equivalence_of_cats
7777
(cwf'_structure_cat C) (split_typecat'_structure_cat C).
7878
Admitted.
7979

8080
(** ** Main construction: equivalence between split typecat structures and cwf structures *)
8181

8282
Definition weq_sty_cwf (C : category)
83-
: equivalence_of_precats
83+
: equivalence_of_cats
8484
(split_typecat_structure_cat C) (cwf_structure_cat C).
8585
Admitted.
8686

@@ -97,7 +97,7 @@ Proposition fully_faithful_cwf_to_rep (C : category)
9797
Admitted.
9898

9999
Definition isweq_from_cwf_to_rep {C : category} (C_univ : is_univalent C)
100-
: adj_equivalence_of_precats (functor_cwf_to_rep C).
100+
: adj_equivalence_of_cats (functor_cwf_to_rep C).
101101
Admitted.
102102

103103
(** * Transfer of [cwf_structure]s along weak equivalences *)
@@ -114,13 +114,13 @@ Admitted.
114114
Definition transfer_rep_map_weak_equivalence
115115
{C D : category} (F : C ⟶ D)
116116
: fully_faithful F → essentially_surjective F
117-
equivalence_of_precats (rep_map_cat C) (rep_map_cat D).
117+
equivalence_of_cats (rep_map_cat C) (rep_map_cat D).
118118
Admitted.
119119

120120
(** * Equivalence between [rep_map C] and [cwf (Rezk_completion C)] *)
121121

122122
Definition equiv_cat_rep_map_cwf_Rezk (C : category)
123-
: equivalence_of_precats
123+
: equivalence_of_cats
124124
(rep_map_cat C)
125125
(cwf_structure_cat (Rezk_completion C)).
126126
Admitted.

TypeTheory/Auxiliary/Auxiliary.v

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Defined.
551551

552552
Definition isweq_left_adj_equivalence_on_mor_total {C D : category} (F : functor C D)
553553
(isC : is_univalent C) (isD : is_univalent D)
554-
(H : adj_equivalence_of_precats F)
554+
(H : adj_equivalence_of_cats F)
555555
: isweq (functor_on_mor_total F).
556556
Proof.
557557
use (gradth _ _ _ _ ).
@@ -656,15 +656,15 @@ Defined.
656656
(** Specifically: the composition of (adjoint) equivalences of precats. *)
657657

658658
Coercion left_adj_from_adj_equiv (X Y : category) (K : functor X Y)
659-
(HK : adj_equivalence_of_precats K)
659+
(HK : adj_equivalence_of_cats K)
660660
: is_left_adjoint K
661661
:= pr1 HK.
662662

663663
Section about_equivalences.
664664

665665
Variables D1 D2 : category.
666666
Variable F : functor D1 D2.
667-
Variable GG : adj_equivalence_of_precats F.
667+
Variable GG : adj_equivalence_of_cats F.
668668

669669
Let G : functor D2 D1 := right_adjoint GG.
670670
Let η := unit_from_left_adjoint GG.
@@ -846,7 +846,7 @@ Lemma form_adjunction_ff_split
846846
apply iso_inv_after_iso.
847847
Qed.
848848

849-
Definition adj_equivalence_of_precats_ff_split : adj_equivalence_of_precats F.
849+
Definition adj_equivalence_of_cats_ff_split : adj_equivalence_of_cats F.
850850
Proof.
851851
use tpair.
852852
- exists G_ff_split.
@@ -891,7 +891,7 @@ Proof.
891891
Qed.
892892

893893
Lemma right_adj_equiv_is_full {D1 D2 : category}
894-
(F : functor D1 D2) (GG : adj_equivalence_of_precats F)
894+
(F : functor D1 D2) (GG : adj_equivalence_of_cats F)
895895
: full (right_adjoint GG).
896896
Proof.
897897
apply full_from_ff, right_adj_equiv_is_ff.
@@ -1052,8 +1052,8 @@ Proof.
10521052
Defined.
10531053

10541054
Definition adj_from_equiv (D1 D2 : category) (F : functor D1 D2):
1055-
adj_equivalence_of_precats F → is_left_adjoint F := fun x => pr1 x.
1056-
Coercion adj_from_equiv : adj_equivalence_of_precats >-> is_left_adjoint.
1055+
adj_equivalence_of_cats F → is_left_adjoint F := fun x => pr1 x.
1056+
Coercion adj_from_equiv : adj_equivalence_of_cats >-> is_left_adjoint.
10571057

10581058
(** ** Functors and isomorphisms *)
10591059

TypeTheory/Auxiliary/CategoryTheory.v

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ TODO: upstream this to UniMath, and possibly propose improvements there as in th
55
Require Import UniMath.Foundations.All.
66
Require Import UniMath.CategoryTheory.All.
77

8+
(* TODO: remove this once renamed to this upstream (from erroneous “…precats…”) *)
9+
Coercion adj_equiv_of_cats_from_adj {A B : category} (E : adj_equiv A B)
10+
: adj_equivalence_of_cats E := pr2 E.
11+
812
Definition adj_equiv_from_adjunction
913
{C D : category}
1014
(FG : adjunction C D)
@@ -32,8 +36,8 @@ Definition compose_adj_equiv
3236
: adj_equiv C E.
3337
Proof.
3438
exists (functor_composite F G).
35-
apply comp_adj_equivalence_of_precats;
36-
apply adj_equiv_of_precats_from_adj.
39+
apply comp_adj_equivalence_of_cats;
40+
apply adj_equiv_of_cats_from_adj.
3741
Defined.
3842

3943
Definition inv_adj_equiv
@@ -42,7 +46,7 @@ Definition inv_adj_equiv
4246
: adj_equiv D C.
4347
Proof.
4448
exists (adj_equivalence_inv F).
45-
apply adj_equivalence_of_precats_inv.
49+
apply adj_equivalence_of_cats_inv.
4650
Defined.
4751

4852
Definition nat_trans_from_nat_iso
@@ -151,19 +155,19 @@ Defined.
151155
(* TODO: Notes towards some possible improvements in UniMath’s treatment of adjunctions, equivalences (and a few other unrelated things in the library):
152156
153157
One really confusing point is having
154-
[adj_equivalence_of_precats] for the property of (or structure on) a functor,
158+
[adj_equivalence_of_cats] for the property of (or structure on) a functor,
155159
while
156-
[equivalence_of_precats] is the sigma-type of this over functors.
160+
[equivalence_of_cats] is the sigma-type of this over functors.
157161
158162
Suggestion:
159163
- [equivalence] changes to [equiv] throughout (this seems unambiguous?)
160164
161-
- [adj_equivalence_of_precats]
165+
- [adj_equivalence_of_cats]
162166
changes to either
163167
[is_adj_equiv] or [adj_equiv_structure]
164-
(possible also [_of_precats], but this seems reasonably implicit since it’s on a functor)
165-
- [equivalence_of_precats]
166-
changes to [adj_equiv_of_precats]
168+
(possible also [_of_cats], but this seems reasonably implicit since it’s on a functor)
169+
- [equivalence_of_cats]
170+
changes to [adj_equiv_of_cats]
167171
- lemmas about them are renamed as consistently as possible, following these.
168172
169173
- consolidate with the material from [DisplayedCats.Equivalences_bis], including its adj_equiv.

0 commit comments

Comments
 (0)