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

[Merged by Bors] - chore: remove superseded small_of_fintype #11326

Closed
wants to merge 11 commits into from

Conversation

TwoFX
Copy link
Member

@TwoFX TwoFX commented Mar 12, 2024


Open in Gitpod

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

This already exists as small_of_fintype (but you can replace the Fintype assumption by Finite and rename it to the correct name of Finite.toSmall)

@TwoFX
Copy link
Member Author

TwoFX commented Mar 18, 2024

This already exists as small_of_fintype (but you can replace the Fintype assumption by Finite and rename it to the correct name of Finite.toSmall)

Thanks, I unified the two versions. Why do you say that Finite.toSmall is the correct name instead of Finite.small? I'm not aware of any rule that mandates adding the to.

@YaelDillies
Copy link
Collaborator

Forgetful inheritance instances should be named A.toB. The rule is extended to Prop-valued typeclasses where it's not quite "inheritance" anymore.

@TwoFX
Copy link
Member Author

TwoFX commented Mar 18, 2024

@YaelDillies this sounds strange to me, doesn't toSmall break the rule that Prop-valued theorems should use snake case?

@YaelDillies
Copy link
Collaborator

It's not a theorem, it's an instance. That's where the difference is. See eg GCDMonoid.toIsIntegrallyClosed.

@TwoFX
Copy link
Member Author

TwoFX commented Mar 19, 2024

Okay, I've renamed it to Finite.toSmall.

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

maintainer merge

Copy link

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

@fpvandoorn fpvandoorn changed the title feat: finite types are small feat: remove superseded small_of_fintype Mar 20, 2024
@fpvandoorn
Copy link
Member

Renamed the PR to reflect the changes from the review

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Mar 20, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 20, 2024
@YaelDillies YaelDillies changed the title feat: remove superseded small_of_fintype chore: remove superseded small_of_fintype Mar 20, 2024
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 20, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: remove superseded small_of_fintype [Merged by Bors] - chore: remove superseded small_of_fintype Mar 20, 2024
@mathlib-bors mathlib-bors bot closed this Mar 20, 2024
@mathlib-bors mathlib-bors bot deleted the small-finite branch March 20, 2024 22:37
utensil pushed a commit that referenced this pull request Mar 26, 2024
Louddy pushed a commit that referenced this pull request Apr 15, 2024
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer-merge ready-to-merge This PR has been sent to bors. t-logic Logic (model theory, set theory, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants