Skip to content

[Merged by Bors] - feat: port CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers - #2764

Closed
mattrobball wants to merge 7 commits into
masterfrom
port/CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers
Closed

mattrobball wants to merge 7 commits into
masterfrom
port/CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers

Conversation

@mattrobball

Copy link
Copy Markdown
Contributor

Open in Gitpod

Mathbin -> Mathlib

fix certain import statements

move "by" to end of line

add import to Mathlib.lean
@mattrobball mattrobball added mathlib-port This is a port of a theory file from mathlib. awaiting-review labels Mar 10, 2023
Comment on lines +212 to +216
/- Porting note: the original parameter [∀ (J) [Fintype J], PreservesColimitsOfShape
(Discrete.{0} J) G] triggered the error "invalid parametric local instance, parameter
with type Fintype J does not have forward dependencies, type class resolution cannot
use this kind of local instance because it will not be able to infer a value for this
parameter." Changed to implicit below. -/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the outer or the inner [] be changed to {}?
The same for the other instance of this problem lower in the file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that. I asked a question on Zulip: invalid parametric local instance

I also tried to refactor adding a new class PreservesFiniteProducts but that was too involved for the port (IMO). So I expanded the porting note. This (and the colimit version) only pop each once more for left exact functors. If that is a bear, I'll come back and fiddle with this more.

@mattrobball mattrobball Mar 10, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. So I went back and refactored as minimally as possible. I think this is the optimal solution.

@jcommelin jcommelin added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Mar 10, 2023
@mattrobball mattrobball added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Mar 10, 2023
Now we have `PreservesFiniteProducts` and `PreservesFiniteCoproducts` as
separate classes

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@kim-em kim-em added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Mar 11, 2023
bors Bot pushed a commit that referenced this pull request Mar 11, 2023
@bors

bors Bot commented Mar 11, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat: port CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers [Merged by Bors] - feat: port CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers Mar 11, 2023
@bors bors Bot closed this Mar 11, 2023
@bors
bors Bot deleted the port/CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers branch March 11, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants