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(algebra/homology, category_theory/*): declassify exactness #13153

Closed
wants to merge 2 commits into from

Conversation

TwoFX
Copy link
Member

@TwoFX TwoFX commented Apr 3, 2022

Having exact be a class was very often somewhat inconvenient, so many lemmas took it as a normal argument while many others had it as a typeclass argument. This PR removes this inconsistency by downgrading exact to a structure. We lose very little by doing this, and using typeclass inference as a Prolog-like "automatic theorem prover" is rarely a good idea anyway.


Open in Gitpod

@TwoFX TwoFX added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. WIP Work in progress and removed awaiting-review The author would like community review of the PR labels Apr 3, 2022
@TwoFX TwoFX added awaiting-review The author would like community review of the PR and removed WIP Work in progress awaiting-CI The author would like to see what CI has to say before doing more work. labels Apr 3, 2022
Copy link
Collaborator

@semorrison semorrison left a comment

Choose a reason for hiding this comment

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

LGTM. Could you leave a note in the top comment of the PR saying briefly why we're making this change? (even if that is just "overuse of typeclass search" :-).

@semorrison
Copy link
Collaborator

bors d+

@bors
Copy link

bors bot commented Apr 5, 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.

@github-actions github-actions bot 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 Apr 5, 2022
@TwoFX
Copy link
Member Author

TwoFX commented Apr 5, 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 Apr 5, 2022
bors bot pushed a commit that referenced this pull request Apr 5, 2022
…13153)

Having  `exact` be a class was very often somewhat inconvenient, so many lemmas took it as a normal argument while many others had it as a typeclass argument. This PR removes this inconsistency by downgrading `exact` to a structure. We lose very little by doing this, and using typeclass inference as a Prolog-like "automatic theorem prover" is rarely a good idea anyway.
@bors
Copy link

bors bot commented Apr 5, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(algebra/homology, category_theory/*): declassify exactness [Merged by Bors] - refactor(algebra/homology, category_theory/*): declassify exactness Apr 5, 2022
@bors bors bot closed this Apr 5, 2022
@bors bors bot deleted the exact_prop branch April 5, 2022 21:26
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…13153)

Having  `exact` be a class was very often somewhat inconvenient, so many lemmas took it as a normal argument while many others had it as a typeclass argument. This PR removes this inconsistency by downgrading `exact` to a structure. We lose very little by doing this, and using typeclass inference as a Prolog-like "automatic theorem prover" is rarely a good idea anyway.
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…13153)

Having  `exact` be a class was very often somewhat inconvenient, so many lemmas took it as a normal argument while many others had it as a typeclass argument. This PR removes this inconsistency by downgrading `exact` to a structure. We lose very little by doing this, and using typeclass inference as a Prolog-like "automatic theorem prover" is rarely a good idea anyway.
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…13153)

Having  `exact` be a class was very often somewhat inconvenient, so many lemmas took it as a normal argument while many others had it as a typeclass argument. This PR removes this inconsistency by downgrading `exact` to a structure. We lose very little by doing this, and using typeclass inference as a Prolog-like "automatic theorem prover" is rarely a good idea anyway.
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

2 participants