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 / V15. Real analysis in one variable

Mathlib.Analysis.SpecialFunctions.Trigonometric.Complex

56 declarations. Mathlib docs · Source

theorem Complex.cos_eq_zero_iff E0 #

∀ {θ : ℂ}, Complex.cos θ = 0 ↔ ∃ k, θ = (2 * ↑k + 1) * ↑Real.pi / 2

theorem Complex.cos_ne_zero_iff E0 #

∀ {θ : ℂ}, Complex.cos θ ≠ 0 ↔ ∀ (k : ℤ), θ ≠ (2 * ↑k + 1) * ↑Real.pi / 2

theorem Complex.sin_eq_zero_iff E0 #

∀ {θ : ℂ}, Complex.sin θ = 0 ↔ ∃ k, θ = ↑k * ↑Real.pi

theorem Complex.sin_ne_zero_iff E0 #

∀ {θ : ℂ}, Complex.sin θ ≠ 0 ↔ ∀ (k : ℤ), θ ≠ ↑k * ↑Real.pi

theorem Complex.tan_eq_zero_iff E0 #

∀ {θ : ℂ}, Complex.tan θ = 0 ↔ ∃ k, ↑k * ↑Real.pi / 2 = θ

The tangent of a complex number is equal to zero iff this number is equal to k * π / 2 for an integer k.

Note that this lemma takes into account that we use zero as the junk value for division by zero. See also Complex.tan_eq_zero_iff'.

theorem Complex.tan_ne_zero_iff E0 #

∀ {θ : ℂ}, Complex.tan θ ≠ 0 ↔ ∀ (k : ℤ), ↑k * ↑Real.pi / 2 ≠ θ

theorem Complex.tan_int_mul_pi_div_two E1 #

∀ (n : ℤ), Complex.tan (↑n * ↑Real.pi / 2) = 0

theorem Complex.tan_eq_zero_iff' E1 #

∀ {θ : ℂ}, Complex.cos θ ≠ 0 → (Complex.tan θ = 0 ↔ ∃ k, ↑k * ↑Real.pi = θ)

If the tangent of a complex number is well-defined, then it is equal to zero iff the number is equal to k * π for an integer k.

See also Complex.tan_eq_zero_iff for a version that takes into account junk values of θ.

theorem Complex.cos_eq_cos_iff E0 #

∀ {x y : ℂ}, Complex.cos x = Complex.cos y ↔ ∃ k, y = 2 * ↑k * ↑Real.pi + x ∨ y = 2 * ↑k * ↑Real.pi - x

theorem Complex.sin_eq_sin_iff E0 #

∀ {x y : ℂ}, Complex.sin x = Complex.sin y ↔ ∃ k, y = 2 * ↑k * ↑Real.pi + x ∨ y = (2 * ↑k + 1) * ↑Real.pi - x

theorem Complex.cos_eq_one_iff E0 #

∀ {x : ℂ}, Complex.cos x = 1 ↔ ∃ k, ↑k * (2 * ↑Real.pi) = x

theorem Complex.cos_eq_neg_one_iff E0 #

∀ {x : ℂ}, Complex.cos x = -1 ↔ ∃ k, ↑Real.pi + ↑k * (2 * ↑Real.pi) = x

theorem Complex.sin_eq_one_iff E0 #

∀ {x : ℂ}, Complex.sin x = 1 ↔ ∃ k, ↑Real.pi / 2 + ↑k * (2 * ↑Real.pi) = x

theorem Complex.sin_eq_neg_one_iff E0 #

∀ {x : ℂ}, Complex.sin x = -1 ↔ ∃ k, -(↑Real.pi / 2) + ↑k * (2 * ↑Real.pi) = x

theorem Complex.tan_add E1 #

