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.Rescaling.Flow |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Positivity |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Volume |
| 4 | import PoincareLib.Geometry.Riemannian.Normalization.Scaling.Geometry |
| 5 | |
| 6 | /-! |
| 7 | # Geometric laws of parabolic rescaling |
| 8 | |
| 9 | All identities concern the retained metric and connection representatives; |
| 10 | the flow equation holds on the specified time domain. See Kleiner--Lott, |
| 11 | Corollary 44.1, pp. 2682--2683, and Appendix E, pp. 2848--2849. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | open scoped Manifold ContDiff Bundle ENNReal |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.RicciFlow |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | {J K : Set ℝ} |
| 23 | (F : RicciFlow n M J) (c : ℝ) (hc : 0 < c) (τ : ℝ) |
| 24 | (hKJ : Set.MapsTo (fun s : ℝ ↦ τ + s / c) K J) |
| 25 | (hK : K.OrdConnected) (hne : K.Nontrivial) |
| 26 | |
| 27 | theorem parabolicRescale_ricci (s : ℝ) (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 28 | ((F.parabolicRescale c hc τ hKJ hK hne).connection s).ricci x u v = |
| 29 | (F.connection (τ + s / c)).ricci x u v := |
| 30 | rescaledMetric_ricci _ _ c hc x u v |
| 31 | |
| 32 | theorem parabolicRescale_scalarCurvature (s : ℝ) (x : M) : |
| 33 | ((F.parabolicRescale c hc τ hKJ hK hne).connection s).scalarCurvature x = |
| 34 | c⁻¹ * (F.connection (τ + s / c)).scalarCurvature x := |
| 35 | rescaledMetric_scalarCurvature _ _ c hc x |
| 36 | |
| 37 | theorem parabolicRescale_nonnegativeCurvatureOperator (s : ℝ) (x : M) |
| 38 | (h : (F.connection (τ + s / c)).NonnegativeCurvatureOperator x) : |
| 39 | ((F.parabolicRescale c hc τ hKJ hK hne).connection s).NonnegativeCurvatureOperator x := |
| 40 | rescaledMetric_nonnegativeCurvatureOperator _ _ c hc x h |
| 41 | |
| 42 | theorem parabolicRescale_metricComplete [T3Space M] (s : ℝ) |
| 43 | (h : MetricComplete (F.metric (τ + s / c))) : |
| 44 | MetricComplete ((F.parabolicRescale c hc τ hKJ hK hne).metric s) := |
| 45 | metricComplete_rescaledMetric _ c hc h |
| 46 | |
| 47 | theorem parabolicRescale_edist (s : ℝ) (x y : M) : |
| 48 | ((F.parabolicRescale c hc τ hKJ hK hne).metric s).edist x y = |
| 49 | ENNReal.ofReal (Real.sqrt c) * (F.metric (τ + s / c)).edist x y := |
| 50 | rescaledMetric_edist _ c hc x y |
| 51 | |
| 52 | theorem parabolicRescale_pathELength (s : ℝ) (γ : ℝ → M) (a b : ℝ) : |
| 53 | ((F.parabolicRescale c hc τ hKJ hK hne).metric s).pathELength γ a b = |
| 54 | ENNReal.ofReal (Real.sqrt c) * (F.metric (τ + s / c)).pathELength γ a b := |
| 55 | rescaledMetric_pathELength _ c hc γ a b |
| 56 | |
| 57 | theorem parabolicRescale_volumeMeasure [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 58 | (s : ℝ) : |
| 59 | ((F.parabolicRescale c hc τ hKJ hK hne).metric s).volumeMeasure = |
| 60 | (ENNReal.ofReal (Real.sqrt c) ^ n) • (F.metric (τ + s / c)).volumeMeasure := |
| 61 | rescaledMetric_volumeMeasure _ c hc |
| 62 | |
| 63 | theorem parabolicRescale_ball (s : ℝ) (x : M) (r : ℝ) : |
| 64 | ((F.parabolicRescale c hc τ hKJ hK hne).metric s).ball x r = |
| 65 | (F.metric (τ + s / c)).ball x (r / Real.sqrt c) := |
| 66 | rescaledMetric_ball_allDimensions _ c hc x r |
| 67 | |
| 68 | end PoincareMT.RicciFlow |
| 69 | |
| 70 | namespace PoincareMT.RicciFlow |
| 71 | |
| 72 | /-- Positive parabolic rescaling, with the actual Ricci and scalar contractions, |
| 73 | intrinsic completeness, curvature positivity, distance, and volume laws. -/ |
| 74 | theorem exists_parabolicRescaling |
| 75 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 76 | [MeasurableSpace M] [BorelSpace M] |
| 77 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 78 | [IsManifold (𝓡 n) ∞ M] {J K : Set ℝ} |
| 79 | (F : RicciFlow n M J) (c : ℝ) (hc : 0 < c) (τ : ℝ) |
| 80 | (hKJ : Set.MapsTo (fun s : ℝ ↦ τ + s / c) K J) |
| 81 | (hK : K.OrdConnected) (hne : K.Nontrivial) : |
| 82 | ∃ G : RicciFlow n M K, |
| 83 | (∀ s, G.metric s = rescaledMetric (F.metric (τ + s / c)) c hc) ∧ |
| 84 | (∀ s x u v, (G.connection s).ricci x u v = |
| 85 | (F.connection (τ + s / c)).ricci x u v) ∧ |
| 86 | (∀ s x, (G.connection s).scalarCurvature x = |
| 87 | c⁻¹ * (F.connection (τ + s / c)).scalarCurvature x) ∧ |
| 88 | (∀ s, MetricComplete (F.metric (τ + s / c)) → MetricComplete (G.metric s)) ∧ |
| 89 | (∀ s x, (F.connection (τ + s / c)).NonnegativeCurvatureOperator x → |
| 90 | (G.connection s).NonnegativeCurvatureOperator x) ∧ |
| 91 | (∀ s x y, (G.metric s).edist x y = |
| 92 | ENNReal.ofReal (Real.sqrt c) * (F.metric (τ + s / c)).edist x y) ∧ |
| 93 | (∀ s, (G.metric s).volumeMeasure = |
| 94 | (ENNReal.ofReal (Real.sqrt c) ^ n) • (F.metric (τ + s / c)).volumeMeasure) := by |
| 95 | exact ⟨F.parabolicRescale c hc τ hKJ hK hne, |
| 96 | F.parabolicRescale_metric c hc τ hKJ hK hne, |
| 97 | F.parabolicRescale_ricci c hc τ hKJ hK hne, |
| 98 | F.parabolicRescale_scalarCurvature c hc τ hKJ hK hne, |
| 99 | F.parabolicRescale_metricComplete c hc τ hKJ hK hne, |
| 100 | F.parabolicRescale_nonnegativeCurvatureOperator c hc τ hKJ hK hne, |
| 101 | F.parabolicRescale_edist c hc τ hKJ hK hne, |
| 102 | F.parabolicRescale_volumeMeasure c hc τ hKJ hK hne⟩ |
| 103 | |
| 104 | end PoincareMT.RicciFlow |