Skip to content

[Merged by Bors] - feat(GroupTheory/Finiteness): AddMonoid.FG ℕ and AddGroup.FG ℤ - #27786

Closed
staroperator wants to merge 2 commits into
leanprover-community:masterfrom
staroperator:fg_nat_int
Closed

staroperator wants to merge 2 commits into
leanprover-community:masterfrom
staroperator:fg_nat_int

Conversation

@staroperator

Copy link
Copy Markdown
Collaborator

Note: Module.Finite.self gives equivalent results as Module.Finite ℕ ℕ and Module.Finite ℤ ℤ. But there is no instance from Module.Finite to AddMonoid.FG (there is one converse, AddMonoid.FG.to_moduleFinite_nat).


Open in Gitpod

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jul 31, 2025
@github-actions

github-actions Bot commented Jul 31, 2025 •

Copy link
Copy Markdown

PR summary 23df330191

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instance : FG ℕ := by
+ instance : FG ℤ := by

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

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

I'm not quite sure about the names, but those are not such a big deal for instances.

maintainer merge

@github-actions

github-actions Bot commented Aug 4, 2025

Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 4, 2025
@grunweg grunweg added t-group-theory Group theory and removed t-algebra Algebra (groups, rings, fields, etc) labels Aug 5, 2025
@riccardobrasca

Copy link
Copy Markdown
Member

What about using the autogenerated names?

bors d+

@mathlib-bors

mathlib-bors Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

✌️ staroperator can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Aug 11, 2025

end Prod

namespace AddMonoid

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@Ruben-VandeVelde @riccardobrasca They are auto-generated names now. Is it OK if I still put these instances under AddMonoid and AddGroup namespace?

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.

Sure!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks!

@staroperator

Copy link
Copy Markdown
Collaborator Author

bors r+

@mathlib-bors

mathlib-bors Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(GroupTheory/Finiteness): AddMonoid.FG ℕ and AddGroup.FG ℤ [Merged by Bors] - feat(GroupTheory/Finiteness): AddMonoid.FG ℕ and AddGroup.FG ℤ Aug 11, 2025
@mathlib-bors mathlib-bors Bot closed this Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-group-theory Group theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants