Skip to content

[Merged by Bors] - feat(Algebra/Module/Submodule/Pointwise): u • N = N if u is a unit - #41104

Closed
mbkybky wants to merge 8 commits into
leanprover-community:masterfrom
mbkybky:smul_pointwise_eq_self_of_isUnit
Closed

mbkybky wants to merge 8 commits into
leanprover-community:masterfrom
mbkybky:smul_pointwise_eq_self_of_isUnit

Conversation

@mbkybky

@mbkybky mbkybky commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jun 27, 2026
@github-actions

github-actions Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

PR summary e0215cf88a

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ smul_eq_self
+ smul_eq_self_of_isUnit

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit e0215cf).

  • +2 new declarations
  • −0 removed declarations
+Submodule.smul_eq_self
+Submodule.smul_eq_self_of_isUnit

No changes to strong technical debt.

No changes to weak technical debt.

Current commit e0215cf88a
Reference commit 62f22e6344

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@themathqueen themathqueen added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 31, 2026
@mbkybky mbkybky removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 1, 2026

@themathqueen themathqueen left a comment

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.

Thanks!

maintainer merge

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by themathqueen.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 3, 2026

@j-loreaux j-loreaux 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.

Can you please add a simp version of this under the assumption that α is group?

@j-loreaux j-loreaux added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Aug 5, 2026
@eric-wieser

Copy link
Copy Markdown
Member

Does making this simp directly work, @j-loreaux?

@mbkybky

mbkybky commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Does making this simp directly work

Under the assumption α is group, the IsUnit hypothesis can be removed. I think this might be a better simp lemma.

@mbkybky mbkybky removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 6, 2026
@j-loreaux

Copy link
Copy Markdown
Contributor

Does making this simp directly work, @j-loreaux?

It would work for αˣ, but not for a generic Group α, because Group.isUnit is not marked @[simp]. Moreover, I don't think it should be, for then simp would always look for a Group instance whenever it needs to prove IsUnit _ as a side goal.

In any case, if that change should be made, it should be a separate PR.

@j-loreaux

Copy link
Copy Markdown
Contributor

Thanks @mbkybky !

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 6, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 6, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This PR was included in a batch that timed out, it will be automatically retried

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Aug 6, 2026
@mathlib-bors mathlib-bors Bot added bors-staging This PR is currently being built by bors on the staging branch. awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Aug 6, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Timed out.

Fix if necessary, and then someone with permission can run bors r+ or bors retry.

@mathlib-bors mathlib-bors Bot removed ready-to-merge This PR has been sent to bors. bors-staging This PR is currently being built by bors on the staging branch. labels Aug 7, 2026
@j-loreaux

Copy link
Copy Markdown
Contributor

bors merge

@mathlib-bors mathlib-bors Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Aug 10, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 10, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/Module/Submodule/Pointwise): u • N = N if u is a unit [Merged by Bors] - feat(Algebra/Module/Submodule/Pointwise): u • N = N if u is a unit Aug 10, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 10, 2026
@kbuzzard

Copy link
Copy Markdown
Member

Note that the radar output for this PR was a disaster.

@mbkybky

mbkybky commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

Note that the radar output for this PR was a disaster.

Thanks a lot! I have opened #42643.

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

Labels

bors-staging This PR is currently being built by bors on the staging branch. 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