ModularPhysics is an ecosystem of Lean 4 projects formalizing the mathematical
foundations of theoretical physics — from stochastic calculus and constructive
quantum field theory to string geometry and the logical architecture of physical
frameworks. All projects are work in progress. They build on
Mathlib
and share a strict policy: no axiom smuggling, no hidden assumptions, and all
remaining proof gaps tracked as explicit sorry markers.
stochasticpde-itocalculus — Streamlined Itô formula proof chain (33 files, ~24k lines, 0 sorrys, 0 axioms)stochasticpde-nonstandard — Nonstandard analysis development (7 sorrys)ItoCalculus/ — Brownian motion, stochastic integration, Itô formula, Kolmogorov–ChentsovRegularityStructures/ — Trees, admissible models, reconstruction theorem, BPHZSPDE.lean — Abstract SPDE framework: mild/strong solutions, semigroup theory...Model interface assumptions, collected in a bundled entrypoint.
Wightman/ — Wightman axioms, Poincaré group, GNS construction, analytic continuation, Bargmann–Hall–Wightman theoremSCV/ — Polydiscs, Hartogs' theorem, tube domain extension, Bochner tube theorem, Paley–Wiener theoremsvNA/ — Tomita–Takesaki modular theory, KMS condition, Stone's theorem, spectral theoryComplexLieGroups/ — Path-connectedness of complex Lorentz group, Jost's lemmaPhysicsAssumption system with stable IDs and a master registry.
The project is split into a strict Core target (architecture-level
soundness) and a looser Papers target for specific physics arguments.
CI enforces invariants: no Lean axiom declarations, no vacuous
placeholders, no unregistered assumption IDs, and no sorry regressions in Core.
SpaceTime/, Symmetries/ — manifolds, causality, Poincaré group, representationsClassicalMechanics/, ClassicalFieldTheory/, FluidMechanics/, GeneralRelativity/Quantum/, QuantumInformation/ — Hilbert spaces, entanglement, channelsQFT/ — Wightman, OS, AQFT, path integral, CFT, RG, BV, S-matrix, TQFT, Kontsevich–SegalPapers/ — Bell, AMPS, φ⁴₂, Coleman 2D, Vafa–Witten, c-theorem, Kolmogorov, Glimm–Jaffe, Charge-4e TSCThe formalization is AI-assisted, using tools such as Claude Code and Codex, guided by human mathematical judgment. Some of these are collaboration projects (see individual repositories).
axiom declarations are forbidden — they silently pollute the global environment.sorry placeholders, not hidden behind opaque definitions.