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.PolygonApproximation.Uniform.CompactChordLength |
| 2 | |
| 3 | /-! |
| 4 | # The compact-family chord package |
| 5 | |
| 6 | The metric-free chord estimate applies directly to the subtype of an |
| 7 | arbitrary compact set of `C1FreeLoopSpace`. This adapter has exactly the |
| 8 | chord shape consumed by `M64UniformCompactPackage`; polygon and annulus data |
| 9 | remain separate M64 witnesses. |
| 10 | |
| 11 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 12 | 450-453. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 25 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 26 | {g : RiemannianMetric 3 M} |
| 27 | |
| 28 | /-- Transfer the uniform sampled-chord estimate to the intrinsic C1 topology on a compact |
| 29 | loop set. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. |
| 30 | 450-453; project construction in |
| 31 | `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 32 | theorem m64_uniform_compact_chord_of_compact |
| 33 | (hcompact : IsCompact (univ : Set M)) |
| 34 | (X : Set (C1FreeLoopSpace (M := M))) (hX : IsCompact X) : |
| 35 | ∀ zeta : ℝ, 0 < zeta → ∃ N0 : ℕ, 0 < N0 ∧ |
| 36 | ∀ N : ℕ, N0 ≤ N → ∀ gamma : C1FreeLoopSpace (M := M), gamma ∈ X → |
| 37 | let chord := ∑ j : Fin N, |
| 38 | (g.edist |
| 39 | (periodicFreeLoop gamma (m63CellLeft N j)) |
| 40 | (periodicFreeLoop gamma (m63CellLeft N (finRotate N j)))).toReal |
| 41 | 0 ≤ freeLoopLength g gamma - chord ∧ |
| 42 | freeLoopLength g gamma - chord < zeta := by |
| 43 | intro zeta hzeta |
| 44 | let : CompactSpace X := isCompact_iff_compactSpace.mp hX |
| 45 | obtain ⟨N0, hN0, hchord⟩ := |
| 46 | m64_exists_uniform_sampled_chord_length (g := g) hcompact |
| 47 | (Z := X) (fun gamma : X => gamma.1) continuous_subtype_val hzeta |
| 48 | refine ⟨N0, hN0, ?_⟩ |
| 49 | intro N hN gamma hgamma |
| 50 | simpa only using hchord N hN ⟨gamma, hgamma⟩ |
| 51 | |
| 52 | end PoincareMT |