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
Conversation
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.
1ddc60d
to
208af0f
Compare
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 `'`
import group_theory.coset | ||
|
||
/-! | ||
# Basic properties of group actions | ||
-/ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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+
There was a problem hiding this 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+
import group_theory.coset | ||
|
||
/-! | ||
# Basic properties of group actions | ||
-/ |
There was a problem hiding this comment.
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?
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
…#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.
Pull request successfully merged into master. Build succeeded: |
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.