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 | /- |
| 2 | Adapted from AxelWorkspace revision f1cdb30cabdc8781d2d3dec86d3d99ab1820f30e. |
| 3 | Source and SHA-256: references/analysis/axel-workspace/weak-parabolic-regularity-sources.json. |
| 4 | Apache-2.0; see the license in that source directory. |
| 5 | -/ |
| 6 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Jets.SpatialJets |
| 7 | import Mathlib.MeasureTheory.Function.LpSeminorm.Indicator |
| 8 | |
| 9 | /-! |
| 10 | # Global L2 inputs from local spatial weak derivatives |
| 11 | |
| 12 | Zero extension of the constructed derivatives supplies global square-integrable |
| 13 | compact inputs for coefficient commutator bounds. Custom localization supporting |
| 14 | Morgan--Tian, Proposition 9.20, Section 9.2.6, printed p. 208. |
| 15 | -/ |
| 16 | |
| 17 | open Set MeasureTheory Metric |
| 18 | open scoped ContDiff Topology |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Interior |
| 23 | |
| 24 | open Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 25 | |
| 26 | theorem exists_global_l2_spatial_weak_derivatives |
| 27 | {n : ℕ} {U : Set (Spacetime n)} (hU : IsOpen U) |
| 28 | {C : Coefficients n} (hC : C.IsSmoothOn U) |
| 29 | (hEll : C.IsUniformlyEllipticOn U) |
| 30 | {u : Spacetime n → ℝ} (hu : ContinuousOn u U) |
| 31 | (hw : WeakSolutionOn C u U) {z : Spacetime n} (hz : z ∈ U) : |
| 32 | ∃ r : ℝ, 0 < r ∧ closedBall z r ⊆ U ∧ |
| 33 | ∃ g : Fin n → Spacetime n → ℝ, |
| 34 | (∀ i, MemLp (g i) 2 volume) ∧ (∀ i, HasCompactSupport (g i)) ∧ |
| 35 | ∀ i (φ : Spacetime n → ℝ), ContDiff ℝ ∞ φ → HasCompactSupport φ → |
| 36 | tsupport φ ⊆ ball z r → |
| 37 | (∫ y in ball z r, φ y * g i y) = |
| 38 | -(∫ y in ball z r, spatialDeriv i φ y * u y) := by |
| 39 | obtain ⟨r, hr, hclosed, _, V, hweak⟩ := |
| 40 | exists_local_spatial_weak_derivatives hU hC hEll hu hw hz |
| 41 | let g : Fin n → Spacetime n → ℝ := fun i => (ball z r).indicator (fun y => V i y) |
| 42 | have hgm (i : Fin n) : MemLp (g i) 2 volume := |
| 43 | (memLp_indicator_iff_restrict measurableSet_ball).mpr (Lp.memLp (V i)) |
| 44 | have hgc (i : Fin n) : HasCompactSupport (g i) := by |
| 45 | apply (isCompact_closedBall z r).of_isClosed_subset (isClosed_tsupport (g i)) |
| 46 | apply closure_minimal _ isClosed_closedBall |
| 47 | intro y hy |
| 48 | by_contra hn |
| 49 | have hyb : y ∉ ball z r := fun h => hn (ball_subset_closedBall h) |
| 50 | exact hy (indicator_of_notMem hyb _) |
| 51 | refine ⟨r, hr, hclosed, g, hgm, hgc, ?_⟩ |
| 52 | intro i φ hφ hφc hφs |
| 53 | calc |
| 54 | (∫ y in ball z r, φ y * g i y) = ∫ y in ball z r, φ y * V i y := by |
| 55 | apply integral_congr_ae |
| 56 | filter_upwards [ae_restrict_mem measurableSet_ball] with y hy |
| 57 | rw [show g i y = V i y from indicator_of_mem hy _] |
| 58 | _ = _ := hweak i φ hφ hφc hφs |
| 59 | |
| 60 | |
| 61 | end Poincare.Analysis.Parabolic.WeakRegularity.Interior |