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.CanonicalEquation |
| 7 | import Mathlib.Topology.Order.Compact |
| 8 | |
| 9 | /-! |
| 10 | # Uniform parabolicity on a local spacetime ball |
| 11 | |
| 12 | Pointwise positivity of the principal symbol gives a uniform positive lower |
| 13 | bound on compact spacetime sets. No regularity estimate or ellipticity |
| 14 | constant is assumed in constructing the local ball. |
| 15 | |
| 16 | Reference: Morgan--Tian, Proposition 9.20, proof on p. 208. |
| 17 | -/ |
| 18 | |
| 19 | open Set Metric |
| 20 | open scoped ContDiff Topology |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 25 | |
| 26 | variable {n : ℕ} |
| 27 | |
| 28 | private theorem uniformlyEllipticOn_of_compact (C : Coefficients n) |
| 29 | {K : Set (Spacetime n)} (hK : IsCompact K) |
| 30 | (hC : ∀ i j, ContinuousOn (C.principal i j) K) |
| 31 | (hpos : ∀ z ∈ K, ∀ ξ : Euclid n, ξ ≠ 0 → |
| 32 | 0 < ∑ i, ∑ j, C.principal i j z * ξ i * ξ j) : |
| 33 | C.IsUniformlyEllipticOn K := by |
| 34 | let Q : Spacetime n × Euclid n → ℝ := |
| 35 | fun z => ∑ i, ∑ j, C.principal i j z.1 * z.2 i * z.2 j |
| 36 | let S := sphere (0 : Euclid n) 1 |
| 37 | have hKS : IsCompact (K ×ˢ S) := hK.prod (isCompact_sphere 0 1) |
| 38 | have hQ : ContinuousOn Q (K ×ˢ S) := by |
| 39 | apply continuousOn_finsetSum |
| 40 | intro i _ |
| 41 | apply continuousOn_finsetSum |
| 42 | intro j _ |
| 43 | have hc : ContinuousOn (fun z : Spacetime n × Euclid n => C.principal i j z.1) |
| 44 | (K ×ˢ S) := |
| 45 | (hC i j).comp continuous_fst.continuousOn (fun _ hz => hz.1) |
| 46 | exact (hc.mul (by fun_prop)).mul (by fun_prop) |
| 47 | obtain ⟨κ, hκ, hmin⟩ := hKS.exists_forall_le' hQ (a := 0) (by |
| 48 | intro z hz |
| 49 | apply hpos z.1 hz.1 z.2 |
| 50 | have hn : ‖z.2‖ = 1 := mem_sphere_zero_iff_norm.mp hz.2 |
| 51 | intro heq |
| 52 | simp [heq] at hn) |
| 53 | refine ⟨κ, hκ, ?_⟩ |
| 54 | intro z hz ξ |
| 55 | by_cases hξ : ξ = 0 |
| 56 | · simp [hξ] |
| 57 | · let η := ‖ξ‖⁻¹ • ξ |
| 58 | have hη : η ∈ S := mem_sphere_zero_iff_norm.mpr (norm_smul_inv_norm hξ) |
| 59 | have hscale : ‖ξ‖ • η = ξ := by |
| 60 | dsimp [η] |
| 61 | rw [smul_smul, mul_inv_cancel₀ (norm_ne_zero_iff.mpr hξ), one_smul] |
| 62 | have hhom (c : ℝ) (v : Euclid n) : Q (z, c • v) = c ^ 2 * Q (z, v) := by |
| 63 | simp only [Q, PiLp.smul_apply, smul_eq_mul, Finset.mul_sum] |
| 64 | apply Finset.sum_congr rfl |
| 65 | intro i _ |
| 66 | apply Finset.sum_congr rfl |
| 67 | intro j _ |
| 68 | ring |
| 69 | have hbound := mul_le_mul_of_nonneg_left (hmin (z, η) ⟨hz, hη⟩) (sq_nonneg ‖ξ‖) |
| 70 | rw [← hhom, hscale] at hbound |
| 71 | simpa only [Q, mul_comm] using hbound |
| 72 | |
| 73 | theorem exists_uniformlyElliptic_closedBall {n : ℕ} {U : Set (Spacetime n)} |
| 74 | (hU : IsOpen U) (C : Coefficients n) (hC : C.IsSmoothOn U) |
| 75 | (hpos : ∀ z ∈ U, ∀ ξ : Euclid n, ξ ≠ 0 → |
| 76 | 0 < ∑ i, ∑ j, C.principal i j z * ξ i * ξ j) |
| 77 | {z : Spacetime n} (hz : z ∈ U) : |
| 78 | ∃ r : ℝ, 0 < r ∧ Metric.closedBall z r ⊆ U ∧ |
| 79 | C.IsUniformlyEllipticOn (Metric.closedBall z r) := by |
| 80 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hz) |
| 81 | have hclosed : closedBall z (r / 2) ⊆ U := |
| 82 | (closedBall_subset_ball (half_lt_self hr)).trans hball |
| 83 | refine ⟨r / 2, half_pos hr, hclosed, ?_⟩ |
| 84 | exact uniformlyEllipticOn_of_compact C (isCompact_closedBall z (r / 2)) |
| 85 | (fun i j => (hC.1 i j).continuousOn.mono hclosed) |
| 86 | (fun y hy => hpos y (hclosed hy)) |
| 87 | |
| 88 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 89 | |
| 90 |