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.Variation.Jacobi.JacobiGlobalPair |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiPackaging |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Theory |
| 4 | |
| 5 | /-! |
| 6 | # The exact generalized Jacobi initial-value statements |
| 7 | |
| 8 | Morgan-Tian Lemmas 6.10 and 6.12, pp. 109-110. The global actual |
| 9 | phase solution and its uniqueness give the frozen corrected Jacobi |
| 10 | IVP, with prescribed actual initial covariant derivative. Both |
| 11 | closed endpoints and zero initial time are included. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 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} {p : M14BackwardPath G T τ₁ τ₂ x y} |
| 25 | (R : M14SquareRootPath G p) |
| 26 | |
| 27 | /-- Arbitrary initial horizontal value and actual covariant |
| 28 | derivative determine a unique frozen Jacobi field on the entire |
| 29 | closed square interval, Lemmas 6.10 and 6.12, pp. 109-110. -/ |
| 30 | theorem exists_jacobiField_unique |
| 31 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (Y₀ P₀ : G.Horizontal (R.curve (Real.sqrt τ₁))) : |
| 33 | ∃ Q : M14JacobiFieldData G R.curve (M14SqrtParameterInterval τ₁ τ₂), |
| 34 | Q.field (Real.sqrt τ₁) = Y₀ ∧ M14JacobiFirstDerivative Q (Real.sqrt τ₁) = P₀ ∧ |
| 35 | (∀ s ∈ M14SqrtParameterInterval τ₁ τ₂, |
| 36 | ∀ Z : G.Horizontal (R.curve s), M14JacobiResidual G R Q s Z = 0) ∧ |
| 37 | ∀ Q' : M14JacobiFieldData G R.curve (M14SqrtParameterInterval τ₁ τ₂), |
| 38 | Q'.field (Real.sqrt τ₁) = Y₀ → M14JacobiFirstDerivative Q' (Real.sqrt τ₁) = P₀ → |
| 39 | (∀ s ∈ M14SqrtParameterInterval τ₁ τ₂, |
| 40 | ∀ Z : G.Horizontal (R.curve s), M14JacobiResidual G R Q' s Z = 0) → |
| 41 | ∀ s ∈ M14SqrtParameterInterval τ₁ τ₂, Q'.field s = Q.field s := by |
| 42 | obtain ⟨z, hz, hz₀⟩ := exists_horizontalJacobiPair R hM04 hM12 (Y₀, P₀) |
| 43 | obtain ⟨Q, hfield, hderiv, hres⟩ := hz.exists_jacobiField |
| 44 | have ha : Real.sqrt τ₁ ∈ M14SqrtParameterInterval τ₁ τ₂ := |
| 45 | ⟨le_rfl, Real.sqrt_le_sqrt p.tau_lt.le⟩ |
| 46 | have hY₀ : Q.field (Real.sqrt τ₁) = Y₀ := by |
| 47 | rw [hfield] |
| 48 | exact congrArg Prod.fst hz₀ |
| 49 | have hP₀ : M14JacobiFirstDerivative Q (Real.sqrt τ₁) = P₀ := |
| 50 | (hderiv _ ha).trans (congrArg Prod.snd hz₀) |
| 51 | refine ⟨Q, hY₀, hP₀, hres, ?_⟩ |
| 52 | intro Q' hY' hP' hres' s hs |
| 53 | have heq := horizontalJacobiPair_unique R hM04 hM12 |
| 54 | (jacobiField_isHorizontalJacobiPair Q' hres') (jacobiField_isHorizontalJacobiPair Q hres) |
| 55 | (Prod.ext (hY'.trans hY₀.symm) (hP'.trans hP₀.symm)) s hs |
| 56 | exact congrArg Prod.fst heq |
| 57 | |
| 58 | /-- The exact frozen corrected Jacobi IVP with zero initial field, |
| 59 | Lemmas 6.10 and 6.12, pp. 109-110. -/ |
| 60 | theorem jacobiStatement |
| 61 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) : |
| 62 | M14JacobiStatement G := by |
| 63 | intro T τ₁ τ₂ x y p R W E₀ heuler |
| 64 | obtain ⟨Q, hzero, hW, hres, _⟩ := exists_jacobiField_unique R hM04 hM12 0 W |
| 65 | exact ⟨Q, hzero, hW, hres⟩ |
| 66 | |
| 67 | /-- The exact frozen initial-zero Jacobi existence and uniqueness |
| 68 | statement, with the actual initial covariant derivative, |
| 69 | Lemmas 6.10 and 6.12, pp. 109-110. -/ |
| 70 | theorem initialJacobiStatement |
| 71 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) : |
| 72 | M14InitialJacobiStatement G := by |
| 73 | intro T τ₁ τ₂ x y p R W E₀ heuler |
| 74 | exact exists_jacobiField_unique R hM04 hM12 0 W |
| 75 | |
| 76 | end PoincareMT.M14 |