PDEAtlas

PDEAtlas🔗

Robert Joseph GeorgeChanghe YangPeicong SongThomas Y. HouAnima Anandkumar

PDEAtlas is a formalization and exposition of Lawrence C. Evans's Partial Differential Equations, second edition, in Lean 4 and Mathlib. It pairs selected results from the textbook with machine-checked proofs, worked calculations, and explanations of the analysis. The exposition is intended for graduate students studying PDEs and for undergraduates with a background in analysis.

PDEAtlas is also meant to be built on. A project on Navier–Stokes, Euler or singularity formation can import its Sobolev spaces, weak derivatives, energy estimates and solution constructions instead of developing them again. SymLean, our computer algebra system, supplies the symbolic calculations and certified numerical bounds that such arguments need, as in the De Gregorio blowup proof.

Related efforts include FluidLean, our team's Euler project, and OpenAI's Navier–Stokes and Euler formalizations. We aim to contribute suitable general results to Mathlib and to coordinate with Tau Ceti's PDE roadmap.

Lawrence C. Evans gave us his full support in following his book.

A few parts of the library we are especially excited about:

  • Constructing solutions. The fundamental-solution construction gives classical Poisson solutions for compactly supported C^2 data in dimensions n\ge2. The Dirichlet principle relates classical solutions to finite-energy minimizers on bounded C^1 graph domains. These are complementary ways to use the analysis: one builds a formula, the other identifies a solution by its energy.

  • Analysis beyond explicit formulas. The development also covers Sobolev spaces and traces, compactness, weak formulations, heat and wave equations, transport, and variational methods.

  • Calculations a proof can use. cas proves supported identities, derivatives and integrals in ordinary Lean notation. cega turns intervals, Taylor models, quadrature and root certificates into bounds on real functions. We use FloatLib for checked interval arithmetic and elementary-function enclosures. The soundness theorems connect the computed expressions to Mathlib's analytic definitions. We can differentiate a proposed profile, check its residual, and use that result in an energy estimate.

  • Fluid constructions. Given a smooth harmonic velocity potential, we construct an Euler solution with recovered pressure and the prescribed initial trace. The fluid library also treats weak formulations, vorticity, energy and exact flows. Two applications built on it, blowup for the De Gregorio model on the real line and the nonuniqueness of suitable Leray–Hopf solutions of the Navier–Stokes equations, are formalized in the companion repository BlowupZoo.

  • Three of Hilbert's problems. We've formalized the 19th, 20th and 23rd problems on the calculus of variations. Take Dirichlet's energy on a disk. For any boundary datum in W^{1,2}, the first two problems together give us a minimizer with an analytic representative inside. The datum itself needn't be analytic.

For large finite computations, cega [fast] can check certificates by compiled evaluation in the fast build profile. This additionally trusts Lean's compiler and runtime; CAS and bare cega retain kernel checking. The default profile checks the same certificates in the kernel, as explained in the computation chapter.

We began thinking about this project in early 2024. That July, Robert asked on Lean Zulip about PDE formalization. The conversation pointed us toward the multivariable calculus and Sobolev theory already in Mathlib. Much of the work that followed was learning that analysis, choosing definitions, and working through proofs. We used AI coding agents to write and repair proofs and documentation. We chose the statements, definitions and sources, and checked the claims.

We thank Thomas Y. Hou's PDE group at Caltech and the Lean and Mathlib communities for their mathematics, tools and conversations, and Evans for his interest in the project. Source references identify the results we follow.

To contribute a PDE result, extend the computer algebra system, or improve an explanation, see the contributing guide.

Contents

  1. 1. Introduction
  2. 2. Related Work
  3. 3. Foundations
  4. 4. Sobolev Spaces and Weak Derivatives
  5. 5. Elliptic Equations
  6. 6. Parabolic Equations
  7. 7. Hyperbolic Equations
  8. 8. Incompressible Fluid Mechanics
  9. 9. Representation Formulas, Variational Principles, and Fixed Points
  10. 10. Verified Symbolic and Continuous Computation
  11. 11. Dependency Atlas
  12. 12. Bibliography