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.Persistence.Comparison.Initial.InitialJetConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Coordinates.TwoJetModulus |
| 3 | |
| 4 | /-! |
| 5 | # A uniform initial two-jet cutoff on the fixed collar buffer |
| 6 | |
| 7 | The actual M36 intrinsic comparison gives any prescribed ordinary C2 |
| 8 | accuracy on a fixed compact set, before the physical flow is selected. |
| 9 | Morgan--Tian, Claim 16.6 and Lemma 16.8, pp. 371-373; |
| 10 | see M44 derivation 44. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | open SpacetimeBounds |
| 24 | |
| 25 | local notation "E" => StandardCapSpace |
| 26 | |
| 27 | noncomputable local instance initialTwoJetCoefficientNormedGroup : |
| 28 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 29 | |
| 30 | noncomputable local instance initialTwoJetCoefficientNormedSpace : |
| 31 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | noncomputable local instance initialTwoJetNormedGroup : |
| 34 | NormedAddCommGroup (MetricTwoJet 3) := Prod.normedAddCommGroup |
| 35 | |
| 36 | noncomputable local instance initialTwoJetNormedSpace : |
| 37 | NormedSpace ℝ (MetricTwoJet 3) := Prod.normedSpace |
| 38 | |
| 39 | /-- Any fixed compact two-jet tolerance follows from one positive |
| 40 | M36 comparison cutoff. Source: Claim 16.6 and Lemma 16.8, |
| 41 | pp. 371-373; M44 derivation 44. -/ |
| 42 | theorem exists_initial_twoJet_cutoff (g0 : StandardInitialMetric) |
| 43 | {K : Set E} (hK : IsCompact K) {accuracy : ℝ} (haccuracy : 0 < accuracy) : |
| 44 | ∃ delta : ℝ, 0 < delta ∧ |
| 45 | ∀ (S : GeneralizedSliceCarrier.{u}) (g : RiemannianMetric 3 S.carrier) |
| 46 | (tip : S.carrier) (scale eta : ℝ) (Q : SurgeryCapClose g0 S g tip scale eta), |
| 47 | eta ≤ delta → K ⊆ g0.metric.ball 0 eta⁻¹ ∧ |
| 48 | ∀ x ∈ K, ‖metricTwoJet Q.normalizedCoefficients x - |
| 49 | metricTwoJet g0.metric.euclideanCoefficients x‖ ≤ accuracy := by |
| 50 | classical |
| 51 | obtain ⟨d, hd, hdomain⟩ := exists_initial_comparison_domain_threshold g0 hK 2 |
| 52 | choose C hC hbound using fun j : Fin 3 => |
| 53 | SurgeryCapClose.exists_normalized_coefficient_jet_bound.{u} g0 hK j.val |
| 54 | let B := ∑ j : Fin 3, C j |
| 55 | have hB : 0 < B := Finset.sum_pos (fun j _ => hC j) Finset.univ_nonempty |
| 56 | refine ⟨min d (accuracy / B), lt_min hd (div_pos haccuracy hB), ?_⟩ |
| 57 | intro S g tip scale eta Q hsmall |
| 58 | obtain ⟨horder, hsub⟩ := hdomain eta Q.eta_pos (hsmall.trans (min_le_left _ _)) |
| 59 | refine ⟨hsub, ?_⟩ |
| 60 | intro x hx |
| 61 | apply norm_metricTwoJet_sub_le |
| 62 | intro j hj |
| 63 | let i : Fin 3 := ⟨j, by omega⟩ |
| 64 | have h := hbound i S g tip scale eta Q (hj.trans horder) hsub x hx |
| 65 | have hQ := Q.contDiffOn_normalizedCoefficients.contDiffAt |
| 66 | (Q.toPartialDiffeomorph.open_source.mem_nhds (hsub hx)) |
| 67 | have hg := g0.metric.contDiffAt_euclideanCoefficients x |
| 68 | rw [iteratedFDeriv_sub_apply |
| 69 | (hQ.of_le (by exact_mod_cast le_top)) (hg.of_le (by exact_mod_cast le_top))] at h |
| 70 | have hCB : C i ≤ B := Finset.single_le_sum (fun k _ => (hC k).le) (Finset.mem_univ i) |
| 71 | have hsmall' : B * eta ≤ accuracy := by |
| 72 | have hh := (le_div_iff₀ hB).mp (hsmall.trans (min_le_right _ _)) |
| 73 | simpa only [mul_comm] using hh |
| 74 | exact h.trans ((mul_le_mul_of_nonneg_right hCB Q.eta_pos.le).trans hsmall') |
| 75 | |
| 76 | end PoincareMT.M44 |