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.Noncollapsing.LateConnectorBounds |
| 2 | |
| 3 | /-! |
| 4 | # A uniform reduced-length region on one positive early slice |
| 5 | |
| 6 | For every late time and basepoint, an actual open coordinate region on |
| 7 | the fixed slice L/8 has positive volume and bounded reduced length. |
| 8 | Both constants precede the late query and all ordinary provider outputs. |
| 9 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | open scoped Manifold ContDiff ENNReal intervalIntegral |
| 16 | |
| 17 | namespace PoincareMT.M34 |
| 18 | |
| 19 | /-- One strictly positive early slice supplies uniform reduced-length and |
| 20 | volume constants for all late basepoints (Proposition 12.13, pp. 304-306). -/ |
| 21 | theorem partialFlow_fixed_early_reduced_length_volume {g0 : StandardInitialMetric} |
| 22 | (F : PartialStandardCapFlow g0) (P : RicciFlowCurvatureTheory.{0}) : |
| 23 | ∃ l0 V : ℝ, 0 < l0 ∧ 0 < V ∧ ∀ t ∈ Ico (F.lifetime / 2) F.lifetime, |
| 24 | ∀ _L : LGeodesicTheory F.flow t t, |
| 25 | ∀ _D : ReducedLengthDifferentialTheory F.flow t t, |
| 26 | ∀ _RV : ReducedVolumeTheory F.flow t t, ∀ p : StandardCapSpace, |
| 27 | ∃ Omega : Set StandardCapSpace, IsOpen Omega ∧ |
| 28 | ENNReal.ofReal V ≤ calibratedMetricVolume (F.flow.metric (F.lifetime / 8)) Omega ∧ |
| 29 | ∀ y ∈ Omega, reducedLength F.flow t p y (t - F.lifetime / 8) ≤ l0 := by |
| 30 | have hL := F.lifetime_pos |
| 31 | have hslab : F.lifetime / 2 ∈ Ico 0 F.lifetime := by |
| 32 | constructor <;> linarith [F.lifetime_pos] |
| 33 | obtain ⟨delta, d, V, hdelta, hd, hV, hcharts⟩ := |
| 34 | partialFlow_early_coordinate_packet F P hslab |
| 35 | obtain ⟨K, hK, hcurv⟩ := F.curvature_locally_bounded _ hslab.1 hslab.2 |
| 36 | obtain ⟨C, hC, htransition⟩ := Real.smoothTransition.exists_deriv_bound |
| 37 | let speed := d * (C / ((F.lifetime / 8) / (2 * Real.sqrt F.lifetime))) * delta |
| 38 | let A := 2 * F.lifetime * (9 * K) + speed ^ 2 / 2 |
| 39 | have hA : 0 ≤ A := by dsimp [A]; positivity |
| 40 | let N := (3 + A) * Real.sqrt F.lifetime |
| 41 | have hN : 0 ≤ N := mul_nonneg (by linarith) (Real.sqrt_nonneg _) |
| 42 | let l0 := 1 + N / (2 * Real.sqrt (F.lifetime / 8)) |
| 43 | have hl0 : 0 < l0 := by dsimp [l0]; positivity |
| 44 | refine ⟨l0, V, hl0, hV, ?_⟩ |
| 45 | intro t ht L D RV p |
| 46 | have h1 : 0 < t - F.lifetime / 4 := by linarith [ht.1, F.lifetime_pos] |
| 47 | have h0 : 0 < t - F.lifetime / 8 := by linarith [ht.1, F.lifetime_pos] |
| 48 | have h10 : t - F.lifetime / 4 < t - F.lifetime / 8 := by linarith [F.lifetime_pos] |
| 49 | have h1max : t - F.lifetime / 4 < t := by linarith [F.lifetime_pos] |
| 50 | have h0max : t - F.lifetime / 8 < t := by linarith [F.lifetime_pos] |
| 51 | obtain ⟨q, _, hq⟩ := RV.minimum_bound p _ h1 h1max |
| 52 | obtain ⟨f, hf0, hsource, hpacket⟩ := hcharts q |
| 53 | let Omega := f '' Metric.ball 0 delta |
| 54 | have hOmega : IsOpen Omega := |
| 55 | f.toOpenPartialHomeomorph.isOpen_image_of_subset_source Metric.isOpen_ball hsource |
| 56 | have hsigma : F.lifetime / 8 ∈ Icc 0 (F.lifetime / 2) := by |
| 57 | constructor <;> linarith [F.lifetime_pos] |
| 58 | refine ⟨Omega, hOmega, (hpacket _ hsigma).2, ?_⟩ |
| 59 | rintro y ⟨z, hz, rfl⟩ |
| 60 | have hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f (Metric.ball 0 delta) := |
| 61 | f.contMDiffOn_toFun.mono hsource |
| 62 | let beta := coordinateConnector f (Real.sqrt (t - F.lifetime / 4)) |
| 63 | (Real.sqrt (t - F.lifetime / 8)) z |
| 64 | have hend := coordinateConnector_endpoints f (Real.sqrt_lt_sqrt h1.le h10) z |
| 65 | have hstart : beta (Real.sqrt (t - F.lifetime / 4)) = q := hend.1.trans hf0 |
| 66 | have hact : (∫ s in Real.sqrt (t - F.lifetime / 4)..Real.sqrt (t - F.lifetime / 8), |
| 67 | Proofs.M09.squareCurveActionDensity F.flow t beta s) ≤ A * Real.sqrt F.lifetime := |
| 68 | late_coordinate_connector_action_le F P hdelta hd hC hK htransition hcurv f hf |
| 69 | (fun u hu => (hpacket u hu).1) ht hz |
| 70 | obtain ⟨E⟩ := D.exponential_geometry p |
| 71 | have hwindow : Icc (t - t) t ⊆ Ico 0 F.lifetime := by |
| 72 | intro u hu |
| 73 | exact ⟨by linarith [hu.1], hu.2.trans_lt ht.2⟩ |
| 74 | have hred := reducedLength_le_of_smooth_connector F.flow P t t |
| 75 | (by linarith [ht.1, F.lifetime_pos]) hwindow L h1 h10 h0max p q (f z) |
| 76 | E hq beta (coordinateConnector_contMDiff f _ _ hz hf) hstart hend.2 hact |
| 77 | have hsqrt1 : Real.sqrt (t - F.lifetime / 4) ≤ Real.sqrt F.lifetime := |
| 78 | Real.sqrt_le_sqrt (by linarith [ht.2, F.lifetime_pos]) |
| 79 | have hsqrt0 : Real.sqrt (F.lifetime / 8) ≤ Real.sqrt (t - F.lifetime / 8) := |
| 80 | Real.sqrt_le_sqrt (by linarith [ht.1, F.lifetime_pos]) |
| 81 | have hnum : (3 : ℝ) * Real.sqrt (t - F.lifetime / 4) + A * Real.sqrt F.lifetime ≤ N := by |
| 82 | dsimp [N] |
| 83 | nlinarith |
| 84 | calc |
| 85 | reducedLength F.flow t p (f z) (t - F.lifetime / 8) ≤ |
| 86 | N / (2 * Real.sqrt (t - F.lifetime / 8)) := |
| 87 | hred.trans (div_le_div_of_nonneg_right hnum (by positivity)) |
| 88 | _ ≤ N / (2 * Real.sqrt (F.lifetime / 8)) := |
| 89 | div_le_div_of_nonneg_left hN |
| 90 | (mul_pos (by norm_num) (Real.sqrt_pos.mpr (by linarith [F.lifetime_pos]))) |
| 91 | (mul_le_mul_of_nonneg_left hsqrt0 (by norm_num)) |
| 92 | _ ≤ l0 := by dsimp [l0]; linarith |
| 93 | |
| 94 | end PoincareMT.M34 |