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.Annulus |
| 2 | |
| 3 | /-! |
| 4 | # Exact C1 and raw-boundary disk transports for M64 |
| 5 | |
| 6 | The same disk map, entire boundary homeomorphism, Lipschitz constant and |
| 7 | Jacobian integral are retained. Equality of the area ranges is valid even |
| 8 | when the ranges are empty; it makes no geometric existence claim. |
| 9 | |
| 10 | Morgan--Tian context: Chapter 19, Sections 19.3-19.7, printed pp. 447-481; the frozen M64 |
| 11 | contracts and project comparison erratum specify the final interfaces. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 24 | {g : RiemannianMetric 3 M} {gamma : C1FreeLoopSpace (M := M)} |
| 25 | |
| 26 | /-- Forget the C1 boundary record while preserving every disk field. Source: Auxiliary step |
| 27 | for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 28 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 29 | def m64RawDiskOfC1 (D : LipschitzSpanningDisk g gamma) : |
| 30 | M64RawSpanningDisk g (m64C1Boundary gamma) where |
| 31 | map := D.map |
| 32 | continuous_on_disk := D.continuous_on_disk |
| 33 | ae_manifold_differentiable := D.ae_manifold_differentiable |
| 34 | reparameterization := D.reparameterization |
| 35 | boundary_eq := D.boundary_eq |
| 36 | lipschitz_constant := D.lipschitz_constant |
| 37 | lipschitz_nonnegative := D.lipschitz_nonnegative |
| 38 | lipschitz_on_disk := D.lipschitz_on_disk |
| 39 | area_integrable := D.area_integrable |
| 40 | area_nonnegative := D.area_nonnegative |
| 41 | |
| 42 | /-- Restore the given C1 boundary record without changing the disk map or requiring any |
| 43 | regularity of its boundary homeomorphism. Source: Auxiliary step for MT Lemma 19.30, p. 462; |
| 44 | the actual half-disk collar in |
| 45 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 46 | def m64C1DiskOfRaw (D : M64RawSpanningDisk g (m64C1Boundary gamma)) : |
| 47 | LipschitzSpanningDisk g gamma where |
| 48 | map := D.map |
| 49 | continuous_on_disk := D.continuous_on_disk |
| 50 | ae_manifold_differentiable := D.ae_manifold_differentiable |
| 51 | reparameterization := D.reparameterization |
| 52 | boundary_eq := D.boundary_eq |
| 53 | lipschitz_constant := D.lipschitz_constant |
| 54 | lipschitz_nonnegative := D.lipschitz_nonnegative |
| 55 | lipschitz_on_disk := D.lipschitz_on_disk |
| 56 | area_integrable := D.area_integrable |
| 57 | area_nonnegative := D.area_nonnegative |
| 58 | |
| 59 | /-- These field-preserving transports are inverse, including the retained map and boundary |
| 60 | reparameterization, not just their area values. Source: Auxiliary step for MT Lemma 19.30, |
| 61 | p. 462; the actual half-disk collar in |
| 62 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 63 | def m64C1RawDiskEquiv : |
| 64 | LipschitzSpanningDisk g gamma ≃ M64RawSpanningDisk g (m64C1Boundary gamma) where |
| 65 | toFun := m64RawDiskOfC1 |
| 66 | invFun := m64C1DiskOfRaw |
| 67 | left_inv := fun _ => rfl |
| 68 | right_inv := fun _ => rfl |
| 69 | |
| 70 | /-- Forgetting the C1 boundary record preserves the literal disk area. Source: Auxiliary |
| 71 | step for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 72 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 73 | theorem m64RawDiskOfC1_area (D : LipschitzSpanningDisk g gamma) : |
| 74 | (m64RawDiskOfC1 D).area = D.area := rfl |
| 75 | |
| 76 | /-- Restoring the C1 boundary record preserves the literal disk area. Source: Auxiliary step |
| 77 | for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 78 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 79 | theorem m64C1DiskOfRaw_area (D : M64RawSpanningDisk g (m64C1Boundary gamma)) : |
| 80 | (m64C1DiskOfRaw D).area = D.area := rfl |
| 81 | |
| 82 | /-- The two admissible classes have exactly the same area range. Source: Auxiliary step for |
| 83 | MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 84 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 85 | theorem m64RawDiskAreaRange_c1 : |
| 86 | m64RawDiskAreaRange g (m64C1Boundary gamma) = |
| 87 | Set.range (fun D : LipschitzSpanningDisk g gamma => D.area) := by |
| 88 | ext area |
| 89 | constructor |
| 90 | · rintro ⟨D, hD⟩ |
| 91 | exact ⟨m64C1DiskOfRaw D, hD⟩ |
| 92 | · rintro ⟨D, hD⟩ |
| 93 | exact ⟨m64RawDiskOfC1 D, hD⟩ |
| 94 | |
| 95 | /-- Equality of the totalized infima; nonemptiness is a separate geometric obligation |
| 96 | whenever these values are used as filling areas. Source: Auxiliary step for MT Lemma 19.30, |
| 97 | p. 462; the actual half-disk collar in |
| 98 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 99 | theorem m64RawFillingArea_c1 : |
| 100 | m64RawFillingArea g (m64C1Boundary gamma) = fillingArea g gamma := by |
| 101 | unfold m64RawFillingArea fillingArea |
| 102 | rw [m64RawDiskAreaRange_c1] |
| 103 | |
| 104 | end PoincareMT |