The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.LinearAlgebra.Complex.Module

109 declarations. Mathlib docs · Source

Complex number as a vector space over ℝ

This file contains the following instances:

  • Any •-structure (SMul, MulAction, DistribMulAction, Module, Algebra) on ℝ imbues a corresponding structure on ℂ. This includes the statement that ℂ is an ℝ algebra.
  • any complex vector space is a real vector space;
  • any finite-dimensional complex vector space is a finite-dimensional real vector space;
  • the space of ℝ-linear maps from a real vector space to a complex vector space is a complex vector space.

It also defines bundled versions of four standard maps (respectively, the real part, the imaginary part, the embedding of ℝ in ℂ, and the complex conjugate):

  • Complex.reLm (ℝ-linear map);
  • Complex.imLm (ℝ-linear map);
  • Complex.ofRealAm (ℝ-algebra (homo)morphism);
  • Complex.conjAe (ℝ-algebra equivalence).

It also provides a universal property of the complex numbers Complex.lift, which constructs a ℂ →ₐ[ℝ] A into any ℝ-algebra A given a square root of -1.

In addition, this file provides a decomposition into realPart and imaginaryPart for any element of a StarModule over ℂ.

Notation

  • ℜ and ℑ for the realPart and imaginaryPart, respectively, in the locale ComplexStarModule.

theorem Complex.liftAux.congr_simp E1 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (I' I'_1 : A) (e_I' : I' = I'_1) (hf : I' * I' = -1),
  Complex.liftAux I' hf = Complex.liftAux I'_1 ⋯

theorem selfAdjoint.submodule.congr_simp E1 #

∀ (R : Type u_1) (A : Type u_2) [inst : Semiring R] [inst_1 : StarMul R] [inst_2 : TrivialStar R]
  [inst_3 : AddCommMonoid A] [inst_4 : Module R A] [inst_5 : StarAddMonoid A] [inst_6 : StarModule R A],
  selfAdjoint.submodule R A = selfAdjoint.submodule R A

instance Complex.instSMulCommClassOfReal E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : SMul R ℝ] [inst_1 : SMul S ℝ] [SMulCommClass R S ℝ], SMulCommClass R S ℂ

instance Complex.instIsScalarTowerOfReal E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : SMul R S] [inst_1 : SMul R ℝ] [inst_2 : SMul S ℝ] [IsScalarTower R S ℝ],
  IsScalarTower R S ℂ

instance Complex.instIsCentralScalarOfReal E0 #

∀ {R : Type u_1} [inst : SMul R ℝ] [inst_1 : SMul Rᵐᵒᵖ ℝ] [IsCentralScalar R ℝ], IsCentralScalar R ℂ

instance Complex.mulAction E0 #

{R : Type u_1} → [inst : Monoid R] → [MulAction R ℝ] → MulAction R ℂ

instance Complex.distribSMul E0 #

{R : Type u_1} → [DistribSMul R ℝ] → DistribSMul R ℂ

instance Complex.instDistribMulActionOfReal E0 #

{R : Type u_1} → [inst : Semiring R] → [DistribMulAction R ℝ] → DistribMulAction R ℂ

instance Complex.instModule E0 #

{R : Type u_1} → [inst : Semiring R] → [Module R ℝ] → Module R ℂ

instance Complex.instAlgebraOfReal E0 #

{R : Type u_1} → [inst : CommSemiring R] → [Algebra R ℝ] → Algebra R ℂ

instance Complex.instStarModuleReal E0 #

StarModule ℝ ℂ

theorem Complex.coe_algebraMap E0 #

⇑(algebraMap ℝ ℂ) = Complex.ofReal

theorem AlgHom.map_coe_real_complex E0 #

∀ {A : Type u_3} [inst : Semiring A] [inst_1 : Algebra ℝ A] (f : ℂ →ₐ[ℝ] A) (x : ℝ), f ↑x = (algebraMap ℝ A) x

We need this lemma since Complex.coe_algebraMap diverts the simp-normal form away from AlgHom.commutes.

theorem Complex.algHom_ext E1 #

