Exterior Derivative

lean4-proofdifferential-geometryvisualization
d2=0d^2 = 0

Statement

For a smooth kk-form ω\omega on a normed space, its exterior derivative dωd\omega is a (k+1)(k+1)-form defined by:

dω(x;v0,,vk)=i=0k(1)iDxω(x;v0,,vi^,,vk)vid\omega(x; v_0, \dots, v_k) = \sum_{i=0}^{k} (-1)^i D_x\omega(x; v_0, \dots, \widehat{v_i}, \dots, v_k) \cdot v_i

where vi^\widehat{v_i} denotes omission of viv_i. The fundamental identity is:

d2=0(the second exterior derivative is zero)d^2 = 0 \qquad \text{(the second exterior derivative is zero)}

This encodes the fact that mixed partials commute: antisymmetrising twice kills any symmetric contribution.

Visualization

Concrete example on R2\mathbb{R}^2: let ω=xdy\omega = x\, dy (a 1-form).

Step 1 — compute dωd\omega:

dω=d(xdy)=dxdyd\omega = d(x\, dy) = dx \wedge dy

(The yy-coefficient xx contributes a xx=1\partial_x x = 1 factor; the xx-coefficient 00 contributes nothing.)

Step 2 — compute d2ω=d(dxdy)d^2\omega = d(dx \wedge dy):

d(dxdy)=d(1)dxdy=0dxdy=0d(dx \wedge dy) = d(1) \wedge dx \wedge dy = 0 \wedge dx \wedge dy = 0

The 2-form dxdydx \wedge dy has constant coefficients, so its exterior derivative vanishes.

FormDegreeValue at (x,y)(x,y)
ω=xdy\omega = x\, dy1depends on xx
dω=dxdyd\omega = dx \wedge dy2constant 11
d2ωd^2\omega300 (top form =0= 0 in R2\mathbb{R}^2)

The table makes visible that degree 3 is impossible in R2\mathbb{R}^2, so d2ω=0d^2\omega = 0 is forced dimensionally as well.

Proof Sketch

  1. Expand by definition. Write dωd\omega as the alternating sum of ii-th directional derivatives; applying dd again produces a double sum over pairs (i,j)(i, j).
  2. Separate symmetric part. Each double-partial ijf\partial_i \partial_j f appears in two summands with opposite signs (from swapping ii and jj in the alternation).
  3. Symmetry of second derivatives. For C2C^2 functions, ijf=jif\partial_i \partial_j f = \partial_j \partial_i f (Schwarz/Clairaut). The antisymmetriser therefore sends each pair to zero.
  4. Conclusion. All terms cancel, giving d(dω)=0d(d\omega) = 0.

The Mathlib proof uses alternatizeUncurryFin_alternatizeUncurryFinCLM_comp_of_symmetric together with the isSymmSndFDerivAt hypothesis for C2C^2 forms.

Connections

The identity d2=0d^2 = 0 is the algebraic engine behind Stokes' Theorem (general)Stokes' Theorem (general)Mdω=Mω\int_M d\omega = \int_{\partial M} \omegaThe integral of a differential form over the boundary equals the integral of its exterior derivative over the interiorRead more →, since it implies that the boundary of a boundary is empty. It also underpins the Poincaré LemmaPoincaré Lemmadω=0ω=dηd\omega = 0 \Rightarrow \omega = d\etaOn a contractible domain, every closed differential form is exactRead more →, which asks when dω=0d\omega = 0 forces ω=dη\omega = d\eta for some η\eta.

Lean4 Proof

import Mathlib.Analysis.Calculus.DifferentialForm.Basic

open ContinuousAlternatingMap

/-- The second exterior derivative of a C^2 form is zero.
    Wraps Mathlib's `extDeriv_extDeriv`.
    Requires `IsRCLikeNormedField 𝕜` (ℝ or ℂ) so that `minSmoothness 𝕜 2 = 2`. -/
theorem extDeriv_sq_zero {𝕜 E F : Type*}
    [NontriviallyNormedField 𝕜] [IsRCLikeNormedField 𝕜]
    [NormedAddCommGroup E] [NormedSpace 𝕜 E]
    [NormedAddCommGroup F] [NormedSpace 𝕜 F]
    {n : } {ω : E  E [⋀^Fin n]L[𝕜] F}
    (h : ContDiff 𝕜 2 ω) :
    extDeriv (extDeriv ω) = 0 :=
  extDeriv_extDeriv h (by simp [minSmoothness_of_isRCLikeNormedField])