Theorem 2.5 — mean value inequalities for sub- and superharmonic functions
ProvedHunterPDE.Harmonic.mean_value_inequalityLet , let be open, and . If is subharmonic in (), then
If is superharmonic in (), then
The inequality (2.5) is what the proof of the strong maximum principle (Theorem 2.13) uses.
Formalization Note. Sub- and superharmonicity (Definition 2.4, including ) are the definition item Subharmonic; the averages are those of MeanValue. is 0 < r and Metric.closedBall x r ⊆ Ω. The two cases are stated as a conjunction of two implications. keeps the sphere nonempty.
import Mathlib import Definitions.Def_HunterPDE_Harmonic_MeanValue import Definitions.Def_HunterPDE_Harmonic_Subharmonic open MeasureTheory
namespace HunterPDE.Harmonic
/-- Theorem 2.5 of Hunter, *Notes on PDEs* (revised 6/18/2014), p. 22: let `Ω ⊆ ℝⁿ` be open,
`B_r(x) ⋐ Ω` (the closed ball lies in `Ω`, `r > 0`) and `u ∈ C²(Ω)`. If `u` is subharmonic in `Ω`
(`Δu ≥ 0`), then `u(x)` is at most its average over the ball `B_r(x)` and at most its average over
the sphere `∂B_r(x)` (2.5); if `u` is superharmonic in `Ω` (`Δu ≤ 0`), both inequalities are
reversed (2.6). The `C²` hypothesis is part of `IsSubharmonicOn` / `IsSuperharmonicOn`
(Definition 2.4). `n ≥ 1`, so that the sphere is nonempty. -/
theorem mean_value_inequality {n : ℕ} (hn : 0 < n) {Ω : Set (EuclideanSpace ℝ (Fin n))}
{u : EuclideanSpace ℝ (Fin n) → ℝ} (hΩ : IsOpen Ω)
{x : EuclideanSpace ℝ (Fin n)} {r : ℝ} (hr : 0 < r) (hball : Metric.closedBall x r ⊆ Ω) :
(IsSubharmonicOn Ω u →
u x ≤ (⨍ y in Metric.ball x r, u y) ∧ u x ≤ sphereAverage u x r) ∧
(IsSuperharmonicOn Ω u →
(⨍ y in Metric.ball x r, u y) ≤ u x ∧ sphereAverage u x r ≤ u x) := by sorry
end HunterPDE.Harmonic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses.
- .
- is open.
- .
- and satisfy .
Write
for the average over the open ball ( Lebesgue measure). Write
for the sphere average, with on the unit sphere . Each average is if its integrand is not integrable.
Conclusion. Two implications hold simultaneously:
- If is on and for all (subharmonic), then
- If is on and for all (superharmonic), then
Here .
Degenerate cases.
- . Excluded by hypothesis.
- . .
- Openness. Since is open, " on " is ordinary near each point of .
- Integrability. is then continuous on the compact set , so the zero convention for non-integrable integrands does not arise when either implication's premise holds.
- Premise fails. If is neither subharmonic nor superharmonic, the corresponding implication is vacuous.
- Both premises hold. If is both (i.e. with on ), both implications apply and force .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.