Commit 2026-03-24 19:17 cf534780
View on Github →feat(CategoryTheory/Limits/Cones): use to_dual (#35031)
This PR uses to_dual to generate Cocone from Cone.
Notes:
- Sadly, it is not possible to translate
cones : Cᵒᵖ ⥤ Type max u₁ v₃andcocones : C ⥤ Type max u₁ v₃(and similarlyyonedaandcoyoneda), because one version hasᵒᵖin the type and the other doesn't. To allow dualizingCone.extend, I've inlined the definition ofCone.extensions. - This PR makes many changes in other files where
to_dualtags were missing. Only the minimal necessary changes have been made. Those files may be extended with moreto_dualtags in future PRs. Cone.extendIsoandCocone.extendIsoweren't compatible forto_dualbecause they were the other way around. I chose to swap the direction of the isomorphisms inCone.extendIso. SimilarlyprecomposeEquivalenceandpostComposeEquivalenceweren't compatible. I chose to swap the direction of an isomorphism inprecomposeEquivalence. These changes required a few adaptations inMathlib.CategoryTheory.Limits.IsLimitand elsewhere.