Skip to content

Commit e8ea1af

Browse files
committed
chore: rename theorems to comply with mathlib standards (#36026)
On a suggestion of `urkud`, rename two theorems, in order to comply with mathlib standards.
1 parent 2b7b3d1 commit e8ea1af

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

Mathlib/Analysis/Complex/Harmonic/Analytic.lean

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ set_option backward.isDefEq.respectTransparency false in
7171
If a function `f : ℂ → ℝ` is harmonic on an open ball, then `f` is the real part of a function
7272
`F : ℂ → ℂ` that is holomorphic on the ball.
7373
-/
74-
theorem harmonic_is_realOfHolomorphic {z : ℂ} {R : ℝ} (hf : HarmonicOnNhd f (ball z R)) :
74+
theorem InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_ball_re_eq {z : ℂ} {R : ℝ}
75+
(hf : HarmonicOnNhd f (ball z R)) :
7576
∃ F : ℂ → ℂ, (AnalyticOnNhd ℂ F (ball z R)) ∧ ((ball z R).EqOn (fun z ↦ (F z).re) f) := by
7677
by_cases hR : R ≤ 0
7778
· simp [ball_eq_empty.2 hR]
@@ -102,11 +103,15 @@ theorem harmonic_is_realOfHolomorphic {z : ℂ} {R : ℝ} (hf : HarmonicOnNhd f
102103
simp [HasDerivAt.deriv (hF.2 y hy), g]
103104
all_goals simp_all
104105

106+
@[deprecated (since := "2026-03-03")]
107+
alias harmonic_is_realOfHolomorphic :=
108+
InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_ball_re_eq
109+
105110
set_option backward.isDefEq.respectTransparency false in
106111
/--
107112
If a function `f : ℂ → ℝ` is harmonic, then `f` is the real part of a holomorphic function.
108113
-/
109-
theorem InnerProductSpace.harmonic_is_realOfHolomorphic_univ {f : ℂ → ℝ}
114+
theorem InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_univ_re_eq {f : ℂ → ℝ}
110115
(hf : HarmonicOnNhd f univ) :
111116
∃ F : ℂ → ℂ, (AnalyticOnNhd ℂ F univ) ∧ ((fun z ↦ (F z).re) = f) := by
112117
let g := ofRealCLM ∘ (fderiv ℝ f · 1) - I • ofRealCLM ∘ (fderiv ℝ f · I)
@@ -132,13 +137,18 @@ theorem InnerProductSpace.harmonic_is_realOfHolomorphic_univ {f : ℂ → ℝ}
132137
· simp
133138
all_goals simp_all
134139

140+
@[deprecated (since := "2026-03-03")]
141+
alias InnerProductSpace.harmonic_is_realOfHolomorphic_univ :=
142+
InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_univ_re_eq
143+
135144
set_option backward.isDefEq.respectTransparency false in
136145
/-
137146
Harmonic functions are real analytic.
138147
TODO: Prove this for harmonic functions on an arbitrary f.d. inner product space (not just on `ℂ`).
139148
-/
140149
theorem HarmonicAt.analyticAt (hf : HarmonicAt f x) : AnalyticAt ℝ f x := by
141150
obtain ⟨ε, h₁ε, h₂ε⟩ := isOpen_iff.1 (isOpen_setOf_harmonicAt (f := f)) x hf
142-
obtain ⟨F, h₁F, h₂F⟩ := harmonic_is_realOfHolomorphic (fun _ hy ↦ h₂ε hy)
151+
obtain ⟨F, h₁F, h₂F⟩ := InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_ball_re_eq
152+
(fun _ hy ↦ h₂ε hy)
143153
rw [analyticAt_congr (Filter.eventually_of_mem (ball_mem_nhds x h₁ε) (fun y hy ↦ h₂F.symm hy))]
144154
exact (reCLM.analyticAt (F x)).comp (h₁F x (mem_ball_self h₁ε)).restrictScalars

Mathlib/Analysis/Complex/Harmonic/Liouville.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ theorem InnerProductSpace.bounded_harmonic_on_complex_plane_is_constant (f : ℂ
2929
(h_harm : HarmonicOnNhd f univ) (h_bound : Bornology.IsBounded (range f)) :
3030
∀ z w, f z = f w := by
3131
-- By assumption, there exists a holomorphic function $f$ such that $\Re(f) = u$.
32-
obtain ⟨F, hF_diff, hF_re⟩ := harmonic_is_realOfHolomorphic_univ h_harm
32+
obtain ⟨F, hF_diff, hF_re⟩ := h_harm.exists_analyticOnNhd_univ_re_eq
3333
-- Since $g(z)$ is bounded, by Liouville's theorem, $g(z)$ is constant.
3434
suffices ∀ z w, Complex.exp (F z) = Complex.exp (F w) by grind
3535
apply Differentiable.apply_eq_apply_of_bounded

Mathlib/Analysis/Complex/Harmonic/MeanValue.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ theorem HarmonicOnNhd.circleAverage_eq (hf : HarmonicOnNhd f (closedBall c |R|))
2929
obtain ⟨e, h₁e, h₂e⟩ := (isCompact_closedBall c |R|).exists_thickening_subset_open
3030
(isOpen_setOf_harmonicAt f) hf
3131
rw [thickening_closedBall h₁e (abs_nonneg R)] at h₂e
32-
obtain ⟨F, h₁F, h₂F⟩ := harmonic_is_realOfHolomorphic h₂e
32+
obtain ⟨F, h₁F, h₂F⟩ := InnerProductSpace.HarmonicOnNhd.exists_analyticOnNhd_ball_re_eq h₂e
3333
have h₃F : DifferentiableOn ℂ F (closure (ball c |R|)) := by
3434
intro x hx
3535
apply (h₁F x _).differentiableWithinAt

0 commit comments

Comments
 (0)