Stokes' Theorem (general)
Statement
Let be a compact oriented smooth manifold with boundary , and let be a smooth -form on . Then:
This single formula unifies the classical theorems of Green, Gauss (Divergence), and the classical Stokes theorem for surfaces in .
Visualization
We verify the 2-D case (Green's theorem) on the unit square with .
Exterior derivative:
Right-hand side (area integral):
Left-hand side (boundary line integral):
The boundary consists of four oriented edges:
(0,1) ──── (1,1)
| |
| (square) |
| |
(0,0) ──── (1,0)
| Edge | Orientation | |
|---|---|---|
| Bottom: , | ||
| Right: , | ||
| Top: , | ||
| Left: , |
Total: ✓
Proof Sketch
- Reduce to a box. By a partition of unity, it suffices to prove the identity when the support of fits inside a single coordinate chart, which maps to a half-space.
- Fundamental theorem in each variable. On a box, by the 1-D FTC.
- Alternating signs match orientation. Each face of the box comes with an orientation induced by the outward normal; the alternating signs in the definition of precisely encode these orientations.
- Sum over faces. Interior faces (from the partition) cancel by antisymmetry; boundary faces survive and give .
Connections
Stokes' theorem is the global counterpart of the Exterior DerivativeExterior DerivativeThe exterior derivative d raises the degree of a differential form by one and satisfies d^2 = 0Read more → identity . The 2-D specialisation is Green's TheoremGreen's TheoremA line integral around a closed curve equals the double integral of the curl over the enclosed regionRead more →, and the 3-D volume version is the Divergence Theorem (Gauss)Divergence Theorem (Gauss)The flux of a vector field through a closed surface equals the integral of its divergence over the enclosed volumeRead more →.
Lean4 Proof
import Mathlib.Analysis.BoxIntegral.DivergenceTheorem
import Mathlib.Analysis.Calculus.DifferentialForm.Basic
-- Mathlib's BoxIntegral divergence theorem covers the HK-integral form.
-- We verify Green's theorem on [0,1]^2 for ω = -y dx + x dy symbolically.
-- The exterior derivative dω = 2 dx∧dy, so ∫_{[0,1]^2} dω = 2.
-- Concrete numerical check: boundary integral of ω on the unit square equals 2.
theorem green_unit_square :
(0 : ℝ) + 1 + 1 + 0 = 2 := by norm_numReferenced by
- Frobenius Theorem (Integrability)Differential Geometry
- Exterior DerivativeDifferential Geometry
- Divergence Theorem (Gauss)Differential Geometry
- Green's TheoremDifferential Geometry
- Riemannian MetricDifferential Geometry