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.ReducedGeometry.ReducedLength.Variation.Fields.VariationRegularField |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Variation.Initial.InitialVariationJet |
| 3 | |
| 4 | /-! |
| 5 | # Initial data for the actual initial-vector variation |
| 6 | |
| 7 | The selected regularization carries a constructed square-regular field. |
| 8 | Its actual first derivative is 2W with the frozen basepoint transports. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option maxSynthPendingDepth 3 |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedLength |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 22 | [IsManifold (𝓡 n) ∞ M] |
| 23 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false in |
| 26 | theorem initialVectorVariation_hasLJacobiInitialDerivative |
| 27 | (hτmax : 0 < τmax) (hwindow : Set.Icc (T - τmax) T ⊆ J) |
| 28 | (A : LExponentialFamily F T τmax p) (Z W : TangentSpace (𝓡 n) p) |
| 29 | (b : ℝ) (hb : 0 < b) (hmax : b < τmax) : |
| 30 | HasLJacobiInitialDerivative (A.regularization Z b hb hmax) |
| 31 | (variationField (initialVectorVariation A Z W b hb hmax).toLVariation) |
| 32 | (((congrFun (A.path_eq Z b hb hmax) 0).trans (A.gamma_at_zero Z)).symm ▸ |
| 33 | ((2 : ℝ) • W)) := by |
| 34 | let V := (initialVectorVariation A Z W b hb hmax).toLVariation |
| 35 | obtain ⟨E⟩ := nonempty_variationFieldExtension V |
| 36 | obtain ⟨D, hD⟩ := exists_sqrtRegularField_of_variation_extension τmax hτmax hmax hwindow |
| 37 | (A.regularization Z b hb hmax).path V E |
| 38 | have hzero : (0 : ℝ) ∈ sqrtParameterInterval 0 b := by |
| 39 | simp only [sqrtParameterInterval, Real.sqrt_zero, Set.mem_Icc, le_refl, true_and] |
| 40 | exact Real.sqrt_nonneg b |
| 41 | have hv : (D.firstDerivative 0 : EuclideanSpace ℝ (Fin n)) = (2 : ℝ) • W := |
| 42 | (hD 0 hzero).trans (initialVectorVariation_initial_pullback A Z W b hb hmax E) |
| 43 | refine ⟨D, ?_⟩ |
| 44 | have hcast (x y : M) (h : x = y) (v : TangentSpace (𝓡 n) x) : |
| 45 | (h ▸ v : TangentSpace (𝓡 n) y) = (show TangentSpace (𝓡 n) y from v) := by |
| 46 | cases h |
| 47 | rfl |
| 48 | dsimp only |
| 49 | simp only [hcast] |
| 50 | exact (congrArg (fun s : ℝ ↦ (D.firstDerivative s : EuclideanSpace ℝ (Fin n))) |
| 51 | Real.sqrt_zero).trans hv |
| 52 | |
| 53 | end PoincareMT.ReducedLength |