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.MollifierBasics |
| 2 | |
| 3 | /-! |
| 4 | # Derivative convergence for compact smooth convolution data |
| 5 | |
| 6 | Differentiation passes to the compactly supported smooth factor. The |
| 7 | normalized approximate identity then converges in each of the first |
| 8 | two jets at every point, including operator-norm convergence of the jets. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open MeasureTheory Filter ContinuousLinearMap |
| 14 | open scoped ContDiff Convolution Topology |
| 15 | |
| 16 | namespace PoincareMT.ReducedVolume |
| 17 | |
| 18 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 20 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 21 | {μ : Measure E} [Measure.IsAddHaarMeasure μ] |
| 22 | |
| 23 | noncomputable local instance mollifierJetNormedAddCommGroup : |
| 24 | NormedAddCommGroup (E →L[ℝ] F) := ContinuousLinearMap.toNormedAddCommGroup |
| 25 | |
| 26 | noncomputable local instance mollifierJetNormedSpace : |
| 27 | NormedSpace ℝ (E →L[ℝ] F) := ContinuousLinearMap.toNormedSpace |
| 28 | |
| 29 | noncomputable local instance mollifierSecondJetNormedAddCommGroup : |
| 30 | NormedAddCommGroup (E →L[ℝ] E →L[ℝ] F) := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | |
| 32 | noncomputable local instance mollifierSecondJetNormedSpace : |
| 33 | NormedSpace ℝ (E →L[ℝ] E →L[ℝ] F) := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | omit [CompleteSpace F] in |
| 36 | /-- Derivatives pass to the compactly supported C1 factor of a normalized convolution. -/ |
| 37 | theorem fderiv_normed_convolution (κ : ContDiffBump (0 : E)) {f : E → F} |
| 38 | (hc : HasCompactSupport f) (hf : ContDiff ℝ 1 f) (x : E) : |
| 39 | fderiv ℝ (κ.normed μ ⋆[lsmul ℝ ℝ, μ] f) x = |
| 40 | (κ.normed μ ⋆[lsmul ℝ ℝ, μ] fderiv ℝ f) x := by |
| 41 | have hpre : (lsmul ℝ ℝ (E := F)).precompR E = lsmul ℝ ℝ (E := E →L[ℝ] F) := by |
| 42 | ext c A |
| 43 | rfl |
| 44 | have hk : LocallyIntegrable (κ.normed μ) μ := |
| 45 | (κ.continuous_normed (μ := μ)).locallyIntegrable |
| 46 | have h := (hc.hasFDerivAt_convolution_right (lsmul ℝ ℝ) |
| 47 | hk hf x).fderiv |
| 48 | simpa only [hpre] using h |
| 49 | |
| 50 | omit [CompleteSpace F] in |
| 51 | /-- The second derivative also passes to a compactly supported C2 factor. -/ |
| 52 | theorem second_fderiv_normed_convolution (κ : ContDiffBump (0 : E)) {f : E → F} |
| 53 | (hc : HasCompactSupport f) (hf : ContDiff ℝ 2 f) (x : E) : |
| 54 | fderiv ℝ (fderiv ℝ (κ.normed μ ⋆[lsmul ℝ ℝ, μ] f)) x = |
| 55 | (κ.normed μ ⋆[lsmul ℝ ℝ, μ] fderiv ℝ (fderiv ℝ f)) x := by |
| 56 | have hfirst : fderiv ℝ (κ.normed μ ⋆[lsmul ℝ ℝ, μ] f) = |
| 57 | κ.normed μ ⋆[lsmul ℝ ℝ, μ] fderiv ℝ f := |
| 58 | funext (fderiv_normed_convolution κ hc (hf.of_le (by norm_num))) |
| 59 | rw [hfirst] |
| 60 | exact fderiv_normed_convolution κ (hc.fderiv ℝ) (hf.fderiv_right (by norm_num)) x |
| 61 | |
| 62 | /-- Shrinking normalized kernels converge in the first two jets of compact C2 data. -/ |
| 63 | theorem normed_convolution_jets_tendsto {κ : ℕ → ContDiffBump (0 : E)} |
| 64 | (hκ : Tendsto (fun j ↦ (κ j).rOut) atTop (𝓝 0)) {f : E → F} |
| 65 | (hc : HasCompactSupport f) (hf : ContDiff ℝ 2 f) (x : E) : |
| 66 | Tendsto (fun j ↦ ((κ j).normed μ ⋆[lsmul ℝ ℝ, μ] f) x) atTop (𝓝 (f x)) ∧ |
| 67 | Tendsto (fun j ↦ fderiv ℝ ((κ j).normed μ ⋆[lsmul ℝ ℝ, μ] f) x) |
| 68 | atTop (𝓝 (fderiv ℝ f x)) ∧ |
| 69 | Tendsto (fun j ↦ fderiv ℝ (fderiv ℝ ((κ j).normed μ ⋆[lsmul ℝ ℝ, μ] f)) x) |
| 70 | atTop (𝓝 (fderiv ℝ (fderiv ℝ f) x)) := by |
| 71 | have hdf : ContDiff ℝ 1 (fderiv ℝ f) := hf.fderiv_right (by norm_num) |
| 72 | refine ⟨ContDiffBump.convolution_tendsto_right_of_continuous hκ hf.continuous x, ?_, ?_⟩ |
| 73 | · simpa only [fderiv_normed_convolution _ hc (hf.of_le (by norm_num))] using |
| 74 | (ContDiffBump.convolution_tendsto_right_of_continuous (μ := μ) hκ |
| 75 | (hf.continuous_fderiv (by norm_num)) x) |
| 76 | · simpa only [second_fderiv_normed_convolution _ hc hf] using |
| 77 | (ContDiffBump.convolution_tendsto_right_of_continuous (μ := μ) hκ |
| 78 | (hdf.continuous_fderiv one_ne_zero) x) |
| 79 | |
| 80 | end PoincareMT.ReducedVolume |