Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ReducedVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.EuclideanChart |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Transport.PullbackJacobian |
| 4 | |
| 5 | /-! |
| 6 | # The frozen metric Jacobian is the calibrated pullback Jacobian |
| 7 | |
| 8 | Morgan-Tian Lemma 6.71, p. 141. The Euclidean chart uses the same source |
| 9 | basis as the frozen M14 metric Jacobian, and its actual derivative gives |
| 10 | the same Gram entries. This connects to the lower M10 calibrated area formula. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 24 | |
| 25 | private theorem horizontal_t2Space : T2Space (G.Horizontal x) := |
| 26 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 27 | |
| 28 | attribute [local instance] horizontal_t2Space |
| 29 | |
| 30 | /-- The lower calibrated pullback Jacobian is exactly the frozen M14 Gram |
| 31 | Jacobian in the chosen source basis, Morgan-Tian Lemma 6.71, p. 141. -/ |
| 32 | theorem pullbackJacobian_eq_metricJacobian (H : M14StableSet G T τ x E) |
| 33 | (b : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 34 | (c : ∀ Z : G.Horizontal x, Z ∈ H.carrier → |
| 35 | Module.Basis (Fin n) ℝ |
| 36 | (TangentSpace (𝓡 n) (H.endpoint_slice_map Z))) |
| 37 | (z : EuclideanSpace ℝ (Fin n)) (hz : b.euclideanCoordinates z ∈ H.carrier) : |
| 38 | M10.pullbackJacobian (G.slices (T - τ)).metricOnPoints |
| 39 | (stableCoordinateChart H b) z = |
| 40 | M14MetricJacobianFromBasis G b c (b.euclideanCoordinates z) hz := by |
| 41 | unfold M10.pullbackJacobian M14MetricJacobianFromBasis |
| 42 | rw [max_comm, ← Real.sq_sqrt', Real.sqrt_sq (Real.sqrt_nonneg _)] |
| 43 | apply congrArg Real.sqrt |
| 44 | apply congrArg Matrix.det |
| 45 | funext i j |
| 46 | change (G.slices (T - τ)).metricOnPoints.inner (stableCoordinateChart H b z) |
| 47 | (mfderiv (𝓡 n) (𝓡 n) (stableCoordinateChart H b) z |
| 48 | (EuclideanSpace.basisFun (Fin n) ℝ i)) |
| 49 | (mfderiv (𝓡 n) (𝓡 n) (stableCoordinateChart H b) z |
| 50 | (EuclideanSpace.basisFun (Fin n) ℝ j)) = _ |
| 51 | rw [stableCoordinateChart_differential H b z hz, |
| 52 | stableCoordinateChart_differential H b z hz, |
| 53 | Module.Basis.euclideanCoordinates_basis, Module.Basis.euclideanCoordinates_basis] |
| 54 | rfl |
| 55 | |
| 56 | end PoincareMT.M14 |