Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore: refactor to avoid importing Ring for Group topics #11913

Closed
wants to merge 26 commits into from

Conversation

semorrison
Copy link
Contributor

@semorrison semorrison commented Apr 5, 2024

This is a far from a complete success at the PR title, but it makes a fair bit of progress, and then guards this with appropriate assert_not_exists Ring statements.

It also breaks apart the Mathlib.GroupTheory.Subsemigroup.[Center|Centralizer] files, to pull the Set.center and Set.centralizer declarations into their own files not depending on Subsemigroup.


@semorrison semorrison added awaiting-review The author would like community review of the PR awaiting-CI labels Apr 5, 2024
Mathlib.lean Outdated Show resolved Hide resolved
semorrison and others added 2 commits April 5, 2024 11:37
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@semorrison
Copy link
Contributor Author

(I had more than once traversed these files while creating minimisations, and been annoyed by the spurious imports here!)

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Could you rename Data.Nat.Monoid/Data.Int.Monoid to Algebra.Group.Nat/Algebra.Group.Int so that those files become clearly algebra?

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Apr 5, 2024
@YaelDillies
Copy link
Collaborator

Nevermind, I split that off to #11924.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. label Apr 6, 2024
@semorrison
Copy link
Contributor Author

@YaelDillies, I've delegated your #11924. Do you think I could leave it to you to merge master into this, once it is in?

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. label Apr 7, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib.lean Outdated Show resolved Hide resolved
Mathlib.lean Outdated Show resolved Hide resolved
Mathlib.lean Outdated Show resolved Hide resolved
Mathlib.lean Outdated Show resolved Hide resolved
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added merge-conflict The PR has a merge conflict with master, and needs manual merging. and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. labels Apr 7, 2024
@semorrison semorrison removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Apr 8, 2024
@YaelDillies
Copy link
Collaborator

maintainer merge

1 similar comment
@YaelDillies
Copy link
Collaborator

maintainer merge

Copy link

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

Copy link

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

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Apr 18, 2024

variable {R : Type*} [Semiring R] (f : R →+* R) (n : ℕ) (x y : R)

theorem coe_pow (n : ℕ) : ⇑(f ^ n) = f^[n] :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

According to an automated diff, this seems to be the only lemma that disappeared in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored.

@jcommelin
Copy link
Member

bors d+

@mathlib-bors
Copy link

mathlib-bors bot commented Apr 20, 2024

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

@github-actions github-actions bot added delegated and removed awaiting-review The author would like community review of the PR labels Apr 20, 2024
@semorrison
Copy link
Contributor Author

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Apr 20, 2024
mathlib-bors bot pushed a commit that referenced this pull request Apr 20, 2024
This is a far from a complete success at the PR title, but it makes a fair bit of progress, and then guards this with appropriate `assert_not_exists Ring` statements.

It also breaks apart the `Mathlib.GroupTheory.Subsemigroup.[Center|Centralizer]` files, to pull the `Set.center` and `Set.centralizer` declarations into their own files not depending on `Subsemigroup`.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Apr 20, 2024

Build failed:

@semorrison
Copy link
Contributor Author

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Apr 20, 2024
This is a far from a complete success at the PR title, but it makes a fair bit of progress, and then guards this with appropriate `assert_not_exists Ring` statements.

It also breaks apart the `Mathlib.GroupTheory.Subsemigroup.[Center|Centralizer]` files, to pull the `Set.center` and `Set.centralizer` declarations into their own files not depending on `Subsemigroup`.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Apr 20, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: refactor to avoid importing Ring for Group topics [Merged by Bors] - chore: refactor to avoid importing Ring for Group topics Apr 20, 2024
@mathlib-bors mathlib-bors bot closed this Apr 20, 2024
@mathlib-bors mathlib-bors bot deleted the dont_import_rings_when_talking_about_groups branch April 20, 2024 07:53
grunweg added a commit that referenced this pull request Apr 20, 2024
grunweg added a commit that referenced this pull request Apr 21, 2024
callesonne pushed a commit that referenced this pull request Apr 22, 2024
This is a far from a complete success at the PR title, but it makes a fair bit of progress, and then guards this with appropriate `assert_not_exists Ring` statements.

It also breaks apart the `Mathlib.GroupTheory.Subsemigroup.[Center|Centralizer]` files, to pull the `Set.center` and `Set.centralizer` declarations into their own files not depending on `Subsemigroup`.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Jun2M pushed a commit that referenced this pull request Apr 24, 2024
This is a far from a complete success at the PR title, but it makes a fair bit of progress, and then guards this with appropriate `assert_not_exists Ring` statements.

It also breaks apart the `Mathlib.GroupTheory.Subsemigroup.[Center|Centralizer]` files, to pull the `Set.center` and `Set.centralizer` declarations into their own files not depending on `Subsemigroup`.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants