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.RicciDerivative |
| 2 | |
| 3 | /-! |
| 4 | # All identities of the actual circle product |
| 5 | |
| 6 | The fixed circle field is smooth, unit and parallel for every retained |
| 7 | time connection, and the actual curvature tensors project to the base. |
| 8 | Source: MT2007 Section 19.3, pp. 445-446; |
| 9 | see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-circle-product-flow.md`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Bundle Manifold Set Topology |
| 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 | /-- Every supplied genuine product satisfies the frozen circle and tensor |
| 27 | identities; MT2007 Section 19.3, pp. 445-446. -/ |
| 28 | theorem circleProduct_identities {F : RicciFlow n M (Set.Icc a b)} |
| 29 | {circumference : ℝ} (P : CircleProductData F circumference) : |
| 30 | CircleProductIdentities P := by |
| 31 | let := P.charts.chartedSpace |
| 32 | let E := EuclideanSpace ℝ (Fin n) |
| 33 | have hzero (p : M) : PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p (0 : E) = 0 := by |
| 34 | funext y |
| 35 | simp only [PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField, VectorField.mpullback, map_zero] |
| 36 | rfl |
| 37 | have hfield (p : M) : P.charts.productChartField p 0 1 = P.charts.circleUnit := by |
| 38 | funext q |
| 39 | simp only [CircleProductCharts.productChartField, hzero, Pi.zero_apply, one_smul, |
| 40 | CircleProductCharts.circleUnit] |
| 41 | have hsplit (q : P.charts.Point) : |
| 42 | P.charts.split q (P.charts.circleUnit q) = (0, P.circle.frame q.2) := |
| 43 | (P.charts.split q).apply_symm_apply _ |
| 44 | have hRic (t : ℝ) (q : P.charts.Point) (V W : TangentSpace (𝓡 (n + 1)) q) := |
| 45 | circleProduct_ricci (F.metric t) (F.connection t) P.circle P.charts |
| 46 | (P.flow.metric t) (P.flow.connection t) (P.metric_eq t) q V W |
| 47 | refine { |
| 48 | circle_identities := circle_identities P.circle |
| 49 | circle_unit_smooth := ?_ |
| 50 | circle_unit := ?_ |
| 51 | circle_parallel := ?_ |
| 52 | circle_ricci := ?_ |
| 53 | riemann_split := fun t => circleProduct_curvatureTensor (F.metric t) (F.connection t) |
| 54 | P.circle P.charts (P.flow.metric t) (P.flow.connection t) (P.metric_eq t) |
| 55 | ricci_split := hRic |
| 56 | ricci_derivative_split := fun t => circleProduct_ricci_derivative (F.metric t) |
| 57 | (F.connection t) P.circle P.charts (P.flow.metric t) (P.flow.connection t) (P.metric_eq t) |
| 58 | } |
| 59 | · intro q |
| 60 | have hfst : ContMDiff (𝓡 (n + 1)) (𝓡 n) ∞ (Prod.fst : P.charts.Point → M) := |
| 61 | contMDiff_fst.comp P.charts.to_product_smooth |
| 62 | have hopen : IsOpen {z : P.charts.Point | z.1 ∈ (chartAt E q.1).source} := |
| 63 | (chartAt E q.1).open_source.preimage hfst.continuous |
| 64 | rw [← hfield q.1] |
| 65 | exact (P.charts.productChartField_contMDiffOn q.1 0 1).contMDiffAt |
| 66 | (hopen.mem_nhds (mem_chart_source E q.1)) |
| 67 | · intro t q |
| 68 | rw [P.metric_eq, hsplit] |
| 69 | simp only [map_zero, zero_add, (circle_identities P.circle).frame_unit] |
| 70 | · intro t q V |
| 71 | have hp : q.1 ∈ (chartAt E q.1).source := mem_chart_source E q.1 |
| 72 | obtain ⟨v, r, hv⟩ := P.charts.productChartField_exists q.1 q hp V |
| 73 | have h := circleProduct_chart_connection (F.metric t) (F.connection t) P.circle |
| 74 | P.charts (P.flow.metric t) (P.flow.connection t) (P.metric_eq t) q.1 v 0 r 1 q hp |
| 75 | rw [hfield, hv, hzero] at h |
| 76 | simp only [CovariantDerivative.zero, Pi.zero_apply, zero_apply] at h |
| 77 | apply (P.charts.split q).injective |
| 78 | rw [map_zero] |
| 79 | change P.charts.split q ((P.flow.connection t).connection P.charts.circleUnit q V) = (0, 0) |
| 80 | exact h |
| 81 | · intro t q V |
| 82 | rw [hRic, hsplit] |
| 83 | obtain ⟨A, hA⟩ := (RicciFlowAnalysis.isSmoothCovariantTensor_ricciEvaluation (F.connection t)).1 q.1 |
| 84 | change (F.connection t).ricciEvaluation q.1 ![(P.charts.split q V).1, 0] = 0 |
| 85 | rw [hA] |
| 86 | exact A.map_coord_zero 1 rfl |
| 87 | |
| 88 | end PoincareMT.M62 |