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.ReducedVolume.Exponential.InitialTime.InitialGram |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.InitialTime.InitialActionLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Comparison.WeightedRays |
| 4 | |
| 5 | /-! |
| 6 | # The actual initial Gaussian weighted-ray limit |
| 7 | |
| 8 | The square-time Jacobian and normalized action limits combine to the |
| 9 | unnormalized source Gaussian. Positive square root returns to ordinary |
| 10 | backward time; no Gaussian estimate is assumed. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedVolume |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] [T3Space M] |
| 24 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 25 | |
| 26 | set_option backward.isDefEq.respectTransparency false in |
| 27 | /-- The weighted exponential Jacobian converges to the exact source Gaussian. -/ |
| 28 | theorem weightedExponentialJacobian_tendsto_initial |
| 29 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 30 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 31 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 32 | (x : EuclideanSpace ℝ (Fin n)) : |
| 33 | Tendsto (fun τ : ℝ ↦ weightedExponentialJacobian G τ x) (𝓝[>] (0 : ℝ)) |
| 34 | (𝓝 ((2 : ℝ) ^ n * Real.exp (-‖x‖ ^ 2))) := by |
| 35 | have hA := squareAction_quotient_tendsto G hmax hT hwindow hcurvature |
| 36 | (metricCoordinates (F.metric T) p x) |
| 37 | rw [metricCoordinates_inner, real_inner_self_eq_norm_sq] at hA |
| 38 | have hJ := exponential_scaled_jacobian_tendsto G hmax hT hwindow x |
| 39 | have hprod := hJ.mul (Real.continuous_exp.continuousAt.tendsto.comp hA.neg) |
| 40 | have hsquare : Tendsto (fun s : ℝ ↦ weightedExponentialJacobian G (s ^ 2) x) |
| 41 | (𝓝[>] (0 : ℝ)) (𝓝 ((2 : ℝ) ^ n * Real.exp (-‖x‖ ^ 2))) := by |
| 42 | apply hprod.congr' |
| 43 | filter_upwards [self_mem_nhdsWithin] with s hs |
| 44 | have hpow : Real.rpow (s ^ 2) (-(n : ℝ) / 2) = (s ^ n)⁻¹ := by |
| 45 | rw [Real.rpow_eq_pow, ← Real.rpow_natCast_mul hs.le 2] |
| 46 | norm_num only [Nat.cast_ofNat] |
| 47 | rw [show (2 : ℝ) * (-(n : ℝ) / 2) = -(n : ℝ) by ring, |
| 48 | Real.rpow_neg hs.le, Real.rpow_natCast] |
| 49 | simp only [weightedExponentialJacobian, hpow, Real.sqrt_sq hs.le, Function.comp_def] |
| 50 | ring |
| 51 | have hsqrt : Tendsto Real.sqrt (𝓝[>] (0 : ℝ)) (𝓝[>] (0 : ℝ)) := by |
| 52 | apply tendsto_nhdsWithin_iff.mpr ⟨?_, ?_⟩ |
| 53 | · simpa only [Real.sqrt_zero] using |
| 54 | (Real.continuous_sqrt.tendsto (0 : ℝ)).mono_left nhdsWithin_le_nhds |
| 55 | · filter_upwards [self_mem_nhdsWithin] with s hs |
| 56 | exact Real.sqrt_pos.2 hs |
| 57 | apply (hsquare.comp hsqrt).congr' |
| 58 | filter_upwards [self_mem_nhdsWithin] with s hs |
| 59 | simp only [Function.comp_def, Real.sq_sqrt hs.le] |
| 60 | |
| 61 | end PoincareMT.ReducedVolume |