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.Product.Circle.Factor.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Product.Circle.Family |
| 3 | import PoincareLib.Geometry.RicciFlow.Product.Circle.Ricci |
| 4 | |
| 5 | /-! |
| 6 | # Construction of the actual circle-product Ricci flow |
| 7 | |
| 8 | The genuine product metric family and retained Levi-Civita connections |
| 9 | satisfy the actual Ricci-flow equation, including endpoint derivatives. |
| 10 | Source: MT2007 Section 19.3, pp. 445-446; |
| 11 | see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-circle-product-flow.md`. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | namespace PoincareMT.M62 |
| 20 | |
| 21 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | {a b : ℝ} |
| 24 | |
| 25 | /-- The genuine product with every positive circle is an actual Ricci flow; |
| 26 | MT2007 Section 19.3, pp. 445-446. -/ |
| 27 | theorem nonempty_circleProductData [T2Space M] [SecondCountableTopology M] |
| 28 | (F : RicciFlow n M (Set.Icc a b)) (circumference : ℝ) |
| 29 | (hp : 0 < circumference) : Nonempty (CircleProductData F circumference) := by |
| 30 | classical |
| 31 | obtain ⟨C⟩ := nonempty_circleGeometry hp |
| 32 | obtain ⟨P⟩ := nonempty_circleProductCharts (n := n) (M := M) C |
| 33 | let := P.chartedSpace |
| 34 | choose G hG using fun t : ℝ => exists_circleProductMetric (F.metric t) C P |
| 35 | let D : (t : ℝ) → LeviCivitaData (G t) := |
| 36 | fun t => Classical.choice (normalization_exists_leviCivitaData (G t)) |
| 37 | let H : RicciFlow (n + 1) P.Point (Set.Icc a b) := { |
| 38 | metric := G |
| 39 | connection := D |
| 40 | interval := F.interval |
| 41 | nontrivial := F.nontrivial |
| 42 | smooth := circleProductMetric_isSmoothFamilyOn F C P G hG |
| 43 | equation := by |
| 44 | intro t ht q V W |
| 45 | have h := (F.equation t ht q.1 (P.split q V).1 (P.split q W).1).add_const |
| 46 | (C.metricOnPoints.inner q.2 (P.split q V).2 (P.split q W).2) |
| 47 | have hr := circleProduct_ricci (F.metric t) (F.connection t) C P (G t) (D t) (hG t) |
| 48 | q V W |
| 49 | simpa only [hG, hr] using h |
| 50 | } |
| 51 | exact ⟨⟨C, P, H, hG⟩⟩ |
| 52 | |
| 53 | end PoincareMT.M62 |