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.Soliton.Models.Involution.Factorization |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.FactorMetrics |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.Rigidity |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.SphereFactor |
| 5 | |
| 6 | /-! |
| 7 | # Literal normal forms of a shrinking-cylinder involution |
| 8 | |
| 9 | Factor separation and spherical rigidity give the two formulas in the supplied |
| 10 | product coordinates. Morgan--Tian, Theorem 9.42 and (9.19), pp. 206-208. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.QuotientSphereLineCertificate |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 24 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 27 | |
| 28 | /-- Every supplied free involution has one of the two literal projective |
| 29 | normal forms in its fixed round sphere-line coordinates. -/ |
| 30 | theorem involution_eq_antipodal_identity_or_reflection (q : QuotientSphereLineCertificate G) : |
| 31 | letI := q.cover_topology |
| 32 | letI := q.cover_charted |
| 33 | letI := q.cover_manifold |
| 34 | letI := q.product.surface_topology |
| 35 | letI := q.product.surface_charted |
| 36 | letI := q.product.surface_manifold |
| 37 | (∀ p : q.product.surface × ℝ, |
| 38 | q.involution p = (q.product.surface_sphere.symm (-(q.product.surface_sphere p.1)), p.2)) ∨ |
| 39 | ∃ c : ℝ, ∀ p : q.product.surface × ℝ, |
| 40 | q.involution p = |
| 41 | (q.product.surface_sphere.symm (-(q.product.surface_sphere p.1)), 2 * c - p.2) := by |
| 42 | let := q.cover_topology |
| 43 | let := q.cover_charted |
| 44 | let := q.cover_manifold |
| 45 | let := q.product.surface_topology |
| 46 | let := q.product.surface_charted |
| 47 | let := q.product.surface_manifold |
| 48 | obtain ⟨f, g, hf, hg, hfi, hgi, hfactor⟩ := q.exists_smooth_factorization |
| 49 | let a := q.product.surface_sphere |
| 50 | let F : UnitTwoSphere → UnitTwoSphere := fun x ↦ a (f (a.symm x)) |
| 51 | have hF : Isometry F := q.factor_sphere_isometry f g hf hfi hfactor |
| 52 | have hFi : Function.Involutive F := by |
| 53 | intro x |
| 54 | simp only [F, a.symm_apply_apply] |
| 55 | rw [hfi (a.symm x), a.apply_symm_apply] |
| 56 | have hfree : ∀ x z, (F x, g z) ≠ (x, z) := by |
| 57 | intro x z heq |
| 58 | apply q.involution_free (a.symm x, z) |
| 59 | rw [hfactor] |
| 60 | apply Prod.ext |
| 61 | · apply a.injective |
| 62 | exact (congrArg Prod.fst heq).trans (a.apply_symm_apply x).symm |
| 63 | · exact congrArg (fun p : UnitTwoSphere × ℝ ↦ p.2) heq |
| 64 | let s₀ : q.product.surface := |
| 65 | a.symm ⟨EuclideanSpace.single 0 1, by simp⟩ |
| 66 | have hgd : Differentiable ℝ g := hg.contDiff.differentiable (by simp) |
| 67 | have hG : Isometry g := real_isometry_of_involutive_deriv_sq hgd hgi |
| 68 | (q.factor_line_deriv_sq f g hfactor s₀) |
| 69 | rcases Poincare.Geometry.free_product_involutive_isometry_normal_forms |
| 70 | hF hG hFi hgi hfree with hid | ⟨c, href⟩ |
| 71 | · left |
| 72 | rintro ⟨s, z⟩ |
| 73 | rw [hfactor] |
| 74 | have h := hid (a s) z |
| 75 | apply Prod.ext |
| 76 | · apply a.injective |
| 77 | change a (f s) = a (a.symm (-a s)) |
| 78 | rw [a.apply_symm_apply] |
| 79 | simpa only [F, a.symm_apply_apply] using congrArg Prod.fst h |
| 80 | · exact congrArg (fun p : UnitTwoSphere × ℝ ↦ p.2) h |
| 81 | · right |
| 82 | refine ⟨c, ?_⟩ |
| 83 | rintro ⟨s, z⟩ |
| 84 | rw [hfactor] |
| 85 | have h := href (a s) z |
| 86 | apply Prod.ext |
| 87 | · apply a.injective |
| 88 | change a (f s) = a (a.symm (-a s)) |
| 89 | rw [a.apply_symm_apply] |
| 90 | simpa only [F, a.symm_apply_apply] using congrArg Prod.fst h |
| 91 | · exact congrArg (fun p : UnitTwoSphere × ℝ ↦ p.2) h |
| 92 | |
| 93 | end PoincareMT.QuotientSphereLineCertificate |