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

Wildcat rewriting tweaks #2208

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 7 commits
Commits
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
3 changes: 2 additions & 1 deletion theories/Homotopy/ClassifyingSpace.v
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ Proof.
rapply pequiv_pclassifyingspace_pi1. }
snrapply Build_NatEquiv.
1: intro; exact pequiv_ptr_rec.
rapply is1natural_prewhisker.
rapply (@is1natural_prewhisker _ _ _
(opyon (pTr 1 X)) (opyon X) B _ _ _ _ _ _ _ _ _ _ (opyoneda _ _ _)).
patrick-nicodemus marked this conversation as resolved.
Show resolved Hide resolved
Defined.

(** The classifying space functor and the fundamental group functor form an adjunction (pType needs to be restricted to the subcategory of 0-connected pTypes). Note that the full adjunction should also be natural in X, but this was not needed yet. *)
Expand Down
7 changes: 3 additions & 4 deletions theories/WildCat/Adjoint.v
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Proof.
exact (natequiv_prewhisker (A:=A^op) (B:=B^op)
(natequiv_adjunction_l adj2 y) F). }
intros x.
rapply is1natural_comp.
nrapply is1natural_comp.
+ rapply (is1natural_prewhisker G' (natequiv_adjunction_r adj1 x)).
+ rapply is1natural_equiv_adjunction_r.
Defined.
Expand All @@ -393,7 +393,7 @@ Proof.
refine (natequiv_compose (natequiv_adjunction_l adj _) _).
rapply (natequiv_postwhisker _ (natequiv_op e)). }
intros x.
rapply is1natural_comp.
nrapply is1natural_comp; typeclasses eauto.
Defined.

(** Replace the right functor in an adjunction by a naturally equivalent one. *)
Expand All @@ -408,8 +408,7 @@ Proof.
refine (natequiv_compose _ (natequiv_adjunction_r adj _)).
rapply (natequiv_postwhisker _ e). }
intros y.
rapply is1natural_comp.
nrapply is1natural_comp.
2: exact _.
rapply is1natural_yoneda.
Defined.

2 changes: 1 addition & 1 deletion theories/WildCat/NatTrans.v
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Arguments Is1Natural {A B} {isgraph_A}
F {is0functor_F} G {is0functor_G} alpha : rename.
Arguments isnat {_ _ _ _ _ _ _ _ _ _ _} alpha {alnat _ _} f : rename.
Arguments isnat_tr {_ _ _ _ _ _ _ _ _ _ _} alpha {alnat _ _} f : rename.

Hint Mode Is1Natural - - - - - - - - - - - ! : typeclass_instances.
(** We coerce naturality proofs to their naturality square as the [isnat] projection can be unwieldy in certain situations where the transformation is difficult to write down. This allows for the naturality proof to be used directly. *)
Coercion isnat : Is1Natural >-> Funclass.

Expand Down
Loading