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.Analysis.Smoothing.MollifierJets |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Analysis.Smoothing.MollifierLocality |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Analysis.Smoothing.LocalSmoothExtension |
| 4 | |
| 5 | /-! |
| 6 | # C2 convergence at every smooth germ |
| 7 | |
| 8 | Compact smooth representatives agree with the original function near |
| 9 | the evaluation point. Small kernels see only that neighborhood, so the |
| 10 | global compact-data jet convergence applies to each original C2 germ. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open MeasureTheory Filter ContinuousLinearMap |
| 16 | open scoped ContDiff Convolution Topology |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 22 | {μ : Measure E} [Measure.IsAddHaarMeasure μ] |
| 23 | |
| 24 | /-- Shrinking kernels converge in both scalar derivative jets at each C2 germ. -/ |
| 25 | theorem normed_convolution_local_jets_tendsto {κ : ℕ → ContDiffBump (0 : E)} |
| 26 | (hκ : Tendsto (fun j ↦ (κ j).rOut) atTop (𝓝 0)) {f : E → ℝ} {x : E} |
| 27 | (hf : ContDiffAt ℝ 2 f x) : |
| 28 | Tendsto (fun j ↦ fderiv ℝ ((κ j).normed μ ⋆[lsmul ℝ ℝ, μ] f) x) |
| 29 | atTop (𝓝 (fderiv ℝ f x)) ∧ |
| 30 | Tendsto (fun j ↦ fderiv ℝ (fderiv ℝ ((κ j).normed μ ⋆[lsmul ℝ ℝ, μ] f)) x) |
| 31 | atTop (𝓝 (fderiv ℝ (fderiv ℝ f) x)) := by |
| 32 | obtain ⟨g, hg, hgc, hfg⟩ := exists_compact_contDiff_two_of_germ hf |
| 33 | have hj := normed_convolution_jets_tendsto (μ := μ) hκ hgc hg x |
| 34 | have he := eventually_normed_convolution_eventuallyEq (μ := μ) hκ hfg |
| 35 | rw [hfg.fderiv_eq, hfg.fderiv.fderiv_eq] |
| 36 | constructor |
| 37 | · apply hj.2.1.congr' |
| 38 | exact he.mono (fun j hj ↦ hj.fderiv_eq.symm) |
| 39 | · apply hj.2.2.congr' |
| 40 | exact he.mono (fun j hj ↦ hj.fderiv.fderiv_eq.symm) |
| 41 | |
| 42 | end PoincareMT.ReducedVolume |