Commit 2021-06-25 10:35 1774cf95
View on Github →chore(data/complex/{module, is_R_or_C}, analysis/complex/basic): rationalize the structure provided for conj and of_real (#8014)
We have many bundled versions of the four operations associated with the complex-real interaction (real & imaginary parts, real-to-complex coercion of_real, complex conjugation conj).
This PR adjusts the versions provided, according to the following principles:
conjis always an equivalence, there is never a need for the map version- Both
of_realandconjareℝ-algebra homomorphisms, and since this in typical applications requires no more imports thanℝ-linear maps, they can entirely supersede theℝ-linear map versions. - Name according to the base map name together with an acronym for the bundled map type, for example
conj_aeforconjas an algebra-equivalence (this principle had been largely, but not entirely, followed previously). The following specific changes result: quaternion.conj_alg_equivrenamed toquaternion.conj_ae, likewise forquaternion_algebra.conj_alg_equivcomplex.conj_liupgraded from a map to an equivalencecomplex.conj_clm(continuous linear map) upgraded tocomplex.conj_cle(continuous linear equivalence)complex.conj_alg_equivrenamed tocomplex.conj_aecomplex.conj_lmgone, usecomplex.conj_aeinsteadcomplex.of_real_lm(linear map) upgraded tocomplex.of_real_am(algebra homomorphism)- all the same changes for
is_R_or_C.*as forcomplex.*Associated lemmas are also renamed.