The Poincaré lemma for 1-forms on convex sets
ProvedFamousTheorems.poincare_lemma_convexThe Poincaré lemma for 1-forms on convex open sets. Let be a convex open subset of a normed space , and let be a differentiable 1-form on with values in a Banach space (over or ). Suppose is closed, that is, its derivative is symmetric: . Then is exact: there is with for all .
This is the degree-one Poincaré lemma, and it says that de Rham cohomology in degree one vanishes on convex sets. It is the local fact behind potentials of conservative vector fields, primitives of holomorphic functions on convex domains, and the definition of de Rham cohomology as an obstruction to global primitives.
Formalization note. Mathlib's Convex.exists_forall_hasFDerivAt_of_fderiv_symmetric. The 1-form is a map ω : E → E →L[𝕜] F with 𝕜 equal to or (RCLike 𝕜), and closedness is stated through the real Fréchet derivative fderiv ℝ ω a, a bilinear map. The primitive's derivative HasFDerivAt f (ω a) a is taken over 𝕜.
import Mathlib
namespace FamousTheorems
theorem poincare_lemma_convex {𝕜 E F : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [NormedSpace 𝕜 E] [NormedAddCommGroup F] [NormedSpace 𝕜 F]
[NormedSpace ℝ E] [NormedSpace ℝ F] [CompleteSpace F] {s : Set E} {ω : E → E →L[𝕜] F}
(hs : Convex ℝ s) (hso : IsOpen s) (hω : DifferentiableOn ℝ ω s)
(hsymm : ∀ a ∈ s, ∀ x y : E, fderiv ℝ ω a x y = fderiv ℝ ω a y x) :
∃ f : E → F, ∀ a ∈ s, HasFDerivAt f (ω a) a := by sorry
end FamousTheorems