[Merged by Bors] - chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff#18809
[Merged by Bors] - chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff#18809astrainfinita wants to merge 3 commits intomasterfrom
{Mul, Add}EquivClass.map_{eq, ne}_one_iff#18809Conversation
astrainfinita
commented
Nov 10, 2024
PR summary ffad7db041Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for |
{Mul/Add}EquivClass.map_{eq/ne}_one_iff{Mul, Add}EquivClass.map_{eq, ne}_one_iff
| namespace EquivLike | ||
|
|
||
| @[to_additive (attr := simp)] | ||
| theorem map_eq_one_iff {M N} [One M] [One N] [EquivLike F M N] [OneHomClass F M N] |
There was a problem hiding this comment.
Should we use simp on _root_.map_eq_one_iff? Also, should this be generalized to EmbeddingLike?
Ruben-VandeVelde
left a comment
There was a problem hiding this comment.
Seems reasonable
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
|
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
|
Build failed (retrying...): |
|
Pull request successfully merged into master. Build succeeded: |
{Mul, Add}EquivClass.map_{eq, ne}_one_iff{Mul, Add}EquivClass.map_{eq, ne}_one_iff
| @[to_additive (attr := deprecated (since := "2024-11-10"))] | ||
| alias MulEquivClass.map_eq_one_iff := EmbeddingLike.map_eq_one_iff | ||
|
|
||
| @[to_additive (attr := deprecated (since := "2024-11-10"))] | ||
| alias MulEquivClass.map_ne_one_iff := EmbeddingLike.map_ne_one_iff |
There was a problem hiding this comment.
These need to be moved down below the def of MulEquivClass as in 36bca67 in order for to_additive to not translate it to MulEquivClass.map_eq/ne_zero_iff.