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 / V19. Complex and harmonic analysis

Mathlib.Analysis.SpecialFunctions.Complex.Arg

112 declarations and 2 deprecated aliases. Mathlib docs · Source

The argument of a complex number.

We define arg : ℂ → ℝ, returning a real number in the range $(-π, π]$, such that for x ≠ 0, sin (arg x) = x.im / x.abs and cos (arg x) = x.re / x.abs, while arg 0 defaults to 0

def Complex.arg E1 #

ℂ → ℝ

arg returns values in the range $(-π, π]$, such that for x ≠ 0, sin (arg x) = x.im / x.abs and cos (arg x) = x.re / x.abs, arg 0 defaults to 0

theorem Complex.sin_arg E1 #

∀ (x : ℂ), Real.sin x.arg = x.im / ‖x‖

theorem Complex.cos_arg E1 #

∀ {x : ℂ}, x ≠ 0 → Real.cos x.arg = x.re / ‖x‖

theorem Complex.norm_mul_exp_arg_mul_I E0 #

∀ (x : ℂ), ↑‖x‖ * Complex.exp (↑x.arg * Complex.I) = x

theorem Complex.norm_mul_cos_add_sin_mul_I E0 #

∀ (x : ℂ), ↑‖x‖ * (Complex.cos ↑x.arg + Complex.sin ↑x.arg * Complex.I) = x

theorem Complex.norm_mul_cos_arg E0 #

∀ (x : ℂ), ‖x‖ * Real.cos x.arg = x.re

theorem Complex.norm_mul_sin_arg E0 #

∀ (x : ℂ), ‖x‖ * Real.sin x.arg = x.im

theorem Complex.norm_sub_sq_eq_norm_sq_add_norm_sq_sub E1 #

∀ (a b : ℂ), ‖a - b‖ ^ 2 = ‖a‖ ^ 2 + ‖b‖ ^ 2 - 2 * ‖a‖ * ‖b‖ * Real.cos (a.arg - b.arg)

Law of cosines in ℂ: the squared distance between a and b is expressed in terms of their norms and the angle a.arg - b.arg between them. See Complex.norm_sub_sq_eq_norm_sub_norm_sq_add for the half-angle form.

theorem Complex.norm_sub_sq_eq_norm_sub_norm_sq_add E1 #

∀ (a b : ℂ), ‖a - b‖ ^ 2 = (‖a‖ - ‖b‖) ^ 2 + 4 * ‖a‖ * ‖b‖ * Real.sin ((a.arg - b.arg) / 2) ^ 2

Law of cosines in ℂ, half-angle form: the squared distance between a and b is expressed in terms of their norms and the half-angle (a.arg - b.arg) / 2. See Complex.norm_sub_sq_eq_norm_sq_add_norm_sq_sub for the standard form, and Complex.norm_exp_I_mul_ofReal_sub_one for the chord from a point of the unit circle to 1.

theorem Complex.norm_eq_one_iff E0 #

∀ (z : ℂ), ‖z‖ = 1 ↔ ∃ θ, Complex.exp (↑θ * Complex.I) = z

theorem Complex.range_exp_mul_I E0 #

(Set.range fun x ↦ Complex.exp (↑x * Complex.I)) = Metric.sphere 0 1

theorem Complex.arg_mul_cos_add_sin_mul_I E1 #

∀ {r : ℝ},
  0 < r → ∀ {θ : ℝ}, θ ∈ Set.Ioc (-Real.pi) Real.pi → (↑r * (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I)).arg = θ

theorem Complex.arg_cos_add_sin_mul_I E1 #

∀ {θ : ℝ}, θ ∈ Set.Ioc (-Real.pi) Real.pi → (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I).arg = θ

theorem Complex.arg_exp E1 #

∀ (z : ℂ), (Complex.exp z).arg = toIocMod Real.two_pi_pos (-Real.pi) z.im

theorem Complex.arg_exp_mul_I E1 #

∀ (θ : ℝ), (Complex.exp (↑θ * Complex.I)).arg = toIocMod Real.two_pi_pos (-Real.pi) θ

theorem Complex.arg_zero E0 #

Complex.arg 0 = 0

theorem Complex.ext_norm_arg E1 #

∀ {x y : ℂ}, ‖x‖ = ‖y‖ → x.arg = y.arg → x = y

theorem Complex.ext_norm_arg_iff E0 #

∀ {x y : ℂ}, x = y ↔ ‖x‖ = ‖y‖ ∧ x.arg = y.arg

theorem Complex.arg_mem_Ioc E1 #

