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] - refactor(group_theory/group_action): Break the file into three pieces #4936

Closed
wants to merge 16 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Nov 7, 2020

I found myself fighting import cycles when trying to define has_scalar instances in files that are early in the import tree.
By creating a separate defs file with minimal dependencies, this ought to become easier.

This also adds documentation.

None of the proofs or lemma statements have been touched.


I imagine this will take a few tries to pass CI. It's quite easy to accidentally change the typeclasses in the enclosing section / namespace for a lemma, which breaks applications elsewhere.

I found myself fighting import cycles when trying to define `has_scalar` instances on primitive types.
By creating a separate `defs` file with minimal dependencies, this ought to become easier.

This also renames  some lemmas, namely:
* `mul_action.inv_smul_smul` → `inv_smul_smul` (the one on `group α`)
* `inv_smul_smul` → `inv_smul_smul'` (the one on `group_with_zero α`)

The documentation is new too.

None of the proofs or lemma statements have been touched.
@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Nov 7, 2020
This renames

* `mul_action.inv_smul_eq_iff` → `inv_smul_eq_iff` (the one on `group α`). This makes it consistent with `smul_neg` etc, which are in the global scope
* `inv_smul_eq_iff` → `inv_smul_eq_iff'` (the one on `group_with_zero α`). This makes it consistent with `smul_inv_smul'`, which has a trailing `'`
@eric-wieser eric-wieser added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Nov 8, 2020
Comment on lines +8 to +12
import group_theory.coset

/-!
# Basic properties of group actions
-/
Copy link
Member Author

Choose a reason for hiding this comment

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

The main reason this file is separate from group_theory.group_action.group is that the coset import pulls in quite a deep tree.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mind expanding the module doc with the main definitions and theorems?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really have the background to pick out the "main" ones - so I'd be inclined to just put this in, and let someone with more background fill out the docs

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, no worries.
bors r+

@github-actions github-actions bot added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Nov 9, 2020
@github-actions github-actions bot removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Nov 9, 2020
@eric-wieser eric-wieser removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Nov 9, 2020
Copy link
Collaborator

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM. Thanks for taking this on!
bors d+

src/group_theory/group_action/basic.lean Outdated Show resolved Hide resolved
src/group_theory/group_action/basic.lean Outdated Show resolved Hide resolved
Comment on lines +8 to +12
import group_theory.coset

/-!
# Basic properties of group actions
-/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mind expanding the module doc with the main definitions and theorems?

@bors
Copy link

bors bot commented Nov 11, 2020

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

@bryangingechen bryangingechen added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Nov 11, 2020
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
bors bot pushed a commit that referenced this pull request Nov 11, 2020
…#4936)

I found myself fighting import cycles when trying to define `has_scalar` instances in files that are early in the import tree.
By creating a separate `defs` file with minimal dependencies, this ought to become easier.

This also adds documentation.

None of the proofs or lemma statements have been touched.
@bors
Copy link

bors bot commented Nov 12, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(group_theory/group_action): Break the file into three pieces [Merged by Bors] - refactor(group_theory/group_action): Break the file into three pieces Nov 12, 2020
@bors bors bot closed this Nov 12, 2020
@bors bors bot deleted the split-group_action branch November 12, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants