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.Stabilization.Projected.WeightedEnergy |
| 2 | |
| 3 | /-! |
| 4 | # A genuine observation retaining the old factor linearly |
| 5 | |
| 6 | Augment a closed chart observation of the circle product by the prescribed |
| 7 | observation of its base. The original product observation still supplies |
| 8 | injectivity and chart readers, while a fixed linear projection reads the |
| 9 | retained base observation exactly. This prepares weak projection without |
| 10 | assuming a nonlinear Sobolev chain or boundary-trace theorem. |
| 11 | |
| 12 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 13 | 447-449. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter Topology |
| 22 | open scoped Topology Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT.M64 |
| 25 | |
| 26 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 29 | |
| 30 | /-- Augment a compact chart observation with a prescribed linearly readable base |
| 31 | observation. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem auxiliaryCircle_exists_retained_observation |
| 33 | (P : M62.CircleProductData F circumference) |
| 34 | (e : M → EuclideanSpace ℝ (Fin m)) (he : ContMDiff (𝓡 n) (𝓡 m) ∞ e) : |
| 35 | ∃ (k : ℕ) (o : P.charts.Point → EuclideanSpace ℝ (Fin k)) |
| 36 | (L : EuclideanSpace ℝ (Fin k) →L[ℝ] EuclideanSpace ℝ (Fin m)), |
| 37 | ContMDiff (𝓡 (n + 1)) (𝓡 k) ∞ o ∧ IsClosedEmbedding o ∧ |
| 38 | M60.SUChartReadable (n := n + 1) o ∧ |
| 39 | ∀ q : P.charts.Point, L (o q) = e q.1 := by |
| 40 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 41 | let := P.charts.chartedSpace |
| 42 | obtain ⟨d, w, hw, hwi, hread⟩ := |
| 43 | M60.suCompactObservation_exists (n := n + 1) (M := P.charts.Point) |
| 44 | let A : EuclideanSpace ℝ (Fin (m + d)) ≃L[ℝ] |
| 45 | EuclideanSpace ℝ (Fin m) × EuclideanSpace ℝ (Fin d) := |
| 46 | EuclideanSpace.finAddEquivProd |
| 47 | let o : P.charts.Point → EuclideanSpace ℝ (Fin (m + d)) := |
| 48 | fun q => A.symm (e q.1, w q) |
| 49 | let L : EuclideanSpace ℝ (Fin (m + d)) →L[ℝ] EuclideanSpace ℝ (Fin m) := |
| 50 | (ContinuousLinearMap.fst ℝ _ _).comp A.toContinuousLinearMap |
| 51 | let R : EuclideanSpace ℝ (Fin (m + d)) →L[ℝ] EuclideanSpace ℝ (Fin d) := |
| 52 | (ContinuousLinearMap.snd ℝ _ _).comp A.toContinuousLinearMap |
| 53 | have hL (q : P.charts.Point) : L (o q) = e q.1 := by |
| 54 | change (A (A.symm (e q.1, w q))).1 = e q.1 |
| 55 | rw [A.apply_symm_apply] |
| 56 | have hR (q : P.charts.Point) : R (o q) = w q := by |
| 57 | change (A (A.symm (e q.1, w q))).2 = w q |
| 58 | rw [A.apply_symm_apply] |
| 59 | have hfst : ContMDiff (𝓡 (n + 1)) (𝓡 n) ∞ |
| 60 | (Prod.fst : P.charts.Point → M) := |
| 61 | contMDiff_fst.comp P.charts.to_product_smooth |
| 62 | have ho : ContMDiff (𝓡 (n + 1)) (𝓡 (m + d)) ∞ o := |
| 63 | A.symm.toDiffeomorph.contMDiff.comp ((he.comp hfst).prodMk_space hw) |
| 64 | have hoi : Function.Injective o := by |
| 65 | intro q q' h |
| 66 | apply hwi.injective |
| 67 | simpa only [hR] using congrArg R h |
| 68 | refine ⟨m + d, o, L, ho, ho.continuous.isClosedEmbedding hoi, ?_, hL⟩ |
| 69 | intro q |
| 70 | obtain ⟨b, hb, S, hS⟩ := hread q |
| 71 | refine ⟨b, hb, S.comp R, ?_⟩ |
| 72 | simpa only [ContinuousLinearMap.comp_apply, hR] using hS |
| 73 | |
| 74 | end PoincareMT.M64 |