∀ (z : ℂ), z.arg ∈ Set.Ioc (-Real.pi) Real.pi

theorem Complex.toIocMod_arg E0 #

∀ (z : ℂ), toIocMod Real.two_pi_pos (-Real.pi) z.arg = z.arg

theorem Complex.range_arg E0 #

Set.range Complex.arg = Set.Ioc (-Real.pi) Real.pi

theorem Complex.arg_le_pi E1 #

∀ (x : ℂ), x.arg ≤ Real.pi

theorem Complex.neg_pi_lt_arg E1 #

∀ (x : ℂ), -Real.pi < x.arg

theorem Complex.arg_lt_arg_add_two_pi E1 #

∀ (x y : ℂ), x.arg < y.arg + 2 * Real.pi

theorem Complex.abs_arg_sub_arg_lt E1 #

∀ (x y : ℂ), |x.arg - y.arg| < 2 * Real.pi

theorem Complex.abs_arg_le_pi E1 #

∀ (z : ℂ), |z.arg| ≤ Real.pi

theorem Complex.arg_nonneg_iff E0 #

∀ {z : ℂ}, 0 ≤ z.arg ↔ 0 ≤ z.im

theorem Complex.arg_neg_iff E0 #

∀ {z : ℂ}, z.arg < 0 ↔ z.im < 0

theorem Complex.arg_ofReal_mul E1 #

∀ {r : ℝ}, 0 < r → ∀ (x : ℂ), (↑r * x).arg = x.arg

theorem Complex.arg_mul_ofReal E1 #

∀ (x : ℂ) {r : ℝ}, 0 < r → (x * ↑r).arg = x.arg

theorem Complex.arg_natCast_mul E1 #

∀ {r : ℕ}, r ≠ 0 → ∀ (x : ℂ), (↑r * x).arg = x.arg

theorem Complex.arg_ofNat_mul E0 #

∀ (r : ℕ) [inst : r.AtLeastTwo] (x : ℂ), (OfNat.ofNat r * x).arg = x.arg

theorem Complex.arg_mul_natCast E1 #

∀ (x : ℂ) {r : ℕ}, r ≠ 0 → (x * ↑r).arg = x.arg

theorem Complex.arg_mul_ofNat E0 #

∀ (x : ℂ) (r : ℕ) [inst : r.AtLeastTwo], (x * OfNat.ofNat r).arg = x.arg

theorem Complex.arg_div_ofReal E1 #

∀ (x : ℂ) {r : ℝ}, 0 < r → (x / ↑r).arg = x.arg

theorem Complex.arg_div_natCast E1 #

∀ (x : ℂ) {r : ℕ}, r ≠ 0 → (x / ↑r).arg = x.arg

theorem Complex.arg_div_ofNat E0 #

∀ (x : ℂ) (r : ℕ) [inst : r.AtLeastTwo], (x / OfNat.ofNat r).arg = x.arg

theorem Complex.arg_eq_arg_iff E0 #

∀ {x y : ℂ}, x ≠ 0 → y ≠ 0 → (x.arg = y.arg ↔ ↑‖y‖ / ↑‖x‖ * x = y)

theorem Complex.arg_one E0 #

Complex.arg 1 = 0

theorem Complex.arg_div_self E0 #

∀ (x : ℂ), (x / x).arg = 0

This holds true for all x : ℂ because of the junk values 0 / 0 = 0 and arg 0 = 0.

theorem Complex.arg_neg_one E0 #

(-1).arg = Real.pi

theorem Complex.arg_I E0 #

Complex.I.arg = Real.pi / 2

theorem Complex.arg_neg_I E0 #

(-Complex.I).arg = -(Real.pi / 2)

theorem Complex.tan_arg E0 #

∀ (x : ℂ), Real.tan x.arg = x.im / x.re

theorem Complex.arg_ofReal_of_nonneg E1 #

∀ {x : ℝ}, 0 ≤ x → (↑x).arg = 0

theorem Complex.natCast_arg E0 #

∀ {n : ℕ}, (↑n).arg = 0

theorem Complex.ofNat_arg E0 #

∀ {n : ℕ} [inst : n.AtLeastTwo], (OfNat.ofNat n).arg = 0

theorem Complex.arg_eq_zero_iff E0 #

∀ {z : ℂ}, z.arg = 0 ↔ 0 ≤ z.re ∧ z.im = 0

theorem Complex.arg_eq_zero_iff_zero_le E1 #

∀ {z : ℂ}, z.arg = 0 ↔ 0 ≤ z

theorem Complex.arg_eq_pi_iff E0 #

∀ {z : ℂ}, z.arg = Real.pi ↔ z.re < 0 ∧ z.im = 0

theorem Complex.arg_eq_pi_iff_lt_zero E1 #

∀ {z : ℂ}, z.arg = Real.pi ↔ z < 0

theorem Complex.arg_lt_pi_iff E0 #

∀ {z : ℂ}, z.arg < Real.pi ↔ 0 ≤ z.re ∨ z.im ≠ 0

theorem Complex.arg_ofReal_of_neg E1 #

∀ {x : ℝ}, x < 0 → (↑x).arg = Real.pi

theorem Complex.arg_eq_pi_div_two_iff E0 #

∀ {z : ℂ}, z.arg = Real.pi / 2 ↔ z.re = 0 ∧ 0 < z.im

theorem Complex.arg_eq_neg_pi_div_two_iff E0 #

∀ {z : ℂ}, z.arg = -(Real.pi / 2) ↔ z.re = 0 ∧ z.im < 0

theorem Complex.arg_of_re_nonneg E1 #

∀ {x : ℂ}, 0 ≤ x.re → x.arg = Real.arcsin (x.im / ‖x‖)

theorem Complex.arg_of_re_neg_of_im_nonneg E1 #

∀ {x : ℂ}, x.re < 0 → 0 ≤ x.im → x.arg = Real.arcsin ((-x).im / ‖x‖) + Real.pi

theorem Complex.arg_of_re_neg_of_im_neg E1 #

∀ {x : ℂ}, x.re < 0 → x.im < 0 → x.arg = Real.arcsin ((-x).im / ‖x‖) - Real.pi

theorem Complex.arg_of_im_nonneg_of_ne_zero E1 #

∀ {z : ℂ}, 0 ≤ z.im → z ≠ 0 → z.arg = Real.arccos (z.re / ‖z‖)

theorem Complex.arg_of_im_pos E1 #

∀ {z : ℂ}, 0 < z.im → z.arg = Real.arccos (z.re / ‖z‖)

theorem Complex.arg_of_im_neg E1 #

∀ {z : ℂ}, z.im < 0 → z.arg = -Real.arccos (z.re / ‖z‖)

theorem Complex.arg_conj E1 #

∀ (x : ℂ), ((starRingEnd ℂ) x).arg = if x.arg = Real.pi then Real.pi else -x.arg

theorem Complex.arg_inv E1 #

∀ (x : ℂ), x⁻¹.arg = if x.arg = Real.pi then Real.pi else -x.arg

theorem Complex.abs_arg_inv E0 #

∀ (x : ℂ), |x⁻¹.arg| = |x.arg|

theorem Complex.norm_eq_one_iff' E1 #

∀ {x : ℂ}, ‖x‖ = 1 ↔ ∃ θ ∈ Set.Ioc (-Real.pi) Real.pi, Complex.exp (↑θ * Complex.I) = x

theorem Complex.image_exp_Ioc_eq_sphere E1 #

(fun θ ↦ Complex.exp (↑θ * Complex.I)) '' Set.Ioc (-Real.pi) Real.pi = Metric.sphere 0 1

theorem Complex.arg_le_pi_div_two_iff E0 #

∀ {z : ℂ}, z.arg ≤ Real.pi / 2 ↔ 0 ≤ z.re ∨ z.im < 0

theorem Complex.neg_pi_div_two_le_arg_iff E0 #

∀ {z : ℂ}, -(Real.pi / 2) ≤ z.arg ↔ 0 ≤ z.re ∨ 0 ≤ z.im

theorem Complex.neg_pi_div_two_lt_arg_iff E0 #

∀ {z : ℂ}, -(Real.pi / 2) < z.arg ↔ 0 < z.re ∨ 0 ≤ z.im

theorem Complex.arg_lt_pi_div_two_iff E0 #

∀ {z : ℂ}, z.arg < Real.pi / 2 ↔ 0 < z.re ∨ z.im < 0 ∨ z = 0

theorem Complex.abs_arg_le_pi_div_two_iff E0 #

∀ {z : ℂ}, |z.arg| ≤ Real.pi / 2 ↔ 0 ≤ z.re

theorem Complex.abs_arg_lt_pi_div_two_iff E0 #

∀ {z : ℂ}, |z.arg| < Real.pi / 2 ↔ 0 < z.re ∨ z = 0

theorem Complex.arg_conj_coe_angle E0 #

∀ (x : ℂ), ↑((starRingEnd ℂ) x).arg = -↑x.arg

theorem Complex.arg_inv_coe_angle E0 #

∀ (x : ℂ), ↑x⁻¹.arg = -↑x.arg

