[Merged by Bors] - feat: quantales#17289
Conversation
PR summary fe23b837f9Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
j-loreaux
left a comment
There was a problem hiding this comment.
Welcome to Mathlib! I've left some comments to get you started. Please let me / us know if you have questions. Also, please see the commit conventions about the PR title and description.
Different bullet style Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Style change, including 'left' Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
|
@j-loreaux Do I understand correctly that removing the |
|
Yes, generally, although it is also possible to request review. I see that you now also consider semigroups, which has led to a proliferation of classes. I think there is yet another possibility to consider here: make the algebraic structure an argument to the class rather than extending it. So you would write class Quantale (\a : Type*) [Semigroup \a] extends CompleteLattice \a where ...`The downside is that you have to write two things to get a quantale, but the upside is that you can easily change the underlying algebraic structure without defining all new classes. So, to get a bare bones quantale, you just write: but to get a commutative unital one, you simply change this to: After that, you could potentially make |
That does not seem the best way to go to me. I think the definition I have now for quantales fits best. The construct you are proposing would make sense if the general way of looking at it is that "you turn a semigroup into a quantale", but (just like with a ring consisting of two semigroups) that is not the way quantales are being used imo. Thanks for thinking along though! It really helps to have someone giving feedback :-) |
|
I've decided to remove the This lead to a small change again regarding namespaces in the Quantale file. When I introduced the variable alias for AddQuantale, this also introduced its namespace, so the definition of addLeftResidual could be done through Do you agree that using the namespace |
…into AddQuantale namespace.
|
I would personally stick to the |
Variable aliasses commented out. As long as they are not there, to_additive does not work if we use "Quantale" as a namespace.
|
What I think is happening, is that |
j-loreaux
left a comment
There was a problem hiding this comment.
Thanks! I know this was a long process, but with more experience (and more theorems instead of definitions), it will likely go quicker! Looking forward to having more contributions from you @PieterCuijpers
bors merge
First definition of Quantales - a non-commutative generalization of Locales/Frames. There are still some points of discussion, which would require changes elsewhere in Mathlib, but this definition should be workeable as a starting point (I think). It's my first PR, but I've tried to stay close to what I've seen in CompleteLattices.
|
Pull request successfully merged into master. Build succeeded: |
First definition of Quantales - a non-commutative generalization of Locales/Frames. There are still some points of discussion, which would require changes elsewhere in Mathlib, but this definition should be workeable as a starting point (I think). It's my first PR, but I've tried to stay close to what I've seen in CompleteLattices.
First definition of Quantales - a non-commutative generalization of Locales/Frames. There are still some points of discussion, which would require changes elsewhere in Mathlib, but this definition should be workeable as a starting point (I think).
It's my first PR, but I've tried to stay close to what I've seen in CompleteLattices.