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.LGeometry.Confinement.CapScalarRate |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cylinder.TrackedBall |
| 3 | |
| 4 | /-! |
| 5 | # A uniform scalar lower bound on every newly inserted cap |
| 6 | |
| 7 | Morgan--Tian Lemma 11.2 and Proposition 16.5, pp. 268-269 and 370, |
| 8 | used in the seed-cylinder argument on p. 393. The same actual M44 |
| 9 | comparison gives its birth-time scalar bound in both persistence |
| 10 | alternatives. The cap's closed outer-ball inclusion places every cap |
| 11 | point inside a slightly larger comparison ball. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M46 |
| 22 | |
| 23 | /-- The scalar-rate bound at one shared comparison tolerance gives |
| 24 | the birth estimate on the entire inserted closed cap in either literal |
| 25 | persistence alternative, Proposition 16.5, p. 370. -/ |
| 26 | theorem insertedCap_scalarLower_of_persistence |
| 27 | {F : SurgeryFlowData.{u}} (O : SurgeryObservation F) |
| 28 | {t c theta A eta : ℝ} (hT : t ∈ F.surgery_times) |
| 29 | [Nonempty (F.slice t).carrier] (i : Fin (F.event t hT).cap_count) |
| 30 | (htheta : 0 < theta) (hA : F.standard_initial.cylindrical_end.radius + 5 < A) |
| 31 | (htH : t < O.H) |
| 32 | (hbound : ∀ (J : Set ℝ) (U : Set (F.slice t).carrier) |
| 33 | (e : SurgeryFlowCylinder F (F.slice t) t ((F.parameters.h t)⁻¹ ^ 2) J U) |
| 34 | (initial : SurgeryCapInitialComparison F t hT i A), |
| 35 | SurgeryCapFamilyComparison F O.standard_flow A eta e initial.chart → |
| 36 | ∀ (s : ℝ) (hs : s ∈ J), s ≤ theta → |
| 37 | ∀ x ∈ F.standard_initial.metric.ball 0 A, |
| 38 | c / (2 * (1 - s) * (F.parameters.h t) ^ 2) ≤ |
| 39 | (F.connection (t + s / ((F.parameters.h t)⁻¹ ^ 2))).scalarCurvature |
| 40 | (e.forward s hs (initial.chart x))) |
| 41 | (hpersist : SurgeryCapPersistenceAlternative F O t hT i A eta theta) : |
| 42 | ∀ y ∈ ((F.event t hT).caps i).carrier, |
| 43 | c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature y := by |
| 44 | have hApos : 0 < A := by linarith [F.standard_initial.cylindrical_end.radius_pos] |
| 45 | have hh : 0 < F.parameters.h t := |
| 46 | F.parameters.h_pos t (F.time_domain_nonnegative (F.surgery_times_subset hT)) |
| 47 | let U := (F.metric t).ball ((F.event t hT).caps i).tip (A * F.parameters.h t) |
| 48 | have hcap : ((F.event t hT).caps i).carrier ⊆ U := by |
| 49 | intro y hy |
| 50 | have houter := ((F.event t hT).caps i).outer_ball hy |
| 51 | change (F.metric t).edist ((F.event t hT).caps i).tip y < |
| 52 | ENNReal.ofReal (A * F.parameters.h t) |
| 53 | apply houter.trans_lt |
| 54 | apply (ENNReal.ofReal_lt_ofReal_iff (mul_pos hApos hh)).mpr |
| 55 | nlinarith |
| 56 | have hbirth {J : Set ℝ} |
| 57 | (e : SurgeryFlowCylinder F (F.slice t) t ((F.parameters.h t)⁻¹ ^ 2) J U) |
| 58 | (initial : SurgeryCapInitialComparison F t hT i A) |
| 59 | (comparison : SurgeryCapFamilyComparison F O.standard_flow A eta e initial.chart) |
| 60 | (hzero : (0 : ℝ) ∈ J) |
| 61 | (hidentity : ∀ h y, y ∈ U → HEq (e.forward 0 h y) y) : |
| 62 | ∀ y ∈ U, c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature y := by |
| 63 | intro y hy |
| 64 | have himage : initial.chart '' F.standard_initial.metric.ball 0 A = U := |
| 65 | comparison.choose_spec.2.2.2.1 |
| 66 | obtain ⟨z, hz, rfl⟩ := himage.symm ▸ hy |
| 67 | have hphysical := hbound J U e initial comparison 0 hzero htheta.le z hz |
| 68 | have he : (⟨t + 0 / ((F.parameters.h t)⁻¹ ^ 2), e.forward 0 hzero (initial.chart z)⟩ : |
| 69 | Σ s, (F.slice s).carrier) = ⟨t, initial.chart z⟩ := |
| 70 | Sigma.ext (by simp) (hidentity hzero (initial.chart z) hy) |
| 71 | have hscalar := congrArg |
| 72 | (fun q : Σ s, (F.slice s).carrier => (F.connection q.1).scalarCurvature q.2) he |
| 73 | change (F.connection (t + 0 / ((F.parameters.h t)⁻¹ ^ 2))).scalarCurvature |
| 74 | (e.forward 0 hzero (initial.chart z)) = (F.connection t).scalarCurvature (initial.chart z) |
| 75 | at hscalar |
| 76 | rw [hscalar] at hphysical |
| 77 | simpa only [sub_zero, mul_one] using hphysical |
| 78 | intro y hy |
| 79 | rcases hpersist with ⟨e, initial, comparison, hidentity⟩ | |
| 80 | ⟨tPlus, htPlus, _, _, e, initial, comparison, hidentity, _⟩ |
| 81 | · exact hbirth e initial comparison |
| 82 | ⟨le_rfl, surgeryCapDuration_pos htH hh htheta⟩ hidentity y (hcap hy) |
| 83 | · exact hbirth e initial comparison |
| 84 | ⟨le_rfl, div_pos (sub_pos.mpr htPlus) (sq_pos_of_pos hh)⟩ hidentity y (hcap hy) |
| 85 | |
| 86 | /-- The actual scalar-rate tolerance may be chosen before the flow |
| 87 | and used for the preceding whole-cap birth bound, Proposition 16.5, |
| 88 | p. 370. The shared-input form above permits the same tolerance to feed |
| 89 | the action barrier and the low-curvature cylinder. -/ |
| 90 | theorem exists_insertedCap_scalarLower_tolerance {g0 : StandardInitialMetric} |
| 91 | (P : RepairedCapPersistenceData.{u} g0) {c theta A : ℝ} |
| 92 | (hc : 0 < c) (htheta : 0 < theta) (hthetaOne : theta < 1) |
| 93 | (hA : g0.cylindrical_end.radius + 5 < A) |
| 94 | (hrate : ∀ s ∈ Ico 0 P.standard_cap.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 95 | c / (1 - s) ≤ (P.standard_cap.flow.connection s).scalarCurvature x) : |
| 96 | ∃ eta : ℝ, 0 < eta ∧ eta ≤ 1 / 2 ∧ |
| 97 | ∀ (F : SurgeryFlowData.{u}) (_hinitial : F.standard_initial = g0) |
| 98 | (O : SurgeryObservation F), HEq O.standard_flow P.standard_cap.flow → |
| 99 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) (_hn : Nonempty (F.slice t).carrier) |
| 100 | (i : Fin (F.event t hT).cap_count), |
| 101 | t < O.H → SurgeryCapPersistenceAlternative F O t hT i A eta theta → |
| 102 | ∀ y ∈ ((F.event t hT).caps i).carrier, |
| 103 | c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature y := by |
| 104 | have hApos : 0 < A := by linarith [g0.cylindrical_end.radius_pos] |
| 105 | obtain ⟨eta, heta, hetaHalf, hbound⟩ := |
| 106 | exists_actualCap_scalarRate_tolerance P hc hthetaOne hApos hrate |
| 107 | refine ⟨eta, heta, hetaHalf, ?_⟩ |
| 108 | intro F hinitial O hmodel t hT hn i htH hpersist |
| 109 | have hh : 0 < F.parameters.h t := |
| 110 | F.parameters.h_pos t (F.time_domain_nonnegative (F.surgery_times_subset hT)) |
| 111 | exact insertedCap_scalarLower_of_persistence O hT i htheta (hinitial.symm ▸ hA) htH |
| 112 | (fun J U e initial comparison => |
| 113 | hbound F hinitial O.standard_flow hmodel t hT hn i J U e initial comparison hh) hpersist |
| 114 | |
| 115 | end PoincareMT.Proofs.M46 |