theorem Complex.arg_neg_eq_arg_sub_pi_of_im_pos E1 #

∀ {x : ℂ}, 0 < x.im → (-x).arg = x.arg - Real.pi

theorem Complex.arg_neg_eq_arg_add_pi_of_im_neg E1 #

∀ {x : ℂ}, x.im < 0 → (-x).arg = x.arg + Real.pi

theorem Complex.arg_neg_eq_arg_sub_pi_iff E0 #

∀ {x : ℂ}, (-x).arg = x.arg - Real.pi ↔ 0 < x.im ∨ x.im = 0 ∧ x.re < 0

theorem Complex.arg_neg_eq_arg_add_pi_iff E0 #

∀ {x : ℂ}, (-x).arg = x.arg + Real.pi ↔ x.im < 0 ∨ x.im = 0 ∧ 0 < x.re

theorem Complex.arg_neg_coe_angle E1 #

∀ {x : ℂ}, x ≠ 0 → ↑(-x).arg = ↑x.arg + ↑Real.pi

theorem Complex.arg_mul_cos_add_sin_mul_I_eq_toIocMod E1 #

∀ {r : ℝ},
  0 < r → ∀ (θ : ℝ), (↑r * (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I)).arg = toIocMod Real.two_pi_pos (-Real.pi) θ

theorem Complex.arg_cos_add_sin_mul_I_eq_toIocMod E1 #

∀ (θ : ℝ), (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I).arg = toIocMod Real.two_pi_pos (-Real.pi) θ

theorem Complex.arg_mul_cos_add_sin_mul_I_sub E1 #

∀ {r : ℝ},
  0 < r →
    ∀ (θ : ℝ),
      (↑r * (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I)).arg - θ = 2 * Real.pi * ↑⌊(Real.pi - θ) / (2 * Real.pi)⌋

theorem Complex.arg_cos_add_sin_mul_I_sub E1 #

∀ (θ : ℝ), (Complex.cos ↑θ + Complex.sin ↑θ * Complex.I).arg - θ = 2 * Real.pi * ↑⌊(Real.pi - θ) / (2 * Real.pi)⌋

theorem Complex.arg_mul_cos_add_sin_mul_I_coe_angle E1 #

∀ {r : ℝ}, 0 < r → ∀ (θ : Real.Angle), ↑(↑r * (↑θ.cos + ↑θ.sin * Complex.I)).arg = θ

theorem Complex.arg_cos_add_sin_mul_I_coe_angle E1 #

∀ (θ : Real.Angle), ↑(↑θ.cos + ↑θ.sin * Complex.I).arg = θ

theorem Complex.arg_mul_coe_angle E1 #

∀ {x y : ℂ}, x ≠ 0 → y ≠ 0 → ↑(x * y).arg = ↑x.arg + ↑y.arg

theorem Complex.arg_div_coe_angle E1 #

∀ {x y : ℂ}, x ≠ 0 → y ≠ 0 → ↑(x / y).arg = ↑x.arg - ↑y.arg

theorem Complex.arg_pow_coe_angle E1 #

∀ (x : ℂ) (n : ℕ), ↑(x ^ n).arg = n • ↑x.arg

theorem Complex.arg_zpow_coe_angle E1 #

∀ (x : ℂ) (n : ℤ), ↑(x ^ n).arg = n • ↑x.arg

theorem Complex.arg_coe_angle_toReal_eq_arg E0 #

∀ (z : ℂ), (↑z.arg).toReal = z.arg

theorem Complex.arg_coe_angle_eq_iff_eq_toReal E1 #

∀ {z : ℂ} {θ : Real.Angle}, ↑z.arg = θ ↔ z.arg = θ.toReal

theorem Complex.arg_coe_angle_eq_iff E0 #

∀ {x y : ℂ}, ↑x.arg = ↑y.arg ↔ x.arg = y.arg

theorem Complex.arg_mul_eq_add_arg_iff E0 #

∀ {x y : ℂ}, x ≠ 0 → y ≠ 0 → ((x * y).arg = x.arg + y.arg ↔ x.arg + y.arg ∈ Set.Ioc (-Real.pi) Real.pi)

theorem Complex.arg_mul E1 #

∀ {x y : ℂ}, x ≠ 0 → y ≠ 0 → x.arg + y.arg ∈ Set.Ioc (-Real.pi) Real.pi → (x * y).arg = x.arg + y.arg

Alias of the reverse direction of Complex.arg_mul_eq_add_arg_iff.

theorem Complex.arg_mul_eq_add_arg_sub_two_pi_iff E0 #

