Physics in Lean adds curved-spacetime geometry, letting AI test general relativity

RichardsonDx · x · 2026-11-30

A new "Physics in Lean" library adds the missing curved-spacetime geometry — Lorentzian metrics, Levi-Civita connections, curvature tensors, Einstein field equations, and Kerr black holes (241 theorems) — to the Lean ecosystem.

Context: math had Mathlib (hundreds of thousands of theorems) as a shared formalization base, but physics had nothing until Physlib launched in 2024. About 120 volunteers built 10,000 theorems in 2.5 years covering mechanics, electromagnetism, quantum, field theory, thermodynamics, and fluids — yet general relativity's geometry remained absent.

The key implication: you can't verify a theory you can't state. With GR now formalized, compute and AI can finally be applied to physics — testing Kerr metrics against Einstein's equations, following geodesics around black holes, and attempting proofs of spinning black hole stability.

Related event: 120 Volunteers Formalize Two Centuries of Physics in Lean(3 posts)→

Original post →

More from Research

Research channel →