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.Spacetime.Rescaling.Assembly |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Construction |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.ProductComparison |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 5 | |
| 6 | /-! |
| 7 | # Generalized parabolic rescaling |
| 8 | |
| 9 | The affine clock, metric homothety, and actual domain transports assemble into |
| 10 | the complete rescaling theory from the supplied generalized Ricci gauge theory. |
| 11 | The ordinary construction allows an empty carrier; only the comparison of |
| 12 | supplied ordinary-product realizations assumes a nonempty carrier. |
| 13 | |
| 14 | Adapted from `PoincareMT/Proofs/M13.lean` at source revision |
| 15 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. |
| 16 | See Morgan--Tian, Definition 3.40, p. 61; Definitions 3.38 and 3.41, |
| 17 | pp. 61-62; Theorem 1.2 and Definitions 1.4-1.8, pp. 3-7; |
| 18 | Lemma 6.72 and Corollary 6.74, pp. 141-142; Definition 9.1, p. 180, |
| 19 | and Section 9.2.1, p. 185. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | /-- The complete positive parabolic-rescaling theory, including dimension zero, |
| 29 | exact affine domains, endpoint derivatives, all homothety fields, and the |
| 30 | comparison of any supplied ordinary-product realizations. -/ |
| 31 | theorem generalizedParabolicRescaling (n : ℕ) |
| 32 | (hEquation : GeneralizedRicciGaugeTheory.{u} n) : |
| 33 | GeneralizedParabolicRescalingTheory.{u} n := by |
| 34 | refine { |
| 35 | rescale := ?_ |
| 36 | metric_homothety := ?_ |
| 37 | coordinate_metric_homothety := ?_ |
| 38 | ordinary_flow := ?_ |
| 39 | ordinary_product_comparison := ?_ } |
| 40 | · intro X _ A R Q hQ a |
| 41 | exact ⟨ParabolicRescaling.generalizedRescaling hEquation R Q hQ a⟩ |
| 42 | · intro M N _ _ _ _ _ _ _ _ _ _ _ _ g h f Q hQ hf |
| 43 | exact Homothety.metricHomothetyCalculus g h f Q hQ hf |
| 44 | · intro M N _ _ _ _ _ _ _ _ _ _ _ _ g h f Q hQ hf |
| 45 | exact Homothety.metricHomothetyCalculus g h f Q hQ hf |
| 46 | · intro M _ _ _ _ _ I F Q hQ a |
| 47 | exact ParabolicRescaling.ordinaryParabolicRescaling I F Q hQ a |
| 48 | · intro M _ _ _ _ I F Q hQ a R source target |
| 49 | exact ParabolicRescaling.ordinaryParabolicProductComparison F Q hQ a R source target |
| 50 | |
| 51 | end PoincareMT |