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] - refactor(category_theory): custom structure for full_subcategory #14767

Closed
wants to merge 18 commits into from

Conversation

TwoFX
Copy link
Member

@TwoFX TwoFX commented Jun 16, 2022

Full subcategories are now a custom structure rather than the usual subtype. The advantage of this is that we don't have to fight the simp-normal form of subtypes, as the coercion does more harm than good for full subcategories.

We saw a similar refactor for discrete categories, and in both cases, erring on the side of explicitness seems to pay off.


Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/116395-maths/topic/Redefining.20Sheaves

Open in Gitpod

@TwoFX TwoFX added the awaiting-review The author would like community review of the PR label Jun 16, 2022
Copy link
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 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@bors
Copy link

bors bot commented Jul 27, 2022

✌️ TwoFX can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jul 27, 2022
@TwoFX TwoFX added the awaiting-CI The author would like to see what CI has to say before doing more work. label Jul 27, 2022
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Aug 1, 2022
@TwoFX
Copy link
Member Author

TwoFX commented Aug 1, 2022

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Aug 1, 2022
bors bot pushed a commit that referenced this pull request Aug 1, 2022
)

Full subcategories are now a custom structure rather than the usual subtype. The advantage of this is that we don't have to fight the `simp`-normal form of subtypes, as the coercion does more harm than good for full subcategories.

We saw a similar refactor for discrete categories, and in both cases, erring on the side of explicitness seems to pay off.
@bors
Copy link

bors bot commented Aug 1, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(category_theory): custom structure for full_subcategory [Merged by Bors] - refactor(category_theory): custom structure for full_subcategory Aug 1, 2022
@bors bors bot closed this Aug 1, 2022
@bors bors bot deleted the full_subcategory_refactor branch August 1, 2022 18:01
robertylewis pushed a commit that referenced this pull request Aug 2, 2022
)

Full subcategories are now a custom structure rather than the usual subtype. The advantage of this is that we don't have to fight the `simp`-normal form of subtypes, as the coercion does more harm than good for full subcategories.

We saw a similar refactor for discrete categories, and in both cases, erring on the side of explicitness seems to pay off.
khwilson pushed a commit that referenced this pull request Aug 2, 2022
)

Full subcategories are now a custom structure rather than the usual subtype. The advantage of this is that we don't have to fight the `simp`-normal form of subtypes, as the coercion does more harm than good for full subcategories.

We saw a similar refactor for discrete categories, and in both cases, erring on the side of explicitness seems to pay off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants