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.Surgery.Induction.EpochExtension.Spacetime.GeneralizedRicci |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.SliceGeometry.PinchingIsometry |
| 4 | |
| 5 | /-! |
| 6 | # Metric calculus on the original generalized-flow slices |
| 7 | |
| 8 | Use the retained M11 slice identification and the supplied M13 theorem at |
| 9 | scale one. Both metrics and connections are the specified ones. In |
| 10 | particular, the resulting horizontal curvature is that of the original |
| 11 | generalized flow at the same point. No realization is reselected. |
| 12 | Source: Morgan--Tian Theorem 1.2, pp. 3-7, and Definition 3.35, pp. 60-61. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.EpochExtension.SliceGeometry |
| 23 | |
| 24 | variable {F : GeneralizedRicciFlowData.{u}} |
| 25 | (G : Spacetime.FlowBoxRicciGeometry F) |
| 26 | |
| 27 | /-- The selected identification lands at the literal point `(t,x)`. -/ |
| 28 | theorem originalSlice_point (t : ℝ) (x : (F.slice t).carrier) : |
| 29 | (G.sliceIdentification t).identification x = |
| 30 | spacetimeSlicePoint G.realization.slices (⟨t, x⟩ : F.point) := by |
| 31 | apply Subtype.ext |
| 32 | exact (G.sliceIdentification t).identification_eq x |
| 33 | |
| 34 | /-- The exact retained slice identification is a unit-scale homothety. -/ |
| 35 | theorem originalSlice_homothety (t : ℝ) : |
| 36 | MetricHomothety (F.metric t) (G.realization.slices t).metricOnPoints |
| 37 | (G.sliceIdentification t).identification 1 := by |
| 38 | intro x v w |
| 39 | simpa only [Spacetime.flowSliceLabel, one_mul] using (G.sliceIdentification t).metric_eq x v w |
| 40 | |
| 41 | /-- Apply the supplied M13 calculus to these fixed metrics and this fixed map. -/ |
| 42 | theorem originalSlice_calculus (h : GeneralizedParabolicRescalingTheory.{u} 3) (t : ℝ) : |
| 43 | MetricHomothetyCalculus (F.metric t) (G.realization.slices t).metricOnPoints |
| 44 | (G.sliceIdentification t).identification 1 := |
| 45 | h.metric_homothety (F.slice t).carrier (G.realization.slices t).Point |
| 46 | (F.metric t) (G.realization.slices t).metricOnPoints |
| 47 | (G.sliceIdentification t).identification 1 zero_lt_one (originalSlice_homothety G t) |
| 48 | |
| 49 | variable (h : GeneralizedParabolicRescalingTheory.{u} 3) |
| 50 | include h |
| 51 | |
| 52 | theorem originalSlice_scalar (t : ℝ) (x : (F.slice t).carrier) : |
| 53 | horizontalScalarCurvature G.leafwise (⟨t, x⟩ : F.point) = |
| 54 | (F.connection t).scalarCurvature x := by |
| 55 | have H := (originalSlice_calculus G h t).scalar_eq |
| 56 | (F.connection t) (G.leafwise.sliceConnection t) x |
| 57 | exact (congrArg (G.leafwise.sliceConnection t).scalarCurvature |
| 58 | (originalSlice_point G t x)).symm.trans (by simpa only [div_one, Spacetime.flowSliceLabel] using H) |
| 59 | |
| 60 | theorem originalSlice_curvatureNorm (t : ℝ) (x : (F.slice t).carrier) : |
| 61 | horizontalCurvatureNorm G.leafwise (⟨t, x⟩ : F.point) = |
| 62 | (F.connection t).curvatureTensorNorm x := by |
| 63 | have H := (originalSlice_calculus G h t).curvature_norm_eq |
| 64 | (F.connection t) (G.leafwise.sliceConnection t) x |
| 65 | exact (congrArg (G.leafwise.sliceConnection t).curvatureTensorNorm |
| 66 | (originalSlice_point G t x)).symm.trans (by simpa only [div_one, Spacetime.flowSliceLabel] using H) |
| 67 | |
| 68 | theorem originalSlice_negativePart (t : ℝ) (x : (F.slice t).carrier) : |
| 69 | (G.leafwise.sliceConnection t).negativeCurvaturePart |
| 70 | ((G.sliceIdentification t).identification x) = |
| 71 | (F.connection t).negativeCurvaturePart x := |
| 72 | negativeCurvaturePart_eq_one (originalSlice_calculus G h t) |
| 73 | (originalSlice_homothety G t) (F.connection t) (G.leafwise.sliceConnection t) x |
| 74 | |
| 75 | theorem originalSlice_edist (t : ℝ) (x y : (F.slice t).carrier) : |
| 76 | (G.realization.slices t).metricOnPoints.edist |
| 77 | ((G.sliceIdentification t).identification x) |
| 78 | ((G.sliceIdentification t).identification y) = (F.metric t).edist x y := by |
| 79 | simpa [Spacetime.flowSliceLabel] using (originalSlice_calculus G h t).edist_eq x y |
| 80 | |
| 81 | theorem originalSlice_ball (t : ℝ) (x : (F.slice t).carrier) (r : ℝ) : |
| 82 | (G.sliceIdentification t).identification '' (F.metric t).ball x r = |
| 83 | (G.realization.slices t).metricOnPoints.ball |
| 84 | ((G.sliceIdentification t).identification x) r := by |
| 85 | simpa [Spacetime.flowSliceLabel] using (originalSlice_calculus G h t).ball_image x r |
| 86 | |
| 87 | theorem originalSlice_complete (t : ℝ) : |
| 88 | MetricComplete (G.realization.slices t).metricOnPoints ↔ MetricComplete (F.metric t) := |
| 89 | (originalSlice_calculus G h t).complete_iff |
| 90 | |
| 91 | theorem originalSlice_volume (t : ℝ) (U : Set (F.slice t).carrier) : |
| 92 | calibratedMetricVolume (G.realization.slices t).metricOnPoints |
| 93 | ((G.sliceIdentification t).identification '' U) = |
| 94 | calibratedMetricVolume (F.metric t) U := by |
| 95 | simpa [Spacetime.flowSliceLabel] using (originalSlice_calculus G h t).volume_image U |
| 96 | |
| 97 | end PoincareMT.EpochExtension.SliceGeometry |