Theorem 2.17 — weak maximum principle on a bounded connected domain
ProvedHunterPDE.Harmonic.weak_maximum_principleLet and let be a bounded, connected open set. If is harmonic in , then
A harmonic function on a bounded domain is thus controlled by its boundary values, which gives uniqueness for the Dirichlet problem (Theorem 2.18).
Formalization Note. is closure Ω and is frontier Ω. Each equality is stated as attainment: some point satisfies for all (respectively ). Both maxima exist by compactness, and since this is equivalent to the equality of maxima. Connected is IsConnected Ω (which includes nonempty). The hypothesis is the book's ambient dimension: for the whole one-point space is a bounded connected open set with empty boundary.
import Mathlib
namespace HunterPDE.Harmonic
/-- Theorem 2.17 of Hunter, *Notes on PDEs* (revised 6/18/2014), p. 27 (weak maximum principle):
if `Ω ⊆ ℝⁿ` is a bounded, connected open set and `u ∈ C²(Ω) ∩ C(Ω̄)` is harmonic in `Ω`, then
`max_{Ω̄} u = max_{∂Ω} u` and `min_{Ω̄} u = min_{∂Ω} u`. Each equality is stated as: some point of
`∂Ω = frontier Ω` is a maximum (resp. minimum) point of `u` on `Ω̄ = closure Ω`. Connected includes
nonempty (`IsConnected`), and `n ≥ 1` (for `n = 0` the only nonempty open set is the whole
one-point space, whose boundary is empty). -/
theorem weak_maximum_principle {n : ℕ} (hn : 0 < n) {Ω : Set (EuclideanSpace ℝ (Fin n))}
{u : EuclideanSpace ℝ (Fin n) → ℝ} (hΩ : IsOpen Ω) (hbdd : Bornology.IsBounded Ω)
(hconn : IsConnected Ω) (hu : InnerProductSpace.HarmonicOnNhd u Ω)
(hcont : ContinuousOn u (closure Ω)) :
(∃ y ∈ frontier Ω, ∀ x ∈ closure Ω, u x ≤ u y) ∧
(∃ y ∈ frontier Ω, ∀ x ∈ closure Ω, u y ≤ 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;
- bounded;
- connected, which here includes being nonempty.
- is harmonic near every point of . For each :
- is on a neighbourhood of ;
- vanishes on a neighbourhood of .
- is continuous on the closure .
Conclusion. Both of the following hold, where is the boundary (frontier) of :
- There exists with for all . That is, some boundary point is a maximum point of on .
- There exists with for all . That is, some boundary point is a minimum point of on .
The two points and need not coincide.
Degenerate cases.
- . Excluded by hypothesis.
- Empty . Excluded by connectedness.
- Constant . If is constant, every boundary point serves as both and .
- Behaviour outside . No condition is imposed on outside . No differentiability is required at boundary points, only continuity on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.