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.Measure.Jacobian |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.GramDeterminant |
| 3 | |
| 4 | /-! |
| 5 | # Metric and coordinate endpoint Jacobians |
| 6 | |
| 7 | The Jacobian in Morgan-Tian Lemma 6.71, p. 141, written in the actual |
| 8 | earlier-slice tangent space. The equality uses only the target basis's |
| 9 | orthonormality for the specified slice metric. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M14 |
| 19 | |
| 20 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 21 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 22 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 23 | {H : M14StableSet G T τ x E} |
| 24 | |
| 25 | /-- The actual Gram and coordinate Jacobians coincide in an orthonormal |
| 26 | target basis, as used in Morgan-Tian Lemma 6.71, p. 141. -/ |
| 27 | theorem metricJacobian_eq_coordinateJacobian |
| 28 | (sourceBasis : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 29 | (targetBasis : ∀ Z : G.Horizontal x, Z ∈ H.carrier → |
| 30 | Module.Basis (Fin n) ℝ |
| 31 | (TangentSpace (𝓡 n) (H.endpoint_slice_map Z))) |
| 32 | (horth : ∀ Z hZ i j, |
| 33 | (G.slices (T - τ)).metricOnPoints.inner (H.endpoint_slice_map Z) |
| 34 | (targetBasis Z hZ i) (targetBasis Z hZ j) = if i = j then 1 else 0) |
| 35 | (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) : |
| 36 | M14MetricJacobianFromBasis G sourceBasis targetBasis Z hZ = |
| 37 | M14CoordinateJacobianFromBasis G sourceBasis targetBasis Z hZ := by |
| 38 | exact LinearMap.BilinForm.sqrt_max_det_comp_eq_abs_det_toMatrix |
| 39 | sourceBasis (targetBasis Z hZ) |
| 40 | ((G.slices (T - τ)).metricOnPoints.inner |
| 41 | (H.endpoint_slice_map Z)).toBilinForm |
| 42 | (horth Z hZ) (M14EndpointTangentDifferential G Z hZ).toLinearMap |
| 43 | |
| 44 | end PoincareMT.M14 |