∀ {A : Type u_3} [inst : Semiring A] [inst_1 : Algebra ℝ A] ⦃f g : ℂ →ₐ[ℝ] A⦄, f Complex.I = g Complex.I → f = g

Two ℝ-algebra homomorphisms from ℂ are equal if they agree on Complex.I.

theorem Complex.algHom_ext_iff E0 #

∀ {A : Type u_3} [inst : Semiring A] [inst_1 : Algebra ℝ A] {f g : ℂ →ₐ[ℝ] A}, f = g ↔ f Complex.I = g Complex.I

def Complex.basisOneI E1 #

Module.Basis (Fin 2) ℝ ℂ

ℂ has a basis over ℝ given by 1 and I.

theorem Complex.coe_basisOneI_repr E0 #

∀ (z : ℂ), ⇑(Complex.basisOneI.repr z) = ![z.re, z.im]

theorem Complex.coe_basisOneI E0 #

⇑Complex.basisOneI = ![1, Complex.I]

instance Module.complexToReal E0 #

(E : Type u_1) → [inst : AddCommGroup E] → [Module ℂ E] → Module ℝ E

Register as an instance (with low priority) the fact that a complex vector space is also a real vector space.

instance Algebra.complexToReal E0 #

{A : Type u_1} → [inst : Semiring A] → [Algebra ℂ A] → Algebra ℝ A

Register as an instance (with low priority) the fact that a complex algebra is also a real algebra.

theorem Complex.coe_smul E0 #

∀ {E : Type u_1} [inst : AddCommGroup E] [inst_1 : Module ℂ E] (x : ℝ) (y : E), ↑x • y = x • y

instance SMulCommClass.complexToReal E0 #

∀ {M : Type u_1} {E : Type u_2} [inst : AddCommGroup E] [inst_1 : Module ℂ E] [inst_2 : SMul M E] [SMulCommClass ℂ M E],
  SMulCommClass ℝ M E

The scalar action of ℝ on a ℂ-module E induced by Module.complexToReal commutes with another scalar action of M on E whenever the action of ℂ commutes with the action of M.

instance IsScalarTower.complexToReal E0 #

∀ {M : Type u_1} {E : Type u_2} [inst : AddCommGroup M] [inst_1 : Module ℂ M] [inst_2 : AddCommGroup E]
  [inst_3 : Module ℂ E] [inst_4 : SMul M E] [IsScalarTower ℂ M E], IsScalarTower ℝ M E

The scalar action of ℝ on a ℂ-module E induced by Module.complexToReal associates with another scalar action of M on E whenever the action of ℂ associates with the action of M.

instance StarModule.complexToReal E0 #

∀ {E : Type u_1} [inst : AddCommGroup E] [inst_1 : Star E] [inst_2 : Module ℂ E] [StarModule ℂ E], StarModule ℝ E

def Complex.reLm E1 #

ℂ →ₗ[ℝ] ℝ

Linear map version of the real part function, from ℂ to ℝ.

theorem Complex.reLm_coe E0 #

⇑Complex.reLm = Complex.re

def Complex.imLm E1 #

ℂ →ₗ[ℝ] ℝ

Linear map version of the imaginary part function, from ℂ to ℝ.

theorem Complex.imLm_coe E0 #

⇑Complex.imLm = Complex.im

def Complex.ofRealAm E1 #

ℝ →ₐ[ℝ] ℂ

ℝ-algebra morphism version of the canonical embedding of ℝ in ℂ.

theorem Complex.ofRealAm_coe E0 #

⇑Complex.ofRealAm = Complex.ofReal

def Complex.conjAe E1 #

Gal(ℂ/ℝ)

ℝ-algebra isomorphism version of the complex conjugation function from ℂ to ℂ

theorem Complex.conjAe_coe E0 #

⇑Complex.conjAe = ⇑(starRingEnd ℂ)

theorem Complex.toMatrix_conjAe E0 #

(LinearMap.toMatrix Complex.basisOneI Complex.basisOneI) ↑↑Complex.conjAe = !![1, 0; 0, -1]

The matrix representation of conjAe.

theorem Complex.real_algHom_eq_id_or_conj E2 #

∀ (f : ℂ →ₐ[ℝ] ℂ), f = AlgHom.id ℝ ℂ ∨ f = ↑Complex.conjAe

