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.Arctan

78 declarations. Mathlib docs · Source

theorem Real.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) →
    Real.tan (x + y) = (Real.tan x + Real.tan y) / (1 - Real.tan x * Real.tan y)

theorem Real.tan_add' E1 #

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

theorem Real.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) →
    Real.tan (x - y) = (Real.tan x - Real.tan y) / (1 + Real.tan x * Real.tan y)

theorem Real.tan_sub' E1 #

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

theorem Real.tan_two_mul E1 #

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

theorem Real.tan_int_mul_pi_div_two E1 #

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

theorem Real.continuousOn_tan E1 #

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

theorem Real.continuous_tan E1 #

Continuous fun x ↦ Real.tan ↑x

theorem Real.continuousOn_tan_Ioo E1 #

ContinuousOn Real.tan (Set.Ioo (-(Real.pi / 2)) (Real.pi / 2))

theorem Real.surjOn_tan E1 #

Set.SurjOn Real.tan (Set.Ioo (-(Real.pi / 2)) (Real.pi / 2)) Set.univ

theorem Real.tan_surjective E1 #

Function.Surjective Real.tan

theorem Real.image_tan_Ioo E1 #

Real.tan '' Set.Ioo (-(Real.pi / 2)) (Real.pi / 2) = Set.univ

def Real.tanOrderIso E1 #

↑(Set.Ioo (-(Real.pi / 2)) (Real.pi / 2)) ≃o ℝ

Real.tan as an OrderIso between (-(π / 2), π / 2) and ℝ.

def Real.arctan E1 #

ℝ → ℝ

Inverse of the tan function, returns values in the range -π / 2 < arctan x and arctan x < π / 2

theorem Real.tan_arctan E0 #

∀ (x : ℝ), Real.tan (Real.arctan x) = x

theorem Real.arctan_mem_Ioo E1 #

∀ (x : ℝ), Real.arctan x ∈ Set.Ioo (-(Real.pi / 2)) (Real.pi / 2)

theorem Real.range_arctan E0 #

Set.range Real.arctan = Set.Ioo (-(Real.pi / 2)) (Real.pi / 2)

theorem Real.arctan_tan E1 #

∀ {x : ℝ}, -(Real.pi / 2) < x → x < Real.pi / 2 → Real.arctan (Real.tan x) = x

theorem Real.cos_arctan_pos E1 #

∀ (x : ℝ), 0 < Real.cos (Real.arctan x)

theorem Real.sin_sq_arctan E1 #

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

theorem Real.cos_sq_arctan E1 #

∀ (x : ℝ), Real.cos (Real.arctan x) ^ 2 = 1 / (1 + x ^ 2)

theorem Real.sin_arctan E1 #

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

theorem Real.cos_arctan E1 #

∀ (x : ℝ), Real.cos (Real.arctan x) = 1 / √(1 + x ^ 2)

theorem Real.arctan_lt_pi_div_two E1 #

∀ (x : ℝ), Real.arctan x < Real.pi / 2

theorem Real.neg_pi_div_two_lt_arctan E1 #

∀ (x : ℝ), -(Real.pi / 2) < Real.arctan x

theorem Real.arctan_eq_arcsin E1 #

∀ (x : ℝ), Real.arctan x = Real.arcsin (x / √(1 + x ^ 2))

theorem Real.arcsin_eq_arctan E1 #

∀ {x : ℝ}, x ∈ Set.Ioo (-1) 1 → Real.arcsin x = Real.arctan (x / √(1 - x ^ 2))

theorem Real.arctan_zero E0 #

Real.arctan 0 = 0

theorem Real.arctan_strictMono E1 #

StrictMono Real.arctan

theorem Real.arctan_mono E1 #

Monotone Real.arctan

theorem Real.arctan_lt_arctan_iff E0 #

∀ {x y : ℝ}, Real.arctan x < Real.arctan y ↔ x < y

