Zulip Chat Archive

Stream: mathlib4

Topic: a^{-1} < 0


Yury G. Kudryashov (Apr 26 2025 at 06:10):

Currently, docs#inv_neg'' (a.k.a. docs#inv_lt_zero) assumes that the type is a linearly ordered group with zero. The same lemma is true in a partially ordered field (actually, a division semiring with docs#ExistsAddOfLE). The latter version (not in Mathlib) includes, e.g., complex numbers (and probably quaternions, but we have no PartialOrder instance there and I didn't verify the details). Are there any linear ordered groups with zero that (a) we care about; (b) aren't division semirings?

Yury G. Kudryashov (Apr 26 2025 at 06:11):

If yes, should I add a typeclass InvLTZero and provide instances for GroupWithZero and DivisionSemiring?

Kevin Buzzard (Apr 26 2025 at 06:28):

WithZero (Multiplicative Int) is so popular in valuation theory that we even have notation ℤₘ₀ for it.

Yury G. Kudryashov (Apr 26 2025 at 06:28):

But you have no negative elements there.

Kevin Buzzard (Apr 26 2025 at 06:29):

Yes, in valuation theory 0 is always bot for the target monoid.

Yaël Dillies (Apr 26 2025 at 06:52):

In my mind, either you adjoin a zero to a group and everything is nonnegative, or you were in a field to start with. So restricting to DivisionSemiring sounds fine to me


Last updated: May 02 2025 at 03:31 UTC