The identity and the complex conjugation are the only two ℝ-algebra homomorphisms of ℂ.

def Complex.equivRealProdLm E1 #

ℂ ≃ₗ[ℝ] ℝ × ℝ

The natural LinearEquiv from ℂ to ℝ × ℝ.

theorem Complex.equivRealProdLm_apply E0 #

∀ (a : ℂ), Complex.equivRealProdLm a = (a.re, a.im)

theorem Complex.equivRealProdLm_symm_apply_im E0 #

∀ (a : ℝ × ℝ), (Complex.equivRealProdLm.symm a).im = a.2

theorem Complex.equivRealProdLm_symm_apply_re E0 #

∀ (a : ℝ × ℝ), (Complex.equivRealProdLm.symm a).re = a.1

theorem Complex.equivRealProdLm_symm_apply E0 #

∀ (p : ℝ × ℝ), Complex.equivRealProdLm.symm p = ↑p.1 + ↑p.2 * Complex.I

def Complex.liftAux E0 #

{A : Type u_1} → [inst : Ring A] → [inst_1 : Algebra ℝ A] → (I' : A) → I' * I' = -1 → ℂ →ₐ[ℝ] A

There is an AlgHom from ℂ to any ℝ-algebra with an element that squares to -1.

See Complex.lift for this as an equiv.

theorem Complex.liftAux_apply E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (I' : A) (hI' : I' * I' = -1) (z : ℂ),
  (Complex.liftAux I' hI') z = (algebraMap ℝ A) z.re + z.im • I'

theorem Complex.liftAux_apply_I E1 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (I' : A) (hI' : I' * I' = -1),
  (Complex.liftAux I' hI') Complex.I = I'

theorem Complex.adjoin_I E0 #

ℝ[Complex.I] = ⊤

theorem Complex.range_liftAux E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (I' : A) (hI' : I' * I' = -1),
  (Complex.liftAux I' hI').range = ℝ[I']

def Complex.lift E3 #

{A : Type u_1} → [inst : Ring A] → [inst_1 : Algebra ℝ A] → { I' // I' * I' = -1 } ≃ (ℂ →ₐ[ℝ] A)

A universal property of the complex numbers, providing a unique ℂ →ₐ[ℝ] A for every element of A which squares to -1.

This can be used to embed the complex numbers in the Quaternions.

This isomorphism is named to match the very similar Zsqrtd.lift.

theorem Complex.lift_apply E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (I' : { I' // I' * I' = -1 }),
  Complex.lift I' = Complex.liftAux ↑I' ⋯

theorem Complex.lift_symm_apply_coe E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : Algebra ℝ A] (F : ℂ →ₐ[ℝ] A), ↑(Complex.lift.symm F) = F Complex.I

theorem Complex.liftAux_I E0 #

Complex.liftAux Complex.I Complex.I_mul_I = AlgHom.id ℝ ℂ

theorem Complex.liftAux_neg_I E0 #

Complex.liftAux (-Complex.I) ⋯ = ↑Complex.conjAe

theorem Complex.I_mem_skewAdjoint E1 #

Complex.I ∈ skewAdjoint ℂ

theorem Complex.I_smul_mem_skewAdjoint_iff_isSelfAdjoint E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [StarModule ℂ A] {a : A},
  Complex.I • a ∈ skewAdjoint A ↔ IsSelfAdjoint a

theorem Complex.isSelfAdjoint_I_smul_iff_mem_skewAdjoint E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [StarModule ℂ A] {a : A},
  IsSelfAdjoint (Complex.I • a) ↔ a ∈ skewAdjoint A

def skewAdjoint.negISMul E1 #

{A : Type u_1} →
  [inst : AddCommGroup A] →
    [inst_1 : Module ℂ A] →
      [inst_2 : StarAddMonoid A] → [inst_3 : StarModule ℂ A] → ↥(skewAdjoint A) →ₗ[ℝ] ↥(selfAdjoint A)

Create a selfAdjoint element from a skewAdjoint element by multiplying by the scalar -Complex.I.

theorem skewAdjoint.negISMul_apply_coe E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : ↥(skewAdjoint A)), ↑(skewAdjoint.negISMul a) = -Complex.I • ↑a

theorem skewAdjoint.I_smul_neg_I E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : ↥(skewAdjoint A)), Complex.I • ↑(skewAdjoint.negISMul a) = ↑a

def realPart E1 #

{A : Type u_1} →
  [inst : AddCommGroup A] →
    [inst_1 : Module ℂ A] → [inst_2 : StarAddMonoid A] → [inst_3 : StarModule ℂ A] → A →ₗ[ℝ] ↥(selfAdjoint A)

The real part ℜ a of an element a of a star module over ℂ, as a linear map. This is just selfAdjointPart ℝ, but we provide it as a separate definition in order to link it with lemmas concerning the imaginaryPart, which doesn't exist in star modules over other rings.

def imaginaryPart E1 #

{A : Type u_1} →
  [inst : AddCommGroup A] →
    [inst_1 : Module ℂ A] → [inst_2 : StarAddMonoid A] → [inst_3 : StarModule ℂ A] → A →ₗ[ℝ] ↥(selfAdjoint A)

The imaginary part ℑ a of an element a of a star module over ℂ, as a linear map into the self adjoint elements. In a general star module, we have a decomposition into the selfAdjoint and skewAdjoint parts, but in a star module over ℂ we have realPart_add_I_smul_imaginaryPart, which allows us to decompose into a linear combination of selfAdjoints.

def ComplexStarModule.termℜ E1 #

Lean.ParserDescr

The real part ℜ a of an element a of a star module over ℂ, as a linear map. This is just selfAdjointPart ℝ, but we provide it as a separate definition in order to link it with lemmas concerning the imaginaryPart, which doesn't exist in star modules over other rings.

def ComplexStarModule.termℑ E1 #

Lean.ParserDescr

The imaginary part ℑ a of an element a of a star module over ℂ, as a linear map into the self adjoint elements. In a general star module, we have a decomposition into the selfAdjoint and skewAdjoint parts, but in a star module over ℂ we have realPart_add_I_smul_imaginaryPart, which allows us to decompose into a linear combination of selfAdjoints.

theorem realPart_apply_coe E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : A), ↑(realPart a) = 2⁻¹ • (a + star a)

