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(*/centralizer): add forgotten to_additives #19168

Closed
wants to merge 1 commit into from

Conversation

ericrbg
Copy link
Collaborator

@ericrbg ericrbg commented Jun 9, 2023

I forgot these in #18861. These are already in the forward-port PR, leanprover-community/mathlib4#4896.


Open in Gitpod

@ericrbg ericrbg 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. modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. labels Jun 9, 2023
@@ -100,10 +100,12 @@ end
lemma centralizer_subset [has_mul M] (h : S ⊆ T) : centralizer T ⊆ centralizer S :=
λ t ht s hs, ht s (h hs)

@[to_additive add_center_subset_add_centralizer]
Copy link
Member

@urkud urkud Jun 9, 2023

Choose a reason for hiding this comment

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

What name does to_additive generate here? Why does it generate a wrong name here and generates a correct name for center_le_centralizer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It gives the same name. I'm not sure why later on it's not an issue, maybe when a section closes the database for to_additive updates, or the like. I think it's the same in lean4

Copy link
Member

Choose a reason for hiding this comment

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

and generates a correct name for center_le_centralizer?

Because the correct additivized name for subgroup.center_le_centralizer is add_subsemigroup.center_le_centralizer, there's no need to replace centralizer with add_centralizer.

Only the set lemmas need these renames.

@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 Jun 9, 2023
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 merge

Thanks!

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 Jun 9, 2023
bors bot pushed a commit that referenced this pull request Jun 9, 2023
I forgot these in #18861. These are already in the forward-port PR, leanprover-community/mathlib4#4896.
@bors
Copy link

bors bot commented Jun 9, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title chore(*/centralizer): add forgotten to_additives [Merged by Bors] - chore(*/centralizer): add forgotten to_additives Jun 9, 2023
@bors bors bot closed this Jun 9, 2023
@bors bors bot deleted the soy-un-burro branch June 9, 2023 17:26
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 10, 2023
I forgot to put some required `to_additive`s in Lean3, I am currently backporting this change in leanprover-community/mathlib#19168.



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
qawbecrdtey pushed a commit to qawbecrdtey/greedoid-mathlib4 that referenced this pull request Jun 12, 2023
…4896)

I forgot to put some required `to_additive`s in Lean3, I am currently backporting this change in leanprover-community/mathlib#19168.



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. 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