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.Elliptic.Regularity.InteriorEstimates.Operators.Powers |
| 2 | import PoincareLib.Analysis.Elliptic.Regularity.InteriorEstimates.Operators.Localization |
| 3 | import PoincareLib.Analysis.Elliptic.Regularity.InteriorEstimates.Embedding.Compact |
| 4 | |
| 5 | /-! |
| 6 | # Uniform interior estimates from elliptic powers |
| 7 | |
| 8 | On a compact subset of a fixed precompact coordinate neighborhood, finitely |
| 9 | many local L2 norms of the actual elliptic powers control each classical jet. |
| 10 | The coefficients and functions need only be smooth on the original open set. |
| 11 | The integer and constant are chosen before the function. |
| 12 | |
| 13 | Reference: Evans, *Partial Differential Equations*, second edition, |
| 14 | Section 6.3.1, Theorems 1 and 2, printed pp. 327 and 332-333, followed by |
| 15 | Section 5.6.3, Theorem 6. The iterated-operator estimate is their consequence. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Set MeasureTheory Filter Topology |
| 21 | open scoped ENNReal ContDiff |
| 22 | |
| 23 | namespace Poincare.Analysis.Elliptic.InteriorEstimates |
| 24 | |
| 25 | variable {d : ℕ} [NeZero d] |
| 26 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 27 | |
| 28 | /-- The quantitative interior estimate for a smooth, pointwise elliptic |
| 29 | operator. The pointwise conclusion also covers an empty compact set. -/ |
| 30 | theorem uniform_interior_estimate_of_elliptic_powers |
| 31 | {O V K : Set E} (hO : IsOpen O) (hV : IsOpen V) |
| 32 | (hVc : IsCompact (closure V)) (hVO : closure V ⊆ O) |
| 33 | (hK : IsCompact K) (hKV : K ⊆ V) |
| 34 | (a : E → Matrix (Fin d) (Fin d) ℝ) (b : Fin d → E → ℝ) |
| 35 | (ha : ∀ i j, ContDiffOn ℝ ∞ (fun x => a x i j) O) |
| 36 | (hpos : ∀ x ∈ O, (a x).PosDef) |
| 37 | (hb : ∀ i, ContDiffOn ℝ ∞ (b i) O) (m : ℕ) : |
| 38 | ∃ q : ℕ, ∃ C : ℝ, 0 < C ∧ ∀ {u : E → ℝ}, ContDiffOn ℝ ∞ u O → ∀ x ∈ K, |
| 39 | ‖iteratedFDeriv ℝ m u x‖ ≤ C * ∑ j ∈ Finset.range (q + 1), |
| 40 | (eLpNorm ((secondOrderOperator a b)^[j] u) 2 (volume.restrict V)).toReal := by |
| 41 | obtain ⟨B, b', hb', hBa, hb'b⟩ := |
| 42 | exists_secondOrderOperator_extension hO hVc hVO a b ha hpos hb |
| 43 | obtain ⟨W, hW, hKW, hWV⟩ := hK.exists_isOpen_closure_subset (hV.mem_nhdsSet.mpr hKV) |
| 44 | have hWc : IsCompact (closure W) := |
| 45 | hVc.of_isClosed_subset isClosed_closure (hWV.trans subset_closure) |
| 46 | obtain ⟨A, hA, hjet⟩ := smooth_jet_le_l2_derivativeProfile_on_compact hK hW hWc hKW m |
| 47 | obtain ⟨D, hD, hpower⟩ := exists_derivativeProfile_le_ellipticPowerProfile |
| 48 | B b' hb' (m + 1 + d) hV hVc (subset_univ _) hW hWc hWV |
| 49 | refine ⟨m + 1 + d, A * (D + 1), mul_pos hA (by positivity), ?_⟩ |
| 50 | intro u hu x hx |
| 51 | obtain ⟨v, hv, hvu⟩ := exists_smooth_extension_on_precompact hO hVc hVO hu |
| 52 | have heq (j : ℕ) : ((secondOrderOperator B.a b')^[j] v) =ᵐ[volume.restrict V] |
| 53 | ((secondOrderOperator a b)^[j] u) := by |
| 54 | filter_upwards [ae_restrict_mem hV.measurableSet] with y hy |
| 55 | exact iterate_secondOrderOperator_eqOn hV hBa hb'b hvu j hy |
| 56 | have hfinite (j : ℕ) : |
| 57 | eLpNorm ((secondOrderOperator B.a b')^[j] v) 2 (volume.restrict V) ≠ ⊤ := |
| 58 | ((continuous_memLp_on_compact |
| 59 | (contDiff_iterate_secondOrderOperator B.smooth_a hb' hv j).continuous hVc).mono_measure |
| 60 | (Measure.restrict_mono subset_closure le_rfl)).eLpNorm_ne_top |
| 61 | have hsum : (ellipticPowerProfile B.a b' V (m + 1 + d) v).toReal = |
| 62 | ∑ j ∈ Finset.range (m + 1 + d + 1), |
| 63 | (eLpNorm ((secondOrderOperator a b)^[j] u) 2 (volume.restrict V)).toReal := by |
| 64 | unfold ellipticPowerProfile |
| 65 | simp only [derivativeProfile_zero] |
| 66 | rw [ENNReal.toReal_sum (fun j _ => hfinite j)] |
| 67 | exact Finset.sum_congr rfl (fun j _ => congrArg ENNReal.toReal (eLpNorm_congr_ae (heq j))) |
| 68 | have hprofile : (derivativeProfile 2 W (m + 1 + d) v).toReal ≤ |
| 69 | D * (ellipticPowerProfile B.a b' V (m + 1 + d) v).toReal := by |
| 70 | have h := ENNReal.toReal_mono |
| 71 | (ENNReal.mul_ne_top ENNReal.ofReal_ne_top |
| 72 | (ellipticPowerProfile_ne_top B.smooth_a hb' hVc hv (m + 1 + d))) (hpower hv) |
| 73 | simpa only [ENNReal.toReal_mul, ENNReal.toReal_ofReal hD] using h |
| 74 | have hgerm : v =ᶠ[𝓝 x] u := |
| 75 | Filter.mem_of_superset (hV.mem_nhds (hKV hx)) hvu |
| 76 | have hderiv : iteratedFDeriv ℝ m v x = iteratedFDeriv ℝ m u x := |
| 77 | (hgerm.iteratedFDeriv ℝ m).self_of_nhds |
| 78 | rw [← hderiv, ← hsum] |
| 79 | calc |
| 80 | ‖iteratedFDeriv ℝ m v x‖ ≤ A * (derivativeProfile 2 W (m + 1 + d) v).toReal := |
| 81 | hjet hv x hx |
| 82 | _ ≤ A * (D * (ellipticPowerProfile B.a b' V (m + 1 + d) v).toReal) := |
| 83 | mul_le_mul_of_nonneg_left hprofile hA.le |
| 84 | _ ≤ A * (D + 1) * (ellipticPowerProfile B.a b' V (m + 1 + d) v).toReal := by |
| 85 | nlinarith [ENNReal.toReal_nonneg (a := ellipticPowerProfile B.a b' V (m + 1 + d) v)] |
| 86 | |
| 87 | end Poincare.Analysis.Elliptic.InteriorEstimates |