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.Curvature.Estimates.Shi.Paths.Energy |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricComparison.LocalCurvature |
| 3 | |
| 4 | /-! |
| 5 | # Actual controlled-speed spatial paths to the seed closure |
| 6 | |
| 7 | Morgan--Tian Claim 16.27, p. 393. A point in the closed source ball |
| 8 | lies in the doubled open ball. The existing C1 energy reparametrization |
| 9 | therefore gives a real source path with speed at most twice the seed |
| 10 | radius, without any completeness or geodesic existence assumption. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M04 |
| 19 | export PoincareMT.RicciFlowAnalysis (pathSpeed) |
| 20 | end PoincareMT.M04 |
| 21 | namespace PoincareMT.M04 |
| 22 | export PoincareMT.RicciFlowAnalysis (initial_half_ball_closure_subset_initial_ball) |
| 23 | end PoincareMT.M04 |
| 24 | namespace PoincareMT.M04 |
| 25 | export PoincareMT.RicciFlowAnalysis (exists_contMDiff_energy_path_sequence) |
| 26 | end PoincareMT.M04 |
| 27 | |
| 28 | namespace PoincareMT.Proofs.M46 |
| 29 | |
| 30 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] [T2Space M] |
| 32 | |
| 33 | /-- The actual source path has the endpoint, spatial buffer and speed |
| 34 | bound needed by the transported seed tail, p. 393. -/ |
| 35 | theorem exists_seed_spatial_path (g : RiemannianMetric n M) (x : M) |
| 36 | {rho : ℝ} (hrho : 0 < rho) {z : M} (hz : z ∈ closure (g.ball x rho)) : |
| 37 | ∃ gamma : ℝ → M, gamma 0 = x ∧ gamma 1 = z ∧ |
| 38 | ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 gamma ∧ |
| 39 | MapsTo gamma (Icc (0 : ℝ) 1) (g.ball x (2 * rho)) ∧ |
| 40 | ∀ s ∈ Icc (0 : ℝ) 1, M04.pathSpeed g gamma s ≤ 2 * rho := by |
| 41 | have hball := M04.initial_half_ball_closure_subset_initial_ball g x |
| 42 | (by positivity : 0 < 2 * rho) |
| 43 | rw [show 2 * rho / 2 = rho by ring] at hball |
| 44 | have hzball : g.edist x z < ENNReal.ofReal (2 * rho) := hball hz |
| 45 | have hfinite : g.edist x z ≠ ⊤ := ne_top_of_lt hzball |
| 46 | obtain ⟨gamma, hend, hsource, hspeed, _, _⟩ := |
| 47 | M04.exists_contMDiff_energy_path_sequence g hfinite (ENNReal.toReal_lt_of_lt_ofReal hzball) |
| 48 | exact ⟨gamma 0, (hend 0).1, (hend 0).2.1, (hend 0).2.2, hsource 0, hspeed 0⟩ |
| 49 | |
| 50 | end PoincareMT.Proofs.M46 |