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.Analysis.Parabolic.WeakRegularity.Interior.Jets.TimeSpatialRegularity |
| 2 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Jets.Sobolev |
| 3 | import PoincareLib.Analysis.Parabolic.WeakRegularity.LocalEllipticity |
| 4 | import PoincareLib.Analysis.Elliptic.Regularity.Sobolev.Embedding.SmoothRepresentative |
| 5 | |
| 6 | /-! |
| 7 | # Smoothness of continuous weak parabolic solutions |
| 8 | |
| 9 | The canonical distributional equation produces all finite local weak jets. |
| 10 | Their Euclidean Sobolev representatives agree with the original continuous |
| 11 | function, so the original function is smooth on the same open set. |
| 12 | |
| 13 | This is the analytic regularity step used in Morgan--Tian, Proposition 9.20, |
| 14 | Clay edition, printed pp. 188--198. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped ContDiff Topology |
| 21 | |
| 22 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 23 | |
| 24 | open Interior Sobolev.BoundaryCoordinates |
| 25 | |
| 26 | /-- A continuous distributional solution of a smooth uniformly parabolic |
| 27 | equation is smooth on its original open domain. -/ |
| 28 | theorem contDiffOn_of_continuous_weakSolution |
| 29 | {n : ℕ} {U : Set (Spacetime n)} (hU : IsOpen U) |
| 30 | {C : Coefficients n} (hC : C.IsSmoothOn U) |
| 31 | (hEll : C.IsUniformlyEllipticOn U) |
| 32 | {u : Spacetime n → ℝ} (hu : ContinuousOn u U) |
| 33 | (hw : WeakSolutionOn C u U) : ContDiffOn ℝ ∞ u U := by |
| 34 | have hV : IsOpen ((split n) ⁻¹' U) := hU.preimage (split n).continuous |
| 35 | have huV : ContinuousOn (u ∘ split n) ((split n) ⁻¹' U) := |
| 36 | hu.comp (split n).continuous.continuousOn (fun _ hx => hx) |
| 37 | obtain ⟨v, hv, hvu⟩ := |
| 38 | Sobolev.EuclideanIteratedEmbedding.exists_smooth_representative_of_memWkp_locally |
| 39 | (u := u ∘ split n) (Ω := (split n) ⁻¹' U) (by |
| 40 | intro x hx k |
| 41 | obtain ⟨r, hr, hrU, hjet⟩ := exists_local_time_spatial_weak_jets |
| 42 | (m := k) (k := k) hU hC hEll hu hw hx |
| 43 | refine ⟨(split n) ⁻¹' Metric.ball (split n x) r, |
| 44 | Metric.isOpen_ball.preimage (split n).continuous, |
| 45 | Metric.mem_ball_self hr, ?_, ?_⟩ |
| 46 | · intro y hy |
| 47 | exact hrU (Metric.ball_subset_closedBall hy) |
| 48 | · exact (hjet.canonical Metric.isOpen_ball).memWkp_comp_split Metric.isOpen_ball) |
| 49 | have heq := Measure.eqOn_open_of_ae_eq hvu hV hv.continuousOn huV |
| 50 | have huc : ContDiffOn ℝ ∞ (u ∘ split n) ((split n) ⁻¹' U) := |
| 51 | hv.congr (fun x hx => (heq hx).symm) |
| 52 | have hback := huc.comp (split n).symm.contDiff.contDiffOn |
| 53 | (show MapsTo (split n).symm U ((split n) ⁻¹' U) from |
| 54 | fun y hy => by simpa using hy) |
| 55 | simpa only [Function.comp_def, ContinuousLinearEquiv.apply_symm_apply] using hback |
| 56 | |
| 57 | /-- Pointwise positive principal symbols suffice: compact coordinate balls |
| 58 | provide the uniform constants used by the local regularity theorem. -/ |
| 59 | theorem contDiffOn_of_continuous_weakSolution_positive |
| 60 | {n : ℕ} {U : Set (Spacetime n)} (hU : IsOpen U) |
| 61 | {C : Coefficients n} (hC : C.IsSmoothOn U) |
| 62 | (hpos : ∀ z ∈ U, ∀ ξ : Euclid n, ξ ≠ 0 → |
| 63 | 0 < ∑ i, ∑ j, C.principal i j z * ξ i * ξ j) |
| 64 | {u : Spacetime n → ℝ} (hu : ContinuousOn u U) |
| 65 | (hw : WeakSolutionOn C u U) : ContDiffOn ℝ ∞ u U := by |
| 66 | intro z hz |
| 67 | obtain ⟨r, hr, hrU, κ, hκ, hEll⟩ := |
| 68 | exists_uniformlyElliptic_closedBall hU C hC hpos hz |
| 69 | have hbU : Metric.ball z r ⊆ U := Metric.ball_subset_closedBall.trans hrU |
| 70 | have hCb : C.IsSmoothOn (Metric.ball z r) := |
| 71 | ⟨fun i j => (hC.1 i j).mono hbU, |
| 72 | fun i => (hC.2.1 i).mono hbU, hC.2.2.mono hbU⟩ |
| 73 | have hwb : WeakSolutionOn C u (Metric.ball z r) := |
| 74 | ⟨hw.1.mono_set hbU, fun φ hφ hφc hφb => hw.2 φ hφ hφc (hφb.trans hbU)⟩ |
| 75 | exact ((contDiffOn_of_continuous_weakSolution Metric.isOpen_ball hCb |
| 76 | ⟨κ, hκ, fun x hx => hEll x (Metric.ball_subset_closedBall hx)⟩ |
| 77 | (hu.mono hbU) hwb).contDiffAt (Metric.isOpen_ball.mem_nhds |
| 78 | (Metric.mem_ball_self hr))).contDiffWithinAt |
| 79 | |
| 80 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |