The complex numbers #
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of characteristic zero. For the result that the complex numbers are algebraically closed, see
Complex.isAlgClosed in Mathlib.Analysis.Complex.Polynomial.Basic.
Definition and basic arithmetic #
The natural inclusion of the real numbers into the complex numbers.
Instances For
The product of a set on the real axis and a set on the imaginary axis of the complex plane,
denoted by s ×ℂ t.
Instances For
Commutative ring instance and lemmas #
Scalar multiplication by R on ℝ extends to ℂ. This is used here and in
Mathlib/LinearAlgebra/Complex/Module.lean to transfer instances from ℝ to ℂ, but is not
needed outside, so we make it scoped.
Instances For
Casts #
Ring structure #
This shortcut instance ensures we do not find Ring via the noncomputable Complex.field
instance.
This shortcut instance ensures we do not find CommSemiring via the noncomputable
Complex.field instance.
This shortcut instance ensures we do not find Semiring via the noncomputable
Complex.field instance.
The "real part" map, considered as an additive group homomorphism.
Instances For
The "imaginary part" map, considered as an additive group homomorphism.
Instances For
Complex conjugation #
This defines the complex conjugate as the star operation of the StarRing ℂ. It
is recommended to use the ring endomorphism version starRingEnd, available under the
notation conj in the scope ComplexConjugate.
Norm squared #
Inversion #
Field instance and lemmas #
Characteristic zero #
A complex number z plus its conjugate conj z is 2 times its real part.
Show the imaginary number ⟨x, y⟩ as an "x + y*I" string
Note that the Real numbers used for x and y will show as Cauchy sequences due to the way Real numbers are represented.
The preimage under equivRealProd of s ×ˢ t is s ×ℂ t.