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.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Lipschitz.RectangleFTC |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Weak.DerivativeClosure |
| 3 | import Mathlib.MeasureTheory.SpecificCodomains.WithLp |
| 4 | |
| 5 | /-! |
| 6 | # Actual weak columns of a Lipschitz observed annulus |
| 7 | |
| 8 | Scalar Lipschitz extensions identify the actual derivatives with weak |
| 9 | partials. Finite-dimensional coordinate integration then gives L2 columns. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Set Filter MeasureTheory |
| 21 | open scoped Topology ENNReal NNReal |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | open Poincare.Analysis.Sobolev.Weak |
| 26 | |
| 27 | local notation "S" => interior m64AnnulusDomain |
| 28 | local notation "mu" => volume.restrict S |
| 29 | |
| 30 | /-- The actual partial derivative of a Lipschitz scalar annulus is its weak derivative on |
| 31 | the open rectangle. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem m64_lipschitz_scalar_weak_partial {f : LoopPlane → ℝ} {K : ℝ≥0} |
| 33 | (hf : LipschitzOnWith K f m64AnnulusDomain) (i : Fin 2) : |
| 34 | HasWeakPartialDeriv i (fun p => fderiv ℝ f p (EuclideanSpace.single i 1)) f S := by |
| 35 | obtain ⟨F, hF, heq⟩ := hf.extend_real |
| 36 | have hv : F =ᵐ[mu] f := by |
| 37 | filter_upwards [ae_restrict_mem isOpen_interior.measurableSet] with p hp |
| 38 | exact (heq (interior_subset hp)).symm |
| 39 | have hd : (fun p => lineDeriv ℝ F p (EuclideanSpace.single i 1)) =ᵐ[mu] |
| 40 | (fun p => fderiv ℝ f p (EuclideanSpace.single i 1)) := by |
| 41 | filter_upwards [ae_restrict_mem isOpen_interior.measurableSet, |
| 42 | ae_restrict_of_ae (hF.ae_differentiableAt (μ := volume))] with p hp hdp |
| 43 | have hnear : f =ᶠ[𝓝 p] F := by |
| 44 | filter_upwards [isOpen_interior.mem_nhds hp] with q hq |
| 45 | exact heq (interior_subset hq) |
| 46 | rw [hdp.lineDeriv_eq_fderiv, hnear.fderiv_eq] |
| 47 | exact m64WeakPartialDeriv_ae_congr hv hd |
| 48 | (hasWeakPartialDeriv_lineDeriv_of_lipschitz hF i) |
| 49 | |
| 50 | /-- An actual Lipschitz observed annulus belongs to L2 on the open rectangle. Proof |
| 51 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 52 | theorem m64_lipschitz_memLp_two |
| 53 | {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 54 | {f : LoopPlane → F} {K : ℝ≥0} (hf : LipschitzOnWith K f m64AnnulusDomain) : |
| 55 | MemLp f 2 mu := by |
| 56 | apply (memLp_two_iff_integrable_sq_norm |
| 57 | ((hf.continuousOn.mono interior_subset).aestronglyMeasurable |
| 58 | isOpen_interior.measurableSet)).mpr |
| 59 | exact (hf.continuousOn.norm.pow 2).integrableOn_compact |
| 60 | m64AnnulusDomain_isCompact |>.mono_set interior_subset |
| 61 | |
| 62 | variable {m : ℕ} |
| 63 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 64 | |
| 65 | /-- Coordinate projection preserves the actual annular Lipschitz bound with its |
| 66 | operator-norm factor. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 67 | theorem m64_lipschitz_coordinate {f : LoopPlane → E} {K : ℝ≥0} |
| 68 | (hf : LipschitzOnWith K f m64AnnulusDomain) (b : Fin m) : |
| 69 | LipschitzOnWith |
| 70 | (‖PiLp.proj (𝕜 := ℝ) 2 (fun _ : Fin m => ℝ) b‖₊ * K) |
| 71 | (fun p => f p b) m64AnnulusDomain := |
| 72 | (PiLp.proj (𝕜 := ℝ) 2 (fun _ : Fin m => ℝ) b).lipschitz.comp_lipschitzOnWith hf |
| 73 | |
| 74 | /-- At almost every differentiability point the actual vector partial and coordinate partial |
| 75 | agree. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 76 | theorem m64_vector_partial_coordinate_ae {f : LoopPlane → E} |
| 77 | (hdiff : ∀ᵐ p ∂mu, DifferentiableAt ℝ f p) (i : Fin 2) (b : Fin m) : |
| 78 | (fun p => fderiv ℝ (fun q => f q b) p (EuclideanSpace.single i 1)) =ᵐ[mu] |
| 79 | (fun p => (fderiv ℝ f p (EuclideanSpace.single i 1)) b) := by |
| 80 | filter_upwards [hdiff] with p hp |
| 81 | let P := PiLp.proj (𝕜 := ℝ) 2 (fun _ : Fin m => ℝ) b |
| 82 | have hd := (P.hasFDerivAt.comp p hp.hasFDerivAt).fderiv |
| 83 | exact congrArg (fun L => L (EuclideanSpace.single i 1)) hd |
| 84 | |
| 85 | /-- The actual derivative columns of a Lipschitz observed annulus belong to L2. Proof |
| 86 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 87 | theorem m64_lipschitz_vector_column_memLp {f : LoopPlane → E} {K : ℝ≥0} |
| 88 | (hf : LipschitzOnWith K f m64AnnulusDomain) |
| 89 | (hdiff : ∀ᵐ p ∂mu, DifferentiableAt ℝ f p) (i : Fin 2) : |
| 90 | MemLp (fun p => fderiv ℝ f p (EuclideanSpace.single i 1)) 2 mu := by |
| 91 | let : IsFiniteMeasure mu := ⟨by |
| 92 | rw [Measure.restrict_apply_univ] |
| 93 | exact (measure_mono interior_subset).trans_lt m64AnnulusDomain_isCompact.measure_lt_top⟩ |
| 94 | apply MemLp.of_eval_piLp |
| 95 | intro b |
| 96 | have hh := (memLp_top_fderiv_apply_of_lipschitzOn isOpen_interior |
| 97 | ((m64_lipschitz_coordinate hf b).mono interior_subset) |
| 98 | (EuclideanSpace.single i 1)).mono_exponent (p := 2) le_top |
| 99 | exact (memLp_congr_ae (m64_vector_partial_coordinate_ae hdiff i b)).mp hh |
| 100 | |
| 101 | /-- The actual vector derivative columns of a Lipschitz observed annulus satisfy the |
| 102 | coordinate weak identities. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. |
| 103 | 447-449. -/ |
| 104 | theorem m64_lipschitz_vector_weak_partial {f : LoopPlane → E} {K : ℝ≥0} |
| 105 | (hf : LipschitzOnWith K f m64AnnulusDomain) |
| 106 | (hdiff : ∀ᵐ p ∂mu, DifferentiableAt ℝ f p) (i : Fin 2) (b : Fin m) : |
| 107 | HasWeakPartialDeriv i (fun p => (fderiv ℝ f p (EuclideanSpace.single i 1)) b) |
| 108 | (fun p => f p b) S := |
| 109 | m64WeakPartialDeriv_ae_congr EventuallyEq.rfl (m64_vector_partial_coordinate_ae hdiff i b) |
| 110 | (m64_lipschitz_scalar_weak_partial (m64_lipschitz_coordinate hf b) i) |
| 111 | |
| 112 | end PoincareMT |