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(ring_theory/ideals): Move the definition of ideals out of algebra/module #3692

Closed
wants to merge 4 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Aug 5, 2020

Neatness was the main motivation - it makes it easier to reason about what would need doing in #3635.
It also results in somewhere sensible for the docs about ideals. Also adds a very minimal docstring to ring_theory/ideals.lean.


…ra/module

Also adds a very minimal docstring
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Ring theory does seem like a more appropriate place. Is there a reason for this change apart from neatness (e.g. better compilation times)?

src/ring_theory/ideals.lean Outdated Show resolved Hide resolved
Co-authored-by: Vierkantor <Vierkantor@users.noreply.github.com>
@eric-wieser
Copy link
Member Author

eric-wieser commented Aug 5, 2020

Is there a reason for this change apart from neatness (e.g. better compilation times)?

Neatness was the main motivation - it makes it easier to reason about what would need doing in #3635.
It also results in somewhere sensible for the docs about ideals.

As a follow-up, I wonder if (again for the sake of neatness), the following renames should happen in some future PR:

  • ideals.leanideal/basic.lean
  • ideal_over.leanideal/over.lean
  • ideal_operations.leanideal/operations.lean

@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Aug 5, 2020
@Vierkantor
Copy link
Collaborator

Could you fix the broken build? It looks like the implicit variables are being declared in a different order for mul_mem_right ({a b : α} now comes before [comm_ring α]; my intuition says the old way is better).

@eric-wieser
Copy link
Member Author

my intuition says the old way is better

Unfortunately, there are two old ways here. To avoid having to change every caller of these theorems, I've tried to leave all the lemmas with the same argument order they have before. At some point, someone should probably make them use the same argument order, but that feels out of scope for this PR.

@Vierkantor
Copy link
Collaborator

Thanks 🎉

bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Aug 5, 2020
bors bot pushed a commit that referenced this pull request Aug 5, 2020
…ra/module (#3692)

Neatness was the main motivation - it makes it easier to reason about what would need doing in #3635.
It also results in somewhere sensible for the docs about ideals. Also adds a very minimal docstring to `ring_theory/ideals.lean`.
@bors
Copy link

bors bot commented Aug 5, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(ring_theory/ideals): Move the definition of ideals out of algebra/module [Merged by Bors] - chore(ring_theory/ideals): Move the definition of ideals out of algebra/module Aug 5, 2020
@bors bors bot closed this Aug 5, 2020
@bors bors bot deleted the eric-wieser/move-ideal branch August 5, 2020 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants