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.Exponential.Stability.StableInjectivity |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Theory |
| 3 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 4 | import Mathlib.MeasureTheory.Constructions.Polish.Basic |
| 5 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 6 | |
| 7 | /-! |
| 8 | # Disjoint stable images and reduced-volume additivity |
| 9 | |
| 10 | Morgan-Tian Proposition 6.28, p. 117, and the disjoint decomposition in the |
| 11 | proof of Proposition 8.2, p. 171. Lusin-Souslin gives measurable images of |
| 12 | measurable source subsets. Integrability is taken from the same supplied |
| 13 | analytic density whose reduced volumes are being added. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped MeasureTheory Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 27 | |
| 28 | /-- Every Borel subset of a stable carrier has a measurable actual slice |
| 29 | image, as used in Morgan-Tian Proposition 8.2, p. 171. -/ |
| 30 | theorem stable_slice_image_measurable (H : M14StableSet G T τ x E) |
| 31 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hm : MeasurableSet W) : |
| 32 | MeasurableSet (H.endpoint_slice_map '' W) := by |
| 33 | let e := FiberBundle.homeomorphAt (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 34 | let : PolishSpace (G.Horizontal x) := e.isClosedEmbedding.polishSpace |
| 35 | exact hm.image_of_continuousOn_injOn (H.endpoint_slice_continuous.mono hW) |
| 36 | ((stable_slice_endpoint_injective H).mono hW) |
| 37 | |
| 38 | /-- The supplied analytic density agrees with the frozen reduced-volume |
| 39 | integrand on every measurable stable image, Definition 6.70, p. 140. -/ |
| 40 | theorem analyticCarrier_eq_densityIntegral (H : M14StableSet G T τ x E) |
| 41 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 42 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hm : MeasurableSet W) : |
| 43 | M14ReducedVolumeOnAnalyticCarrier A W = |
| 44 | ∫ q in H.endpoint_slice_map '' W, |
| 45 | Real.rpow τ (-(n : ℝ) / 2) * |
| 46 | Real.exp (-M14ReducedLengthValue G T 0 τ x q.val) |
| 47 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints := by |
| 48 | apply MeasureTheory.setIntegral_congr_fun (stable_slice_image_measurable H hW hm) |
| 49 | intro q hq |
| 50 | exact A.density_eq q ((Set.image_mono hW) hq) |
| 51 | |
| 52 | /-- On the full stable carrier, the analytic and frozen reduced volumes |
| 53 | coincide, Morgan-Tian Definition 6.70, p. 140. -/ |
| 54 | theorem analyticCarrier_eq_stableVolume (H : M14StableSet G T τ x E) |
| 55 | (A : M14ReducedVolumeAnalyticData G T τ x E H) : |
| 56 | M14ReducedVolumeOnAnalyticCarrier A H.carrier = |
| 57 | M14ReducedVolumeOnStable G T x τ H := |
| 58 | analyticCarrier_eq_densityIntegral H A Set.Subset.rfl H.carrier_open.measurableSet |
| 59 | |
| 60 | /-- The exact disjoint-image-additivity clause for the supplied analytic |
| 61 | data, Morgan-Tian proof of Proposition 8.2, p. 171. -/ |
| 62 | theorem disjointImageAdditivity (H : M14StableSet G T τ x E) |
| 63 | (A : M14ReducedVolumeAnalyticData G T τ x E H) : |
| 64 | Set.InjOn H.endpoint_slice_map H.carrier ∧ |
| 65 | ∀ W₁ W₂ : Set (G.Horizontal x), |
| 66 | W₁ ⊆ H.carrier → W₂ ⊆ H.carrier → |
| 67 | MeasurableSet W₁ → MeasurableSet W₂ → Disjoint W₁ W₂ → |
| 68 | MeasurableSet (H.endpoint_slice_map '' W₁) ∧ |
| 69 | MeasurableSet (H.endpoint_slice_map '' W₂) ∧ |
| 70 | MeasurableSet (H.endpoint_slice_map '' (W₁ ∪ W₂)) ∧ |
| 71 | Disjoint (H.endpoint_slice_map '' W₁) (H.endpoint_slice_map '' W₂) ∧ |
| 72 | M14ReducedVolumeOnAnalyticCarrier A (W₁ ∪ W₂) = |
| 73 | M14ReducedVolumeOnAnalyticCarrier A W₁ + |
| 74 | M14ReducedVolumeOnAnalyticCarrier A W₂ := by |
| 75 | have hinj := stable_slice_endpoint_injective H |
| 76 | refine ⟨hinj, ?_⟩ |
| 77 | intro W₁ W₂ hW₁ hW₂ hm₁ hm₂ hd |
| 78 | have him₁ := stable_slice_image_measurable H hW₁ hm₁ |
| 79 | have him₂ := stable_slice_image_measurable H hW₂ hm₂ |
| 80 | have hid := hd.image hinj hW₁ hW₂ |
| 81 | refine ⟨him₁, him₂, ?_, hid, ?_⟩ |
| 82 | · rw [Set.image_union] |
| 83 | exact him₁.union him₂ |
| 84 | · unfold M14ReducedVolumeOnAnalyticCarrier |
| 85 | rw [Set.image_union] |
| 86 | exact MeasureTheory.setIntegral_union hid him₂ |
| 87 | (A.density_integrable.mono_set (Set.image_mono hW₁)) |
| 88 | (A.density_integrable.mono_set (Set.image_mono hW₂)) |
| 89 | |
| 90 | end PoincareMT.M14 |