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.Existence.Geometry.CanonicalGeometry.CapIsometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.CanonicalGeometry.CapMetricScaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Basic.OrdinaryGeometry |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 5 | |
| 6 | /-! |
| 7 | # A normalized ordinary cap gives the actual generalized cap |
| 8 | |
| 9 | Remove the positive scalar normalization and use the genuine retained |
| 10 | slice isometry. The full frozen cap and its exact core point therefore |
| 11 | live on the actual Chapter 11 fiber with its specified connection. |
| 12 | Source: Theorem 12.28, pp. 323-324; cap-isometry-and-ordinary-transfer.md. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M34 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 28 | {I : SpacetimeInterval} {F : RicciFlow 3 M I.domain} |
| 29 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 30 | |
| 31 | local notation "G" => ordinaryChapter11Flow (I := I) (F := F) R |
| 32 | |
| 33 | /-- An actual normalized cap around the projected point gives an actual |
| 34 | cap on the retained time fiber. All quantitative fields are transported; |
| 35 | the chosen source connection does not need a separate identification. -/ |
| 36 | theorem ordinaryChapter11_canonicalControl_of_normalized_cap |
| 37 | (p : (G).point) {Q epsilon C : ℝ} (hQ : 0 < Q) |
| 38 | (N : CapCertificate (M13.scaleSmoothMetric (F.metric p.1) Q hQ)) |
| 39 | (hepsilon : N.epsilon = epsilon) (hconstant : N.cap_constant ≤ C) |
| 40 | (hcore : ordinaryChapter11Projection R p ∈ N.core) : |
| 41 | GeneralizedCanonicalControl (F := G) p.1 p.2 epsilon C := by |
| 42 | let : T25Space M := T3Space.t25Space |
| 43 | let : T2Space M := T25Space.t2Space |
| 44 | let t : I.domain := ⟨p.1, ordinaryChapter11Point_time_mem R p⟩ |
| 45 | let N' := N.scaleMetric Q⁻¹ (inv_pos.mpr hQ) |
| 46 | have hisometry : MetricHomothety |
| 47 | (M13.scaleSmoothMetric (M13.scaleSmoothMetric (F.metric p.1) Q hQ) |
| 48 | Q⁻¹ (inv_pos.mpr hQ)) ((G).metric p.1) (R.product.sliceIdentification t) 1 := by |
| 49 | intro x v w |
| 50 | have hm := ordinarySlice_metricHomothety R.product t x v w |
| 51 | simp only [M13.scaleSmoothMetric_inner, ← mul_assoc, inv_mul_cancel₀ hQ.ne', one_mul] |
| 52 | convert! hm using 1 |
| 53 | simp only [t, one_mul] |
| 54 | obtain ⟨H, he, hC, hD, hHcore, _⟩ := |
| 55 | N'.exists_isometric_image_cap (R.product.sliceIdentification t) hisometry ((G).connection p.1) |
| 56 | apply GeneralizedCanonicalControl.cap H (he.trans hepsilon) (hC.trans_le hconstant) hD |
| 57 | rw [hHcore] |
| 58 | refine ⟨ordinaryChapter11Projection R p, hcore, ?_⟩ |
| 59 | exact ordinaryChapter11_identification_projection R t p.2 |
| 60 | |
| 61 | end PoincareMT.M34 |