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.Sampled.Polygon |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.ApproximationTheory |
| 3 | |
| 4 | /-! |
| 5 | # Static approximation assembly |
| 6 | |
| 7 | The pointwise sampled polygon and exact length fields are proved from the |
| 8 | closed M63 polygon supplier. The compact-family and raw-family fields carry |
| 9 | the additional short-annulus and filling witnesses required by M64, so this |
| 10 | file keeps those two genuine producers explicit while assembling the record. |
| 11 | |
| 12 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 13 | 450-453. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} |
| 28 | |
| 29 | /-- Assemble the full static theory from the two genuinely M64-specific suppliers and the |
| 30 | closed pointwise polygon construction. Source: Auxiliary step for MT Definition 19.18 and |
| 31 | Claims 19.19/19.22, pp. 450-453; project construction in |
| 32 | `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 33 | theorem m64StaticApproximationTheory_of_suppliers |
| 34 | (hcompact : IsCompact (univ : Set M)) |
| 35 | (huniform : ∀ X : Set (C1FreeLoopSpace (M := M)), IsCompact X → |
| 36 | ∀ zeta : ℝ, 0 < zeta → ∃ N0 : ℕ, 0 < N0 ∧ |
| 37 | ∀ N : ℕ, N0 ≤ N → ∀ gamma : C1FreeLoopSpace (M := M), gamma ∈ X → |
| 38 | ∃ polygon : M63GeodesicPolygon g D N, |
| 39 | M64SampledPolygon gamma polygon ∧ |
| 40 | (∀ other : M63GeodesicPolygon g D N, M64SampledPolygon gamma other → |
| 41 | ∀ x, other.map x = polygon.map x) ∧ |
| 42 | Nonempty (M64PolygonBoundary polygon) ∧ |
| 43 | (0 ≤ freeLoopLength g gamma - m64PolygonLength polygon ∧ |
| 44 | freeLoopLength g gamma - m64PolygonLength polygon < zeta) ∧ |
| 45 | ∃ A : M64Annulus g (periodicFreeLoop gamma) polygon.map, |
| 46 | M64PiecewiseC1Annulus A ∧ M64GeodesicAnnulus D A ∧ |
| 47 | 0 ≤ A.area ∧ A.area < zeta) |
| 48 | (hraw : ∀ Gamma : ContinuousMap LoopTwoSphere |
| 49 | (C1FreeLoopSpace (M := M)), M61NullFamily Gamma → |
| 50 | ∀ zeta : ℝ, 0 < zeta → ∃ N0 : ℕ, 0 < N0 ∧ |
| 51 | ∀ N : ℕ, N0 ≤ N → |
| 52 | ∃ A : M64RawFamilyApproximation g D Gamma zeta, A.count = N) : |
| 53 | M64StaticApproximationTheory g D := by |
| 54 | obtain ⟨hsampled, hlength⟩ := m64_static_polygon_fields (g := g) (D := D) hcompact |
| 55 | exact { |
| 56 | sampled_exists := hsampled |
| 57 | polygon_length := hlength |
| 58 | uniform_compact := huniform |
| 59 | raw_family := hraw } |
| 60 | |
| 61 | end PoincareMT |