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.Ordinary.Capture.OrdinaryCaptureSlice |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Ordinary.Capture.OrdinaryCaptureVolumeChart |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Ordinary.Capture.OrdinaryCaptureValues |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.StableSliceChart |
| 5 | |
| 6 | /-! |
| 7 | # Captured slice measure and reduced volume |
| 8 | |
| 9 | Morgan-Tian Lemma 6.71, p. 141, and Proposition 7.5, pp. 151-152. |
| 10 | The actual captured slice chart transports metric measure on every |
| 11 | measurable captured subset. Exact reduced-length transport identifies |
| 12 | the signed reduced-volume integrals on the supplied stable image. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped Manifold ContDiff |
| 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 | {C : Type u} [TopologicalSpace C] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 28 | [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 29 | [MeasurableSpace C] [BorelSpace C] {K : SpacetimeInterval} |
| 30 | {e : CompatibleSpacetimeCylinder G.spacetime (G.timeIntervals.interval K) C} |
| 31 | {g : SpacetimeCylinderMetric e} {F : RicciFlow n C K.domain} {T τmax : ℝ} |
| 32 | (D : M14OrdinaryCaptureData G C K e g F T τmax) |
| 33 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 34 | |
| 35 | include hCoordinates |
| 36 | |
| 37 | /-- The inverse image of a captured slice subset is its exact image |
| 38 | under the supplied point map, Definition 3.38, p. 61. -/ |
| 39 | theorem ordinaryCapture_slice_preimage (t : (G.timeIntervals.interval K).Point) |
| 40 | {A : Set (G.slices t.val).Point} |
| 41 | (hcaptured : (fun q => q.val) '' A ⊆ range e.toSpacetime) : |
| 42 | (ordinaryCaptureSliceChart D hCoordinates t) ⁻¹' A = |
| 43 | D.point_map '' ((fun q => q.val) '' A) := by |
| 44 | let f := ordinaryCaptureSliceChart D hCoordinates t |
| 45 | ext c |
| 46 | constructor |
| 47 | · intro hc |
| 48 | refine ⟨(f c).val, ⟨f c, hc, rfl⟩, ?_⟩ |
| 49 | exact D.point_map_on_cylinder t c |
| 50 | · rintro ⟨q, ⟨r, hr, rfl⟩, rfl⟩ |
| 51 | change f (f.symm r) ∈ A |
| 52 | rw [f.right_inv (hcaptured ⟨r, hr, rfl⟩)] |
| 53 | exact hr |
| 54 | |
| 55 | /-- Every measurable captured subset preserves its actual calibrated |
| 56 | slice measure, Lemma 6.71, p. 141. -/ |
| 57 | theorem ordinaryCapture_slice_measure (t : (G.timeIntervals.interval K).Point) |
| 58 | {A : Set (G.slices t.val).Point} (hA : MeasurableSet A) |
| 59 | (hcaptured : (fun q => q.val) '' A ⊆ range e.toSpacetime) : |
| 60 | calibratedMetricVolume (G.slices t.val).metricOnPoints A = |
| 61 | calibratedMetricVolume (F.metric t.val) (D.point_map '' ((fun q => q.val) '' A)) := by |
| 62 | let f := ordinaryCaptureSliceChart D hCoordinates t |
| 63 | have hAtarget : A ⊆ f.target := fun q hq => hcaptured ⟨q, hq, rfl⟩ |
| 64 | have hf : ContMDiff (𝓡 n) (𝓡 n) ∞ f := ordinaryCaptureSliceChart_smooth D hCoordinates t |
| 65 | have hmap := ordinaryCaptureChart_measure_map (F.metric t.val) |
| 66 | (G.slices t.val).metricOnPoints f rfl hf |
| 67 | (ordinaryCaptureSliceChart_symm_smooth D hCoordinates t) |
| 68 | (ordinaryCaptureSliceChart_metric D hCoordinates t) |
| 69 | have h := congrArg (fun μ : Measure (G.slices t.val).Point => μ A) hmap |
| 70 | rw [Measure.map_apply hf.continuous.measurable hA, Measure.restrict_apply hA, |
| 71 | inter_eq_left.mpr hAtarget] at h |
| 72 | rw [← h, ordinaryCapture_slice_preimage D hCoordinates t hcaptured] |
| 73 | |
| 74 | /-- The supplied stable endpoint image has the ordinary captured |
| 75 | slice measure, Lemma 6.71 and Proposition 7.5, pp. 141, 151-152. -/ |
| 76 | theorem ordinaryCapture_stable_slice_measure |
| 77 | (hwindow : Icc (T - τmax) T ⊆ K.domain) |
| 78 | {τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 79 | (H : M14StableSet G T τ x E) (hmax : τ ≤ τmax) |
| 80 | (hx : x ∈ range e.toSpacetime) : |
| 81 | calibratedMetricVolume (G.slices (T - τ)).metricOnPoints |
| 82 | (H.endpoint_slice_map '' H.carrier) = |
| 83 | calibratedMetricVolume (F.metric (T - τ)) |
| 84 | (D.point_map '' ((fun q => q.val) '' (H.endpoint_slice_map '' H.carrier))) := by |
| 85 | have ht : T - τ ∈ K.domain := |
| 86 | hwindow ⟨sub_le_sub_left hmax T, sub_le_self T H.tau_pos.le⟩ |
| 87 | exact ordinaryCapture_slice_measure D hCoordinates ⟨T - τ, ht⟩ |
| 88 | (stableSliceChart H).open_target.measurableSet |
| 89 | (ordinaryCapture_endpoint_image D H hmax hx) |
| 90 | |
| 91 | /-- The reduced volume on the exact supplied stable image equals the |
| 92 | ordinary reduced volume on its captured spatial image, |
| 93 | Definition 6.70 and Lemma 6.71, pp. 140-141. -/ |
| 94 | theorem ordinaryCapture_volume_transport |
| 95 | (hwindow : Icc (T - τmax) T ⊆ K.domain) |
| 96 | {τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 97 | (H : M14StableSet G T τ x E) (hmax : τ ≤ τmax) |
| 98 | (hx : x ∈ range e.toSpacetime) : |
| 99 | M14ReducedVolumeOnStable G T x τ H = |
| 100 | reducedVolumeOn F T (D.point_map x) τ |
| 101 | (D.point_map '' ((fun q => q.val) '' (H.endpoint_slice_map '' H.carrier))) := by |
| 102 | have ht : T - τ ∈ K.domain := |
| 103 | hwindow ⟨sub_le_sub_left hmax T, sub_le_self T H.tau_pos.le⟩ |
| 104 | let t : (G.timeIntervals.interval K).Point := ⟨T - τ, ht⟩ |
| 105 | let f := ordinaryCaptureSliceChart D hCoordinates t |
| 106 | let A := H.endpoint_slice_map '' H.carrier |
| 107 | have hA : MeasurableSet A := (stableSliceChart H).open_target.measurableSet |
| 108 | have hcaptured := ordinaryCapture_endpoint_image D H hmax hx |
| 109 | have hAtarget : A ⊆ f.target := fun q hq => hcaptured ⟨q, hq, rfl⟩ |
| 110 | let φ : (G.slices (T - τ)).Point → ℝ := fun q => |
| 111 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-M14ReducedLengthValue G T 0 τ x q.val) |
| 112 | have htransport := ordinaryCaptureChart_integral (F.metric t.val) |
| 113 | (G.slices t.val).metricOnPoints f rfl (ordinaryCaptureSliceChart_smooth D hCoordinates t) |
| 114 | (ordinaryCaptureSliceChart_symm_smooth D hCoordinates t) |
| 115 | (ordinaryCaptureSliceChart_metric D hCoordinates t) hA hAtarget φ |
| 116 | change (∫ q in A, φ q ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) = _ |
| 117 | rw [htransport] |
| 118 | unfold reducedVolumeOn |
| 119 | rw [← ordinaryCapture_slice_preimage D hCoordinates t hcaptured] |
| 120 | apply setIntegral_congr_fun (hA.preimage |
| 121 | (ordinaryCaptureSliceChart_smooth D hCoordinates t).continuous.measurable) |
| 122 | intro c hc |
| 123 | have hpoint : D.point_map (f c).val = c := D.point_map_on_cylinder t c |
| 124 | have hlength := ordinaryCapture_reducedLength_transport D hCoordinates H.tau_pos hmax |
| 125 | E.base_time (f c).property hx (hcaptured ⟨f c, hc, rfl⟩) |
| 126 | change φ (f c) = reducedVolumeDensity F T (D.point_map x) τ c |
| 127 | simp only [φ, reducedVolumeDensity, if_pos H.tau_pos, hlength, hpoint] |
| 128 | |
| 129 | end PoincareMT.M14 |