theorem imaginaryPart_apply_coe E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : A), ↑(imaginaryPart a) = -Complex.I • 2⁻¹ • (a - star a)

theorem realPart_add_I_smul_imaginaryPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : A), ↑(realPart a) + Complex.I • ↑(imaginaryPart a) = a

The standard decomposition of ℜ a + Complex.I • ℑ a = a of an element of a star module over ℂ into a linear combination of self adjoint elements.

theorem realPart_I_smul E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : A), realPart (Complex.I • a) = -imaginaryPart a

theorem imaginaryPart_I_smul E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (a : A), imaginaryPart (Complex.I • a) = realPart a

theorem realPart_smul E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (z : ℂ) (a : A), realPart (z • a) = z.re • realPart a - z.im • imaginaryPart a

theorem imaginaryPart_smul E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (z : ℂ) (a : A), imaginaryPart (z • a) = z.re • imaginaryPart a + z.im • realPart a

theorem skewAdjointPart_eq_I_smul_imaginaryPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (x : A), ↑((skewAdjointPart ℝ) x) = Complex.I • ↑(imaginaryPart x)

theorem imaginaryPart_eq_neg_I_smul_skewAdjointPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  (x : A), ↑(imaginaryPart x) = -Complex.I • ↑((skewAdjointPart ℝ) x)

theorem IsSelfAdjoint.coe_realPart E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, IsSelfAdjoint x → ↑(realPart x) = x

theorem IsSelfAdjoint.imaginaryPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, IsSelfAdjoint x → imaginaryPart x = 0

theorem realPart_comp_subtype_selfAdjoint E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A],
  realPart ∘ₗ (selfAdjoint.submodule ℝ A).subtype = LinearMap.id

theorem imaginaryPart_comp_subtype_selfAdjoint E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A],
  imaginaryPart ∘ₗ (selfAdjoint.submodule ℝ A).subtype = 0

