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(*): rename fpow and gpow to zpow #9989

Closed
wants to merge 2 commits into from

Conversation

sgouezel
Copy link
Collaborator

@sgouezel sgouezel commented Oct 26, 2021

Historically, we had two notions of integer power, one on groups called gpow and the other one on fields called fpow. Since the introduction of div_inv_monoid and group_with_zero, these definitions have been merged into one, and the boundaries are not clear any more. We rename both of them to zpow, adding a subscript 0 to disambiguate lemma names when there is a collision, where the subscripted version is for groups with zeroes (as is already done for inv lemmas).

To limit the scope of the change. this PR does not rename gsmul to zsmul or gmultiples to zmultiples.


Open in Gitpod

@sgouezel sgouezel added the awaiting-review The author would like community review of the PR label Oct 26, 2021
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors d+

I haven't looked through the whole diff, but you caught the other case I was looking for zpowers. Just to check, if the replacement of gpowers with zpowers was accidental, did this change pick up any other gpow substrings accidentally? (edit: checked in gitpod, looks fine)

Also, I adjusted the PR description to mention gsmul.

@bors
Copy link

bors bot commented Oct 27, 2021

✌️ sgouezel 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 Oct 27, 2021
@sgouezel
Copy link
Collaborator Author

Yes, I had to do some fine-tweaking after a global search-and replace. For instance, fpower_series had to remain the same. I did not see any situation where the gpow replacement was bad, but hopefully I browsed through the whole diff.

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 Oct 27, 2021
bors bot pushed a commit that referenced this pull request Oct 27, 2021
Historically, we had two notions of integer power, one on groups called `gpow` and the other one on fields called `fpow`. Since the introduction of `div_inv_monoid` and `group_with_zero`, these definitions have been merged into one, and the boundaries are not clear any more. We rename both of them to `zpow`, adding a subscript `0` to disambiguate lemma names when there is a collision, where the subscripted version is for groups with zeroes (as is already done for inv lemmas).

To limit the scope of the change. this PR does not rename `gsmul` to `zsmul` or `gmultiples` to `zmultiples`.
@bors
Copy link

bors bot commented Oct 27, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 27, 2021
Historically, we had two notions of integer power, one on groups called `gpow` and the other one on fields called `fpow`. Since the introduction of `div_inv_monoid` and `group_with_zero`, these definitions have been merged into one, and the boundaries are not clear any more. We rename both of them to `zpow`, adding a subscript `0` to disambiguate lemma names when there is a collision, where the subscripted version is for groups with zeroes (as is already done for inv lemmas).

To limit the scope of the change. this PR does not rename `gsmul` to `zsmul` or `gmultiples` to `zmultiples`.
@sgouezel
Copy link
Collaborator Author

bors r+

@bors
Copy link

bors bot commented Oct 27, 2021

Already running a review

@bors
Copy link

bors bot commented Oct 27, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 27, 2021
Historically, we had two notions of integer power, one on groups called `gpow` and the other one on fields called `fpow`. Since the introduction of `div_inv_monoid` and `group_with_zero`, these definitions have been merged into one, and the boundaries are not clear any more. We rename both of them to `zpow`, adding a subscript `0` to disambiguate lemma names when there is a collision, where the subscripted version is for groups with zeroes (as is already done for inv lemmas).

To limit the scope of the change. this PR does not rename `gsmul` to `zsmul` or `gmultiples` to `zmultiples`.
@bors
Copy link

bors bot commented Oct 27, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(*): rename fpow and gpow to zpow [Merged by Bors] - refactor(*): rename fpow and gpow to zpow Oct 27, 2021
@bors bors bot closed this Oct 27, 2021
@bors bors bot deleted the zpow branch October 27, 2021 20:21
bors bot pushed a commit that referenced this pull request Oct 30, 2021
bors bot pushed a commit that referenced this pull request Oct 30, 2021
bors bot pushed a commit that referenced this pull request Oct 30, 2021
bors bot pushed a commit that referenced this pull request Oct 30, 2021
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
Historically, we had two notions of integer power, one on groups called `gpow` and the other one on fields called `fpow`. Since the introduction of `div_inv_monoid` and `group_with_zero`, these definitions have been merged into one, and the boundaries are not clear any more. We rename both of them to `zpow`, adding a subscript `0` to disambiguate lemma names when there is a collision, where the subscripted version is for groups with zeroes (as is already done for inv lemmas).

To limit the scope of the change. this PR does not rename `gsmul` to `zsmul` or `gmultiples` to `zmultiples`.
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
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