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.Induction.Noncollapse.Assembly.Constants |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.RegularRegion |
| 3 | |
| 4 | /-! |
| 5 | # The stable source as a Theorem 8.1 configuration |
| 6 | |
| 7 | Morgan--Tian Claim 16.27, pp. 391-394, and Theorem 8.1, pp. 169-176. |
| 8 | The same exponential family, stable set and calibrated endpoint volume |
| 9 | are used throughout the actual half-radius application. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | -- Preserve the native and retained-slice tangent instances in these data. |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M15 |
| 22 | export PoincareMT.EpochExtension.Noncollapse (rawActualBallCylinder) |
| 23 | end PoincareMT.M15 |
| 24 | |
| 25 | namespace PoincareMT.Proofs.M46 |
| 26 | |
| 27 | /-- The stable-set producer's literal target on the selected history. |
| 28 | It contains the data of Theorem 8.1(1),(4),(5), not its volume conclusion. |
| 29 | Source: Claim 16.27 and the completion of Proposition 16.1, pp. 391-394. -/ |
| 30 | structure StableSource {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 31 | {D : NoncollapseTest F O} (H : HalfRadiusHistory D) (taubar l0 V : ℝ) where |
| 32 | exponential : M14ExponentialFamily H.spacetime.geometry.toLGeometry D.time |
| 33 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 34 | tau : ℝ |
| 35 | tau_pos : 0 < tau |
| 36 | tau_le : tau ≤ taubar |
| 37 | radius_sq_le : (D.radius / 2) ^ 2 ≤ tau |
| 38 | terminal_mem : D.time - tau ∈ H.spacetime.history.generalized.interval |
| 39 | stable : M14StableSet H.spacetime.geometry.toLGeometry D.time tau |
| 40 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val exponential |
| 41 | W : Set (H.spacetime.geometry.toLGeometry.Horizontal |
| 42 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val) |
| 43 | W_open : IsOpen W |
| 44 | W_subset : W ⊆ stable.carrier |
| 45 | reduced_length : ∀ Z ∈ W, exponential.reduced_length Z (Real.sqrt tau) ≤ l0 |
| 46 | image_volume : ENNReal.ofReal V ≤ |
| 47 | calibratedMetricVolume |
| 48 | (H.spacetime.geometry.toLGeometry.slices (D.time - tau)).metricOnPoints |
| 49 | (stable.endpoint_slice_map '' W) |
| 50 | |
| 51 | /-- Exact packaging of a produced stable source into Theorem 8.1. |
| 52 | All fields concern the same exponential, history, ball, and endpoint map. -/ |
| 53 | noncomputable def StableSource.configuration |
| 54 | (P : M46Predecessors.{u}) {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 55 | {D : NoncollapseTest F O} {H : HalfRadiusHistory D} {taubar l0 V : ℝ} |
| 56 | (Q : StableSource H taubar l0 V) : |
| 57 | M15Theorem81Configuration H.spacetime.geometry.toLGeometry D.time |
| 58 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center) |
| 59 | Q.exponential taubar l0 V (D.radius / 2) _ _ |
| 60 | (M15.rawActualBallCylinder H.spacetime.geometry P.m13 H.center |
| 61 | (half_pos D.radius_pos) H.cylinder H.time_subset H.based H.curvature) where |
| 62 | tau₀ := Q.tau |
| 63 | tau₀_pos := Q.tau_pos |
| 64 | tau₀_le := Q.tau_le |
| 65 | radius_sq_le_tau₀ := Q.radius_sq_le |
| 66 | terminal_mem := Q.terminal_mem |
| 67 | terminal_ball_compact := H.terminal_ball_compact |
| 68 | stable := Q.stable |
| 69 | W := Q.W |
| 70 | W_open := Q.W_open |
| 71 | W_subset_stable := Q.W_subset |
| 72 | normalized_reduced_length := Q.reduced_length |
| 73 | terminal_image_volume := Q.image_volume |
| 74 | |
| 75 | /-- A produced configuration gives the actual surgery-ball estimate with |
| 76 | the constant selected before the flow; Proposition 16.1, pp. 393-394. -/ |
| 77 | theorem StableSource.volume (P : M46Predecessors.{u}) |
| 78 | {K : MetricSurgeryConstants} (p : SurgeryParameterPrefix K) |
| 79 | {taubar l0 V : ℝ} (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 80 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 81 | {D : NoncollapseTest F O} {H : HalfRadiusHistory D} |
| 82 | (Q : StableSource H taubar l0 V) : |
| 83 | ENNReal.ofReal (configurationKappa p U * D.radius ^ 3) ≤ |
| 84 | calibratedMetricVolume (F.metric D.time) ((F.metric D.time).ball D.center D.radius) := by |
| 85 | have h := H.spacetime.configuration_half_radius U P H.time_mem H.center |
| 86 | (half_pos D.radius_pos) H.cylinder H.time_subset H.based H.curvature |
| 87 | Q.exponential (Q.configuration P) rfl |
| 88 | rw [H.center_eq] at h |
| 89 | exact (ENNReal.ofReal_le_ofReal |
| 90 | (mul_le_mul_of_nonneg_right (configurationKappa_le_uniform p U) |
| 91 | (pow_nonneg D.radius_pos.le 3))).trans h |
| 92 | |
| 93 | end PoincareMT.Proofs.M46 |