Skip to content

Commit

Permalink
fix: deduplicate and make exp notation scoped (#7297)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpvandoorn committed Sep 21, 2023
1 parent 2e62146 commit 08c9bdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Mathlib/Analysis/SpecialFunctions/Gamma/Beta.lean
Expand Up @@ -55,8 +55,6 @@ section BetaIntegral

namespace Complex

notation "cexp" => Complex.exp

/-- The Beta function `Β (u, v)`, defined as `∫ x:ℝ in 0..1, x ^ (u - 1) * (1 - x) ^ (v - 1)`. -/
noncomputable def betaIntegral (u v : ℂ) : ℂ :=
∫ x : ℝ in (0)..1, (x : ℂ) ^ (u - 1) * (1 - (x : ℂ)) ^ (v - 1)
Expand Down
4 changes: 0 additions & 4 deletions Mathlib/Analysis/SpecialFunctions/Gaussian.lean
Expand Up @@ -47,10 +47,6 @@ open scoped Real Topology FourierTransform

open Complex hiding exp continuous_exp abs_of_nonneg sq_abs

notation "cexp" => Complex.exp

notation "rexp" => Real.exp

theorem exp_neg_mul_sq_isLittleO_exp_neg {b : ℝ} (hb : 0 < b) :
(fun x : ℝ => exp (-b * x ^ 2)) =o[atTop] fun x : ℝ => exp (-x) := by
have A : (fun x : ℝ => -x - -b * x ^ 2) = fun x => x * (b * x + -1) := by ext x; ring
Expand Down
6 changes: 6 additions & 0 deletions Mathlib/Data/Complex/Exponential.lean
Expand Up @@ -416,6 +416,9 @@ def tanh (z : ℂ) : ℂ :=
sinh z / cosh z
#align complex.tanh Complex.tanh

/-- scoped notation for the complex exponential function -/
scoped notation "cexp" => Complex.exp

end

end Complex
Expand Down Expand Up @@ -469,6 +472,9 @@ nonrec def tanh (x : ℝ) : ℝ :=
(tanh x).re
#align real.tanh Real.tanh

/-- scoped notation for the real exponential function -/
scoped notation "rexp" => Real.exp

end

end Real
Expand Down

0 comments on commit 08c9bdd

Please sign in to comment.