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.Generalized.ReducedGeometry.Exponential.InitialValue.InitialJacobiInterior |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Manifold.SectionThroughVector |
| 3 | |
| 4 | /-! |
| 5 | # The actual initial-vector differential is Jacobi on the closed path |
| 6 | |
| 7 | Morgan-Tian Lemma 6.19 and Claim 6.20, p. 114. The actual residual |
| 8 | is continuous against each smooth horizontal test section. Its |
| 9 | interior identity therefore extends to both closed endpoints, |
| 10 | including square time zero and a physical final endpoint. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T τ : ℝ} {x y : G.Point} {Z : G.Horizontal x} |
| 25 | |
| 26 | /-- The actual initial-vector differential satisfies the frozen |
| 27 | Jacobi equation through both closed endpoints, retaining its actual |
| 28 | two-derivative field record, Lemma 6.19 and Claim 6.20, p. 114. -/ |
| 29 | theorem initialValuePath_differential_jacobi |
| 30 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 31 | (P : M14SquareRootInitialValuePath G T τ x y Z) (W : G.Horizontal x) |
| 32 | {s : ℝ} (hs : s ∈ M14SqrtParameterInterval 0 τ) |
| 33 | (V : G.Horizontal (P.square_path.curve s)) : |
| 34 | M14JacobiResidual G P.square_path (initialValuePath_differentialData hM04 hM12 P W) |
| 35 | s V = 0 := by |
| 36 | let Q := initialValuePath_differentialData hM04 hM12 P W |
| 37 | have hab : 0 < Real.sqrt τ := Real.sqrt_pos.mpr P.path.tau_lt |
| 38 | have hC : M14SqrtParameterInterval 0 τ = Icc 0 (Real.sqrt τ) := by |
| 39 | simp only [M14SqrtParameterInterval, Real.sqrt_zero] |
| 40 | obtain ⟨A, hA, hAs⟩ := FiberBundle.exists_contMDiff_section_through |
| 41 | (I := spacetimeModel n) (F := EuclideanSpace ℝ (Fin n)) V |
| 42 | have hAE : Nonempty (M14PullbackExtension G P.square_path.curve |
| 43 | (M14SqrtParameterInterval 0 τ) (fun r => A (P.square_path.curve r))) := by |
| 44 | rw [hC] |
| 45 | apply exists_pullbackExtension_Icc hab |
| 46 | rw [← hC] |
| 47 | exact hA.comp_contMDiffOn (P.square_path.smooth.mono P.square_path.interval_subset) |
| 48 | obtain ⟨EA⟩ := hAE |
| 49 | have hcont := (jacobiResidual_contDiffOn P.square_path Q EA hM04 hM12).continuousOn |
| 50 | have hz : EqOn (fun r => M14JacobiResidual G P.square_path Q r (A (P.square_path.curve r))) |
| 51 | (fun _ => 0) (Ioo 0 (Real.sqrt τ)) := fun _ hr => |
| 52 | initialValuePath_differential_jacobi_interior hM04 hM12 P W hr _ |
| 53 | have hclosed := hz.of_subset_closure hcont continuousOn_const |
| 54 | (by rw [hC]; exact Ioo_subset_Icc_self) |
| 55 | (by rw [hC, closure_Ioo hab.ne]) |
| 56 | simpa only [hAs] using hclosed hs |
| 57 | |
| 58 | end PoincareMT.M14 |