theorem Real.arctan_le_arctan_iff E0 #

∀ {x y : ℝ}, Real.arctan x ≤ Real.arctan y ↔ x ≤ y

theorem Real.arctan_injective E1 #

Function.Injective Real.arctan

theorem Real.arctan_inj E0 #

∀ {x y : ℝ}, Real.arctan x = Real.arctan y ↔ x = y

theorem Real.arctan_eq_zero_iff E0 #

∀ {x : ℝ}, Real.arctan x = 0 ↔ x = 0

theorem Real.tendsto_arctan_atTop E1 #

Filter.Tendsto Real.arctan Filter.atTop (nhdsWithin (Real.pi / 2) (Set.Iio (Real.pi / 2)))

theorem Real.tendsto_arctan_atBot E1 #

Filter.Tendsto Real.arctan Filter.atBot (nhdsWithin (-(Real.pi / 2)) (Set.Ioi (-(Real.pi / 2))))

theorem Real.arctan_eq_of_tan_eq E0 #

∀ {x y : ℝ}, Real.tan x = y → x ∈ Set.Ioo (-(Real.pi / 2)) (Real.pi / 2) → Real.arctan y = x

theorem Real.arctan_one E0 #

Real.arctan 1 = Real.pi / 4

theorem Real.arctan_sqrt_three E0 #

Real.arctan √3 = Real.pi / 3

theorem Real.arctan_inv_sqrt_three E0 #

Real.arctan (√3)⁻¹ = Real.pi / 6

theorem Real.arctan_eq_pi_div_four E0 #

∀ {x : ℝ}, Real.arctan x = Real.pi / 4 ↔ x = 1

theorem Real.arctan_neg E0 #

∀ (x : ℝ), Real.arctan (-x) = -Real.arctan x

theorem Real.arctan_eq_neg_pi_div_four E0 #

∀ {x : ℝ}, Real.arctan x = -(Real.pi / 4) ↔ x = -1

theorem Real.arctan_pos E0 #

∀ {x : ℝ}, 0 < Real.arctan x ↔ 0 < x

theorem Real.arctan_lt_zero E0 #

∀ {x : ℝ}, Real.arctan x < 0 ↔ x < 0

theorem Real.arctan_nonneg E0 #

∀ {x : ℝ}, 0 ≤ Real.arctan x ↔ 0 ≤ x

theorem Real.arctan_le_zero E0 #

∀ {x : ℝ}, Real.arctan x ≤ 0 ↔ x ≤ 0

theorem Real.arctan_eq_arccos E1 #

∀ {x : ℝ}, 0 ≤ x → Real.arctan x = Real.arccos (√(1 + x ^ 2))⁻¹

theorem Real.arccos_eq_arctan E1 #

∀ {x : ℝ}, 0 < x → Real.arccos x = Real.arctan (√(1 - x ^ 2) / x)

theorem Real.arctan_inv_of_pos E1 #

∀ {x : ℝ}, 0 < x → Real.arctan x⁻¹ = Real.pi / 2 - Real.arctan x

theorem Real.arctan_inv_of_neg E1 #

∀ {x : ℝ}, x < 0 → Real.arctan x⁻¹ = -(Real.pi / 2) - Real.arctan x

theorem Real.arctan_ne_mul_pi_div_two E1 #

∀ {x : ℝ} (k : ℤ), Real.arctan x ≠ (2 * ↑k + 1) * Real.pi / 2

theorem Real.arctan_add_arctan_lt_pi_div_two E1 #

∀ {x y : ℝ}, x * y < 1 → Real.arctan x + Real.arctan y < Real.pi / 2

theorem Real.arctan_add E1 #

∀ {x y : ℝ}, x * y < 1 → Real.arctan x + Real.arctan y = Real.arctan ((x + y) / (1 - x * y))

theorem Real.arctan_add_eq_add_pi E1 #