theorem selfAdjoint.realPart_coe E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : ↥(selfAdjoint A)}, realPart ↑x = x

theorem selfAdjoint.imaginaryPart_coe E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : ↥(selfAdjoint A)}, imaginaryPart ↑x = 0

theorem imaginaryPart_realPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, imaginaryPart ↑(realPart x) = 0

theorem imaginaryPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, imaginaryPart ↑(imaginaryPart x) = 0

theorem realPart_idem E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, realPart ↑(realPart x) = realPart x

theorem realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, realPart ↑(imaginaryPart x) = imaginaryPart x

theorem realPart_surjective E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A],
  Function.Surjective ⇑realPart

theorem imaginaryPart_surjective E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A],
  Function.Surjective ⇑imaginaryPart

theorem ComplexStarModule.ext E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x y : A}, realPart x = realPart y → imaginaryPart x = imaginaryPart y → x = y

theorem ComplexStarModule.ext_iff E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x y : A}, x = y ↔ realPart x = realPart y ∧ imaginaryPart x = imaginaryPart y

theorem map_realPart E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {B : Type u_2} {F : Type u_3} [inst_4 : AddCommGroup B] [inst_5 : Module ℂ B] [inst_6 : StarAddMonoid B]
  [inst_7 : StarModule ℂ B] [inst_8 : FunLike F A B] [StarHomClass F A B] [LinearMapClass F ℂ A B] (f : F) (x : A),
  f ↑(realPart x) = ↑(realPart (f x))

theorem map_imaginaryPart E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {B : Type u_2} {F : Type u_3} [inst_4 : AddCommGroup B] [inst_5 : Module ℂ B] [inst_6 : StarAddMonoid B]
  [inst_7 : StarModule ℂ B] [inst_8 : FunLike F A B] [StarHomClass F A B] [LinearMapClass F ℂ A B] (f : F) (x : A),
  f ↑(imaginaryPart x) = ↑(imaginaryPart (f x))

theorem ker_imaginaryPart E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A],
  imaginaryPart.ker = selfAdjoint.submodule ℝ A

theorem imaginaryPart_eq_zero_iff E0 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [inst_3 : StarModule ℂ A]
  {x : A}, imaginaryPart x = 0 ↔ IsSelfAdjoint x

theorem span_selfAdjoint E1 #

∀ {A : Type u_1} [inst : AddCommGroup A] [inst_1 : Module ℂ A] [inst_2 : StarAddMonoid A] [StarModule ℂ A],
  Submodule.span ℂ ↑(selfAdjoint A) = ⊤

def Complex.selfAdjointEquiv E1 #

↥(selfAdjoint ℂ) ≃ₗ[ℝ] ℝ

The natural ℝ-linear equivalence between selfAdjoint ℂ and ℝ.

theorem Complex.selfAdjointEquiv_apply E0 #

∀ (z : ↥(selfAdjoint ℂ)), Complex.selfAdjointEquiv z = (↑z).re

theorem Complex.selfAdjointEquiv_symm_apply E0 #

∀ (x : ℝ), Complex.selfAdjointEquiv.symm x = ⟨↑x, ⋯⟩

theorem Complex.coe_selfAdjointEquiv E0 #

∀ (z : ↥(selfAdjoint ℂ)), ↑(Complex.selfAdjointEquiv z) = ↑z

theorem realPart_ofReal E0 #

∀ (r : ℝ), ↑(realPart ↑r) = ↑r

theorem imaginaryPart_ofReal E0 #

∀ (r : ℝ), imaginaryPart ↑r = 0

theorem Complex.coe_realPart E0 #

∀ (z : ℂ), ↑(realPart z) = ↑z.re

theorem star_mul_self_add_self_mul_star E1 #

