Documentation

Mathlib.Analysis.Complex.Basic

Normed space structure on ℂ. #

This file gathers basic facts on complex numbers of an analytic nature.

Main results #

This file registers ℂ as a normed field, expresses basic properties of the norm, and gives tools on the real vector space structure of ℂ. Notably, in the namespace Complex, it defines functions:

They are bundled versions of the real part, the imaginary part, the embedding of ℝ in ℂ, and the complex conjugate as continuous ℝ-linear maps. The last two are also bundled as linear isometries in ofRealLI and conjLIE.

We also register the fact that ℂ is an RCLike field.

@[simp]
theorem Complex.norm_eq_abs (z : ℂ) :
‖z‖ = Complex.abs z
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • Complex.instNormedAlgebraComplexToSeminormedRingToSeminormedCommRingToNormedCommRingInstNormedFieldComplex = NormedAlgebra.mk ⋯

The module structure from Module.complexToReal is a normed space.

Equations

The algebra structure from Algebra.complexToReal is a normed algebra.

Equations
theorem Complex.dist_eq (z : ℂ) (w : ℂ) :
dist z w = Complex.abs (z - w)
theorem Complex.dist_eq_re_im (z : ℂ) (w : ℂ) :
dist z w = Real.sqrt ((z.re - w.re) ^ 2 + (z.im - w.im) ^ 2)
@[simp]
theorem Complex.dist_mk (x₁ : ℝ) (y₁ : ℝ) (x₂ : ℝ) (y₂ : ℝ) :
dist { re := x₁, im := y₁ } { re := x₂, im := y₂ } = Real.sqrt ((x₁ - x₂) ^ 2 + (y₁ - y₂) ^ 2)
theorem Complex.dist_of_re_eq {z : ℂ} {w : ℂ} (h : z.re = w.re) :
dist z w = dist z.im w.im
theorem Complex.nndist_of_re_eq {z : ℂ} {w : ℂ} (h : z.re = w.re) :
nndist z w = nndist z.im w.im
theorem Complex.edist_of_re_eq {z : ℂ} {w : ℂ} (h : z.re = w.re) :
edist z w = edist z.im w.im
theorem Complex.dist_of_im_eq {z : ℂ} {w : ℂ} (h : z.im = w.im) :
dist z w = dist z.re w.re
theorem Complex.nndist_of_im_eq {z : ℂ} {w : ℂ} (h : z.im = w.im) :
nndist z w = nndist z.re w.re
theorem Complex.edist_of_im_eq {z : ℂ} {w : ℂ} (h : z.im = w.im) :
edist z w = edist z.re w.re
theorem Complex.dist_conj_self (z : ℂ) :
dist ((starRingEnd ℂ) z) z = 2 * |z.im|
theorem Complex.nndist_conj_self (z : ℂ) :
nndist ((starRingEnd ℂ) z) z = 2 * Real.nnabs z.im
theorem Complex.dist_self_conj (z : ℂ) :
dist z ((starRingEnd ℂ) z) = 2 * |z.im|
theorem Complex.nndist_self_conj (z : ℂ) :
nndist z ((starRingEnd ℂ) z) = 2 * Real.nnabs z.im
@[simp]
theorem Complex.norm_rat (r : ℚ) :
‖↑r‖ = |↑r|
@[simp]
theorem Complex.norm_nat (n : ℕ) :
‖↑n‖ = ↑n
@[simp]
theorem Complex.norm_int {n : ℤ} :
‖↑n‖ = |↑n|
theorem Complex.norm_int_of_nonneg {n : ℤ} (hn : 0 ≤ n) :
‖↑n‖ = ↑n
theorem Complex.normSq_eq_norm_sq (z : ℂ) :
Complex.normSq z = ‖z‖ ^ 2
@[simp]
@[simp]
theorem Complex.nnnorm_nat (n : ℕ) :
‖↑n‖₊ = ↑n
@[simp]
theorem Complex.nnnorm_eq_one_of_pow_eq_one {ζ : ℂ} {n : ℕ} (h : ζ ^ n = 1) (hn : n ≠ 0) :
theorem Complex.norm_eq_one_of_pow_eq_one {ζ : ℂ} {n : ℕ} (h : ζ ^ n = 1) (hn : n ≠ 0) :
‖ζ‖ = 1
theorem Complex.equivRealProd_apply_le (z : ℂ) :
‖Complex.equivRealProd z‖ ≤ Complex.abs z
theorem Complex.equivRealProd_apply_le' (z : ℂ) :
‖Complex.equivRealProd z‖ ≤ 1 * Complex.abs z
@[simp]
theorem Complex.equivRealProdCLM_apply :
∀ (a : ℂ), Complex.equivRealProdCLM a = (a.re, a.im)

