Skip to content

Commit 4f28ac8

Browse files
Adapting to UniMath refactoring precategories: Got all Initiality compiling again
1 parent 2a07445 commit 4f28ac8

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

TypeTheory/Initiality/SplitTypeCat_Contextual.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Require Import TypeTheory.Initiality.SplitTypeCat_General.
1212
(* These two lemmas should be upstreamed to UniMath/CategoryTheory/limits/terminal.v and initial.v *)
1313
Section upstream.
1414

15-
Lemma isaprop_isTerminal {C : precategory} (x : C) : isaprop (isTerminal C x).
15+
Lemma isaprop_isTerminal {C : category} (x : C) : isaprop (isTerminal C x).
1616
Proof.
1717
repeat (apply impred; intro).
1818
apply isapropiscontr.
1919
Qed.
2020

21-
Lemma isaprop_isInitial {C : precategory} (x : C) : isaprop (isInitial C x).
21+
Lemma isaprop_isInitial {C : category} (x : C) : isaprop (isInitial C x).
2222
Proof.
2323
repeat (apply impred; intro).
2424
apply isapropiscontr.

TypeTheory/Initiality/SplitTypeCat_General.v

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Require Import TypeTheory.Auxiliary.CategoryTheoryImports.
1111
Require Import TypeTheory.Auxiliary.Auxiliary.
1212
Require Import TypeTheory.ALV1.TypeCat.
1313

14-
(* This should be upstreamed *)
14+
(* TODO: upstream? *)
1515
Arguments nat_trans_ax {C C'} {F F'} a {x x'} f.
1616

1717
Local Open Scope cat.
@@ -161,7 +161,7 @@ Section Terms.
161161
: reind_tm f a ;; q_typecat A f = f ;; a.
162162
Proof.
163163
simpl.
164-
set (pb := make_Pullback _ _ _ _ _ _ _).
164+
set (pb := make_Pullback _ _).
165165
now rewrite (PullbackArrow_PullbackPr2 pb).
166166
Qed.
167167

@@ -230,9 +230,9 @@ Section Terms.
230230
= tm_transportb (reind_id_type_typecat _ _) a.
231231
Proof.
232232
apply subtypePath; [ intros x; apply homset_property|]; simpl.
233-
set (pb := make_Pullback _ _ _ _ _ _ _).
233+
set (pb := make_Pullback _ _).
234234
(* Why is there a ' version of this lemma??? *)
235-
apply pathsinv0, (PullbackArrowUnique' _ _ pb).
235+
apply pathsinv0, (PullbackArrowUnique' _ _ _ pb).
236236
- rewrite <-assoc.
237237
etrans; [eapply maponpaths, idtoiso_dpr_typecat|].
238238
exact (pr2 a).
@@ -257,10 +257,10 @@ Section Terms.
257257
(reind_tm g (reind_tm f a)).
258258
Proof.
259259
apply subtypePath; [ intros x; apply homset_property|]; simpl.
260-
set (pb := make_Pullback _ _ _ _ _ _ _).
261-
set (pb' := make_Pullback _ _ _ _ _ _ _).
262-
set (pb'' := make_Pullback _ _ _ _ _ _ _).
263-
apply pathsinv0, (PullbackArrowUnique' _ _ pb).
260+
set (pb := make_Pullback _ _).
261+
set (pb' := make_Pullback _ _).
262+
set (pb'' := make_Pullback _ _).
263+
apply pathsinv0, (PullbackArrowUnique' _ _ _ pb).
264264
- rewrite <- assoc.
265265
etrans; [eapply maponpaths, idtoiso_dpr_typecat|].
266266
apply (PullbackArrow_PullbackPr1 pb').
@@ -329,8 +329,8 @@ Section Terms.
329329
apply pathsinv0, PullbackArrowUnique.
330330
{ apply (section_property (tm_transportb _ _)). }
331331
apply pathsinv0.
332-
etrans. { refine (postCompWithPullbackArrow _ _ _
333-
(make_Pullback _ _ _ _ _ _ _) _ _ _). }
332+
etrans. { refine (postCompWithPullbackArrow _ _ _ _
333+
(make_Pullback _ _) _ _ _). }
334334
apply pathsinv0, PullbackArrowUnique; cbn; refine (_ @ ! id_right _).
335335
- rewrite <- assoc.
336336
etrans. { apply maponpaths, dpr_q_typecat. }
@@ -378,7 +378,7 @@ Section Terms.
378378
+ now induction e; rewrite <-assoc, id_left.
379379
+ unfold map_into_Pb.
380380
set (pb := Auxiliary.Pbb _ _ _ _ _ _ _ _ _ _ _).
381-
rewrite <-assoc, (postCompWithPullbackArrow _ _ _ pb).
381+
rewrite <-assoc, (postCompWithPullbackArrow _ _ _ _ pb).
382382
apply PullbackArrowUnique; cbn.
383383
- rewrite <-!assoc, dpr_q_typecat; induction e.
384384
now rewrite id_left, assoc, af, id_left, id_right.
@@ -505,4 +505,4 @@ Section Types_with_Terms.
505505
apply tm_transportf_irrelevant.
506506
Qed.
507507

508-
End Types_with_Terms.
508+
End Types_with_Terms.

TypeTheory/Initiality/SplitTypeCat_Maps.v

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Section Derived_Actions.
262262
reind_tm (# F f) (fmap_tm F a).
263263
Proof.
264264
apply paths_tm, PullbackArrowUnique; cbn; simpl;
265-
set (pb := make_Pullback _ _ _ _ _ _ _); rewrite <-!assoc.
265+
set (pb := make_Pullback _ _); rewrite <-!assoc.
266266
- etrans; [apply maponpaths, maponpaths, comp_ext_compare_dpr_typecat|].
267267
etrans; [apply maponpaths, (!typecat_mor_triangle F (A ⦃f⦄))|].
268268
now rewrite <- functor_comp, (PullbackArrow_PullbackPr1 pb), functor_id.
@@ -328,8 +328,7 @@ Section Derived_Actions.
328328
etrans. { apply assoc. }
329329
etrans. { apply maponpaths_2, assoc. }
330330
etrans. { apply maponpaths_2, maponpaths_2.
331-
refine (PullbackArrow_PullbackPr2
332-
(make_Pullback _ _ _ _ _ _ _) _ _ _ _). }
331+
refine (PullbackArrow_PullbackPr2 (make_Pullback _ _) _ _ _ _). }
333332
simpl pr1.
334333
etrans. { apply maponpaths_2, maponpaths_2, assoc. }
335334
etrans. { apply pathsinv0, assoc. }
@@ -343,8 +342,7 @@ Section Derived_Actions.
343342
etrans. { apply pathsinv0, functor_comp. }
344343
etrans.
345344
{ apply maponpaths.
346-
refine (PullbackArrow_PullbackPr2
347-
(make_Pullback _ _ _ _ _ _ _) _ _ _ _).
345+
refine (PullbackArrow_PullbackPr2 (make_Pullback _ _) _ _ _ _).
348346
}
349347
apply functor_id.
350348
}

0 commit comments

Comments
 (0)