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_additive
s
#19168
Conversation
@@ -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] |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
Thanks!
I forgot these in #18861. These are already in the forward-port PR, leanprover-community/mathlib4#4896.
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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
to_additive
sto_additive
s
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>
…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>
I forgot these in #18861. These are already in the forward-port PR, leanprover-community/mathlib4#4896.