Commit 2021-09-28 11:33 4a02fd3b
View on Github →refactor(algebra/order/ring,data/complex): redefine ordered_comm_ring
and complex order (#9420)
ordered_comm_ring
no longer extendsordered_comm_semiring
. We add an instanceordered_comm_ring.to_ordered_comm_semiring
instead.- redefine complex order in terms of
re
andim
instead of existence of a nonnegative real number. - simplify
has_star.star
oncomplex
toconj
; - rename
complex.complex_partial_order
etc tocomplex.partial_order
etc, make them protected.