Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.17 — weak maximum principle on a bounded connected domain

Proved
HunterPDE.Harmonic.weak_maximum_principle

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

harmonic-functionsmaximum-principlep2o-batch-books5p2o-gran-per-chapterp2o-plan-bookp2o-v1pde

Let n≥1n \ge 1n≥1 and let Ω⊆Rn\Omega \subseteq \mathbb{R}^nΩ⊆Rn be a bounded, connected open set. If u∈C2(Ω)∩C(Ω‾)u \in C^2(\Omega) \cap C(\overline{\Omega})u∈C2(Ω)∩C(Ω) is harmonic in Ω\OmegaΩ, then

max⁡Ω‾u=max⁡∂Ωu,min⁡Ω‾u=min⁡∂Ωu.\max_{\overline{\Omega}} u = \max_{\partial\Omega} u, \qquad \min_{\overline{\Omega}} u = \min_{\partial\Omega} u.Ωmax​u=∂Ωmax​u,Ωmin​u=∂Ωmin​u.

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. Ω‾\overline{\Omega}Ω is closure Ω and ∂Ω\partial\Omega∂Ω is frontier Ω. Each equality is stated as attainment: some point y∈∂Ωy \in \partial\Omegay∈∂Ω satisfies u(z)≤u(y)u(z) \le u(y)u(z)≤u(y) for all z∈Ω‾z \in \overline{\Omega}z∈Ω (respectively u(y)≤u(z)u(y) \le u(z)u(y)≤u(z)). Both maxima exist by compactness, and since ∂Ω⊆Ω‾\partial\Omega \subseteq \overline{\Omega}∂Ω⊆Ω this is equivalent to the equality of maxima. Connected is IsConnected Ω (which includes nonempty). The hypothesis n≥1n \ge 1n≥1 is the book's ambient dimension: for n=0n = 0n=0 the whole one-point space is a bounded connected open set with empty boundary.

Preamble
import Mathlib
Formal statement
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
Source
Hunter, Notes on Partial Differential Equations (revised 6/18/2014), p. 27, Theorem 2.17
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Hypotheses.

  • n≥1n \ge 1n≥1.
  • Ω⊆Rn\Omega \subseteq \mathbb{R}^nΩ⊆Rn is:
    • open;
    • bounded;
    • connected, which here includes being nonempty.
  • u:Rn→Ru : \mathbb{R}^n \to \mathbb{R}u:Rn→R is harmonic near every point of Ω\OmegaΩ. For each p∈Ωp \in \Omegap∈Ω:
    • uuu is C2C^2C2 on a neighbourhood of ppp;
    • Δu=∑iD2u(⋅)(ei,ei)\Delta u = \sum_i D^2u(\cdot)(e_i,e_i)Δu=∑i​D2u(⋅)(ei​,ei​) vanishes on a neighbourhood of ppp.
  • uuu is continuous on the closure Ω‾\overline{\Omega}Ω.

Conclusion. Both of the following hold, where ∂Ω=Ω‾∖Ω\partial\Omega = \overline{\Omega} \setminus \Omega∂Ω=Ω∖Ω is the boundary (frontier) of Ω\OmegaΩ:

  • There exists y∈∂Ωy \in \partial\Omegay∈∂Ω with u(x)≤u(y)u(x) \le u(y)u(x)≤u(y) for all x∈Ω‾x \in \overline{\Omega}x∈Ω. That is, some boundary point is a maximum point of uuu on Ω‾\overline{\Omega}Ω.
  • There exists y′∈∂Ωy' \in \partial\Omegay′∈∂Ω with u(y′)≤u(x)u(y') \le u(x)u(y′)≤u(x) for all x∈Ω‾x \in \overline{\Omega}x∈Ω. That is, some boundary point is a minimum point of uuu on Ω‾\overline{\Omega}Ω.

The two points yyy and y′y'y′ need not coincide.

Degenerate cases.

  • n=0n = 0n=0. Excluded by hypothesis.
  • Empty Ω\OmegaΩ. Excluded by connectedness.
  • Constant uuu. If uuu is constant, every boundary point serves as both yyy and y′y'y′.
  • Behaviour outside Ω‾\overline{\Omega}Ω. No condition is imposed on uuu outside Ω‾\overline{\Omega}Ω. No differentiability is required at boundary points, only continuity on Ω‾\overline{\Omega}Ω.
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me