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(order/boolean_algebra): Get rid of boolean_algebra.core #15302

Closed
wants to merge 4 commits into from

Conversation

YaelDillies
Copy link
Collaborator

The current setup is problematic for two reasons:

  • boolean_algebra.core is part of the typeclass hierarchy even though it is mathematically the same as boolean_algebra.
  • boolean_algebra contains the redundant fields sup_inf_sdiff and inf_inf_sdiff.

The easiest fix is to respectively:

  • delete boolean_algebra.core and use default values in the boolean_algebra fields.
  • not make boolean_algebra extend generalized_boolean_algebra but instead manually provide the forgetful instance.

I am doing this now because I want to define Heyting algebras and boolean_algebra.core makes it horribly painful to tweak the typeclass hierarchy.

Open in Gitpod

@YaelDillies YaelDillies added the awaiting-review The author would like community review of the PR label Jul 13, 2022
@bryangingechen
Copy link
Collaborator

LGTM. Thanks!
bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Jul 20, 2022
bors bot pushed a commit that referenced this pull request Jul 20, 2022
…15302)

The current setup is problematic for two reasons:
* `boolean_algebra.core` is part of the typeclass hierarchy even though it is mathematically the same as `boolean_algebra`.
* `boolean_algebra` contains the redundant fields `sup_inf_sdiff` and `inf_inf_sdiff`.

The easiest fix is to respectively:
* delete `boolean_algebra.core` and use default values in the `boolean_algebra` fields.
* not make `boolean_algebra` extend `generalized_boolean_algebra` but instead manually provide the forgetful instance.
@bors
Copy link

bors bot commented Jul 20, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(order/boolean_algebra): Get rid of boolean_algebra.core [Merged by Bors] - refactor(order/boolean_algebra): Get rid of boolean_algebra.core Jul 20, 2022
@bors bors bot closed this Jul 20, 2022
@bors bors bot deleted the kill_boolean_algebra_core branch July 20, 2022 21:45
joelriou pushed a commit that referenced this pull request Jul 23, 2022
…15302)

The current setup is problematic for two reasons:
* `boolean_algebra.core` is part of the typeclass hierarchy even though it is mathematically the same as `boolean_algebra`.
* `boolean_algebra` contains the redundant fields `sup_inf_sdiff` and `inf_inf_sdiff`.

The easiest fix is to respectively:
* delete `boolean_algebra.core` and use default values in the `boolean_algebra` fields.
* not make `boolean_algebra` extend `generalized_boolean_algebra` but instead manually provide the forgetful instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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