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.Terminal.Source.TerminalSourceJetsG4 |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceJetsMixed |
| 3 | |
| 4 | /-! |
| 5 | # Same-source G4 to mixed-jet composition |
| 6 | |
| 7 | The raw bound is supplied by the actual G4 producer on the selected ordinary |
| 8 | flow and terminal chart. This file only feeds that bound, together with the |
| 9 | literal same-chart coefficient identity, to the already proved mixed-jet |
| 10 | theorem. Source carriers may vary in Type `u`, and each chart keeps its own |
| 11 | clock width. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option maxSynthPendingDepth 12 |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 26 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 27 | |
| 28 | variable {α : Type v} (l : Filter α) (M : α → Type u) |
| 29 | [∀ k, TopologicalSpace (M k)] [∀ k, ChartedSpace E (M k)] |
| 30 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] [∀ k, T2Space (M k)] |
| 31 | [∀ k, SecondCountableTopology (M k)] |
| 32 | |
| 33 | /-- The reviewed G4 raw bound and the actual same-chart coefficient germ give |
| 34 | the complete eventual mixed-jet conclusion on any retained compact buffer. -/ |
| 35 | theorem terminalSourceJetsG4_same_chart_mixed |
| 36 | (P : RicciFlowCurvatureTheory.{u}) |
| 37 | {τ R H ρ : ℝ} (hτ : 0 < τ) (hH : 0 < H) (hρ : 0 < ρ) |
| 38 | (hρR : 2 * ρ < R) |
| 39 | (hsmall : ∀ s : ℝ, |s| ≤ 2 * ρ → |
| 40 | (H * s ^ 2) * Real.exp (max 1 (H * s ^ 2)) ≤ 3) |
| 41 | (F : ∀ k, RicciFlow 3 (M k) (Icc (-τ) 0)) |
| 42 | (C : ∀ k, TerminalSourceChart ((F k).metric 0) R) |
| 43 | (hG4 : ∀ᶠ k in l, ∀ t ∈ Icc (-τ) 0, |
| 44 | ∀ y ∈ (C k).chart '' Metric.ball 0 R, |
| 45 | ((F k).connection t).curvatureTensorNorm y ≤ H) |
| 46 | (fminus : α → ℝ × E → V) |
| 47 | (hactual : ∀ᶠ k in l, EqOn (fminus k) |
| 48 | (fun p : ℝ × E => ((F k).metric p.1).pullbackCoefficients (C k).chart p.2) |
| 49 | (Ioo (-τ) 0 ×ˢ Metric.ball 0 R)) |
| 50 | {K : Set E} (hK : K ⊆ Metric.closedBall 0 ρ) (m : ℕ) : |
| 51 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 52 | ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ K, |
| 53 | ‖iteratedFDeriv ℝ m (fminus k) (t, x)‖ ≤ B := by |
| 54 | exact terminalSourceJets_eventually_mixed_on_buffer l M P hτ hH hρ hρR |
| 55 | hsmall F C hG4 fminus hactual hK m |
| 56 | |
| 57 | end PoincareMT.M47 |