mathlib4 icon indicating copy to clipboard operation
mathlib4 copied to clipboard

feat(CategoryTheory/Comma): limit properties of subcategories defined by morphism properties

Open chrisflav opened this issue 1 year ago • 2 comments

We show that under suitable assumptions on P the full subcategory of Over X defined by P has terminal objects and pullbacks.


  • [x] depends on: #18088

Open in Gitpod

chrisflav avatar Oct 23 '24 16:10 chrisflav

PR summary 3151e4dc69

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Limits.MorphismProperty 615

Declarations diff

+ CostructuredArrow.closedUnderLimitsOfShape_discrete_empty + Hom.hom_left + Hom.hom_right + Over.closedUnderLimitsOfShape_discrete_empty + Over.closedUnderLimitsOfShape_pullback + Over.homMk + Over.mk + Under.homMk + Under.mk + comma_iso_iff + costructuredArrow_iso_iff + createsLimitsOfShape_walkingCospan + forgetCreatesLimitOfClosed + forgetCreatesLimitsOfShapeOfClosed + hasLimit_of_closedUnderLimitsOfShape + hasLimitsOfShape_of_closedUnderLimitsOfShape + hasPullbacks + hasTerminal + instance [P.ContainsIdentities] (Y : P.Over ⊤ X) : + instance [P.ContainsIdentities] : HasTerminal (P.Over ⊤ X) + instance [P.ContainsIdentities] [P.RespectsIso] : + instance {X : T} : HasTerminal (Over X) := CostructuredArrow.hasTerminal + mkIdTerminal + of_isColimit_cocone + of_isLimit_cone + over_iso_iff

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

github-actions[bot] avatar Oct 23 '24 16:10 github-actions[bot]

This PR/issue depends on:

  • ~~leanprover-community/mathlib4#18088~~ By Dependent Issues (🤖). Happy coding!

🚀 Pull request has been placed on the maintainer queue by erdOne.

github-actions[bot] avatar Oct 28 '24 16:10 github-actions[bot]

Thanks!

bors merge

joelriou avatar Oct 28 '24 19:10 joelriou

Thanks for the reviews!

chrisflav avatar Oct 28 '24 19:10 chrisflav

Could you please take a look at all the import regressions described in https://github.com/leanprover-community/mathlib4/pull/18134#issuecomment-2432826861?

I don't think we should be merging (or even maintainer merging) PRs with large import regressions until there has been some investigation into how/if this can be avoided.

kim-em avatar Oct 29 '24 07:10 kim-em

Sorry for ignoring the large-imports label, in this case I thought it was okay since the lemma over_iso_iff seemed to me at the right place there right next to arrow_iso_iff. I now moved it to a later file.

Maybe someone should either cancel whatever bors is still doing on this PR or give it another go.

chrisflav avatar Oct 29 '24 08:10 chrisflav

As far as I can remember, it had seemed to me the increase in imports was relatively moderate. Thanks for fixing it!

bors merge

joelriou avatar Oct 29 '24 22:10 joelriou

Pull request successfully merged into master.

Build succeeded:

mathlib-bors[bot] avatar Oct 29 '24 23:10 mathlib-bors[bot]