∀ {x y : ℝ}, 1 < x * y → 0 < x → Real.arctan x + Real.arctan y = Real.arctan ((x + y) / (1 - x * y)) + Real.pi

theorem Real.arctan_add_eq_sub_pi E1 #

∀ {x y : ℝ}, 1 < x * y → x < 0 → Real.arctan x + Real.arctan y = Real.arctan ((x + y) / (1 - x * y)) - Real.pi

theorem Real.two_mul_arctan E1 #

∀ {x : ℝ}, -1 < x → x < 1 → 2 * Real.arctan x = Real.arctan (2 * x / (1 - x ^ 2))

theorem Real.two_mul_arctan_add_pi E1 #

∀ {x : ℝ}, 1 < x → 2 * Real.arctan x = Real.arctan (2 * x / (1 - x ^ 2)) + Real.pi

theorem Real.two_mul_arctan_sub_pi E1 #

∀ {x : ℝ}, x < -1 → 2 * Real.arctan x = Real.arctan (2 * x / (1 - x ^ 2)) - Real.pi

theorem Real.arctan_inv_2_add_arctan_inv_3 E1 #

Real.arctan 2⁻¹ + Real.arctan 3⁻¹ = Real.pi / 4

theorem Real.two_mul_arctan_inv_2_sub_arctan_inv_7 E1 #

2 * Real.arctan 2⁻¹ - Real.arctan 7⁻¹ = Real.pi / 4

theorem Real.two_mul_arctan_inv_3_add_arctan_inv_7 E1 #

2 * Real.arctan 3⁻¹ + Real.arctan 7⁻¹ = Real.pi / 4

theorem Real.four_mul_arctan_inv_5_sub_arctan_inv_239 E1 #

4 * Real.arctan 5⁻¹ - Real.arctan 239⁻¹ = Real.pi / 4

John Machin's 1706 formula, which he used to compute π to 100 decimal places.

theorem Real.sin_arctan_strictMono E1 #

StrictMono fun x ↦ Real.sin (Real.arctan x)

theorem Real.sin_arctan_pos E0 #

∀ {x : ℝ}, 0 < Real.sin (Real.arctan x) ↔ 0 < x

theorem Real.sin_arctan_lt_zero E0 #

∀ {x : ℝ}, Real.sin (Real.arctan x) < 0 ↔ x < 0

theorem Real.sin_arctan_eq_zero E0 #

∀ {x : ℝ}, Real.sin (Real.arctan x) = 0 ↔ x = 0

theorem Real.sin_arctan_nonneg E0 #

∀ {x : ℝ}, 0 ≤ Real.sin (Real.arctan x) ↔ 0 ≤ x

theorem Real.sin_arctan_le_zero E0 #

∀ {x : ℝ}, Real.sin (Real.arctan x) ≤ 0 ↔ x ≤ 0

theorem Real.continuous_arctan E1 #

Continuous Real.arctan

theorem Real.continuousAt_arctan E1 #

∀ {x : ℝ}, ContinuousAt Real.arctan x

def Real.tanPartialHomeomorph E1 #

OpenPartialHomeomorph ℝ ℝ

Real.tan as an OpenPartialHomeomorph between (-(π / 2), π / 2) and the whole line.

theorem Real.coe_tanPartialHomeomorph E0 #

↑Real.tanPartialHomeomorph = Real.tan

theorem Real.coe_tanPartialHomeomorph_symm E0 #

↑Real.tanPartialHomeomorph.symm = Real.arctan

def Mathlib.Meta.Positivity.evalRealArctan E1 #

Mathlib.Meta.Positivity.PositivityExt

Extension for Real.arctan.

def Mathlib.Meta.Positivity.evalRealCosArctan E1 #

Mathlib.Meta.Positivity.PositivityExt

Extension for Real.cos (Real.arctan _).

def Mathlib.Meta.Positivity.evalRealSinArctan E1 #

Mathlib.Meta.Positivity.PositivityExt

Extension for Real.sin (Real.arctan _).