∀ {A : Type u_1} [inst : NonUnitalNonAssocRing A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [IsScalarTower ℂ A A]
  [SMulCommClass ℂ A A] [inst_5 : StarModule ℂ A] (a : A),
  star a * a + a * star a = 2 • (↑(realPart a) * ↑(realPart a) + ↑(imaginaryPart a) * ↑(imaginaryPart a))

theorem star_mul_self_sub_self_mul_star E1 #

∀ {A : Type u_1} [inst : NonUnitalNonAssocRing A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [IsScalarTower ℂ A A]
  [SMulCommClass ℂ A A] [inst_5 : StarModule ℂ A] (a : A),
  star a * a - a * star a = 2 • Complex.I • (↑(realPart a) * ↑(imaginaryPart a) - ↑(imaginaryPart a) * ↑(realPart a))

theorem isStarNormal_iff_commute_realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : NonUnitalNonAssocRing A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [IsScalarTower ℂ A A]
  [SMulCommClass ℂ A A] [inst_5 : StarModule ℂ A] {x : A}, IsStarNormal x ↔ Commute ↑(realPart x) ↑(imaginaryPart x)

An element in a non-unital star ℂ-algebra is normal if and only if its real and imaginary parts commute.

theorem Commute.realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : NonUnitalNonAssocRing A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [IsScalarTower ℂ A A]
  [SMulCommClass ℂ A A] [inst_5 : StarModule ℂ A] (x : A) [IsStarNormal x], Commute ↑(realPart x) ↑(imaginaryPart x)

theorem star_mul_self_eq_realPart_sq_add_imaginaryPart_sq E1 #

∀ {A : Type u_1} [inst : NonUnitalNonAssocRing A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [IsScalarTower ℂ A A]
  [SMulCommClass ℂ A A] [inst_5 : StarModule ℂ A] (x : A) [hx : IsStarNormal x],
  star x * x = ↑(realPart x) * ↑(realPart x) + ↑(imaginaryPart x) * ↑(imaginaryPart x)

theorem nonneg_iff_realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a : A}, 0 ≤ a ↔ 0 ≤ realPart a ∧ imaginaryPart a = 0

theorem nonpos_iff_realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a : A}, a ≤ 0 ↔ realPart a ≤ 0 ∧ imaginaryPart a = 0

theorem realPart_nonneg_of_nonneg E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a : A}, 0 ≤ a → 0 ≤ realPart a

theorem realPart_nonpos_of_nonpos E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a : A}, a ≤ 0 → realPart a ≤ 0

theorem le_iff_realPart_imaginaryPart E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a b : A},
  a ≤ b ↔ realPart a ≤ realPart b ∧ imaginaryPart a = imaginaryPart b

theorem imaginaryPart_eq_of_le E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a b : A}, a ≤ b → imaginaryPart a = imaginaryPart b

theorem realPart_mono E1 #

∀ {A : Type u_1} [inst : NonUnitalRing A] [inst_1 : StarRing A] [inst_2 : PartialOrder A] [StarOrderedRing A]
  [inst_4 : Module ℂ A] [inst_5 : StarModule ℂ A] {a b : A}, a ≤ b → realPart a ≤ realPart b

theorem realPart_one E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [inst_3 : StarModule ℂ A], realPart 1 = 1

theorem mem_unitary_iff_isStarNormal_and_realPart_sq_add_imaginaryPart_sq_eq_one E0 #

∀ {A : Type u_1} [inst : Ring A] [inst_1 : StarRing A] [inst_2 : Module ℂ A] [SMulCommClass ℂ A A] [IsScalarTower ℂ A A]
  [inst_5 : StarModule ℂ A] {x : A}, x ∈ unitary A ↔ IsStarNormal x ∧ ↑(realPart x) ^ 2 + ↑(imaginaryPart x) ^ 2 = 1

instance instStarHomClassOfSelfAdjointDecomposeOfStarOrderedRingOfStarModuleOfOrderHomClassOfLinearMapClassComplex E0 #

∀ {F : Type u_2} {E : Type u_3} {A : Type u_4} [inst : AddCommGroup E] [inst_1 : PartialOrder E]
  [inst_2 : StarAddMonoid E] [SelfAdjointDecompose E] [inst_4 : Module ℂ E] [StarModule ℂ E] [inst_6 : NonUnitalRing A]
  [inst_7 : PartialOrder A] [inst_8 : StarRing A] [StarOrderedRing A] [inst_10 : Module ℂ A] [StarModule ℂ A]
  [inst_12 : FunLike F E A] [OrderHomClass F E A] [LinearMapClass F ℂ E A], StarHomClass F E A