Theorem 2.1 — mean value property of harmonic functions on balls and spheres
ProvedHunterPDE.Harmonic.mean_value_propertyLet , let be open and let be harmonic in , i.e. in . If (with , the closed ball lies in ), then equals both its average over the ball and its average over the sphere:
This is the basic tool of the chapter: the derivative estimates (Theorems 2.7, 2.9), analyticity (Theorem 2.10) and the maximum principle all rest on it.
Formalization Note. "Harmonic, " on the open set is Mathlib's InnerProductSpace.HarmonicOnNhd u Ω ( near every point of and near every point). is 0 < r and Metric.closedBall x r ⊆ Ω. The sphere average is sphereAverage from the definition item MeanValue. The hypothesis makes the sphere nonempty (for it is empty and its average is the junk value ); the book works in with .
import Mathlib import Definitions.Def_HunterPDE_Harmonic_MeanValue open MeasureTheory
namespace HunterPDE.Harmonic
/-- Theorem 2.1 of Hunter, *Notes on PDEs* (revised 6/18/2014), p. 20: if `u ∈ C²(Ω)` is harmonic
in an open set `Ω ⊆ ℝⁿ` and `B_r(x) ⋐ Ω` (the closed ball lies in `Ω`, `r > 0`), then `u(x)` is
the average of `u` over the ball `B_r(x)` and over the sphere `∂B_r(x)`. Harmonic on the open set
`Ω` is Mathlib's `HarmonicOnNhd` (`C²` near every point of `Ω` and `Δu = 0` there). -/
theorem mean_value_property {n : ℕ} (hn : 0 < n) {Ω : Set (EuclideanSpace ℝ (Fin n))}
{u : EuclideanSpace ℝ (Fin n) → ℝ} (hΩ : IsOpen Ω) (hu : InnerProductSpace.HarmonicOnNhd u Ω)
{x : EuclideanSpace ℝ (Fin n)} {r : ℝ} (hr : 0 < r) (hball : Metric.closedBall x r ⊆ Ω) :
u x = (⨍ y in Metric.ball x r, u y) ∧ u x = sphereAverage u x r := by sorry
end HunterPDE.Harmonic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses.
-
.
-
is open.
-
is harmonic near every point of . That is, for each :
- is on some neighbourhood of ;
- vanishes identically on some neighbourhood of .
Here , the trace of the second Fréchet derivative.
-
and are such that .
Conclusion. Both
Here is Lebesgue measure and the open ball. The sphere average is
where is the unit sphere and . Either average is defined to be if the integrand is not integrable.
Degenerate cases.
- . Excluded by hypothesis. In that case the sphere would be empty and its average .
- . The sphere average is .
- Integrability. Under the hypotheses, is continuous on a neighbourhood of the compact set . So the integrals are over integrable functions, and the zero convention for non-integrable integrands does not come into play.
- No admissible ball. If contains no closed ball of positive radius, for example if is empty, the theorem is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.