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.Limit.Finite.LimitFiniteChartBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceJetsSpatial |
| 3 | |
| 4 | /-! |
| 5 | # Spatial jets from the actual retained anchor |
| 6 | |
| 7 | Finite terminal jets in the original chart propagate across the recent |
| 8 | closed half-slab by the actual coordinate evolution. MT Proposition |
| 9 | 17.1; limit-finite-retained-jets.md, AC2. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | private noncomputable local instance finiteChartJetsDualAdd : NormedAddCommGroup (E →L[ℝ] ℝ) := |
| 25 | ContinuousLinearMap.toNormedAddCommGroup |
| 26 | private noncomputable local instance finiteChartJetsDualSpace : NormedSpace ℝ (E →L[ℝ] ℝ) := |
| 27 | ContinuousLinearMap.toNormedSpace |
| 28 | private noncomputable local instance finiteChartJetsBilinAdd : |
| 29 | NormedAddCommGroup (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup |
| 30 | private noncomputable local instance finiteChartJetsBilinSpace : |
| 31 | NormedSpace ℝ (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | /-- Actual finite terminal metric jets and the raw source curvature |
| 34 | give uniform spatial jets in the same possibly non-normal chart. -/ |
| 35 | theorem limitFinite_chart_spatial_jets (P : RicciFlowCurvatureTheory.{u}) |
| 36 | {τ R K ρ a0 b0 Z : ℝ} (hτ : 0 < τ) (hK : 0 < K) |
| 37 | (hρ : 0 < ρ) (hρR : 2 * ρ < R) (ha0 : 0 < a0) (hb0 : 0 ≤ b0) |
| 38 | (hZ : 1 ≤ Z) (m : ℕ) : |
| 39 | ∃ B : ℝ, 0 ≤ B ∧ ∀ {M : Type u} [TopologicalSpace M] [ChartedSpace E M] |
| 40 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [SecondCountableTopology M], |
| 41 | ∀ (F : RicciFlow 3 M (Icc (-τ) 0)) |
| 42 | (Φ : PartialDiffeomorph (𝓡 3) (𝓡 3) E M ∞), |
| 43 | Φ.source = Metric.ball 0 R → |
| 44 | (∀ t ∈ Icc (-τ) 0, ∀ y ∈ Φ '' Metric.ball 0 R, |
| 45 | (F.connection t).curvatureTensorNorm y ≤ K) → |
| 46 | (∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ v : E, |
| 47 | a0 * ‖v‖ ^ 2 ≤ (F.metric 0).pullbackCoefficients Φ x v v ∧ |
| 48 | (F.metric 0).pullbackCoefficients Φ x v v ≤ b0 * ‖v‖ ^ 2) → |
| 49 | (∀ x ∈ Metric.closedBall 0 ρ, ∀ j ≤ m, |
| 50 | ‖iteratedFDeriv ℝ j ((F.metric 0).pullbackCoefficients Φ) x‖ ≤ Z) → |
| 51 | ∀ t ∈ Icc (-(τ / 2)) 0, ∀ x ∈ Metric.closedBall 0 ρ, ∀ j ≤ m, |
| 52 | ‖iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients Φ) x‖ ≤ B := by |
| 53 | classical |
| 54 | let a := a0 * Real.exp (-54 * K * τ) |
| 55 | let b := b0 * Real.exp (54 * K * τ) |
| 56 | have ha : 0 < a := mul_pos ha0 (Real.exp_pos _) |
| 57 | have hb : 0 ≤ b := mul_nonneg hb0 (Real.exp_pos _).le |
| 58 | have hsub : Icc (-(τ / 2)) 0 ⊆ Icc (-τ) 0 := by |
| 59 | intro t ht |
| 60 | exact ⟨by linarith [ht.1], ht.2⟩ |
| 61 | have htwo : Metric.closedBall (0 : E) ρ ⊆ Metric.closedBall 0 (2 * ρ) := |
| 62 | Metric.closedBall_subset_closedBall (by linarith) |
| 63 | have houter : Metric.closedBall (0 : E) ρ ⊆ Metric.ball 0 (3 * ρ / 2) := |
| 64 | Metric.closedBall_subset_ball (by linarith) |
| 65 | choose D hD hcurv using fun j => |
| 66 | limitFinite_chart_curvature (b0 := b0) P hτ hK hρ hρR ha0 j |
| 67 | induction m with |
| 68 | | zero => |
| 69 | refine ⟨b, hb, ?_⟩ |
| 70 | intro M _ _ _ _ _ F Φ _hsource hraw hterminal _hjet t ht x hx j hj |
| 71 | have hj0 : j = 0 := by omega |
| 72 | subst j |
| 73 | rw [norm_iteratedFDeriv_zero] |
| 74 | apply HarmonicCoordinates.norm_bilinear_le_of_quadratic _ hb |
| 75 | · exact fun v w => (F.metric t).symm _ _ _ |
| 76 | · intro v |
| 77 | have hnn : 0 ≤ (F.metric t).pullbackCoefficients Φ x v v := by |
| 78 | let w := mfderiv (𝓡 3) (𝓡 3) Φ x v |
| 79 | change 0 ≤ (F.metric t).inner (Φ x) w w |
| 80 | by_cases hw : w = 0 |
| 81 | · simp [hw] |
| 82 | · exact ((F.metric t).pos _ _ hw).le |
| 83 | rw [abs_of_nonneg hnn] |
| 84 | exact (limitFinite_chart_closed_bounds hτ hK.le hρR F Φ hraw hterminal |
| 85 | (hsub ht) (htwo hx) v).2 |
| 86 | | succ q ih => |
| 87 | obtain ⟨B, hB, hlow⟩ := ih |
| 88 | let A := max B 1 |
| 89 | have hA : 1 ≤ A := le_max_right _ _ |
| 90 | obtain ⟨L, hL, hevol⟩ := SpacetimeBounds.exists_affine_spatialJet_evolution_bound |
| 91 | 3 q D hD ha hb A hA |
| 92 | let Bnext := Z * Real.exp (L * τ) |
| 93 | refine ⟨max B Bnext, hB.trans (le_max_left _ _), ?_⟩ |
| 94 | intro M _ _ _ _ _ F Φ hsource hraw hterminal hjet t ht x hx j hj |
| 95 | have hsmooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ Φ (Metric.ball 0 R) := by |
| 96 | simpa only [hsource] using Φ.contMDiffOn |
| 97 | have hinv (y : E) (hy : y ∈ Metric.ball 0 R) : |
| 98 | (mfderiv (𝓡 3) (𝓡 3) Φ y).IsInvertible := |
| 99 | ⟨(Φ.isLocalDiffeomorphAt (𝓡 3) (𝓡 3) ∞ |
| 100 | (hsource.symm ▸ hy)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 101 | have hlow' := hlow F Φ hsource hraw hterminal |
| 102 | (fun y hy n hn => hjet y hy n (hn.trans (Nat.le_succ q))) |
| 103 | rcases Nat.eq_or_lt_of_le hj with rfl | hj |
| 104 | · apply le_trans _ (le_max_right B Bnext) |
| 105 | let f := fun s => iteratedFDeriv ℝ (q + 1) ((F.metric s).pullbackCoefficients Φ) x |
| 106 | have hxR : x ∈ Metric.ball 0 R := Metric.closedBall_subset_ball hρR (htwo hx) |
| 107 | have hf : ContDiffOn ℝ 1 f (Icc (-τ) 0) := |
| 108 | (M44.contDiffOn_pullback_spatialJet_time (by linarith : -τ < 0) F |
| 109 | Metric.isOpen_ball hsmooth (q + 1) hxR).of_le (by simp) |
| 110 | apply terminalSourceJets_backward_norm_bound hτ hL hZ f hf |
| 111 | (hjet x hx (q + 1) le_rfl) ?_ t ht |
| 112 | intro s hs |
| 113 | let G := M44.closedSlabInterior (by linarith : -τ < 0) F |
| 114 | have hrecent : s ∈ Icc (-(τ / 2)) 0 := Ioo_subset_Icc_self hs |
| 115 | have hsG : s ∈ Ioo (-τ) 0 := ⟨by linarith [hs.1], hs.2⟩ |
| 116 | exact hevol G isOpen_Ioo Metric.isOpen_ball hsmooth hinv hsG hxR |
| 117 | (fun v => (limitFinite_chart_closed_bounds hτ hK.le hρR F Φ hraw hterminal |
| 118 | (hsub hrecent) (htwo hx) v).1) |
| 119 | (fun v => (limitFinite_chart_closed_bounds hτ hK.le hρR F Φ hraw hterminal |
| 120 | (hsub hrecent) (htwo hx) v).2) |
| 121 | (fun n _ => hcurv n F Φ hsource hraw hterminal s hrecent x (houter hx)) |
| 122 | (fun n hn hnq => (hlow' s hrecent x hx n hnq).trans |
| 123 | ((le_max_left B 1).trans (by simpa only [pow_one] using pow_le_pow_right₀ hA hn))) |
| 124 | · exact (hlow' t ht x hx j (by omega)).trans (le_max_left _ _) |
| 125 | |
| 126 | end PoincareMT.M47 |