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(data/matrix): generalisation linter #13655

Closed
wants to merge 2 commits into from

Conversation

ericrbg
Copy link
Collaborator

@ericrbg ericrbg commented Apr 24, 2022


Open in Gitpod

@ericrbg ericrbg added awaiting-CI The author would like to see what CI has to say before doing more work. awaiting-review The author would like community review of the PR labels Apr 24, 2022
@ericrbg
Copy link
Collaborator Author

ericrbg commented Apr 24, 2022

This is the remaining suggestions:

/- The `generalisation_linter` linter reports: -/
/- typeclass generalisations may be possible -/
#check @matrix.neg_dot_product /- _inst_2: non_unital_non_assoc_ring ↝ add_comm_group has_distrib_neg has_mul
 -/
#check @matrix.dot_product_neg /- _inst_2: non_unital_non_assoc_ring ↝ add_comm_group has_distrib_neg has_mul
 -/
#check @matrix.star_dot_product_star /- _inst_3: star_ring ↝ has_star star_add_monoid star_semigroup
 -/
#check @matrix.star_dot_product /- _inst_3: star_ring ↝ has_involutive_star star_add_monoid star_semigroup
 -/
#check @matrix.dot_product_star /- _inst_3: star_ring ↝ has_involutive_star star_add_monoid star_semigroup
 -/
#check @matrix.semiring.is_scalar_tower /- _inst_1: non_unital_non_assoc_semiring ↝ add_comm_monoid has_mul
 -/
#check @matrix.semiring.smul_comm_class /- _inst_1: non_unital_non_assoc_semiring ↝ add_comm_monoid has_mul
 -/
#check @matrix.mul_mul_right /- _inst_1: comm_semiring ↝ distrib_mul_action no_meet_fake_name semiring smul_comm_class
 -/
#check @matrix.scalar.commute /- _inst_1: comm_semiring ↝ distrib_mul_action is_scalar_tower no_meet_fake_name semiring smul_comm_class
 -/
#check @matrix.mul_vec_smul_assoc /- _inst_1: comm_semiring ↝ distrib_mul_action no_meet_fake_name semiring smul_comm_class
 -/
#check @matrix.transpose_smul /- _inst_1: has_scalar ↝ has_scalar
 -/
#check @matrix.conj_transpose_one /- _inst_3: star_ring ↝ has_star star_add_monoid star_semigroup
 -/
#check @matrix.conj_transpose_mul /- _inst_3: star_ring ↝ has_star star_add_monoid star_semigroup
 -/
#check @matrix.minor_smul /- _inst_1: has_scalar ↝ has_scalar
 -/

I felt hesitant to change the instances to not even have semirings in any way, because that seems like instance search problems. And the rest are just fake generalisations.

@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 Apr 24, 2022
@urkud
Copy link
Member

urkud commented Apr 25, 2022

Thanks!
bors merge

@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 Apr 25, 2022
bors bot pushed a commit that referenced this pull request Apr 25, 2022
@bors
Copy link

bors bot commented Apr 25, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(data/matrix): generalisation linter [Merged by Bors] - chore(data/matrix): generalisation linter Apr 25, 2022
@bors bors bot closed this Apr 25, 2022
@bors bors bot deleted the ericrbg/matrix_generalise branch April 25, 2022 06:23
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