Skip to content

[Merged by Bors] - chore(Data/Nat/Cast): don't import MonoidWithZero for results about MonoidHom#20745

Closed
YaelDillies wants to merge 4 commits intomasterfrom
monoid_hom_nat_no_monoid_with_zero
Closed

[Merged by Bors] - chore(Data/Nat/Cast): don't import MonoidWithZero for results about MonoidHom#20745
YaelDillies wants to merge 4 commits intomasterfrom
monoid_hom_nat_no_monoid_with_zero

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

For this, move the results from Data.Nat.Cast.Basic not mentioning Nat.cast (!) to a new file Algebra.Group.Nat.Hom.

See leanprover-community/mathlib3#2957 for the copyright attribution.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 14, 2025

PR summary 12ab92d7c5

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.Category.MonCat.ForgetCorepresentable 463 457 -6 (-1.30%)
Import changes for all files
Files Import difference
There are 3644 files with changed transitive imports taking up over 158242 characters: this is too many to display!
You can run scripts/import_trans_difference.sh all locally to see the whole output.

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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.


No changes to technical debt.

You can run this locally as

./scripts/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).

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 15, 2025
@YaelDillies YaelDillies force-pushed the monoid_hom_nat_no_monoid_with_zero branch from 9059d19 to 94155e3 Compare January 15, 2025 10:03
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 15, 2025
@Ruben-VandeVelde
Copy link
Copy Markdown
Contributor

Did you intentionally duplicate ext_nat' and AddMonoidHom.ext_nat?

@YaelDillies YaelDillies changed the title chore(Algebra/Group/Nat): don't import MonoidWithZero for results about MonoidHom chore(Data/Nat/Cast): don't import MonoidWithZero for results about MonoidHom Jan 18, 2025
@YaelDillies
Copy link
Copy Markdown
Contributor Author

YaelDillies commented Jan 18, 2025

What do you mean? I can't see how I've duplicated anything.

…bout `MonoidHom`

For this, move the results from `Data.Nat.Cast.Basic` not mentioning `Nat.cast` (!) to a new file `Algebra.Group.Nat.Hom`.

See leanprover-community/mathlib3#2957 for the copyright attribution.
@YaelDillies YaelDillies force-pushed the monoid_hom_nat_no_monoid_with_zero branch from 94155e3 to 2603b50 Compare January 20, 2025 13:45
@Ruben-VandeVelde
Copy link
Copy Markdown
Contributor

You added them in the new file, but they still exist in Mathlib/Data/Nat/Cast/Basic.lean at lines 96-106

@YaelDillies
Copy link
Copy Markdown
Contributor Author

I am really confused how CI could pass when there were duplicated lemmas. It's not that they were in different namespaces. Importing one file into the next gives an error.

@YaelDillies YaelDillies added the t-algebra Algebra (groups, rings, fields, etc) label Jan 24, 2025
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.

Thanks!

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 Jan 24, 2025
Copy link
Copy Markdown
Member

@jcommelin jcommelin 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 merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 25, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jan 25, 2025
… `MonoidHom` (#20745)

For this, move the results from `Data.Nat.Cast.Basic` not mentioning `Nat.cast` (!) to a new file `Algebra.Group.Nat.Hom`.

See leanprover-community/mathlib3#2957 for the copyright attribution.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 25, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Data/Nat/Cast): don't import MonoidWithZero for results about MonoidHom [Merged by Bors] - chore(Data/Nat/Cast): don't import MonoidWithZero for results about MonoidHom Jan 25, 2025
@mathlib-bors mathlib-bors bot closed this Jan 25, 2025
@mathlib-bors mathlib-bors bot deleted the monoid_hom_nat_no_monoid_with_zero branch January 25, 2025 07:03
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.

4 participants