Skip to content

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

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

[Merged by Bors] - feat: port CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers#2764
mattrobball wants to merge 7 commits intomasterfrom
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.

Copy link
Copy Markdown
Contributor Author

@mattrobball mattrobball Mar 10, 2023

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 A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Mar 10, 2023
@mattrobball mattrobball added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Mar 10, 2023
Now we have `PreservesFiniteProducts` and `PreservesFiniteCoproducts` as
separate classes
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

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
Copy link
Copy Markdown

bors bot commented Mar 11, 2023

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