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.LimitFiniteChartJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceJetsMixed |
| 3 | |
| 4 | /-! |
| 5 | # Mixed source jets in the original retained chart |
| 6 | |
| 7 | Actual finite terminal jets and raw closed-cylinder curvature control the |
| 8 | entire recent half-cylinder, with a separate tail for each finite order. |
| 9 | MT Proposition 17.1; limit-finite-retained-jets.md, AC3. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 23 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 24 | |
| 25 | private noncomputable local instance finiteChartMixedDualAdd : NormedAddCommGroup (E →L[ℝ] ℝ) := |
| 26 | ContinuousLinearMap.toNormedAddCommGroup |
| 27 | private noncomputable local instance finiteChartMixedDualSpace : NormedSpace ℝ (E →L[ℝ] ℝ) := |
| 28 | ContinuousLinearMap.toNormedSpace |
| 29 | private noncomputable local instance finiteChartMixedBilinAdd : |
| 30 | NormedAddCommGroup V := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | private noncomputable local instance finiteChartMixedBilinSpace : |
| 32 | NormedSpace ℝ V := ContinuousLinearMap.toNormedSpace |
| 33 | |
| 34 | variable {α : Type v} (l : Filter α) (M : α → Type u) |
| 35 | [∀ k, TopologicalSpace (M k)] [∀ k, ChartedSpace E (M k)] |
| 36 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] [∀ k, T2Space (M k)] |
| 37 | [∀ k, SecondCountableTopology (M k)] |
| 38 | |
| 39 | /-- Raw source curvature and original terminal jets produce all actual |
| 40 | mixed jets uniformly on the whole recent open half-cylinder. -/ |
| 41 | theorem limitFinite_chart_mixed_jets (P : RicciFlowCurvatureTheory.{u}) |
| 42 | {τ R K ρ a0 b0 : ℝ} (hτ : 0 < τ) (hK : 0 < K) |
| 43 | (hρ : 0 < ρ) (hρR : 2 * ρ < R) (ha0 : 0 < a0) (hb0 : 0 ≤ b0) |
| 44 | (F : ∀ k, RicciFlow 3 (M k) (Icc (-τ) 0)) |
| 45 | (Φ : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) E (M k) ∞) |
| 46 | (hsource : ∀ k, (Φ k).source = Metric.ball 0 R) |
| 47 | (hraw : ∀ᶠ k in l, ∀ t ∈ Icc (-τ) 0, ∀ y ∈ Φ k '' Metric.ball 0 R, |
| 48 | ((F k).connection t).curvatureTensorNorm y ≤ K) |
| 49 | (hquad : ∀ᶠ k in l, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ v : E, |
| 50 | a0 * ‖v‖ ^ 2 ≤ ((F k).metric 0).pullbackCoefficients (Φ k) x v v ∧ |
| 51 | ((F k).metric 0).pullbackCoefficients (Φ k) x v v ≤ b0 * ‖v‖ ^ 2) |
| 52 | (hterminal : ∀ m : ℕ, ∃ Z : ℝ, 1 ≤ Z ∧ ∀ᶠ k in l, |
| 53 | ∀ x ∈ Metric.closedBall 0 ρ, ∀ j ≤ m, |
| 54 | ‖iteratedFDeriv ℝ j (((F k).metric 0).pullbackCoefficients (Φ k)) x‖ ≤ Z) : |
| 55 | ∀ m : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 56 | ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ Metric.closedBall 0 ρ, |
| 57 | ‖iteratedFDeriv ℝ m (fun p : ℝ × E => |
| 58 | ((F k).metric p.1).pullbackCoefficients (Φ k) p.2) (t, x)‖ ≤ B := by |
| 59 | let f := fun k (p : ℝ × E) => ((F k).metric p.1).pullbackCoefficients (Φ k) p.2 |
| 60 | let J := fun _ : α => Ioo (-τ) 0 |
| 61 | let U := fun _ : α => Metric.ball (0 : E) R |
| 62 | let S := fun _ : α => Ioo (-(τ / 2)) 0 ×ˢ Metric.closedBall (0 : E) ρ |
| 63 | have hsubset : ∀ k, S k ⊆ J k ×ˢ U k := by |
| 64 | intro k p hp |
| 65 | exact ⟨⟨by linarith [hp.1.1], hp.1.2⟩, |
| 66 | Metric.closedBall_subset_ball (by linarith : ρ < R) hp.2⟩ |
| 67 | have hPhi (k : α) : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (Φ k) (U k) := by |
| 68 | simpa only [hsource k] using (Φ k).contMDiffOn |
| 69 | have hPhiInv (k : α) (x : E) (hx : x ∈ U k) : |
| 70 | (mfderiv (𝓡 3) (𝓡 3) (Φ k) x).IsInvertible := |
| 71 | ⟨((Φ k).isLocalDiffeomorphAt (𝓡 3) (𝓡 3) ∞ |
| 72 | ((hsource k).symm ▸ hx)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 73 | have hsmooth : ∀ k, ContDiffOn ℝ ∞ (f k) (J k ×ˢ U k) := by |
| 74 | intro k |
| 75 | exact (M44.contDiffOn_pullbackCoefficients_within (F k) Metric.isOpen_ball |
| 76 | (hPhi k)).mono (prod_mono Ioo_subset_Icc_self (Subset.refl _)) |
| 77 | have hinv : ∀ k p, p ∈ J k ×ˢ U k → (f k p).IsInvertible := by |
| 78 | intro k p hp |
| 79 | exact ((F k).metric p.1).isInvertible_pullbackCoefficients (hPhiInv k p.2 hp.2).injective |
| 80 | have hevol : ∀ k t, t ∈ J k → ∀ x ∈ U k, |
| 81 | HasDerivAt (fun s => f k (s, x)) |
| 82 | (SpacetimeBounds.ricciFlowOperator 3 |
| 83 | (SpacetimeBounds.metricTwoJet (fun y => f k (t, y)) x)) t := by |
| 84 | intro k t ht x hx |
| 85 | exact M44.hasDerivAt_pullbackCoefficients_ricci |
| 86 | (M44.closedSlabInterior (by linarith : -τ < 0) (F k)) isOpen_Ioo |
| 87 | Metric.isOpen_ball (hPhi k) (hPhiInv k) ht hx |
| 88 | have helliptic : ∀ᶠ k in l, ∀ p ∈ S k, ∀ v, |
| 89 | (a0 * Real.exp (-54 * K * τ)) * ‖v‖ ^ 2 ≤ f k p v v := by |
| 90 | filter_upwards [hraw, hquad] with k hk hq p hp v |
| 91 | exact (limitFinite_chart_closed_bounds hτ hK.le hρR (F k) (Φ k) hk hq |
| 92 | ⟨by linarith [hp.1.1], hp.1.2.le⟩ |
| 93 | (Metric.closedBall_subset_closedBall (by linarith) hp.2) v).1 |
| 94 | have hspatial : ∀ m : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 95 | ∀ p ∈ S k, ∀ j ≤ m, ‖iteratedFDeriv ℝ j (fun x => f k (p.1, x)) p.2‖ ≤ B := by |
| 96 | intro m |
| 97 | obtain ⟨Z, hZ, hz⟩ := hterminal m |
| 98 | obtain ⟨B, hB, hbound⟩ := limitFinite_chart_spatial_jets P hτ hK hρ hρR ha0 hb0 hZ m |
| 99 | refine ⟨B, hB, ?_⟩ |
| 100 | filter_upwards [hraw, hquad, hz] with k hk hq hj p hp n hn |
| 101 | exact hbound (F k) (Φ k) (hsource k) hk hq hj |
| 102 | p.1 (Ioo_subset_Icc_self hp.1) p.2 hp.2 n hn |
| 103 | have h := M44.eventually_coordinate_spacetime_jet_bound l 3 f J U S hsmooth |
| 104 | (fun _ => isOpen_Ioo) (fun _ => Metric.isOpen_ball) hsubset hinv hevol |
| 105 | (mul_pos ha0 (Real.exp_pos _)) helliptic hspatial |
| 106 | intro m |
| 107 | obtain ⟨B, hB, hbound⟩ := h m |
| 108 | exact ⟨B, hB, hbound.mono fun k hk t ht x hx => hk (t, x) ⟨ht, hx⟩⟩ |
| 109 | |
| 110 | /-- Open-domain equality retains every derivative of the actual original |
| 111 | coefficient representative on the same buffered half-cylinder. -/ |
| 112 | theorem limitFinite_chart_mixed_readout (P : RicciFlowCurvatureTheory.{u}) |
| 113 | {τ R K ρ a0 b0 : ℝ} (hτ : 0 < τ) (hK : 0 < K) |
| 114 | (hρ : 0 < ρ) (hρR : 2 * ρ < R) (ha0 : 0 < a0) (hb0 : 0 ≤ b0) |
| 115 | (F : ∀ k, RicciFlow 3 (M k) (Icc (-τ) 0)) |
| 116 | (Φ : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) E (M k) ∞) |
| 117 | (hsource : ∀ k, (Φ k).source = Metric.ball 0 R) |
| 118 | (hraw : ∀ᶠ k in l, ∀ t ∈ Icc (-τ) 0, ∀ y ∈ Φ k '' Metric.ball 0 R, |
| 119 | ((F k).connection t).curvatureTensorNorm y ≤ K) |
| 120 | (hquad : ∀ᶠ k in l, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ v : E, |
| 121 | a0 * ‖v‖ ^ 2 ≤ ((F k).metric 0).pullbackCoefficients (Φ k) x v v ∧ |
| 122 | ((F k).metric 0).pullbackCoefficients (Φ k) x v v ≤ b0 * ‖v‖ ^ 2) |
| 123 | (hterminal : ∀ m : ℕ, ∃ Z : ℝ, 1 ≤ Z ∧ ∀ᶠ k in l, |
| 124 | ∀ x ∈ Metric.closedBall 0 ρ, ∀ j ≤ m, |
| 125 | ‖iteratedFDeriv ℝ j (((F k).metric 0).pullbackCoefficients (Φ k)) x‖ ≤ Z) |
| 126 | (f : α → ℝ × E → V) |
| 127 | (hactual : ∀ᶠ k in l, EqOn (f k) |
| 128 | (fun p : ℝ × E => ((F k).metric p.1).pullbackCoefficients (Φ k) p.2) |
| 129 | (Ioo (-τ) 0 ×ˢ Metric.ball 0 R)) (m : ℕ) : |
| 130 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 131 | ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ Metric.closedBall 0 ρ, |
| 132 | ‖iteratedFDeriv ℝ m (f k) (t, x)‖ ≤ B := by |
| 133 | obtain ⟨B, hB, hbound⟩ := limitFinite_chart_mixed_jets l M P hτ hK hρ hρR ha0 hb0 |
| 134 | F Φ hsource hraw hquad hterminal m |
| 135 | refine ⟨B, hB, ?_⟩ |
| 136 | filter_upwards [hbound, hactual] with k hk heq t ht x hx |
| 137 | have hmem : (t, x) ∈ Ioo (-τ) 0 ×ˢ Metric.ball (0 : E) R := |
| 138 | ⟨⟨by linarith [ht.1], ht.2⟩, Metric.closedBall_subset_ball (by linarith) hx⟩ |
| 139 | have hgerm : f k =ᶠ[𝓝 (t, x)] |
| 140 | (fun p : ℝ × E => ((F k).metric p.1).pullbackCoefficients (Φ k) p.2) := by |
| 141 | filter_upwards [(isOpen_Ioo.prod Metric.isOpen_ball).mem_nhds hmem] with p hp |
| 142 | exact heq hp |
| 143 | rw [(hgerm.iteratedFDeriv (𝕜 := ℝ) m).eq_of_nhds] |
| 144 | exact hk t ht x hx |
| 145 | |
| 146 | end PoincareMT.M47 |