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.Exponential.ExponentialFrames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Initial.InitialJetConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Geometry.FrameCompactness |
| 4 | |
| 5 | /-! |
| 6 | # Convergent frames of actual initial exponentials |
| 7 | |
| 8 | The actual comparison-coordinate initial frames are uniformly bounded |
| 9 | by the proved ellipticity estimate. A subsequence converges to an |
| 10 | orthonormal frame of the fixed standard metric. Morgan--Tian, |
| 11 | Corollary 16.7, p. 372; see `derivations/19-normalized-exponential-family.md`. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M44 |
| 23 | |
| 24 | local notation "E" => StandardCapSpace |
| 25 | local notation "Bilin" => E →L[ℝ] E →L[ℝ] ℝ |
| 26 | |
| 27 | noncomputable local instance exponentialFrameBilinNormedAddCommGroup : NormedAddCommGroup Bilin := |
| 28 | ContinuousLinearMap.toNormedAddCommGroup |
| 29 | |
| 30 | noncomputable local instance exponentialFrameBilinNormedSpace : NormedSpace ℝ Bilin := |
| 31 | ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | variable (g₀ : StandardInitialMetric) (S : ℕ → GeneralizedSliceCarrier.{u}) |
| 34 | (g : (n : ℕ) → RiemannianMetric 3 (S n).carrier) |
| 35 | (tip : (n : ℕ) → (S n).carrier) (scale eta R : ℕ → ℝ) |
| 36 | (Q : (n : ℕ) → SurgeryCapClose g₀ (S n) (g n) (tip n) (scale n) (eta n)) |
| 37 | (D : (n : ℕ) → NormalizedCapExponential (Q n) (R n)) |
| 38 | |
| 39 | /-- The actual initial frames are bounded eventually by one positive |
| 40 | constant determined by the model metric. Source: Corollary 16.7, p. 372. -/ |
| 41 | theorem exists_initial_exponential_frame_bound (heta : Tendsto eta atTop (𝓝 0)) : |
| 42 | ∃ C : ℝ, 0 < C ∧ ∀ᶠ n in atTop, ‖fderiv ℝ (D n).coordinateMap 0‖ ≤ C := by |
| 43 | obtain ⟨c, hc, hbound⟩ := SurgeryCapClose.exists_normalized_uniform_lower_bound |
| 44 | g₀ (isCompact_singleton (x := (0 : E))) |
| 45 | obtain ⟨delta, hdelta, hdomain⟩ := exists_initial_comparison_domain_threshold |
| 46 | g₀ (isCompact_singleton (x := (0 : E))) 0 |
| 47 | refine ⟨Real.sqrt c⁻¹, Real.sqrt_pos.mpr (inv_pos.mpr hc), ?_⟩ |
| 48 | filter_upwards [heta.eventually (gt_mem_nhds (lt_min (by norm_num : (0 : ℝ) < 1 / 2) |
| 49 | hdelta))] with n hn |
| 50 | apply norm_frame_le_of_quadratic_lower_bound hc |
| 51 | (fun v => hbound (S n) (g n) (tip n) (scale n) (eta n) (Q n) |
| 52 | (hn.le.trans (min_le_left _ _)) |
| 53 | ((hdomain (eta n) (Q n).eta_pos (hn.le.trans (min_le_right _ _))).2) |
| 54 | 0 (mem_singleton 0) v) |
| 55 | (fderiv ℝ (D n).coordinateMap 0) (D n).coordinate_frame_inner |
| 56 | |
| 57 | /-- The frames of the actual normalized exponential maps have a |
| 58 | subsequence converging to an invertible orthonormal frame for the |
| 59 | fixed standard initial metric. Source: Corollary 16.7, p. 372. -/ |
| 60 | theorem exists_subseq_initial_exponential_frames (heta : Tendsto eta atTop (𝓝 0)) : |
| 61 | ∃ (φ : ℕ → ℕ), StrictMono φ ∧ ∃ L₀ : E ≃L[ℝ] E, |
| 62 | Tendsto (fun n => fderiv ℝ (D (φ n)).coordinateMap 0) atTop |
| 63 | (𝓝 L₀.toContinuousLinearMap) ∧ |
| 64 | ∀ v w, g₀.metric.inner 0 (L₀ v) (L₀ w) = inner ℝ v w := by |
| 65 | have hzero : TendstoUniformlyOn (fun n => (Q n).normalizedCoefficients) |
| 66 | g₀.metric.euclideanCoefficients atTop ({0} : Set E) := by |
| 67 | simpa only [Function.comp_def, iteratedFDeriv_zero_apply] using |
| 68 | (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 69 | (0 : Fin 0 → E)).comp_tendstoUniformlyOn |
| 70 | (tendstoUniformlyOn_initial_coefficient_jets g₀ S g tip scale eta Q heta 0 |
| 71 | (isCompact_singleton (x := (0 : E)))) |
| 72 | obtain ⟨C, _, hC⟩ := exists_initial_exponential_frame_bound g₀ S g tip scale eta R Q D heta |
| 73 | exact exists_subseq_orthonormal_frame_of_eventual_bound (hzero.tendsto_at (mem_singleton 0)) |
| 74 | (fun n => fderiv ℝ (D n).coordinateMap 0) (fun n => (D n).coordinate_frame_inner) hC |
| 75 | |
| 76 | end PoincareMT.M44 |