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.StandardCap.Persistence.SourceNames.Curvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.InitialFlow.InitialFlowExistence |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Constants.ProducerEndpoints |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Estimates.EarlyVolume |
| 5 | |
| 6 | /-! |
| 7 | # Claim 15.1: the universal ordinary initial-flow seed |
| 8 | |
| 9 | Morgan--Tian Claim 15.1, p. 353, from Definition 4.10 and Propositions |
| 10 | 4.11-4.12, pp. 67-68. The curvature interval is [0,1/16]. Two-sided |
| 11 | tangent norm comparison transfers all initial small-ball volume bounds |
| 12 | with the fixed positive coefficient v/exp(3/8)^6. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | local notation "Proofs.M15.calibrated_ball_lower_bound_of_tangentNorm_comparison" => PoincareMT.Generalized.Noncollapse.calibrated_ball_lower_bound_of_tangentNorm_comparison |
| 23 | local notation "M04.tangentNorm_comparison_at_of_curvature_bound" => PoincareMT.RicciFlowAnalysis.tangentNorm_comparison_at_of_curvature_bound |
| 24 | |
| 25 | namespace PoincareMT.M45 |
| 26 | |
| 27 | /-- The normalized volume inequality in the calibrated volume convention. |
| 28 | Definition 4.10, p. 67. -/ |
| 29 | theorem normalized_initial_ball_lower_bound |
| 30 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 31 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 32 | [IsManifold (𝓡 3) ∞ M] (N : NormalizedInitialMetric (M := M)) |
| 33 | (x : M) {r : ℝ} (hr : 0 < r) (hr1 : r ≤ 1) : |
| 34 | ENNReal.ofReal ((euclideanUnitBallLebesgueVolume.toReal / 2) * r ^ 3) ≤ |
| 35 | calibratedMetricVolume N.metric (N.metric.ball x r) := by |
| 36 | have hfinite : euclideanUnitBallLebesgueVolume ≠ ⊤ := |
| 37 | Metric.isBounded_ball.measure_lt_top.ne |
| 38 | have hcoeff : ENNReal.ofReal ((euclideanUnitBallLebesgueVolume.toReal / 2) * r ^ 3) = |
| 39 | (euclideanUnitBallLebesgueVolume / 2) * ENNReal.ofReal r ^ 3 := by |
| 40 | rw [ENNReal.ofReal_mul (div_nonneg ENNReal.toReal_nonneg (by norm_num)), |
| 41 | ENNReal.ofReal_div_of_pos (by norm_num), ENNReal.ofReal_toReal hfinite, |
| 42 | ENNReal.ofReal_pow hr.le] |
| 43 | norm_num only [ENNReal.ofReal_ofNat] |
| 44 | rw [hcoeff] |
| 45 | have hvolume : calibratedMetricVolume N.metric = normalizedMetricVolume N.metric := rfl |
| 46 | rw [hvolume, ← N.volume_is_normalized_metric] |
| 47 | exact N.small_ball_lower_bound x r hr hr1 |
| 48 | |
| 49 | /-- Claim 15.1's full literal ordinary-flow producer, with its universal |
| 50 | positive volume seed chosen before the normalized manifold, p. 353. -/ |
| 51 | theorem initialFlowProducer |
| 52 | (h03 : ∀ (M : Type u) [TopologicalSpace M] [T2Space M] |
| 53 | [SecondCountableTopology M] |
| 54 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 55 | [IsManifold (𝓡 3) ∞ M] [CompactSpace M], RicciFlowLocalTheory 3 M) : |
| 56 | InitialFlowProducer.{u} := by |
| 57 | let v := euclideanUnitBallLebesgueVolume.toReal / 2 |
| 58 | let C := Real.exp (3 / 8 : ℝ) |
| 59 | have hv : 0 < v := by |
| 60 | apply div_pos _ (by norm_num) |
| 61 | apply ENNReal.toReal_pos |
| 62 | · exact (Metric.measure_ball_pos volume (0 : EuclideanSpace ℝ (Fin 3)) |
| 63 | (by norm_num : (0 : ℝ) < 1)).ne' |
| 64 | · exact Metric.isBounded_ball.measure_lt_top.ne |
| 65 | have hC : 1 ≤ C := Real.one_le_exp (by norm_num) |
| 66 | have hCp : 0 < C := Real.exp_pos _ |
| 67 | intro epsilon _hepsilon hepsilonLe |
| 68 | refine ⟨v / C ^ 6, div_pos hv (pow_pos hCp _), ?_⟩ |
| 69 | intro M _ _ _ _ _ _ _ _ _ N |
| 70 | obtain ⟨F, hF0, hD0, hRm⟩ := exists_initial_flow_with_curvature |
| 71 | (h03 M) N.metric N.connection N.full_curvature_bound |
| 72 | refine ⟨F, hF0, hD0, hRm, ?_⟩ |
| 73 | intro t ht x r hr hrepsilon |
| 74 | have hr1 : r ≤ 1 := hrepsilon.trans (hepsilonLe.trans (by norm_num)) |
| 75 | have hnorm (q : M) (w : TangentSpace (𝓡 3) q) := |
| 76 | M04.tangentNorm_comparison_at_of_curvature_bound F (by norm_num) ht ht.1 |
| 77 | (by norm_num : (0 : ℝ) ≤ 2) q |
| 78 | (fun s hs => hRm s ⟨hs.1, hs.2.trans ht.2⟩ q) w |
| 79 | have hexp : Real.exp ((3 : ℝ) * 2 * (t - 0)) ≤ C := by |
| 80 | apply Real.exp_le_exp.mpr |
| 81 | linarith [ht.2] |
| 82 | apply Proofs.M15.calibrated_ball_lower_bound_of_tangentNorm_comparison |
| 83 | (F.metric 0) (F.metric t) x hC hv.le hr hr1 |
| 84 | · intro q w |
| 85 | exact (hnorm q w).2.trans |
| 86 | (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 87 | · intro q w |
| 88 | have h := mul_le_mul_of_nonneg_left (hnorm q w).1 |
| 89 | (Real.exp_pos ((3 : ℝ) * 2 * (t - 0))).le |
| 90 | simp only [Nat.cast_ofNat] at h |
| 91 | have he : Real.exp ((3 : ℝ) * 2 * (t - 0)) * |
| 92 | Real.exp (-(3 : ℝ) * 2 * (t - 0)) = 1 := by |
| 93 | rw [← Real.exp_add] |
| 94 | ring_nf |
| 95 | exact Real.exp_zero |
| 96 | rw [← mul_assoc, he, one_mul] at h |
| 97 | exact h.trans (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 98 | · intro s hs hs1 |
| 99 | rw [hF0] |
| 100 | exact normalized_initial_ball_lower_bound N x hs hs1 |
| 101 | |
| 102 | end PoincareMT.M45 |