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.Ordinary.Capture.OrdinaryCaptureRegularImage |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Ordinary.Capture.OrdinaryCaptureVolume |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.AlmostEverywhere.RegularImage |
| 5 | |
| 6 | /-! |
| 7 | # Full measure of the captured stable image |
| 8 | |
| 9 | Morgan-Tian Corollary 6.67 and Proposition 7.5, pp. 139, 151-152. |
| 10 | M10's proved null-complement theorem concerns the actual canonical |
| 11 | ordinary regular image. Its inclusion in the exact supplied stable |
| 12 | image and the actual captured slice measure transport give nullity |
| 13 | of the captured complement, without claiming that the whole ambient |
| 14 | generalized slice is captured. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M14 |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 28 | {C : Type u} [TopologicalSpace C] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 30 | [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 31 | [MeasurableSpace C] [BorelSpace C] {K : SpacetimeInterval} |
| 32 | {e : CompatibleSpacetimeCylinder G.spacetime (G.timeIntervals.interval K) C} |
| 33 | {g : SpacetimeCylinderMetric e} {F : RicciFlow n C K.domain} {τmax : ℝ} |
| 34 | (t₀ : (G.timeIntervals.interval K).Point) (c₀ : C) |
| 35 | (D : M14OrdinaryCaptureData G C K e g F t₀.val τmax) |
| 36 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 37 | (hPath : M14PathCalculusConclusion G) |
| 38 | |
| 39 | include D hCoordinates hPath |
| 40 | |
| 41 | /-- The exact supplied stable image has full measure in the |
| 42 | captured part of every interior slice, Corollary 6.67 and |
| 43 | Proposition 7.5, pp. 139, 151-152. -/ |
| 44 | theorem ordinaryCapture_full_measure_at_cylinder |
| 45 | (hL : LGeodesicTheory F t₀.val τmax) |
| 46 | (hDifferential : ReducedLengthDifferentialTheory F t₀.val τmax) |
| 47 | (hwindow : Icc (t₀.val - τmax) t₀.val ⊆ K.domain) |
| 48 | (E : M14ExponentialFamily G t₀.val (e.toSpacetime (t₀, c₀))) |
| 49 | {τ : ℝ} (H : M14StableSet G t₀.val τ (e.toSpacetime (t₀, c₀)) E) |
| 50 | (hmax : τ < τmax) : |
| 51 | calibratedMetricVolume (G.slices (t₀.val - τ)).metricOnPoints |
| 52 | ({q | q.val ∈ range e.toSpacetime} \ (H.endpoint_slice_map '' H.carrier)) = 0 := by |
| 53 | obtain ⟨A⟩ := hDifferential.exponential_geometry c₀ |
| 54 | have hvalid : t₀.val - τ ∈ K.domain := |
| 55 | hwindow ⟨sub_le_sub_left hmax.le t₀.val, sub_le_self t₀.val H.tau_pos.le⟩ |
| 56 | let t : (G.timeIntervals.interval K).Point := ⟨t₀.val - τ, hvalid⟩ |
| 57 | let S : Set (G.slices (t₀.val - τ)).Point := |
| 58 | {q | q.val ∈ range e.toSpacetime} \ (H.endpoint_slice_map '' H.carrier) |
| 59 | have hS : MeasurableSet S := |
| 60 | (ordinaryCaptureSliceChart D hCoordinates t).open_target.measurableSet.diff |
| 61 | (stableSliceChart H).open_target.measurableSet |
| 62 | have hcaptured : (fun q => q.val) '' S ⊆ range e.toSpacetime := by |
| 63 | rintro q ⟨r, hr, rfl⟩ |
| 64 | exact hr.1 |
| 65 | change calibratedMetricVolume (G.slices (t₀.val - τ)).metricOnPoints S = 0 |
| 66 | rw [ordinaryCapture_slice_measure D hCoordinates t hS hcaptured] |
| 67 | apply measure_mono_null (t := {q | (q, τ) ∉ A.regularImage}) ?_ |
| 68 | (M10.regularImage_slice_complement_eq_zero hL hDifferential hwindow A H.tau_pos hmax) |
| 69 | rintro c ⟨q, ⟨r, hr, rfl⟩, rfl⟩ hreg |
| 70 | exact hr.2 (ordinaryCapture_regularImage_mem_stableImage t₀ c₀ D hCoordinates hPath |
| 71 | E H A r hr.1 hreg) |
| 72 | |
| 73 | end PoincareMT.M14 |