-
Notifications
You must be signed in to change notification settings - Fork 297
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] - feat(order/ideal, order/pfilter, order/prime_ideal): added ideal_inter_nonempty
, proved that a maximal ideal is prime
#6924
Conversation
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
… into prime_ideal
… into prime_ideal
Co-authored-by: Mathieu Guay-Paquet <mathieu.guaypaquet@gmail.com>
To show that `ideal P` is a lattice, it now suffices to check that `P` has joins and that the intersection of any two ideals is nonempty. Also added an equivalent characteristic of the join ideal when `P` is a lattice.
… into prime_ideal
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
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.
This is not really my area of expertise. So I'm just commenting on style.
Co-authored-by: Johan Commelin <johan@commelin.net>
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.
Sorry for the delay in reviewing, and thank you for this nice addition. I especially like your ideal_inter_nonempty
, because I've wanted something like it before. As you noted, there are two natural and unrelated settings where this property holds (the two instances of it you define), and I don't think there's a better abstraction which covers both.
As always, I've tried to be somewhat thorough, so this review includes many comments, but most of them are minor changes due to the mathlib naming conventions and style guide.
variables {I : ideal P} | ||
|
||
@[priority 100] | ||
instance is_maximal.is_prime [is_maximal I] : is_prime I := |
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.
For such a nice theorem, and the main point of this PR, it's almost too bad that the statement is so unassuming!
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.
This PR seems fine to me, but a maintainer will have to poke bors so it can be merged.
I think the ready-to-merge label indicates that a maintainer has already told bors to merge it, and that it's about to merge |
Looks like there's just one docstring suggestion left. By the way, @atarnoam the way we've been doing reviews here, the author usually marks suggestions / conversations as "Resolved" if they've been addressed by commits or if the conversation has ended. This makes it easier for later reviewers to see at a glance what remains to be done. @awainverse any final thoughts on this? |
Co-authored-by: Mathieu Guay-Paquet <mathieu.guaypaquet@gmail.com>
Thanks! |
…er_nonempty`, proved that a maximal ideal is prime (#6924) - `ideal_inter_nonempty`: the intersection of any two ideals is nonempty. A preorder with joins and this property satisfies that its ideal poset is a lattice. - An ideal is prime iff `x \inf y \in I` implies `x \in I` or `y \in I`. - A maximal ideal in a distributive lattice is prime.
Pull request successfully merged into master. Build succeeded: |
ideal_inter_nonempty
, proved that a maximal ideal is primeideal_inter_nonempty
, proved that a maximal ideal is prime
ideal_inter_nonempty
: the intersection of any two ideals is nonempty. A preorder with joins and this property satisfies that its ideal poset is a lattice.x \inf y \in I
impliesx \in I
ory \in I
.is_ideal
,is_pfilter
,is_prime
,is_maximal
,prime_pair
#6656While proving that a maximal ideal in a distributive lattice is prime, I've noticed a problem.
I wanted to use the sup of two ideals, however in the current implementation this requires
P
to have a bottom element!What is going on here is that to prove that the sup ideal is nonempty, it suffices to use only the fact that the intersection of any two ideals is nonempty. This is true for both the case where
P
hasbot
, and for whenP
hasinf
s.Thus we can define this property separately and show that it is true for these two cases.