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.Riemannian.LoopSpace.Width |
| 2 | import PoincareLib.Topology.Manifold.ThreeDimensional.Conclusion |
| 3 | |
| 4 | /-! |
| 5 | # Loop-space width milestone |
| 6 | |
| 7 | The proposition layer records Claim 18.16 and Definition 18.17 with all |
| 8 | regularity and compactness interfaces made explicit. The filling and width |
| 9 | infima are over the concrete disk and family types in the definitions file. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 22 | |
| 23 | /-- Two loops differ only by an explicit circle reparameterization. -/ |
| 24 | def ReparameterizedLoops (γ₁ γ₂ : C1FreeLoopSpace (M := M)) : Prop := |
| 25 | ∃ r : CircleReparameterization, ∀ z : LoopCircle, |
| 26 | γ₁ z = γ₂ (r.map z) |
| 27 | |
| 28 | /-- Inputs supplied by the preceding geometric and variational milestones. -/ |
| 29 | structure LoopSpaceWidthPredecessors where |
| 30 | manifold : CompactConnectedThreeManifold (M := M) |
| 31 | metric : RiemannianMetric 3 M |
| 32 | basepoint : M |
| 33 | pi_two_subsingleton : Subsingleton (HomotopyGroup.Pi 2 M basepoint) |
| 34 | |
| 35 | /-- Complete conclusions of Claim 18.16 and Definition 18.17. -/ |
| 36 | structure LoopSpaceWidthConclusions (P : LoopSpaceWidthPredecessors (M := M)) where |
| 37 | /-- The identity component is exactly the null-homotopic loop component. -/ |
| 38 | identity_component_null_homotopic : |
| 39 | ∀ γ : C1FreeLoopSpace (M := M), |
| 40 | InIdentityComponent P.basepoint γ ↔ IsNullHomotopicLoop γ |
| 41 | /-- Claim 18.16's based homotopy-group identification. -/ |
| 42 | pi_two_loop_equiv_pi_three : |
| 43 | Nonempty (HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) |
| 44 | (constantC1Loop P.basepoint) ≃* HomotopyGroup.Pi 3 M P.basepoint) |
| 45 | /-- Every based class admits the displayed regular sphere-family model. -/ |
| 46 | class_representative : |
| 47 | ∀ α : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) |
| 48 | (constantC1Loop P.basepoint), |
| 49 | ∃ Γ : FreeTwoSphereFamily (M := M), |
| 50 | familySigmaClass Γ = ⟨P.basepoint, α⟩ |
| 51 | /-- The admissible filling class is nonempty and its area infimum is finite. -/ |
| 52 | filling_area_well_defined : |
| 53 | ∀ γ : C1FreeLoopSpace (M := M), IsNullHomotopicLoop γ → |
| 54 | FillingAreaData P.metric γ |
| 55 | /-- Filling area is invariant under the allowed circle reparameterizations. -/ |
| 56 | filling_area_reparameterization_invariant : |
| 57 | ∀ γ₁ γ₂ : C1FreeLoopSpace (M := M), ReparameterizedLoops γ₁ γ₂ → |
| 58 | fillingArea P.metric γ₁ = fillingArea P.metric γ₂ |
| 59 | /-- Continuity of filling area on the null-homotopic component. -/ |
| 60 | filling_area_continuous_on_component : |
| 61 | ContinuousOn (fun γ : C1FreeLoopSpace (M := M) => fillingArea P.metric γ) |
| 62 | {γ | IsNullHomotopicLoop γ} |
| 63 | /-- Every free sphere family has a finite maximum width. -/ |
| 64 | family_width_is_maximum : |
| 65 | ∀ Γ : FreeTwoSphereFamily (M := M), FamilyWidthData P.metric Γ |
| 66 | /-- Class width is the infimum over all free representatives of the class. -/ |
| 67 | class_width_is_infimum : |
| 68 | ∀ ξ : FreeTwoSphereFamily (M := M), ClassWidthData P.metric ξ |
| 69 | /-- The zero/nonzero alternative is left to the later extinction milestone. -/ |
| 70 | width_nonnegative : |
| 71 | ∀ Γ : FreeTwoSphereFamily (M := M), 0 ≤ familyWidth P.metric Γ |
| 72 | class_width_nonnegative : |
| 73 | ∀ ξ : FreeTwoSphereFamily (M := M), 0 ≤ classWidth P.metric ξ |
| 74 | |
| 75 | end PoincareMT |