Full text not available for this paper

Summary (Overview)

  • This paper presents a comprehensive formalisation in Lean 4 of the solvability of the Dirichlet problem for second-order linear elliptic operators in divergence form, built on top of Mathlib.
  • The machine-verified results (with no sorry in the development) include the Poincaré inequality, Lax–Milgram theorem, Rellich–Kondrachov compactness, Fredholm alternative, spectral theorem, interior regularity estimates, and the Sobolev embedding theorem.
  • The authors develop a self-contained theory of Sobolev spaces independently of existing formalisations, using a weak-derivative Hilbert space approach.
  • The library achieves classical solvability for sufficiently regular coefficients and data, with every prose statement associated with a named machine-checked Lean declaration.
  • The development was assisted by language models (Claude Opus 4.5 and 5) used as agents, though no model output forms part of the trusted proof object—the Lean kernel checks every proof term.

Introduction and Theoretical Foundation

The paper addresses the formalisation of partial differential equation (PDE) theory in interactive proof assistants, an area still in its early stages. While mathematical analysis has recently come within reach of proof assistants, PDE theory formalisation lags behind. Previous work includes interior De Giorgi–Nash–Moser regularity theory in Lean 4 [AK26], Gagliardo–Nirenberg–Sobolev inequality formalisations [DM24], and Schwartz functions and tempered distributions [Dol25].

The mathematical foundation concerns second-order linear partial differential operators LL in divergence form with coefficients aij,bi,c∈L∞(Ω)a^{ij}, b^i, c \in L^\infty(\Omega):

Lu=−∑j=1nDj(∑i=1naijDiu)+∑i=1nbiDiu+cu(1)Lu = -\sum_{j=1}^{n} D_j\left(\sum_{i=1}^{n} a^{ij} D_i u\right) + \sum_{i=1}^{n} b^i D_i u + c u \tag{1}

The operator is uniformly elliptic if there exist constants 0<λ≤Λ<∞0 < \lambda \leq \Lambda < \infty such that for each ξ∈Rn\xi \in \mathbb{R}^n:

0<λ∣ξ∣2≤∑i,j=1naij(x)ξiξj≤Λ∣ξ∣2(2)0 < \lambda |\xi|^2 \leq \sum_{i,j=1}^{n} a^{ij}(x)\xi_i \xi_j \leq \Lambda |\xi|^2 \tag{2}

The Dirichlet problem is:

