-
Notifications
You must be signed in to change notification settings - Fork 299
[Merged by Bors] - feat(algebra/ordered_ring): ask for 0 < 1 earlier. #4296
Conversation
I don't see an issue with moving the |
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
One objection I have is that this makes |
If there's a later refactor to weaken this to <= then |
Yes, I would like to weaken this to |
On the other hand the current change actually has a mathematical significance: I have a branch with Bell's inequality and Tsirelson's inequality (about nonlocality in quantum mechanics). Typically these are either proved "in physics" or in the setting of C^*-algebras, but once |
Ok, so we all agree that this is the way to go. We're looking forward to the bors r+ |
It used to be that `linear_ordered_semiring` asked for `0 < 1`, while `ordered_semiring` didn't. I'd prefer that `ordered_semiring` asks for this already: 1. because lots of interesting examples (e.g. rings of operators) satisfy this property 2. because the rest of mathlib doesn't care Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Pull request successfully merged into master. Build succeeded: |
It used to be that `linear_ordered_semiring` asked for `0 < 1`, while `ordered_semiring` didn't. I'd prefer that `ordered_semiring` asks for this already: 1. because lots of interesting examples (e.g. rings of operators) satisfy this property 2. because the rest of mathlib doesn't care Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Per [discussion](#4296 (comment)) in #4296. Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Three weeks too late -- I don't have a problem with this. I have no opinion on whether the trivial ring is ordered. |
It used to be that
linear_ordered_semiring
asked for0 < 1
, whileordered_semiring
didn't.I'd prefer that
ordered_semiring
asks for this already:(In fact, I think it would be good to weaken this to only ask for
0 ≤ 1
, and use[nontrivial]
to obtain0 < 1
when necessary, but I don't want to try that yet.)I know nothing about the abstract theory of ordered rings, so if someone has any reason to object to this, no problem! As an alternative I can make separate typeclasses: one that says
0 ≤ 1
, and another that says the ordering is linear. However we already have far too many classes in the order hierarchy, so unless someone actually cares about ordered rings without0 ≤ 1
, let's not even admit them to the discussion!Blocked by #4295.