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.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Regularity |
| 3 | |
| 4 | /-! |
| 5 | # Normalization of an actual finite ordinary history |
| 6 | |
| 7 | The M13 flow is restricted to its actual affine image [0,1], retaining |
| 8 | its metric and connection. The same identity homothety supplies the |
| 9 | scalar, full norm, balls and volume. MT Definition 3.40, p. 61. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M47 |
| 21 | |
| 22 | /-- A positive-age closed history has a normalized closed flow with |
| 23 | the exact metric, curvature, ball and volume readouts at every time. -/ |
| 24 | theorem exists_seed_normalized_flow |
| 25 | (P : GeneralizedParabolicRescalingTheory.{u} 3) |
| 26 | {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [T3Space M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 29 | {b T : ℝ} (hbt : b < T) (F : RicciFlow 3 M (Icc b T)) : |
| 30 | ∃ G : RicciFlow 3 M (Icc 0 1), ∀ s : ℝ, |
| 31 | (∀ x (v w : TangentSpace (𝓡 3) x), |
| 32 | (G.metric s).inner x v w = |
| 33 | (T - b)⁻¹ * (F.metric (b + (T - b) * s)).inner x v w) ∧ |
| 34 | (∀ x, (G.connection s).scalarCurvature x = |
| 35 | (T - b) * (F.connection (b + (T - b) * s)).scalarCurvature x) ∧ |
| 36 | (∀ x, (G.connection s).curvatureTensorNorm x = |
| 37 | (T - b) * (F.connection (b + (T - b) * s)).curvatureTensorNorm x) ∧ |
| 38 | (∀ x r, (G.metric s).ball x (r / Real.sqrt (T - b)) = |
| 39 | (F.metric (b + (T - b) * s)).ball x r) ∧ |
| 40 | ∀ E : Set M, calibratedMetricVolume (G.metric s) E = |
| 41 | ENNReal.ofReal ((Real.sqrt (T - b))⁻¹ ^ 3) * |
| 42 | calibratedMetricVolume (F.metric (b + (T - b) * s)) E := by |
| 43 | have hd : 0 < T - b := sub_pos.mpr hbt |
| 44 | let I : SpacetimeInterval := ⟨Icc b T, ordConnected_Icc, F.nontrivial⟩ |
| 45 | obtain ⟨R⟩ := P.ordinary_flow M I F (T - b)⁻¹ (inv_pos.mpr hd) b |
| 46 | have hsub : Icc (0 : ℝ) 1 ⊆ |
| 47 | (parabolicInterval (T - b)⁻¹ (inv_pos.mpr hd) b I).domain := by |
| 48 | intro s hs |
| 49 | rw [mem_parabolicInterval_iff] |
| 50 | change b + s / (T - b)⁻¹ ∈ Icc b T |
| 51 | rw [div_inv_eq_mul] |
| 52 | constructor <;> nlinarith [hs.1, hs.2] |
| 53 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow R.flow hsub |
| 54 | ordConnected_Icc (show (Icc (0 : ℝ) 1).Nontrivial from |
| 55 | ⟨0, by norm_num, 1, by norm_num, by norm_num⟩) |
| 56 | have hcal (s : ℝ) : MetricHomothetyCalculus |
| 57 | (F.metric (b + (T - b) * s)) (G.metric s) |
| 58 | (Diffeomorph.refl (𝓡 3) M ∞) (T - b)⁻¹ := by |
| 59 | simpa only [G, Poincare.Geometry.RicciFlow.Harnack.restrictFlow, |
| 60 | parabolicTimeInv, div_inv_eq_mul, mul_comm] using R.metric_calculus s |
| 61 | have hfactor : Real.rpow (T - b)⁻¹ ((3 : ℝ) / 2) = |
| 62 | (Real.sqrt (T - b))⁻¹ ^ 3 := by |
| 63 | rw [Real.rpow_eq_pow, Real.rpow_div_two_eq_sqrt (3 : ℝ) (inv_pos.mpr hd).le] |
| 64 | rw [show (3 : ℝ) = ((3 : ℕ) : ℝ) by rfl, Real.rpow_natCast, Real.sqrt_inv] |
| 65 | refine ⟨G, fun s => ⟨?_, ?_, ?_, ?_, ?_⟩⟩ |
| 66 | · intro x v w |
| 67 | simpa only [G, Poincare.Geometry.RicciFlow.Harnack.restrictFlow, |
| 68 | parabolicTimeInv, div_inv_eq_mul, mul_comm] using R.metric_eq s x v w |
| 69 | · intro x |
| 70 | simpa only [Diffeomorph.coe_refl, id_eq, div_inv_eq_mul, mul_comm] using |
| 71 | (hcal s).scalar_eq (F.connection (b + (T - b) * s)) (G.connection s) x |
| 72 | · intro x |
| 73 | simpa only [Diffeomorph.coe_refl, id_eq, div_inv_eq_mul, mul_comm] using |
| 74 | (hcal s).curvature_norm_eq (F.connection (b + (T - b) * s)) (G.connection s) x |
| 75 | · intro x r |
| 76 | have hb := (hcal s).ball_image x r |
| 77 | simpa only [Diffeomorph.coe_refl, image_id, image_id', id_eq, Real.sqrt_inv, |
| 78 | div_eq_mul_inv, mul_comm] using hb.symm |
| 79 | · intro E |
| 80 | have hv := (hcal s).volume_image E |
| 81 | simpa only [Diffeomorph.coe_refl, image_id, Nat.cast_ofNat, hfactor] using hv |
| 82 | |
| 83 | end PoincareMT.Proofs.M47 |