∀ {x y : ℂ},
  (((∀ (k : ℤ), x ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), y ≠ (2 * ↑l + 1) * ↑Real.pi / 2) ∨
      (∃ k, x = (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∃ l, y = (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan (x + y) = (Complex.tan x + Complex.tan y) / (1 - Complex.tan x * Complex.tan y)

theorem Complex.tan_add' E1 #

∀ {x y : ℂ},
  ((∀ (k : ℤ), x ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), y ≠ (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan (x + y) = (Complex.tan x + Complex.tan y) / (1 - Complex.tan x * Complex.tan y)

theorem Complex.tan_sub E1 #

∀ {x y : ℂ},
  (((∀ (k : ℤ), x ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), y ≠ (2 * ↑l + 1) * ↑Real.pi / 2) ∨
      (∃ k, x = (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∃ l, y = (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan (x - y) = (Complex.tan x - Complex.tan y) / (1 + Complex.tan x * Complex.tan y)

theorem Complex.tan_sub' E1 #

∀ {x y : ℂ},
  ((∀ (k : ℤ), x ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), y ≠ (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan (x - y) = (Complex.tan x - Complex.tan y) / (1 + Complex.tan x * Complex.tan y)

theorem Complex.tan_two_mul E1 #

∀ {z : ℂ}, Complex.tan (2 * z) = 2 * Complex.tan z / (1 - Complex.tan z ^ 2)

theorem Complex.tan_add_mul_I E1 #

∀ {x y : ℂ},
  (((∀ (k : ℤ), x ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), y * Complex.I ≠ (2 * ↑l + 1) * ↑Real.pi / 2) ∨
      (∃ k, x = (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∃ l, y * Complex.I = (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan (x + y * Complex.I) =
      (Complex.tan x + Complex.tanh y * Complex.I) / (1 - Complex.tan x * Complex.tanh y * Complex.I)

theorem Complex.tan_eq E0 #

∀ {z : ℂ},
  (((∀ (k : ℤ), ↑z.re ≠ (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∀ (l : ℤ), ↑z.im * Complex.I ≠ (2 * ↑l + 1) * ↑Real.pi / 2) ∨
      (∃ k, ↑z.re = (2 * ↑k + 1) * ↑Real.pi / 2) ∧ ∃ l, ↑z.im * Complex.I = (2 * ↑l + 1) * ↑Real.pi / 2) →
    Complex.tan z =
      (Complex.tan ↑z.re + Complex.tanh ↑z.im * Complex.I) / (1 - Complex.tan ↑z.re * Complex.tanh ↑z.im * Complex.I)

theorem Complex.tan_eq_zero_of_cos_eq_zero E1 #

∀ {x : ℂ}, Complex.cos x = 0 → Complex.tan x = 0

tan x takes the junk value 0 when cos x = 0

theorem Complex.cos_eq_two_mul_tan_half_div_one_sub_tan_half_sq E1 #

∀ (x : ℂ), Complex.cos x ≠ -1 → Complex.cos x = (1 - Complex.tan (x / 2) ^ 2) / (1 + Complex.tan (x / 2) ^ 2)

theorem Complex.sin_eq_two_mul_tan_half_div_one_add_tan_half_sq E1 #

∀ (x : ℂ), Complex.sin x = 2 * Complex.tan (x / 2) / (1 + Complex.tan (x / 2) ^ 2)

tan (x / 2) takes the junk value 0 when sin x = 0 so this always holds.

theorem Complex.tan_eq_one_sub_tan_half_sq_div_one_add_tan_half_sq E1 #

∀ (x : ℂ), Complex.tan x = 2 * Complex.tan (x / 2) / (1 - Complex.tan (x / 2) ^ 2)

theorem Complex.continuousOn_tan E1 #

ContinuousOn Complex.tan {x | Complex.cos x ≠ 0}

theorem Complex.continuous_tan E1 #

Continuous fun x ↦ Complex.tan ↑x

theorem Complex.cos_eq_iff_quadratic E1 #

∀ {z w : ℂ}, Complex.cos z = w ↔ Complex.exp (z * Complex.I) ^ 2 - 2 * w * Complex.exp (z * Complex.I) + 1 = 0

theorem Complex.cos_surjective E1 #

Function.Surjective Complex.cos

theorem Complex.range_cos E0 #

Set.range Complex.cos = Set.univ

theorem Complex.sin_surjective E1 #

Function.Surjective Complex.sin

theorem Complex.range_sin E0 #

Set.range Complex.sin = Set.univ

theorem Complex.sin_mul_sum_sin E1 #

∀ (n : ℕ) (a b : ℂ),
  Complex.sin (a / 2) * ∑ i ∈ Finset.range n, Complex.sin (a * ↑i + b) =
    Complex.sin (↑n * a / 2) * Complex.sin ((↑n - 1) * a / 2 + b)

theorem Complex.sum_sin E1 #

∀ (n : ℕ) {a : ℂ},
  (∀ (k : ℤ), a ≠ ↑k * (2 * ↑Real.pi)) →
    ∀ (b : ℂ),
      ∑ i ∈ Finset.range n, Complex.sin (a * ↑i + b) =
        Complex.sin (↑n * a / 2) * Complex.sin ((↑n - 1) * a / 2 + b) / Complex.sin (a / 2)

theorem Complex.sin_mul_sum_cos E1 #

∀ (n : ℕ) (a b : ℂ),
  Complex.sin (a / 2) * ∑ i ∈ Finset.range n, Complex.cos (a * ↑i + b) =
    Complex.sin (↑n * a / 2) * Complex.cos ((↑n - 1) * a / 2 + b)

theorem Complex.sum_cos E1 #

∀ (n : ℕ) {a : ℂ},
  (∀ (k : ℤ), a ≠ ↑k * (2 * ↑Real.pi)) →
    ∀ (b : ℂ),
      ∑ i ∈ Finset.range n, Complex.cos (a * ↑i + b) =
        Complex.sin (↑n * a / 2) * Complex.cos ((↑n - 1) * a / 2 + b) / Complex.sin (a / 2)

theorem Real.cos_eq_zero_iff E0 #

∀ {θ : ℝ}, Real.cos θ = 0 ↔ ∃ k, θ = (2 * ↑k + 1) * Real.pi / 2

theorem Real.cos_ne_zero_iff E0 #

∀ {θ : ℝ}, Real.cos θ ≠ 0 ↔ ∀ (k : ℤ), θ ≠ (2 * ↑k + 1) * Real.pi / 2

theorem Real.cos_eq_cos_iff E0 #

∀ {x y : ℝ}, Real.cos x = Real.cos y ↔ ∃ k, y = 2 * ↑k * Real.pi + x ∨ y = 2 * ↑k * Real.pi - x

theorem Real.sin_eq_sin_iff E0 #

∀ {x y : ℝ}, Real.sin x = Real.sin y ↔ ∃ k, y = 2 * ↑k * Real.pi + x ∨ y = (2 * ↑k + 1) * Real.pi - x

theorem Real.cos_eq_neg_one_iff E0 #

∀ {x : ℝ}, Real.cos x = -1 ↔ ∃ k, Real.pi + ↑k * (2 * Real.pi) = x

theorem Real.abs_cos_eq_one_iff E0 #

∀ {x : ℝ}, |Real.cos x| = 1 ↔ ∃ k, ↑k * Real.pi = x

theorem Real.sin_eq_one_iff E0 #

∀ {x : ℝ}, Real.sin x = 1 ↔ ∃ k, Real.pi / 2 + ↑k * (2 * Real.pi) = x

theorem Real.sin_eq_neg_one_iff E0 #

∀ {x : ℝ}, Real.sin x = -1 ↔ ∃ k, -(Real.pi / 2) + ↑k * (2 * Real.pi) = x

theorem Real.abs_sin_eq_one_iff E0 #

∀ {x : ℝ}, |Real.sin x| = 1 ↔ ∃ k, Real.pi / 2 + ↑k * Real.pi = x

theorem Real.tan_eq_zero_iff E0 #

∀ {θ : ℝ}, Real.tan θ = 0 ↔ ∃ k, ↑k * Real.pi / 2 = θ

theorem Real.tan_eq_zero_iff' E1 #

∀ {θ : ℝ}, Real.cos θ ≠ 0 → (Real.tan θ = 0 ↔ ∃ k, ↑k * Real.pi = θ)

theorem Real.tan_ne_zero_iff E0 #

∀ {θ : ℝ}, Real.tan θ ≠ 0 ↔ ∀ (k : ℤ), ↑k * Real.pi / 2 ≠ θ

theorem Real.tan_eq_zero_of_cos_eq_zero E1 #

∀ {x : ℝ}, Real.cos x = 0 → Real.tan x = 0

tan x takes the junk value 0 when cos x = 0

theorem Real.cos_eq_two_mul_tan_half_div_one_sub_tan_half_sq E1 #

∀ (x : ℝ), Real.cos x ≠ -1 → Real.cos x = (1 - Real.tan (x / 2) ^ 2) / (1 + Real.tan (x / 2) ^ 2)

theorem Real.sin_eq_two_mul_tan_half_div_one_add_tan_half_sq E1 #

∀ (x : ℝ), Real.sin x = 2 * Real.tan (x / 2) / (1 + Real.tan (x / 2) ^ 2)

tan (x / 2) takes the junk value 0 when sin x = 0 so this always holds.

theorem Real.tan_eq_one_sub_tan_half_sq_div_one_add_tan_half_sq E1 #

∀ (x : ℝ), Real.tan x = 2 * Real.tan (x / 2) / (1 - Real.tan (x / 2) ^ 2)

theorem Real.sin_mul_sum_sin E1 #

∀ (n : ℕ) (a b : ℝ),
  Real.sin (a / 2) * ∑ i ∈ Finset.range n, Real.sin (a * ↑i + b) =
    Real.sin (↑n * a / 2) * Real.sin ((↑n - 1) * a / 2 + b)

theorem Real.sum_sin E1 #

∀ (n : ℕ) {a : ℝ},
  (∀ (k : ℤ), a ≠ ↑k * (2 * Real.pi)) →
    ∀ (b : ℝ),
      ∑ i ∈ Finset.range n, Real.sin (a * ↑i + b) =
        Real.sin (↑n * a / 2) * Real.sin ((↑n - 1) * a / 2 + b) / Real.sin (a / 2)

theorem Real.sin_mul_sum_cos E1 #

∀ (n : ℕ) (a b : ℝ),
  Real.sin (a / 2) * ∑ i ∈ Finset.range n, Real.cos (a * ↑i + b) =
    Real.sin (↑n * a / 2) * Real.cos ((↑n - 1) * a / 2 + b)

theorem Real.sum_cos E1 #

∀ (n : ℕ) {a : ℝ},
  (∀ (k : ℤ), a ≠ ↑k * (2 * Real.pi)) →
    ∀ (b : ℝ),
      ∑ i ∈ Finset.range n, Real.cos (a * ↑i + b) =
        Real.sin (↑n * a / 2) * Real.cos ((↑n - 1) * a / 2 + b) / Real.sin (a / 2)