Continuum Weatherall: Poincaré Lemma and Potentials vs. Field Strengths on a Vector SpaceResearch Paper
Motivation
Philosophers of physics use category theory to decide when a formulation of a theory carries excess structure. Weatherall (2016) represents each formulation of electromagnetism as a category of models and the passage from potentials to field strengths as the functor . A functor that is not full forgets structure, one that is not essentially surjective forgets properties, and one that is not faithful forgets stuff. Weatherall's §4 argues on Minkowski space that the potential formulation with gauge transformations as arrows is related to the field-strength formulation by a functor that is full and essentially surjective. His footnote 9 sets topology aside, and the erratum to his Proposition 2 (arXiv v2, p. 15) records that the gauge-theoretic functor is not faithful, because constant gauge transformations act trivially on fields.
On a contractible spacetime these facts all rest on one theorem: the Poincaré lemma, which says closed differential forms are exact. A companion mission (Weatherall 2016: Potentials vs. Field Strengths on a Finite 2-Complex) proves the discrete version, in which fullness, faithfulness and essential surjectivity are equivalent to the vanishing of , and of a cell complex. This mission is the continuum version on a vector space, built on Mathlib's exterior derivative.
Timeline. The explicit radial homotopy operator proof of the Poincaré lemma is standard in textbooks; it is the proof of Theorem 4-11 in Spivak's Calculus on Manifolds (1965). Antiexact forms and the same operator are studied in Kycia (2020). Mathlib has the exterior derivative extDeriv with . In 2025 Kudryashov proved the degree-1 case for convex sets, stated for 1-forms written as E → E →L F with a symmetric derivative. Mathlib has no Poincaré lemma in higher degree, no de Rham cohomology and no Hodge star.
Setting
Let be a real normed space, for example , and a real Banach space of field values. A differential -form is a map that assigns to each point a continuous alternating -linear map. Smooth means (ContDiff ℝ ∞). The exterior derivative is Mathlib's extDeriv:
A function is a 0-form, and is its derivative viewed as a 1-form (grad). The radial homotopy operator sends a -form to the -form
Field equations enter through an arbitrary predicate on 2-forms. For example once a metric is chosen, and in vacuum. The categories are:
Fld P(Weatherall's EM1): smooth closed 2-forms with , with only identity arrows.Pot P(EM2 with gauge arrows, fn. 15): smooth 1-forms with . An arrow is a smooth with , and arrows compose by adding gauge functions.fieldStrength P : Pot P ⥤ Fld P: the functor , which sends every gauge arrow to an identity.
The cohomology conditions are elementary Props:
- : smooth with implies .
- : every smooth closed 1-form is for a smooth .
- on the -sector: every smooth closed 2-form with is for a smooth .
Formalization targets
Goal: the continuum classification
For every that admits at least one potential:
So the potential description with gauge arrows forgets only stuff, namely the constant gauge transformations, and nothing else on a vector space.
Milestones
- The radial homotopy operator preserves smoothness.
- The homotopy formula for smooth of degree .
- The Poincaré lemma: a smooth closed form of degree has a smooth primitive.
- Degree 0: for differentiable , holds iff is constant.
- and in the potentials language.
- Constants act freely and transitively on gauge arrows by , so is empty or an -torsor.
- The structural equivalences, which mirror the discrete mission: full , faithful , essentially surjective .
Four supporting statements isolate the reusable ingredients of Milestone 2:
- An alternating-sum identity for alternating maps.
- An interior-product identity for Mathlib's
alternatizeUncurryFin. - Differentiation of under the integral sign.
- The radial fundamental theorem of calculus.
Significance
The result. The goal makes precise, on and with any field equation, the claim behind Weatherall's §4: up to the constants , potentials modulo gauge carry no more information than field strengths. With the discrete mission, it shows that the three ways of forgetting information correspond to , and in both settings. The continuum version is metric-free. Maxwell's equations, sources or any other field equation enter only through , so the classification holds for all of them at once.
Formalizing it. The homotopy formula and the Poincaré lemma for Mathlib's extDeriv in arbitrary degree are not in Mathlib. They are prerequisites for de Rham cohomology of manifolds, for the homotopy invariance of de Rham cohomology, and for any formal treatment of gauge potentials, Chern–Simons terms or Hamiltonian mechanics that uses local primitives. The classical proof is a textbook argument; the remaining work is to formalize it against Mathlib's alternating-map API. Machine-checked versions exist elsewhere only in other representations: Mathlib proves degree 1 for 1-forms written as E → E →L F on convex sets, and this platform's Rudin chapter 10 mission has proved Poincaré's lemma (Rudin, Theorem 10.39) as Rudin.ch10_poincare_lemma and Rudin.ch10_primitive_of_closed, for its own coefficient-style KForm on convex open subsets of . A bridge from those statements to Mathlib's extDeriv would be a welcome contribution.
Difficulty
The obstacle is the homotopy formula in general degree. Each side involves the alternatization alternatizeUncurryFin of a derivative, the insertion curryLeft of the position vector as the first argument, and Fin.removeNth reindexing. Matching the two sides requires the signs from moving an argument to the front to cancel exactly against those of . The degree-1 shortcut through Mathlib's existing curve-integral Poincaré lemma does not generalize, because it uses a different representation of 1-forms and has no analogue in degree 2, which the essential-surjectivity clause needs. A second, routine obstacle is smoothness of : need not be finite-dimensional, so differentiating under the integral needs bounds that are uniform in near each point.
Formalization scope
- Forms. Forms are Mathlib's
E → E [⋀^Fin k]→L[ℝ] Fand the exterior derivative isextDeriv. "Smooth" isContDiff ℝ ∞, where∞means , not analytic. is any real normed space, not necessarily finite-dimensional or complete, and is a real Banach space (CompleteSpace F), so the integral defining is the Bochner integral. - Domain. The domain is the whole space , which is star-shaped about . Open subsets and manifolds are out of scope.
- Categories.
Fld Pis a MathlibDiscretecategory.Pot Phas a hand-writtenCategoryinstance whose arrows are the structureGaugeHom. Fullness, faithfulness and essential surjectivity are Mathlib'sFunctor.Full,Functor.FaithfulandFunctor.EssSurj. - Non-triviality. Statements that need an object assume
[Nonempty (Pot P)], meaning the field equation has a solution. Without itPot Pis empty and faithfulness and fullness hold vacuously. The cohomology conditions are explicit statements aboutextDerivandgrad, not definitions that make a target hold by construction. The goal fixes nothing about . - Symmetries. Spacetime symmetries are not included as arrows; as in the discrete mission, the categories compare potentials and fields over the fixed space , and the only non-identity arrows are gauge transformations.
- No metric. No Hodge star or metric appears. Duality and 1-form symmetries are out of scope.
- Reusable infrastructure. The definitions file proves smoothness of
extDeriv, in the form used here, and the gauge invariance . The homotopy operator, the homotopy formula and the Poincaré lemma are stated for arbitrary degree and are intended for reuse in de Rham and gauge-theory missions. Contributions toward a Mathlib-quality homotopy-operator API are welcome.
Selected references
- J. O. Weatherall, "Understanding Gauge", Philosophy of Science 83 (2016) 1039–1049. arXiv:1505.02229, doi:10.1086/687936. §4: EM1/EM2, Proposition 1, footnotes 9 and 15; the erratum to Proposition 2 is on p. 15 of arXiv v2.
- M. Spivak, Calculus on Manifolds, W. A. Benjamin, 1965. Theorem 4-11 (Poincaré lemma) and its proof via the operator , which is above.
- R. A. Kycia, "The Poincaré lemma, antiexact forms, and fermionic quantum harmonic oscillator", Results in Mathematics 75 (2020) 122. arXiv:1908.02349, doi:10.1007/s00025-020-01247-8.
- J. Nguyen, N. J. Teh, L. Wells, "Why surplus structure is not superfluous", British Journal for the Philosophy of Science 71 (2020). arXiv:1712.01228.
- Y. Kudryashov, Mathlib,
MeasureTheory/Integral/CurveIntegral/Poincare.lean(Poincaré lemma for 1-forms on convex sets), mathlib4 PR #24019.