-
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): closure operators #5524
Conversation
Looks great! Is there a Galois insertion one can prove here? |
Added the Galois insertion! |
There are two kinds of closure operators in mathlib now:
How hard is it to have a general theory that works in both settings? Something like |
I'm not sure how your suggestion would work - to state idempotency and extensivity the domain and range of the operator need to be the same. The obvious fix here is to include the reverse as well, but then the notion is exactly a Galois insertion, which I think is the general theory you're looking for. Should I make it more clear in this file that closure operators are just special cases of Galois insertions? |
Could you mention the connection to Galois insertions in the module docstring? |
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.
LGTM, but I'll let @urkud take a look.
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Are there any functions already in mathlib than can be bundled in this way? |
Perhaps |
Let's merge this now, but I do want to see some (more) examples in future PRs. Thanks! |
Adds closure operators on a partial order, as in [wikipedia](https://en.wikipedia.org/wiki/Closure_operator#Closure_operators_on_partially_ordered_sets). I made them bundled for no particular reason, I don't mind unbundling.
Pull request successfully merged into master. Build succeeded: |
Adds closure operators on a partial order, as in [wikipedia](https://en.wikipedia.org/wiki/Closure_operator#Closure_operators_on_partially_ordered_sets). I made them bundled for no particular reason, I don't mind unbundling.
Adds closure operators on a partial order, as in wikipedia. I made them bundled for no particular reason, I don't mind unbundling.