∀ {x y : ℂ}, (x * y).arg = x.arg + y.arg - 2 * Real.pi ↔ Real.pi < x.arg + y.arg

theorem Complex.arg_mul_of_pi_lt E1 #

∀ {x y : ℂ}, Real.pi < x.arg + y.arg → (x * y).arg = x.arg + y.arg - 2 * Real.pi

Alias of the reverse direction of Complex.arg_mul_eq_add_arg_sub_two_pi_iff.

theorem Complex.arg_mul_eq_add_arg_add_two_pi_iff E0 #

∀ {x y : ℂ}, (x * y).arg = x.arg + y.arg + 2 * Real.pi ↔ x.arg + y.arg ≤ -Real.pi

theorem Complex.arg_mul_of_le_neg_pi E1 #

∀ {x y : ℂ}, x.arg + y.arg ≤ -Real.pi → (x * y).arg = x.arg + y.arg + 2 * Real.pi

Alias of the reverse direction of Complex.arg_mul_eq_add_arg_add_two_pi_iff.

theorem Complex.mem_slitPlane_iff_arg E0 #

∀ {z : ℂ}, z ∈ Complex.slitPlane ↔ z.arg ≠ Real.pi ∧ z ≠ 0

An alternative description of the slit plane as consisting of nonzero complex numbers whose argument is not π.

theorem Complex.slitPlane_arg_ne_pi E1 #

∀ {z : ℂ}, z ∈ Complex.slitPlane → z.arg ≠ Real.pi

theorem Complex.exp_mem_slitPlane E1 #

∀ {z : ℂ}, Complex.exp z ∈ Complex.slitPlane ↔ toIocMod Real.two_pi_pos (-Real.pi) z.im ≠ Real.pi

theorem Complex.arg_eq_nhds_of_re_pos E1 #

∀ {x : ℂ}, 0 < x.re → Complex.arg =ᶠ[nhds x] fun x ↦ Real.arcsin (x.im / ‖x‖)

theorem Complex.arg_eq_nhds_of_re_neg_of_im_pos E1 #

∀ {x : ℂ}, x.re < 0 → 0 < x.im → Complex.arg =ᶠ[nhds x] fun x ↦ Real.arcsin ((-x).im / ‖x‖) + Real.pi

theorem Complex.arg_eq_nhds_of_re_neg_of_im_neg E1 #

∀ {x : ℂ}, x.re < 0 → x.im < 0 → Complex.arg =ᶠ[nhds x] fun x ↦ Real.arcsin ((-x).im / ‖x‖) - Real.pi

theorem Complex.arg_eq_nhds_of_im_pos E1 #

∀ {z : ℂ}, 0 < z.im → Complex.arg =ᶠ[nhds z] fun x ↦ Real.arccos (x.re / ‖x‖)

theorem Complex.arg_eq_nhds_of_im_neg E1 #

∀ {z : ℂ}, z.im < 0 → Complex.arg =ᶠ[nhds z] fun x ↦ -Real.arccos (x.re / ‖x‖)

theorem Complex.continuousAt_arg E1 #

∀ {x : ℂ}, x ∈ Complex.slitPlane → ContinuousAt Complex.arg x

theorem Complex.continuousOn_arg E1 #

ContinuousOn Complex.arg Complex.slitPlane

theorem Complex.tendsto_arg_nhdsWithin_im_neg_of_re_neg_of_im_zero E1 #

∀ {z : ℂ}, z.re < 0 → z.im = 0 → Filter.Tendsto Complex.arg (nhdsWithin z {z | z.im < 0}) (nhds (-Real.pi))

theorem Complex.continuousWithinAt_arg_of_re_neg_of_im_zero E1 #

∀ {z : ℂ}, z.re < 0 → z.im = 0 → ContinuousWithinAt Complex.arg {z | 0 ≤ z.im} z

theorem Complex.tendsto_arg_nhdsWithin_im_nonneg_of_re_neg_of_im_zero E1 #

∀ {z : ℂ}, z.re < 0 → z.im = 0 → Filter.Tendsto Complex.arg (nhdsWithin z {z | 0 ≤ z.im}) (nhds Real.pi)

theorem Complex.continuousAt_arg_coe_angle E1 #

∀ {x : ℂ}, x ≠ 0 → ContinuousAt (Real.Angle.coe ∘ Complex.arg) x

Deprecated aliases

NameNew nameSince
Complex.arg_mul_realComplex.arg_mul_ofReal2026-11-17
Complex.arg_real_mulComplex.arg_ofReal_mul2026-11-17