{Lu=fin Ω,u=0on ∂Ω.(3)\begin{cases} Lu = f & \text{in } \Omega, \\ u = 0 & \text{on } \partial\Omega. \end{cases} \tag{3}

A weak solution u∈H01(Ω)u \in H^1_0(\Omega) satisfies:

B[u,v]=⟨f,v⟩L2(Ω)for all v∈H01(Ω)(4)B[u, v] = \langle f, v \rangle_{L^2(\Omega)} \quad \text{for all } v \in H^1_0(\Omega) \tag{4}

where the bilinear form is:

B[u,v]=∑i,j=1n∫Ω(aijDiuDjv+bi(Diu)v+cuv)(5)B[u, v] = \sum_{i,j=1}^{n} \int_\Omega \left(a^{ij} D_i u D_j v + b^i (D_i u) v + c uv\right) \tag{5}

The approach follows the two-stage classical strategy: first obtain weak solutions via functional-analytic methods (Lax–Milgram and Fredholm alternative), then show via interior regularity estimates and Sobolev embedding that weak solutions are classical when coefficients and data are sufficiently regular.

Methodology

Formalisation Framework

The formalisation assigns one of four statuses to each proof obligation:

  • Discharged: established by a machine-checked Lean proof term
  • Warranted: deferred to a located external source
  • Routine: relies on shared mathematical competence
  • Open: no justification given

Acceptance criteria are mechanical: the full development must build from a clean clone with no sorry and no warnings, the environment linter must pass, and #print axioms must report exactly the three standard Lean core axioms (propositional extensionality, axiom of choice, and quotient soundness).

Library Architecture

The library consists of three layers:

  1. Weak-derivative Sobolev layer: Sobolev spaces realised as weak-derivative Hilbert spaces, where a member is an L2L^2 function together with its L2L^2 gradients. The ambient space is L2(Ω)×(L2(Ω))nL^2(\Omega) \times (L^2(\Omega))^n, encoded as PiLp 2 over Fin (n + 1). The space H01(Ω)H^1_0(\Omega) is the topological closure of test-function graphs.

  2. Poincaré reduction layer: The Poincaré constant is derived from one-dimensional estimates. Two key lemmas are formalised:

    • Lemma 1 (One-dimensional Cauchy–Schwarz): (∫abf(t)g(t) dt)2≤(∫abf(t)2 dt)(∫abg(t)2 dt)\left(\int_a^b f(t)g(t)\,dt\right)^2 \leq \left(\int_a^b f(t)^2\,dt\right)\left(\int_a^b g(t)^2\,dt\right)
    • Lemma 2 (One-dimensional Poincaré): ∫abu(t)2 dt≤(b−a)22∫abu′(t)2 dt\int_a^b u(t)^2\,dt \leq \frac{(b-a)^2}{2}\int_a^b u'(t)^2\,dt
  3. Sobolev embedding layer: Provides passage from equivalence classes to pointwise-defined functions, using Gagliardo–Nirenberg–Sobolev and Morrey inequalities.

Key Formalised Theorems

Theorem 1 (Poincaré inequality): For bounded Ω⊆Rn\Omega \subseteq \mathbb{R}^n, there exists CP≥0C_P \geq 0 such that ∥u∥L2(Ω)≤CP∥∇u∥L2(Ω)\|u\|_{L^2(\Omega)} \leq C_P \|\nabla u\|_{L^2(\Omega)} for all u∈H01(Ω)u \in H^1_0(\Omega).

Theorem 2 (Lax–Milgram): For a Hilbert space HH with bounded coercive bilinear form BB satisfying B[u,u]≥β∥u∥H2B[u,u] \geq \beta\|u\|^2_H for β>0\beta > 0, and f∈H∗f \in H^*, there is a unique u∈Hu \in H with B[u,v]=⟨f,v⟩B[u,v] = \langle f, v\rangle for all v∈Hv \in H.

Theorem 3 (Gårding inequality): With γ=λ/2+∥c∥L∞(Ω)+n(max⁡i∥bi∥L∞(Ω))2/(2λ)\gamma = \lambda/2 + \|c\|_{L^\infty(\Omega)} + n(\max_i\|b^i\|_{L^\infty(\Omega)})^2/(2\lambda):

λ2∥u∥H01(Ω)2≤B[u,u]+γ∥u∥L2(Ω)2\frac{\lambda}{2}\|u\|^2_{H^1_0(\Omega)} \leq B[u,u] + \gamma\|u\|^2_{L^2(\Omega)}

Theorem 5 (Fredholm alternative): For bounded measurable Ω\Omega and uniformly elliptic LL, either the homogeneous problem has a non-zero weak solution, or for every f∈H−1(Ω)f \in H^{-1}(\Omega), the problem Lu=fLu = f has a unique weak solution.

Theorem 10 (Sobolev embedding): For n≥2n \geq 2, bounded open Ω\Omega with C1C^1 boundary, p∈[1,∞)p \in [1, \infty), k∈Nk \in \mathbb{N}, u∈Wk,p(Ω)u \in W^{k,p}(\Omega):

  1. If k<n/pk < n/p, then u∈Lq(Ω)u \in L^q(\Omega) with 1/q=1/p−k/n1/q = 1/p - k/n
  2. If k>n/pk > n/p, then u∈Ck−1−⌊n/p⌋,γ(Ω)u \in C^{k-1-\lfloor n/p\rfloor,\gamma}(\Omega) with γ={any value in (0,1),n/p∈N⌊n/p⌋−n/p+1,n/p∉N\gamma = \begin{cases} \text{any value in } (0,1), & n/p \in \mathbb{N} \\ \lfloor n/p\rfloor - n/p + 1, & n/p \notin \mathbb{N} \end{cases}

Theorem 11 (Interior H2H^2 regularity): If aij∈C1(Ω)a^{ij} \in C^1(\Omega), bi,c∈L∞(Ω)b^i, c \in L^\infty(\Omega), f∈L2(Ω)f \in L^2(\Omega), and u∈H1(Ω)u \in H^1(\Omega) is a weak solution, then u∈Hloc2(Ω)u \in H^2_{\text{loc}}(\Omega) with ∥u∥H2(V)≤C(∥f∥L2(Ω)+∥u∥L2(Ω))\|u\|_{H^2(V)} \leq C(\|f\|_{L^2(\Omega)} + \|u\|_{L^2(\Omega)}) for each open V⋐ΩV \Subset \Omega.

Theorem 12 (Higher interior regularity): With aij,bi,c∈Cm+1(Ω)a^{ij}, b^i, c \in C^{m+1}(\Omega) and f∈Hm(Ω)f \in H^m(\Omega), a weak solution satisfies u∈Hlocm+2(Ω)u \in H^{m+2}_{\text{loc}}(\Omega) with appropriate estimates.

Theorem 13 (Infinite differentiability): With C∞C^\infty coefficients and data, weak solutions have smooth representatives.

Empirical Validation / Results

The paper provides detailed Lean statements for each theorem. Key results include:

Corollary 1 (Poisson equation): For every f∈H−1(Ω)f \in H^{-1}(\Omega), there is a unique u∈H01(Ω)u \in H^1_0(\Omega) with ∑i=1n⟨∂iu,∂iv⟩L2(Ω)=f(v)\sum_{i=1}^n \langle \partial_i u, \partial_i v\rangle_{L^2(\Omega)} = f(v) for every v∈H01(Ω)v \in H^1_0(\Omega).

Theorem 4 (Existence I): For bounded Ω\Omega, uniformly elliptic LL with b=0b = 0 and c≥0c \geq 0, the problem (3) has a unique weak solution with ∥u∥H01(Ω)≤α−1∥f∥L2(Ω)\|u\|_{H^1_0(\Omega)} \leq \alpha^{-1}\|f\|_{L^2(\Omega)} where α=λ/(1+CP2)\alpha = \lambda/(1 + C_P^2).

Theorem 7 (Variational principle): For symmetric coercive BB with compact embedding, λ1=inf⁡{B[u,u]:∥u∥L2(Ω)=1}>0\lambda_1 = \inf\{B[u,u] : \|u\|_{L^2(\Omega)} = 1\} > 0 is attained, and the minimiser satisfies B[u,v]=λ1⟨u,v⟩L2(Ω)B[u,v] = \lambda_1\langle u,v\rangle_{L^2(\Omega)} for all vv.

Theorem 8 (Spectrum of compact operator): For compact operator KK on infinite-dimensional real Hilbert space, zero lies in the spectrum, non-zero spectrum consists of countably many eigenvalues with finitely many satisfying ∣μ∣≥δ|\mu| \geq \delta for each δ>0\delta > 0.

Corollary 3 (Classical solvability): With C1C^1 principal coefficients, Wk,∞W^{k,\infty} coefficients, and HkH^k data for all kk, the Dirichlet problem has a unique weak solution with a smooth representative satisfying Lu=fLu = f pointwise almost everywhere.

The discharge ratio (fraction of claimed results established by named Lean declarations) is 1—every claimed result is discharged by a named declaration with no warranted, routine, or open steps.

Theoretical and Practical Implications

  1. Mathematical significance: The formalisation covers the complete chain from weak solvability through regularity to classical solvability, representing a substantial portion of modern linear elliptic PDE theory placed on machine-verified footing.

  2. Technical contributions:

    • The Poincaré inequality is derived from one-dimensional estimates alone, giving explicit constants
    • Compactness of the embedding is proved via the Fréchet–Kolmogorov criterion
    • The declaration for Theorem 12 takes weaker hypotheses (aij∈Wm+1,∞a^{ij} \in W^{m+1,\infty}, bi,c∈Wm,∞b^i, c \in W^{m,\infty}) than the classical Cm+1C^{m+1} statement
    • Variational construction of eigenvalues is independent of the spectral theorem and extends to semilinear equations
  3. Practical implications: The library provides reusable infrastructure for further formalisation work in PDE theory, including boundary regularity, Harnack's inequality, and Schauder theory.

Conclusion

The paper successfully formalises the classical solvability of the Dirichlet problem for linear elliptic PDEs in divergence form using Lean 4 and Mathlib. Key achievements include:

  • A self-contained weak-derivative Sobolev space theory
  • Complete proofs of existence, uniqueness, and regularity theorems
  • Explicit correspondence between prose statements and machine-checked Lean declarations

Future directions identified by the authors include:

  • Removing the C1C^1 hypothesis on principal coefficients (requires identifying W1,∞W^{1,\infty} functions with Lipschitz representatives)
  • Boundary regularity theory (closest to completion, with half-ball geometry and tangential difference quotients already formalised)
  • Harnack's inequality (requires Moser iteration, not yet in the library)
  • Schauder theory (Campanato's characterisation proved but unused)
  • Completion of eigenvalue theory (positivity and simplicity of λ1\lambda_1 require strong maximum principle)
  • Boundary integration by parts against surface measure (requires divergence theorem on manifolds with boundary, as in [CLQ26])

The library is openly available at https://github.com/alejandro-soto-franco/EllipticPDE, pinned at commit da8dd98, built with Lean 4 v4.31.0-rc1 and Mathlib commit 542645a.

Related papers