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.Limit.Retained.RetainedBilinearLimit |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Coordinates.TwoJetModulus |
| 3 | |
| 4 | /-! |
| 5 | # Actual terminal metric two-jets |
| 6 | |
| 7 | The primitive metric limit implies convergence of the full two-jet |
| 8 | in every regular inverse coordinate chart. This uses the given |
| 9 | terminal metric and regular identification, without retention. |
| 10 | Morgan--Tian, Claim 16.10, pp. 374-375; M44 derivation 70. |
| 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" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | noncomputable local instance terminalJetCoefficientNorm : |
| 28 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 29 | |
| 30 | noncomputable local instance terminalJetCoefficientSpace : |
| 31 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | noncomputable local instance terminalTwoJetNorm : |
| 34 | NormedAddCommGroup (MetricTwoJet 3) := Prod.normedAddCommGroup |
| 35 | |
| 36 | noncomputable local instance terminalTwoJetSpace : |
| 37 | NormedSpace ℝ (MetricTwoJet 3) := Prod.normedSpace |
| 38 | |
| 39 | /-- The primitive spatial limit determines the actual two-jet |
| 40 | limit at every point in a smooth regular coordinate domain. |
| 41 | Source: Claim 16.10, pp. 374-375; M44 derivation 70. -/ |
| 42 | theorem tendsto_twoJet_of_surgeryMetricLimitOn |
| 43 | {A B : GeneralizedSliceCarrier.{u}} |
| 44 | {g : ℝ → RiemannianMetric 3 A.carrier} {gT : RiemannianMetric 3 B.carrier} |
| 45 | {f : A.carrier → B.carrier} {V : Set A.carrier} {T : ℝ} |
| 46 | (hlim : SurgeryMetricLimitOn A B g gT f V T) |
| 47 | (q : A.carrier) (hq : q ∈ V) {U : Set E} (hU : IsOpen U) |
| 48 | (hchart : U ⊆ (extChartAt (𝓡 3) q).target) |
| 49 | (hV : (extChartAt (𝓡 3) q).symm '' U ⊆ V) |
| 50 | (hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (f ∘ (extChartAt (𝓡 3) q).symm) U) |
| 51 | {x : E} (hx : x ∈ U) : |
| 52 | Tendsto (fun t => metricTwoJet |
| 53 | ((g t).pullbackCoefficients (extChartAt (𝓡 3) q).symm) x) (𝓝[<] T) |
| 54 | (𝓝 (metricTwoJet (gT.pullbackCoefficients |
| 55 | (f ∘ (extChartAt (𝓡 3) q).symm)) x)) := by |
| 56 | apply Metric.tendsto_nhds.mpr |
| 57 | intro eta heta |
| 58 | have hj (j : ℕ) : ∀ᶠ t in 𝓝[<] T, |
| 59 | ‖iteratedFDeriv ℝ j ((g t).pullbackCoefficients (extChartAt (𝓡 3) q).symm) x - |
| 60 | iteratedFDeriv ℝ j (gT.pullbackCoefficients |
| 61 | (f ∘ (extChartAt (𝓡 3) q).symm)) x‖ ≤ eta / 2 := by |
| 62 | obtain ⟨d, hd, hbound⟩ := bilinear_jets_of_surgeryMetricLimitOn hlim q hq hU |
| 63 | hchart hV hf j (isCompact_singleton (x := x)) (singleton_subset_iff.mpr hx) |
| 64 | (half_pos heta) |
| 65 | filter_upwards [Ioo_mem_nhdsLT (by linarith : T - d < T)] with t ht |
| 66 | exact (hbound t ht.1 ht.2 x (mem_singleton x)).le |
| 67 | filter_upwards [hj 0, hj 1, hj 2] with t h0 h1 h2 |
| 68 | rw [dist_eq_norm] |
| 69 | apply (norm_metricTwoJet_sub_le _ _ x ?_).trans_lt (half_lt_self heta) |
| 70 | intro j hj |
| 71 | interval_cases j <;> assumption |
| 72 | |
| 73 | end PoincareMT.M44 |