The partial order on the complex numbers #
This order is defined by z ≤ w ↔ z.re ≤ w.re ∧ z.im = w.im.
This is a natural order on ℂ because, as is well-known, there does not exist an order on ℂ
making it into a LinearOrderedField. However, the order described above is the canonical order
stemming from the structure of ℂ as a ⋆-ring (i.e., it becomes a StarOrderedRing). Moreover,
with this order ℂ is a StrictOrderedCommRing and the coercion (↑) : ℝ → ℂ is an order
embedding.
This file only provides Complex.partialOrder and lemmas about it. Further structural classes are
provided by Mathlib/Data/RCLike/Basic.lean as
RCLike.toStrictOrderedCommRingRCLike.toStarOrderedRingRCLike.toOrderedSMul
These are all only available with open scoped ComplexOrder.
We put a partial order on ℂ so that z ≤ w exactly if w - z is real and nonnegative.
Complex numbers with different imaginary parts are incomparable.
Instances For
Extension for the positivity tactic: Complex.ofReal is positive/nonnegative/nonzero if its
input is.