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.Singular.RegularLimit.Canonical.Cap.Calibration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.RegularLimit.Canonical.Cap.Radius |
| 3 | |
| 4 | /-! |
| 5 | # Terminal cap-core calibration from captured old balls |
| 6 | |
| 7 | The exact old cap calibration, compact-uniform scalar convergence, and a |
| 8 | two-sided inclusion of transported core balls into terminal balls produce an |
| 9 | exact terminal calibrated radius. The remaining geometric input is the ball |
| 10 | inclusion and a larger precompact terminal ball, not a terminal cap certificate. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.SingularTimeAssumptions |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 27 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 28 | |
| 29 | /-- Every sufficiently late captured cap core has an exactly calibrated |
| 30 | terminal radius whenever its transported old ball lies between two terminal |
| 31 | balls whose inverse squares absorb the common scalar error. -/ |
| 32 | theorem eventually_exists_cap_core_calibrated_radius |
| 33 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 34 | {A : Set (H.regularRegion P04)} (hA : IsCompact A) {δ : ℝ} (hδ : 0 < δ) : |
| 35 | ∀ᶠ t in 𝓝[<] T, ∀ ht : t ∈ Ico H.reference.tMinus T, |
| 36 | ∀ N : CapCertificate (F.metric t), N.connection = F.connection t → |
| 37 | H.reference.inverse t ht '' N.carrier ⊆ Subtype.val '' A → |
| 38 | ∀ x : H.regularRegion P04, H.reference.forward t ht x ∈ N.core → |
| 39 | ∀ a b R : ℝ, 0 < a → a ≤ b → b < R → |
| 40 | IsCompact (closure ((H.terminalMetric P04).ball x R)) → |
| 41 | (H.terminalMetric P04).ball x a ⊆ H.regularReferencePreimage P04 t ht |
| 42 | ((F.metric t).ball (H.reference.forward t ht x) |
| 43 | (N.core_radius (H.reference.forward t ht x))) → |
| 44 | H.regularReferencePreimage P04 t ht |
| 45 | ((F.metric t).ball (H.reference.forward t ht x) |
| 46 | (N.core_radius (H.reference.forward t ht x))) ⊆ |
| 47 | (H.terminalMetric P04).ball x b → |
| 48 | (N.core_radius (H.reference.forward t ht x))⁻¹ ^ 2 + δ ≤ a⁻¹ ^ 2 → |
| 49 | b⁻¹ ^ 2 ≤ (N.core_radius (H.reference.forward t ht x))⁻¹ ^ 2 - δ → |
| 50 | ∃ r ∈ Icc a b, |
| 51 | scalarCurvatureSupOn (H.terminalMetric P04) (H.terminalConnection P04) |
| 52 | ((H.terminalMetric P04).ball x r) = r⁻¹ ^ 2 := by |
| 53 | have hcont := (P04.tensor_calculus 3 (H.regularRegion P04) (H.terminalMetric P04) |
| 54 | (H.terminalConnection P04)).contMDiff_scalarCurvature.continuous |
| 55 | filter_upwards [H.eventually_cap_core_calibration_close P04 hA hδ] with t hcal |
| 56 | intro ht N hconnection hcapture x hx a b R ha hab hbR hcompact hsmall hlarge hleft hright |
| 57 | exact exists_scalar_calibrated_radius_of_sandwich |
| 58 | (H.terminalMetric P04) (H.terminalConnection P04) hcont x ha hab hbR |
| 59 | hcompact hsmall hlarge (hcal ht N hconnection hcapture _ hx).le hleft hright |
| 60 | |
| 61 | end PoincareMT.SingularTimeAssumptions |