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.Manifold.Lift |
| 2 | import PoincareLib.Geometry.RicciFlow.Diffeomorph |
| 3 | |
| 4 | /-! |
| 5 | # Ricci flows under universe lifting |
| 6 | |
| 7 | Pullback by `ULift.down` gives an actual flow on `ULift M`, with an actual |
| 8 | Levi-Civita connection. Points lift by `ULift.up`, and curvature, all spatial |
| 9 | curvature derivatives, completeness, distances, and ball volumes are preserved. |
| 10 | No curvature-theory premise is needed for this construction or these identities. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe v u |
| 20 | |
| 21 | namespace PoincareMT.RicciFlow |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 25 | [IsManifold (𝓡 n) ∞ M] {J : Set ℝ} |
| 26 | |
| 27 | local instance uliftChartedSpace : |
| 28 | ChartedSpace (EuclideanSpace ℝ (Fin n)) (ULift.{v} M) := |
| 29 | Poincare.Manifold.uliftChartedSpace _ M |
| 30 | |
| 31 | local instance uliftIsManifold : IsManifold (𝓡 n) ∞ (ULift.{v} M) := |
| 32 | Poincare.Manifold.uliftIsManifold (𝓡 n) M |
| 33 | |
| 34 | /-- The flow transported to the larger carrier, with basepoints lifted by `ULift.up`. -/ |
| 35 | noncomputable def ulift (F : RicciFlow n M J) : RicciFlow n (ULift.{v} M) J := |
| 36 | F.pullbackDiffeomorph (Poincare.Manifold.uliftDiffeomorph (𝓡 n) M) |
| 37 | |
| 38 | @[simp] theorem ulift_scalarCurvature (F : RicciFlow n M J) |
| 39 | (t : ℝ) (x : ULift.{v} M) : |
| 40 | (F.ulift.connection t).scalarCurvature x = (F.connection t).scalarCurvature x.down := |
| 41 | F.pullbackDiffeomorph_scalarCurvature _ t x |
| 42 | |
| 43 | @[simp] theorem ulift_curvatureTensorNorm (F : RicciFlow n M J) |
| 44 | (t : ℝ) (x : ULift.{v} M) : |
| 45 | (F.ulift.connection t).curvatureTensorNorm x = |
| 46 | (F.connection t).curvatureTensorNorm x.down := |
| 47 | F.pullbackDiffeomorph_curvatureTensorNorm _ t x |
| 48 | |
| 49 | @[simp] theorem ulift_curvatureDerivativeNorm (F : RicciFlow n M J) |
| 50 | (t : ℝ) (k : ℕ) (x : ULift.{v} M) : |
| 51 | (F.ulift.connection t).curvatureDerivativeNorm k x = |
| 52 | (F.connection t).curvatureDerivativeNorm k x.down := |
| 53 | F.pullbackDiffeomorph_curvatureDerivativeNorm _ t k x |
| 54 | |
| 55 | @[simp] theorem ulift_nonnegativeCurvatureOperator_iff (F : RicciFlow n M J) |
| 56 | (t : ℝ) (x : ULift.{v} M) : |
| 57 | (F.ulift.connection t).NonnegativeCurvatureOperator x ↔ |
| 58 | (F.connection t).NonnegativeCurvatureOperator x.down := |
| 59 | F.pullbackDiffeomorph_nonnegativeCurvatureOperator_iff _ t x |
| 60 | |
| 61 | @[simp] theorem ulift_edist (F : RicciFlow n M J) |
| 62 | (t : ℝ) (x y : ULift.{v} M) : |
| 63 | (F.ulift.metric t).edist x y = (F.metric t).edist x.down y.down := |
| 64 | F.pullbackDiffeomorph_edist _ t x y |
| 65 | |
| 66 | theorem ulift_image_ball (F : RicciFlow n M J) |
| 67 | (t : ℝ) (x : ULift.{v} M) (r : ℝ) : |
| 68 | ULift.down '' (F.ulift.metric t).ball x r = (F.metric t).ball x.down r := |
| 69 | F.pullbackDiffeomorph_image_ball _ t x r |
| 70 | |
| 71 | @[simp] theorem ulift_metricComplete_iff [T3Space M] |
| 72 | (F : RicciFlow n M J) (t : ℝ) : |
| 73 | MetricComplete ((F.ulift : RicciFlow n (ULift.{v} M) J).metric t) ↔ |
| 74 | MetricComplete (F.metric t) := |
| 75 | F.pullbackDiffeomorph_metricComplete_iff _ t |
| 76 | |
| 77 | @[simp] theorem ulift_volumeMeasure_ball [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 78 | (F : RicciFlow n M J) (t : ℝ) (x : ULift.{v} M) (r : ℝ) : |
| 79 | (F.ulift.metric t).volumeMeasure ((F.ulift.metric t).ball x r) = |
| 80 | (F.metric t).volumeMeasure ((F.metric t).ball x.down r) := |
| 81 | F.pullbackDiffeomorph_volumeMeasure_ball _ t x r |
| 82 | |
| 83 | end PoincareMT.RicciFlow |