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.Jacobian.PullbackJacobian |
| 3 | |
| 4 | /-! |
| 5 | # Continuity of every supplied metric Jacobian on its carrier |
| 6 | |
| 7 | The frozen Gram identity identifies the supplied Jacobian with the |
| 8 | actual pullback metric Jacobian in the same source basis. No value |
| 9 | away from the stable carrier is used. Morgan-Tian Lemma 6.71, p. 141. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 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 | /-- Every supplied measure-data Jacobian is continuous on the actual |
| 26 | stable carrier, with no restriction on its off-carrier values, |
| 27 | Lemma 6.71, p. 141. -/ |
| 28 | theorem measureData_jacobian_continuousOn (D : M14MeasureJacobianData G T τ x E H) : |
| 29 | ContinuousOn D.jacobian H.carrier := by |
| 30 | let : T2Space (G.Horizontal x) := |
| 31 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 32 | let C := D.sourceBasis.euclideanCoordinates |
| 33 | let e := stableCoordinateChart H D.sourceBasis |
| 34 | let ρ := M10.pullbackJacobian (G.slices (T - τ)).metricOnPoints e |
| 35 | have he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source := |
| 36 | (stableCoordinateChart_smooth H D.sourceBasis).of_le (by simp) |
| 37 | have hρ : ContinuousOn ρ e.source := by |
| 38 | intro z hz |
| 39 | exact (M10.pullbackJacobian_continuousAt (G.slices (T - τ)).metricOnPoints |
| 40 | (he.contMDiffAt (e.open_source.mem_nhds hz))).continuousWithinAt |
| 41 | have hmap : Set.MapsTo C.symm H.carrier e.source := by |
| 42 | intro Z hZ |
| 43 | change C (C.symm Z) ∈ H.carrier |
| 44 | simpa only [ContinuousLinearEquiv.apply_symm_apply] using hZ |
| 45 | apply (hρ.comp C.symm.continuous.continuousOn hmap).congr |
| 46 | intro Z hZ |
| 47 | have hpre : D.sourceBasis.euclideanCoordinates (C.symm Z) ∈ H.carrier := hmap hZ |
| 48 | have hpull := pullbackJacobian_eq_metricJacobian H D.sourceBasis D.targetBasis |
| 49 | (C.symm Z) hpre |
| 50 | have hpull' : ρ (C.symm Z) = |
| 51 | M14MetricJacobianFromBasis G D.sourceBasis D.targetBasis Z hZ := by |
| 52 | simpa only [C, e, ρ, ContinuousLinearEquiv.apply_symm_apply] using hpull |
| 53 | exact (D.jacobian_eq Z hZ).trans hpull'.symm |
| 54 | |
| 55 | end PoincareMT.M14 |