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.Identities |
| 2 | import PoincareLib.Geometry.RicciFlow.Spacetime.Product.Identities |
| 3 | |
| 4 | /-! |
| 5 | # The actual circle field is parallel in spacetime |
| 6 | |
| 7 | The spatial and time connection formulas both annihilate the fixed circle |
| 8 | field. Source: MT2007 Section 19.3, pp. 445-446, and MT2015Correction |
| 9 | (0.1)-(0.2), p. 2; see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-circle-bounds-parallel.md`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Bundle Manifold |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace PoincareMT.M62 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | {a b : ℝ} |
| 25 | |
| 26 | /-- The actual circle lift is parallel for any genuine spacetime of the |
| 27 | product flow; MT2007 pp. 445-446 and MT2015Correction (0.1)-(0.2), p. 2. -/ |
| 28 | theorem CircleProductData.spacetime_parallel |
| 29 | {F : RicciFlow n M (Set.Icc a b)} {circumference : ℝ} |
| 30 | (P : CircleProductData F circumference) (G : SpacetimeData P.flow) : |
| 31 | CircleUnitSpacetimeParallel P G := by |
| 32 | let := P.charts.chartedSpace |
| 33 | let := G.charts.chartedSpace |
| 34 | let B : ℝ → (p : P.charts.Point) → TangentSpace (𝓡 (n + 1)) p := |
| 35 | fun _ => P.charts.circleUnit |
| 36 | have hP := circleProduct_identities P |
| 37 | have hB : G.charts.IsSmoothField (G.charts.liftSpatialField B) := |
| 38 | (G.charts.liftSpatialField_smooth_iff B).mpr |
| 39 | (hP.circle_unit_smooth.comp contMDiff_fst) |
| 40 | have hfixed (p : P.charts.Point) (t : ℝ) : fixedPointTimeDerivative B p t = 0 := by |
| 41 | simp only [fixedPointTimeDerivative, B, deriv_const, map_zero] |
| 42 | have hspace (q : G.charts.Point) (V : TangentSpace (𝓡 (n + 1)) q.1) : |
| 43 | G.connection.connection (G.charts.liftSpatialField B) q |
| 44 | (G.charts.horizontal q V) = 0 := by |
| 45 | apply (G.charts.split q).injective |
| 46 | rw [G.spatial_connection B hB, map_zero] |
| 47 | exact Prod.ext (hP.circle_parallel q.2 q.1 V) (hP.circle_ricci q.2 q.1 V) |
| 48 | have htime (q : G.charts.Point) : |
| 49 | G.connection.connection (G.charts.liftSpatialField B) q (G.charts.timeVector q) = 0 := by |
| 50 | let N := G.connection.connection (G.charts.liftSpatialField B) q (G.charts.timeVector q) |
| 51 | have hv : (G.charts.split q N).2 = 0 := G.time_spatial_vertical B hB q |
| 52 | have hh : G.charts.horizontal q (G.charts.split q N).1 = N := by |
| 53 | simpa only [hv, zero_smul, add_zero] using G.charts.horizontal_time_decomposition q N |
| 54 | have hp := G.time_spatial_pairing B hB q (G.charts.split q N).1 |
| 55 | rw [hfixed, map_zero, zero_apply, zero_sub] at hp |
| 56 | have hr : (P.flow.connection q.2).ricci q.1 (B q.2 q.1) (G.charts.split q N).1 = 0 := by |
| 57 | rw [RicciFlowAnalysis.ricci_symm] |
| 58 | exact hP.circle_ricci q.2 q.1 _ |
| 59 | rw [hr, neg_zero, hh] at hp |
| 60 | change G.metric.inner q N N = 0 at hp |
| 61 | change N = 0 |
| 62 | by_contra hne |
| 63 | exact (ne_of_gt (G.metric.pos q N hne)) hp |
| 64 | intro q V |
| 65 | change G.connection.connection (G.charts.liftSpatialField B) q V = 0 |
| 66 | rw [← G.charts.horizontal_time_decomposition q V, map_add, map_smul, |
| 67 | hspace, htime, smul_zero, add_zero] |
| 68 | |
| 69 | end PoincareMT.M62 |