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.TimeSpatialJetAlgebra |
| 7 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Jets.SpatialTimeDerivative |
| 8 | |
| 9 | /-! |
| 10 | # Time regularity from spatial jets and the weak equation |
| 11 | |
| 12 | The equation expresses each time derivative through the actual spatial |
| 13 | Hessian. Weak product rules and commutation retain the available time order, |
| 14 | so induction trades two spatial orders for one time order. |
| 15 | Custom prerequisite for Morgan--Tian, Proposition 9.20, pp. 207-208; |
| 16 | weak derivative convention from Evans, Section 5.2.1, pp. 256-257. |
| 17 | -/ |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped ContDiff |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Interior |
| 25 | |
| 26 | open Canonical |
| 27 | |
| 28 | theorem exists_forced_time_spatial_weak_derivative |
| 29 | {n m k : ℕ} {U : Set (Spacetime n)} (hU : IsOpen U) |
| 30 | {C : Coefficients n} (hC : C.IsSmoothOn Set.univ) |
| 31 | (hprincipalc : ∀ i j, HasCompactSupport (C.principal i j)) |
| 32 | (hdriftc : ∀ i, HasCompactSupport (C.drift i)) |
| 33 | (hzerothc : HasCompactSupport C.zeroth) |
| 34 | {u f : Spacetime n → ℝ} |
| 35 | (hu : HasTimeSpatialL2Jet U m (k + 2) u) |
| 36 | (hf : HasTimeSpatialL2Jet U m k f) |
| 37 | (hforce : ∀ φ : Spacetime n → ℝ, ContDiff ℝ ∞ φ → HasCompactSupport φ → |
| 38 | tsupport φ ⊆ U → (∫ y, u y * C.adjoint φ y) = ∫ y, φ y * f y) : |
| 39 | ∃ T : Spacetime n → ℝ, HasTimeSpatialL2Jet U m k T ∧ |
| 40 | ∀ φ : Spacetime n → ℝ, ContDiff ℝ ∞ φ → HasCompactSupport φ → |
| 41 | tsupport φ ⊆ U → |
| 42 | (∫ y in U, φ y * T y) = -(∫ y in U, timeDeriv φ y * u y) := by |
| 43 | obtain ⟨g, hg, hgw⟩ := hu.exists_spatial_derivatives hU |
| 44 | choose A hA hAw using fun j => (hg j).exists_spatial_derivatives hU |
| 45 | let H (i j : Fin n) := A j i |
| 46 | have hHJ (i j : Fin n) : HasTimeSpatialL2Jet U m k (H i j) := hA j i |
| 47 | let T (y : Spacetime n) : ℝ := f y + |
| 48 | (∑ i, ∑ j, C.principal i j y * H i j y) - |
| 49 | (∑ i, C.drift i y * g i y) - C.zeroth y * u y |
| 50 | have hprincipal (i j : Fin n) : HasTimeSpatialL2Jet U m k |
| 51 | (fun y => C.principal i j y * H i j y) := |
| 52 | (hHJ i j).mul_smooth hU (contDiffOn_univ.mp (hC.1 i j)) (hprincipalc i j) |
| 53 | have hdrift (i : Fin n) : HasTimeSpatialL2Jet U m k |
| 54 | (fun y => C.drift i y * g i y) := |
| 55 | (hg i).lower_spatial.mul_smooth hU (contDiffOn_univ.mp (hC.2.1 i)) (hdriftc i) |
| 56 | have hzero : HasTimeSpatialL2Jet U m k (fun y => C.zeroth y * u y) := |
| 57 | (hu.of_spatial_le (by omega : k ≤ k + 2)).mul_smooth hU |
| 58 | (contDiffOn_univ.mp hC.2.2) hzerothc |
| 59 | have hT : HasTimeSpatialL2Jet U m k T := |
| 60 | ((hf.add (HasTimeSpatialL2Jet.sum Finset.univ |
| 61 | (fun i _ => HasTimeSpatialL2Jet.sum Finset.univ (fun j _ => hprincipal i j)))).sub |
| 62 | (HasTimeSpatialL2Jet.sum Finset.univ (fun i _ => hdrift i))).sub hzero |
| 63 | refine ⟨T, hT, ?_⟩ |
| 64 | intro φ hφ hφc hφU |
| 65 | have hCU : C.IsSmoothOn U := |
| 66 | ⟨fun i j => (hC.1 i j).mono (subset_univ U), |
| 67 | fun i => (hC.2.1 i).mono (subset_univ U), hC.2.2.mono (subset_univ U)⟩ |
| 68 | exact weak_time_pairing_of_forcing hU hCU hu.locallyIntegrableOn hf.locallyIntegrableOn |
| 69 | (fun i => (hg i).locallyIntegrableOn) (fun i j => (hHJ i j).locallyIntegrableOn) |
| 70 | hforce hgw (fun i j => hAw j i) hφ hφc hφU |
| 71 | |
| 72 | theorem time_spatial_jet_of_spatial_jet_and_weak_equation |
| 73 | {n m k : ℕ} {U : Set (Spacetime n)} (hU : IsOpen U) |
| 74 | {C : Coefficients n} (hC : C.IsSmoothOn Set.univ) |
| 75 | (hprincipalc : ∀ i j, HasCompactSupport (C.principal i j)) |
| 76 | (hdriftc : ∀ i, HasCompactSupport (C.drift i)) |
| 77 | (hzerothc : HasCompactSupport C.zeroth) |
| 78 | {u : Spacetime n → ℝ} (hu : HasSpatialL2Jet U (k + 2 * m) u) |
| 79 | (hforce : ∀ φ : Spacetime n → ℝ, ContDiff ℝ ∞ φ → HasCompactSupport φ → |
| 80 | tsupport φ ⊆ U → (∫ y, u y * C.adjoint φ y) = 0) : |
| 81 | HasTimeSpatialL2Jet U m k u := by |
| 82 | induction m generalizing k with |
| 83 | | zero => simpa only [HasTimeSpatialL2Jet, Nat.mul_zero, Nat.add_zero] using hu |
| 84 | | succ m ih => |
| 85 | have hu' : HasSpatialL2Jet U ((k + 2) + 2 * m) u := by |
| 86 | convert hu using 1 <;> omega |
| 87 | have hureg : HasTimeSpatialL2Jet U m (k + 2) u := ih hu' |
| 88 | have hforced (φ : Spacetime n → ℝ) (hφ : ContDiff ℝ ∞ φ) |
| 89 | (hφc : HasCompactSupport φ) (hφU : tsupport φ ⊆ U) : |
| 90 | (∫ y, u y * C.adjoint φ y) = ∫ y, φ y * (0 : ℝ) := by |
| 91 | simpa only [mul_zero, integral_zero] using hforce φ hφ hφc hφU |
| 92 | obtain ⟨T, hT, hTw⟩ := exists_forced_time_spatial_weak_derivative |
| 93 | hU hC hprincipalc hdriftc hzerothc hureg (HasTimeSpatialL2Jet.zero U m k) hforced |
| 94 | exact ⟨hu.of_le (by omega), T, hT, hTw⟩ |
| 95 | |
| 96 | |
| 97 | end Poincare.Analysis.Parabolic.WeakRegularity.Interior |