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.CanonicalInduction.Canonical.Neck.CanonicalNeckCapCapture |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Blowup.Controls.BlowupControlsCapClock |
| 3 | |
| 4 | /-! |
| 5 | # Fixed cap capture from the actual bottom distance budget |
| 6 | |
| 7 | The inserted cap bounds tip-to-contact distance, and its scalar floor |
| 8 | compares the original scale with the birth height. MT Lemma 17.7; |
| 9 | limit-cap-source-included.md, C2. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | /-- One radius captures the entire actual bottom image from its contact |
| 23 | distance budget, independently of the source carrier or elapsed time. -/ |
| 24 | theorem exists_source_bottom_cap_capture_radius |
| 25 | (g0 : StandardInitialMetric) {D K c : ℝ} (hD : 0 ≤ D) (hK : 0 < K) (hc : 0 < c) : |
| 26 | ∃ Rcap : ℝ, g0.cylindrical_end.radius + 5 < Rcap ∧ |
| 27 | ∀ (F : SurgeryFlowData.{u}), F.standard_initial = g0 → |
| 28 | ∀ (C : GeneralizedSliceCarrier.{u}) {base Q a : ℝ} {U : Set C.carrier} |
| 29 | (ha : a < 0) (E : SurgeryFlowCylinder F C base Q (Icc a 0) U), |
| 30 | let bottom : a ∈ Icc a 0 := ⟨le_rfl, ha.le⟩ |
| 31 | let birth := base + a / Q |
| 32 | ∀ (hT : birth ∈ F.surgery_times), ∀ [Nonempty (F.slice birth).carrier], |
| 33 | ∀ (i : Fin (F.event birth hT).cap_count) (contact : C.carrier), |
| 34 | E.forward a bottom contact ∈ ((F.event birth hT).caps i).carrier → |
| 35 | c / (2 * (F.parameters.h birth) ^ 2) ≤ |
| 36 | (F.connection birth).scalarCurvature (E.forward a bottom contact) → |
| 37 | (F.connection birth).scalarCurvature (E.forward a bottom contact) ≤ K * Q → |
| 38 | (∀ x ∈ U, (F.metric birth).edist (E.forward a bottom contact) |
| 39 | (E.forward a bottom x) ≤ ENNReal.ofReal (D / Real.sqrt Q)) → |
| 40 | ∀ x ∈ U, E.forward a bottom x ∈ |
| 41 | (F.metric birth).ball ((F.event birth hT).caps i).tip |
| 42 | (Rcap * F.parameters.h birth) := by |
| 43 | let L := 1 + 2 * K / c |
| 44 | let Acap := g0.cylindrical_end.radius + 5 |
| 45 | let Rcap := Acap + D * L + 1 |
| 46 | have hL : 0 < L := by dsimp only [L]; positivity |
| 47 | have hAcap : 0 < Acap := by |
| 48 | dsimp only [Acap] |
| 49 | linarith [g0.cylindrical_end.radius_pos] |
| 50 | refine ⟨Rcap, by dsimp only [Rcap, Acap]; nlinarith only [mul_nonneg hD hL.le], ?_⟩ |
| 51 | intro F hstandard C base Q a U ha E |
| 52 | dsimp only |
| 53 | intro hT hn i contact hcap hfloor hceiling hdistance x hx |
| 54 | let birth := base + a / Q |
| 55 | let h := F.parameters.h birth |
| 56 | let g := F.metric birth |
| 57 | let bottom : a ∈ Icc a 0 := ⟨le_rfl, ha.le⟩ |
| 58 | let z := E.forward a bottom contact |
| 59 | let w := E.forward a bottom x |
| 60 | let tip := ((F.event birth hT).caps i).tip |
| 61 | have hQ := E.scale_pos |
| 62 | have hh : 0 < h := |
| 63 | F.parameters.h_pos birth (F.time_domain_nonnegative (F.surgery_times_subset hT)) |
| 64 | have hl : 0 < (Real.sqrt Q)⁻¹ := inv_pos.mpr (Real.sqrt_pos.mpr hQ) |
| 65 | have hscale : (((Real.sqrt Q)⁻¹)⁻¹) ^ 2 = Q := by |
| 66 | rw [inv_inv, Real.sq_sqrt hQ.le] |
| 67 | have hratio : (Real.sqrt Q)⁻¹ ≤ L * h := |
| 68 | Proofs.M47.neck_scale_le_cap_height_of_scalar hc hK hl hh hfloor |
| 69 | (by simpa only [hscale] using hceiling) |
| 70 | have htip : g.edist tip z ≤ ENNReal.ofReal (Acap * h) := by |
| 71 | have houter := ((F.event birth hT).caps i).outer_ball hcap |
| 72 | have hAcapEq : F.standard_initial.cylindrical_end.radius + 5 = Acap := |
| 73 | congrArg (fun g0 : StandardInitialMetric => g0.cylindrical_end.radius + 5) hstandard |
| 74 | change g.edist tip z ≤ |
| 75 | ENNReal.ofReal (h * (F.standard_initial.cylindrical_end.radius + 5)) at houter |
| 76 | rw [hAcapEq] at houter |
| 77 | simpa only [mul_comm] using houter |
| 78 | have hscaled : D / Real.sqrt Q ≤ (D * L) * h := by |
| 79 | have hr := mul_le_mul_of_nonneg_left hratio hD |
| 80 | simpa only [div_eq_mul_inv, mul_assoc] using hr |
| 81 | have hstrict : Acap * h + D / Real.sqrt Q < Rcap * h := by |
| 82 | dsimp only [Rcap] |
| 83 | nlinarith only [hscaled, hh] |
| 84 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : (F.slice birth).carrier → Type _) := |
| 85 | ⟨g.toRiemannianMetric⟩ |
| 86 | change g.edist tip w < ENNReal.ofReal (Rcap * h) |
| 87 | calc |
| 88 | _ ≤ g.edist tip z + g.edist z w := Manifold.riemannianEDist_triangle |
| 89 | _ ≤ ENNReal.ofReal (Acap * h) + ENNReal.ofReal (D / Real.sqrt Q) := |
| 90 | add_le_add htip (hdistance x hx) |
| 91 | _ = ENNReal.ofReal (Acap * h + D / Real.sqrt Q) := |
| 92 | (ENNReal.ofReal_add (by positivity) (by positivity)).symm |
| 93 | _ < _ := (ENNReal.ofReal_lt_ofReal_iff (by positivity : 0 < Rcap * h)).mpr hstrict |
| 94 | |
| 95 | end PoincareMT.M47 |