Skip to content

[Merged by Bors] - chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff - #18809

Closed
astrainfinita wants to merge 3 commits into
masterfrom
FR_map_eq_zero_iff
Closed

astrainfinita wants to merge 3 commits into
masterfrom
FR_map_eq_zero_iff

Conversation

@astrainfinita

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@astrainfinita astrainfinita added the t-algebra Algebra (groups, rings, fields, etc) label Nov 10, 2024
@github-actions

github-actions Bot commented Nov 10, 2024 •

Copy link
Copy Markdown

PR summary ffad7db041

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ MulEquivClass.map_eq_one_iff
+ MulEquivClass.map_ne_one_iff

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 script/declarations_diff.sh contains some details about this script.

@astrainfinita astrainfinita mentioned this pull request Nov 10, 2024
1 task done
@astrainfinita astrainfinita changed the title chore: generalize {Mul/Add}EquivClass.map_{eq/ne}_one_iff chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff Nov 10, 2024
Comment thread Mathlib/Algebra/Group/Equiv/Basic.lean Outdated
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]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we use simp on _root_.map_eq_one_iff? Also, should this be generalized to EmbeddingLike?

@urkud urkud added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 11, 2024
@astrainfinita astrainfinita removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 11, 2024

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 11, 2024
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@Vierkantor Vierkantor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

bors r+

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 13, 2024
@mathlib-bors

mathlib-bors Bot commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors

mathlib-bors Bot commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff [Merged by Bors] - chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff Nov 13, 2024
@mathlib-bors mathlib-bors Bot closed this Nov 13, 2024
@mathlib-bors
mathlib-bors Bot deleted the FR_map_eq_zero_iff branch November 13, 2024 12:05
Comment on lines +48 to +52
@[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

@alreadydone alreadydone Nov 13, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants