Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Basics of wild 1-categories; jww alizter, emilyriehl, mpopie, tslilc
- Loading branch information
Showing
21 changed files
with
1,730 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
(* -*- mode: coq; mode: visual-line -*- *) | ||
Require Import Basics Types. | ||
Require Import Pointed.Core. | ||
Require Import WildCat. | ||
Require Import pHomotopy pMap pEquiv. | ||
|
||
Local Open Scope pointed_scope. | ||
Local Open Scope path_scope. | ||
|
||
(** * pType as a wild category *) | ||
|
||
Global Instance is01cat_ptype : Is01Cat pType | ||
:= Build_Is01Cat pType pMap (@pmap_idmap) (@pmap_compose). | ||
|
||
Global Instance is01cat_pmap (A B : pType) : Is01Cat (A ->* B). | ||
Proof. | ||
srapply (Build_Is01Cat (A ->* B) (@pHomotopy A B)). | ||
- reflexivity. | ||
- intros a b c f g; transitivity b; assumption. | ||
Defined. | ||
|
||
Global Instance is0gpd_pmap (A B : pType) : Is0Gpd (A ->* B). | ||
Proof. | ||
srapply Build_Is0Gpd. | ||
intros; symmetry; assumption. | ||
Defined. | ||
|
||
Global Instance is1cat_ptype : Is1Cat pType. | ||
Proof. | ||
simple refine (Build_Is1Cat _ _ _ _ _ _ _ _); try exact _. | ||
- intros A B C; rapply Build_Is0Functor. | ||
intros [f1 f2] [g1 g2] [p q]; cbn. | ||
transitivity (f1 o* g2). | ||
+ apply pmap_postwhisker; assumption. | ||
+ apply pmap_prewhisker; assumption. | ||
- intros ? ? ? ? f g h; exact (pmap_compose_assoc h g f). | ||
- intros ? ? f; exact (pmap_postcompose_idmap f). | ||
- intros ? ? f; exact (pmap_precompose_idmap f). | ||
Defined. | ||
|
||
Global Instance hasmorext_ptype `{Funext} : HasMorExt pType. | ||
Proof. | ||
srapply Build_HasMorExt; intros A B f g. | ||
refine (isequiv_homotopic (equiv_path_pmap f g)^-1 _). | ||
intros []; reflexivity. | ||
Defined. | ||
|
||
|
||
Global Instance hasequivs_ptype : HasEquivs pType. | ||
Proof. | ||
srapply (Build_HasEquivs _ _ _ pEquiv (fun A B f => IsEquiv f)); | ||
intros A B f; cbn; intros. | ||
- exact f. | ||
- exact _. | ||
- exact (Build_pEquiv _ _ f _). | ||
- reflexivity. | ||
- exact ((Build_pEquiv _ _ f _)^-1*). | ||
- apply peissect. | ||
- cbn. refine (peisretr (Build_pEquiv _ _ f _)). | ||
- rapply (isequiv_adjointify f g). | ||
+ intros x; exact (pointed_htpy r x). | ||
+ intros x; exact (pointed_htpy s x). | ||
Defined. | ||
|
||
Global Instance isunivalent_ptype `{Univalence} : IsUnivalent1Cat pType. | ||
Proof. | ||
srapply Build_IsUnivalent1Cat; intros A B. | ||
refine (isequiv_homotopic (equiv_path_ptype A B)^-1 _). | ||
intros []; apply path_pequiv. | ||
cbn. | ||
srefine (Build_pHomotopy _ _). | ||
- intros x; reflexivity. | ||
- cbn. | ||
(* Some messy path algebra here. *) | ||
Abort. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Require Export WildCat.Core. | ||
Require Export WildCat.Equiv. | ||
Require Export WildCat.UnitCat. | ||
Require Export WildCat.EmptyCat. | ||
Require Export WildCat.Opposite. | ||
Require Export WildCat.Type. | ||
Require Export WildCat.Induced. | ||
Require Export WildCat.FunctorCat. | ||
Require Export WildCat.Yoneda. | ||
Require Export WildCat.Prod. | ||
Require Export WildCat.Sum. |
Oops, something went wrong.