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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ReflectedDeckField |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.CylinderCharts |
| 4 | |
| 5 | /-! |
| 6 | # One bounded chart containing two actual reflected points |
| 7 | |
| 8 | An equatorial antipodal pair avoids both omitted poles of one sphere chart. |
| 9 | Their zero axial coordinates lie in one bounded connected Euclidean ball. |
| 10 | This keeps the same subsequence and chart for the reflected-field argument. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 22 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 23 | |
| 24 | /-- A single bounded cylinder chart contains a literal reflected pair. -/ |
| 25 | theorem exists_reflected_pair_in_chart_ball : |
| 26 | ∃ (q : UnitTwoSphere) (x y : V) (R : ℝ), 0 < R ∧ |
| 27 | x ∈ Metric.ball 0 R ∧ y ∈ Metric.ball 0 R ∧ |
| 28 | cylinderChart q y = m27TwistedProductInvolution (cylinderChart q x) := by |
| 29 | let : Fact (Module.finrank ℝ V = 2 + 1) := ⟨by simp⟩ |
| 30 | let q : UnitTwoSphere := ⟨EuclideanSpace.single (2 : Fin 3) 1, by simp⟩ |
| 31 | let p : UnitTwoSphere := ⟨EuclideanSpace.single (0 : Fin 3) 1, by simp⟩ |
| 32 | have h02 : (0 : Fin 3) ≠ 2 := by decide |
| 33 | have hp : p ∈ (chartAt E2 q).source := by |
| 34 | change p ∈ (stereographic' 2 (-q)).source |
| 35 | rw [stereographic'_source] |
| 36 | change p ≠ -q |
| 37 | intro he |
| 38 | have h := congrArg (fun z : UnitTwoSphere => z.val 0) he |
| 39 | norm_num [p, q, h02] at h |
| 40 | have hnp : -p ∈ (chartAt E2 q).source := by |
| 41 | change -p ∈ (stereographic' 2 (-q)).source |
| 42 | rw [stereographic'_source] |
| 43 | change -p ≠ -q |
| 44 | intro he |
| 45 | have h := congrArg (fun z : UnitTwoSphere => z.val 0) he |
| 46 | norm_num [p, q, h02] at h |
| 47 | let x := cylinderCoordinateEquiv.symm ((chartAt E2 q) p, 0) |
| 48 | let y := cylinderCoordinateEquiv.symm ((chartAt E2 q) (-p), 0) |
| 49 | have hx : cylinderChart q x = (p, 0) := by |
| 50 | simp only [x, cylinderChart, ContinuousLinearEquiv.apply_symm_apply] |
| 51 | exact Prod.ext ((chartAt E2 q).left_inv hp) rfl |
| 52 | have hy : cylinderChart q y = (-p, 0) := by |
| 53 | simp only [y, cylinderChart, ContinuousLinearEquiv.apply_symm_apply] |
| 54 | exact Prod.ext ((chartAt E2 q).left_inv hnp) rfl |
| 55 | refine ⟨q, x, y, max ‖x‖ ‖y‖ + 1, ?_, ?_, ?_, ?_⟩ |
| 56 | · exact lt_of_le_of_lt ((norm_nonneg x).trans (le_max_left _ _)) |
| 57 | (lt_add_of_pos_right _ zero_lt_one) |
| 58 | · rw [Metric.mem_ball, dist_zero_right] |
| 59 | exact lt_of_le_of_lt (le_max_left _ _) (lt_add_of_pos_right _ zero_lt_one) |
| 60 | · rw [Metric.mem_ball, dist_zero_right] |
| 61 | exact lt_of_le_of_lt (le_max_right _ _) (lt_add_of_pos_right _ zero_lt_one) |
| 62 | · rw [hx, hy] |
| 63 | simp only [m27TwistedProductInvolution, neg_zero] |
| 64 | |
| 65 | end PoincareMT.M35 |