Skip to content

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

Closed
astrainfinita wants to merge 3 commits intomasterfrom
FR_map_eq_zero_iff
Closed

[Merged by Bors] - chore: generalize {Mul, Add}EquivClass.map_{eq, ne}_one_iff#18809
astrainfinita wants to merge 3 commits intomasterfrom
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
Copy link
Copy Markdown

github-actions bot commented Nov 10, 2024

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 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
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 A reviewer has asked the author a question or requested changes. label Nov 11, 2024
@astrainfinita astrainfinita removed the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 11, 2024
Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde Ruben-VandeVelde left a comment

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.

Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

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
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 13, 2024

Build failed (retrying...):

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 13, 2024

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
Copy link
Copy Markdown
Contributor

@alreadydone alreadydone Nov 13, 2024

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