Stokes' Theorem for Smooth Singular Cubes in Lean 4: True Pullback, Bridges to mathlib4, and Chain-Level d^2=0
This work provides a foundational formalization of a core theorem in differential geometry for theorem provers, enabling future formal developments in analysis and geometry.
The authors present a complete formalization of Stokes' theorem for smooth singular cubes in Lean 4, including chain-level d^2=0 and a bridge to mathlib4's abstract extDeriv, with no sorries.
We present a sorry-free Lean 4/mathlib4 formalization of Stokes' theorem for smooth singular cubes in arbitrary dimension, using true differential-form pullback via the Frechet derivative. The development also includes a bridge to mathlib4's abstract extDeriv, chain-level Stokes extended by Z-linearity, d^2=0 for singular cubical chains, box Stokes for axis-aligned cubes, dimensional specializations, and a structured comparison with Harrison's HOL Light formalization.