The abs function on ℂ is proper.

The normSq function on ℂ is proper.

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

Equations
Instances For
    @[simp]
    theorem Complex.reCLM_apply (z : ℂ) :
    Complex.reCLM z = z.re

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

    Equations
    Instances For
      @[simp]
      theorem Complex.imCLM_apply (z : ℂ) :
      Complex.imCLM z = z.im

      The complex-conjugation function from ℂ to itself is an isometric linear equivalence.

      Equations
      Instances For
        @[simp]
        theorem Complex.conjLIE_apply (z : ℂ) :
        Complex.conjLIE z = (starRingEnd ℂ) z
        @[simp]
        theorem Complex.dist_conj_conj (z : ℂ) (w : ℂ) :
        @[simp]

        The only continuous ring homomorphisms from ℂ to ℂ are the identity and the complex conjugation.

        Continuous linear equiv version of the conj function, from ℂ to ℂ.

        Equations
        Instances For
          @[simp]
          theorem Complex.conjCLE_apply (z : ℂ) :
          Complex.conjCLE z = (starRingEnd ℂ) z

          Linear isometry version of the canonical embedding of ℝ in ℂ.

          Equations
          Instances For
            theorem Filter.Tendsto.ofReal {α : Type u_2} {l : Filter α} {f : α → ℝ} {x : ℝ} (hf : Filter.Tendsto f l (nhds x)) :
            Filter.Tendsto (fun (x : α) => ↑(f x)) l (nhds ↑x)

            The only continuous ring homomorphism from ℝ to ℂ is the identity.

            Continuous linear map version of the canonical embedding of ℝ in ℂ.

            Equations
            Instances For
              @[simp]
              theorem Complex.ofRealCLM_apply (x : ℝ) :
              Complex.ofRealCLM x = ↑x
              noncomputable instance Complex.instRCLikeComplex :
              Equations
              • One or more equations did not get rendered due to their size.
              theorem Complex.mul_conj' (z : ℂ) :
              z * (starRingEnd ℂ) z = ↑‖z‖ ^ 2
              theorem Complex.conj_mul' (z : ℂ) :
              (starRingEnd ℂ) z * z = ↑‖z‖ ^ 2
              theorem Complex.inv_eq_conj {z : ℂ} (hz : ‖z‖ = 1) :
              theorem Complex.exists_norm_eq_mul_self (z : ℂ) :
              ∃ (c : ℂ), ‖c‖ = 1 ∧ ↑‖z‖ = c * z
              theorem Complex.exists_norm_mul_eq_self (z : ℂ) :
              ∃ (c : ℂ), ‖c‖ = 1 ∧ c * ↑‖z‖ = z
              @[simp]
              theorem RCLike.complexRingEquiv_symm_apply {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) (x : ℂ) :
              (RingEquiv.symm (RCLike.complexRingEquiv h)) x = ↑x.re + ↑x.im * RCLike.I
              @[simp]
              theorem RCLike.complexRingEquiv_apply {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) (x : 𝕜) :
              (RCLike.complexRingEquiv h) x = ↑(RCLike.re x) + ↑(RCLike.im x) * Complex.I
              def RCLike.complexRingEquiv {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :
              𝕜 ≃+* ℂ

              The natural isomorphism between 𝕜 satisfying RCLike 𝕜 and ℂ when RCLike.im RCLike.I = 1.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]
                theorem RCLike.complexLinearIsometryEquiv_symm_apply {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :
                @[simp]
                theorem RCLike.complexLinearIsometryEquiv_apply {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :
                @[simp]
                theorem RCLike.complexLinearIsometryEquiv_invFun {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :
                ∀ (a : ℂ), (RCLike.complexLinearIsometryEquiv h).invFun a = (RCLike.complexRingEquiv h).invFun a
                @[simp]
                theorem RCLike.complexLinearIsometryEquiv_toFun {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :
                def RCLike.complexLinearIsometryEquiv {𝕜 : Type u_2} [RCLike 𝕜] (h : RCLike.im RCLike.I = 1) :

                The natural ℝ-linear isometry equivalence between 𝕜 satisfying RCLike 𝕜 and ℂ when RCLike.im RCLike.I = 1.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem Complex.eq_coe_norm_of_nonneg {z : ℂ} (hz : 0 ≤ z) :
                  z = ↑‖z‖

                  We show that the partial order and the topology on ℂ are compatible. We turn this into an instance scoped to ComplexOrder.

                  @[simp]
                  theorem RCLike.re_to_complex {x : ℂ} :
                  RCLike.re x = x.re
                  @[simp]
                  theorem RCLike.im_to_complex {x : ℂ} :
                  RCLike.im x = x.im
                  @[simp]
                  theorem RCLike.I_to_complex :
                  RCLike.I = Complex.I
                  @[simp]
                  theorem RCLike.normSq_to_complex {x : ℂ} :
                  RCLike.normSq x = Complex.normSq x
                  @[simp]
                  theorem RCLike.hasSum_conj {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} {x : 𝕜} :
                  HasSum (fun (x : α) => (starRingEnd 𝕜) (f x)) x ↔ HasSum f ((starRingEnd 𝕜) x)
                  theorem RCLike.hasSum_conj' {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} {x : 𝕜} :
                  HasSum (fun (x : α) => (starRingEnd 𝕜) (f x)) ((starRingEnd 𝕜) x) ↔ HasSum f x
                  @[simp]
                  theorem RCLike.summable_conj {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} :
                  (Summable fun (x : α) => (starRingEnd 𝕜) (f x)) ↔ Summable f
                  theorem RCLike.conj_tsum {α : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] (f : α → 𝕜) :
                  (starRingEnd 𝕜) (∑' (a : α), f a) = ∑' (a : α), (starRingEnd 𝕜) (f a)
                  @[simp]
                  theorem RCLike.hasSum_ofReal {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → ℝ} {x : ℝ} :
                  HasSum (fun (x : α) => ↑(f x)) ↑x ↔ HasSum f x
                  @[simp]
                  theorem RCLike.summable_ofReal {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → ℝ} :
                  (Summable fun (x : α) => ↑(f x)) ↔ Summable f
                  theorem RCLike.ofReal_tsum {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] (f : α → ℝ) :
                  ↑(∑' (a : α), f a) = ∑' (a : α), ↑(f a)
                  theorem RCLike.hasSum_re {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} {x : 𝕜} (h : HasSum f x) :
                  HasSum (fun (x : α) => RCLike.re (f x)) (RCLike.re x)
                  theorem RCLike.hasSum_im {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} {x : 𝕜} (h : HasSum f x) :
                  HasSum (fun (x : α) => RCLike.im (f x)) (RCLike.im x)
                  theorem RCLike.re_tsum {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} (h : Summable f) :
                  RCLike.re (∑' (a : α), f a) = ∑' (a : α), RCLike.re (f a)
                  theorem RCLike.im_tsum {α : Type u_1} (𝕜 : Type u_2) [RCLike 𝕜] {f : α → 𝕜} (h : Summable f) :
                  RCLike.im (∑' (a : α), f a) = ∑' (a : α), RCLike.im (f a)
                  theorem RCLike.hasSum_iff {α : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] (f : α → 𝕜) (c : 𝕜) :
                  HasSum f c ↔ HasSum (fun (x : α) => RCLike.re (f x)) (RCLike.re c) ∧ HasSum (fun (x : α) => RCLike.im (f x)) (RCLike.im c)

                  We have to repeat the lemmas about RCLike.re and RCLike.im as they are not syntactic matches for Complex.re and Complex.im.

                  We do not have this problem with ofReal and conj, although we repeat them anyway for discoverability and to avoid the need to unify 𝕜.

                  theorem Complex.hasSum_conj {α : Type u_1} {f : α → ℂ} {x : ℂ} :
                  HasSum (fun (x : α) => (starRingEnd ℂ) (f x)) x ↔ HasSum f ((starRingEnd ℂ) x)
                  theorem Complex.hasSum_conj' {α : Type u_1} {f : α → ℂ} {x : ℂ} :
                  HasSum (fun (x : α) => (starRingEnd ℂ) (f x)) ((starRingEnd ℂ) x) ↔ HasSum f x
                  theorem Complex.summable_conj {α : Type u_1} {f : α → ℂ} :
                  (Summable fun (x : α) => (starRingEnd ℂ) (f x)) ↔ Summable f
                  theorem Complex.conj_tsum {α : Type u_1} (f : α → ℂ) :
                  (starRingEnd ℂ) (∑' (a : α), f a) = ∑' (a : α), (starRingEnd ℂ) (f a)
                  @[simp]
                  theorem Complex.hasSum_ofReal {α : Type u_1} {f : α → ℝ} {x : ℝ} :
                  HasSum (fun (x : α) => ↑(f x)) ↑x ↔ HasSum f x
                  @[simp]
                  theorem Complex.summable_ofReal {α : Type u_1} {f : α → ℝ} :
                  (Summable fun (x : α) => ↑(f x)) ↔ Summable f
                  theorem Complex.ofReal_tsum {α : Type u_1} (f : α → ℝ) :
                  ↑(∑' (a : α), f a) = ∑' (a : α), ↑(f a)
                  theorem Complex.hasSum_re {α : Type u_1} {f : α → ℂ} {x : ℂ} (h : HasSum f x) :
                  HasSum (fun (x : α) => (f x).re) x.re
                  theorem Complex.hasSum_im {α : Type u_1} {f : α → ℂ} {x : ℂ} (h : HasSum f x) :
                  HasSum (fun (x : α) => (f x).im) x.im
                  theorem Complex.re_tsum {α : Type u_1} {f : α → ℂ} (h : Summable f) :
                  (∑' (a : α), f a).re = ∑' (a : α), (f a).re
                  theorem Complex.im_tsum {α : Type u_1} {f : α → ℂ} (h : Summable f) :
                  (∑' (a : α), f a).im = ∑' (a : α), (f a).im
                  theorem Complex.hasSum_iff {α : Type u_1} (f : α → ℂ) (c : ℂ) :
                  HasSum f c ↔ HasSum (fun (x : α) => (f x).re) c.re ∧ HasSum (fun (x : α) => (f x).im) c.im

                  Define the "slit plane" ℂ ∖ ℝ≤0 and provide some API #

                  The slit plane is the complex plane with the closed negative real axis removed.

                  Equations
                  Instances For
                    theorem Complex.slitPlane_eq_union :
                    Complex.slitPlane = {z : ℂ | 0 < z.re} ∪ {z : ℂ | z.im ≠ 0}

                    The slit plane includes the open unit ball of radius 1 around 1.

                    The slit plane includes the open unit ball of radius 1 around 1.