Skip to content

Commit 4a654b2

Browse files
Some proof cleanup + speedup in splittypecat-disccompcat equivalence
1 parent f961f5b commit 4a654b2

File tree

1 file changed

+9
-33
lines changed

1 file changed

+9
-33
lines changed

TypeTheory/ALV2/SplitTypeCat_ComprehensionCat.v

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -646,48 +646,24 @@ Section SplitTypeCat_DiscreteComprehensionCat_Equiv.
646646
Context {C : category}.
647647

648648
Definition split_typecat_structure_discrete_comprehension_cat_structure_default_mor_weq
649-
: split_typecat_structure C ≃ discrete_comprehension_cat_structure_with_default_mor C.
649+
: split_typecat_structure C
650+
≃ discrete_comprehension_cat_structure_with_default_mor C.
650651
Proof.
651652
use weq_iso.
652653
- apply discrete_comprehension_cat_structure_with_default_mor_from_typecat_structure.
653654
- apply split_typecat_structure_from_discrete_comprehension_cat_structure_default_mor.
654655
- intros TC.
655656
use total2_paths_f.
656-
+ use total2_paths_f.
657-
* apply idpath. (* typecat_structure1 *)
658-
* repeat use total2_paths_f.
659-
-- apply idpath. (* dpr *)
660-
-- apply idpath. (* q *)
661-
-- apply funextsec. intros ?.
662-
apply funextsec. intros ?.
663-
apply funextsec. intros ?.
664-
apply funextsec. intros ?.
665-
apply homset_property.
666-
-- apply funextsec. intros ?.
667-
apply funextsec. intros ?.
668-
apply funextsec. intros ?.
669-
apply funextsec. intros ?.
670-
apply isaprop_isPullback.
657+
+ abstract (repeat (use total2_paths_f; [apply idpath |]);
658+
do 4 (apply funextsec; intro);
659+
apply isaprop_isPullback).
671660
+ apply isaprop_is_split_typecat.
672661
- intros DC.
662+
do 4 (use total2_paths_f; [apply idpath |]).
673663
use total2_paths_f.
674-
2: use total2_paths_f.
675-
3: use total2_paths_f.
676-
4: use total2_paths_f.
677-
5: use total2_paths_f.
678-
+ apply idpath.
679-
+ apply idpath.
680-
+ apply idpath.
681-
+ apply idpath.
682-
+ apply funextsec. intros ?.
683-
apply funextsec. intros ?.
684-
apply funextsec. intros ?.
685-
apply funextsec. intros ?.
686-
apply funextsec. intros ?.
687-
apply funextsec. intros ff.
688-
induction ff.
689-
apply idpath.
690-
664+
+ abstract (do 5 (apply funextsec; intro);
665+
apply funextsec; intro ff;
666+
induction ff; apply idpath).
691667
+ apply isaprop_discrete_comprehension_cat_structure2'_with_default_mor.
692668
Defined.
693669

0 commit comments

Comments
 (0)