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.Local.HarmonicObservation |
| 2 | |
| 3 | /-! A uniform observed Laplacian bound for genuine local harmonic germs. |
| 4 | Compact-target intrinsic Hessian bounds are chosen before any source |
| 5 | point or chart. Source: Sacks-Uhlenbeck 3.6; Morrey ICM pp. 183-185; |
| 6 | M64 finite-boundary-regularity derivation. |
| 7 | |
| 8 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 9 | 447-449. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option warningAsError true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology Manifold ContDiff |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | open CoordinateExponential ConnectionVariation |
| 23 | |
| 24 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | |
| 27 | local notation "b" => EuclideanSpace.basisFun (Fin 2) ℝ |
| 28 | |
| 29 | /-- One constant controls the actual vector observation Laplacian for every original local |
| 30 | harmonic map germ, even when its chart varies. Proof expansion for Morgan-Tian (2007), Lemma |
| 31 | 19.15, pp. 447-449. -/ |
| 32 | theorem m64LocalHarmonic_observation_vector_bound [CompactSpace M] |
| 33 | {g : RiemannianMetric n M} (D : LeviCivitaData g) {k : ℕ} |
| 34 | {e : M → EuclideanSpace ℝ (Fin k)} (he : ContMDiff (𝓡 n) (𝓡 k) ∞ e) : |
| 35 | ∃ B : ℝ, 0 ≤ B ∧ ∀ (q : M) (u : LoopPlane → EuclideanSpace ℝ (Fin n)) |
| 36 | (f : LoopPlane → M) (p : LoopPlane), ContDiffAt ℝ 2 u p → |
| 37 | u p ∈ (extChartAt (𝓡 n) q).target → |
| 38 | ((extChartAt (𝓡 n) q).symm ∘ u) =ᶠ[𝓝 p] f → |
| 39 | (∑ i : Fin 2, covDerivAlong |
| 40 | (christoffelBilinear (g.pullbackCoefficients (extChartAt (𝓡 n) q).symm)) u |
| 41 | (fun x => fderiv ℝ u x (b i)) (b i) p) = 0 → |
| 42 | ‖∑ i : Fin 2, fderiv ℝ (fderiv ℝ (e ∘ f)) p (b i) (b i)‖ ≤ |
| 43 | B * m60EnergyDensity g f p := by |
| 44 | have hs (j : Fin k) : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun x => e x j) := |
| 45 | (contMDiff_iff_contDiff.mpr (EuclideanSpace.proj j).contDiff).comp he |
| 46 | choose B hB hbound using fun j : Fin k => |
| 47 | D.exists_metric_hessian_bound_on_compact (hs j) isCompact_univ |
| 48 | refine ⟨∑ j, 2 * B j, Finset.sum_nonneg (fun j _ => mul_nonneg (by norm_num) (hB j)), |
| 49 | fun q u f p hu hut hmap hharm => ?_⟩ |
| 50 | have hscalar (j : Fin k) : |
| 51 | |∑ i : Fin 2, fderiv ℝ (fderiv ℝ ((fun x => e x j) ∘ f)) p (b i) (b i)| ≤ |
| 52 | (2 * B j) * m60EnergyDensity g f p := by |
| 53 | rw [m64LocalHarmonic_scalar_observation_laplacian D (hs j) q hu hut hmap hharm] |
| 54 | calc |
| 55 | _ ≤ ∑ i : Fin 2, |D.hessian (fun x => e x j) (f p) |
| 56 | (mfderiv (𝓡 2) (𝓡 n) f p (b i)) (mfderiv (𝓡 2) (𝓡 n) f p (b i))| := |
| 57 | Finset.abs_sum_le_sum_abs _ _ |
| 58 | _ ≤ ∑ i : Fin 2, B j * m60AreaGram g f p i i := |
| 59 | Finset.sum_le_sum fun i _ => hbound j (f p) (mem_univ _) _ |
| 60 | _ = _ := by |
| 61 | simp only [m60EnergyDensity, Matrix.trace, Matrix.diag, Fin.sum_univ_two] |
| 62 | ring |
| 63 | have hcs : ContMDiffAt (𝓡 n) (𝓡 n) ∞ (extChartAt (𝓡 n) q).symm (u p) := |
| 64 | (contMDiffOn_extChartAt_symm (n := ∞) q).contMDiffAt |
| 65 | ((isOpen_extChartAt_target q).mem_nhds hut) |
| 66 | have hf : ContMDiffAt (𝓡 2) (𝓡 n) 2 f p := |
| 67 | ((hcs.of_le (WithTop.coe_le_coe.mpr le_top)).comp p hu.contMDiffAt |
| 68 | ).congr_of_eventuallyEq hmap.symm |
| 69 | have hU : ContDiffAt ℝ 2 (e ∘ f) p := contMDiffAt_iff_contDiffAt.mp |
| 70 | ((he.of_le (WithTop.coe_le_coe.mpr le_top)).contMDiffAt.comp p hf) |
| 71 | let U := e ∘ f |
| 72 | let W := ∑ i : Fin 2, fderiv ℝ (fderiv ℝ U) p (b i) (b i) |
| 73 | let basis := EuclideanSpace.basisFun (Fin k) ℝ |
| 74 | have hc (j : Fin k) : W j = |
| 75 | ∑ i : Fin 2, fderiv ℝ (fderiv ℝ ((fun x => e x j) ∘ f)) p (b i) (b i) := by |
| 76 | simp only [W, WithLp.ofLp_sum, Finset.sum_apply] |
| 77 | apply Finset.sum_congr rfl |
| 78 | intro i _ |
| 79 | let L := EuclideanSpace.proj (𝕜 := ℝ) j |
| 80 | change _ = fderiv ℝ (fderiv ℝ (L ∘ U)) p _ _ |
| 81 | rw [M60.second_fderiv_comp (L.contDiff.contDiffAt : ContDiffAt ℝ 2 L (U p)) hU] |
| 82 | have hL : fderiv ℝ L = fun _ => L := funext fun _ => L.fderiv |
| 83 | rw [hL] |
| 84 | erw [fderiv_const] |
| 85 | change _ = 0 + _ |
| 86 | exact (zero_add _).symm |
| 87 | calc |
| 88 | ‖W‖ = ‖∑ j, basis.repr W j • basis j‖ := congrArg norm (basis.sum_repr W).symm |
| 89 | _ ≤ ∑ j, ‖basis.repr W j • basis j‖ := norm_sum_le _ _ |
| 90 | _ = ∑ j, |W j| := by |
| 91 | simp only [norm_smul, basis, EuclideanSpace.basisFun_repr, Real.norm_eq_abs, |
| 92 | OrthonormalBasis.norm_eq_one, mul_one] |
| 93 | _ ≤ ∑ j, (2 * B j) * m60EnergyDensity g f p := by |
| 94 | apply Finset.sum_le_sum |
| 95 | intro j _ |
| 96 | rw [hc j] |
| 97 | exact hscalar j |
| 98 | _ = _ := (Finset.sum_mul _ _ _).symm |
| 99 | |
| 100 | end PoincareMT |