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.AlgebraicTopology.HomotopyGroup.LoopSpace.Comparison.Lefschetz.SupportedLiftRestriction |
| 2 | import PoincareLib.AlgebraicTopology.HomotopyGroup.LoopSpace.Comparison.Lefschetz.TrivialLiftComparison |
| 3 | import PoincareLib.AlgebraicTopology.HomotopyGroup.LoopSpace.Comparison.Lefschetz.OrderComplexCone |
| 4 | import PoincareLib.AlgebraicTopology.HomotopyGroup.LoopSpace.Comparison.Lefschetz.ContractibleCovering |
| 5 | |
| 6 | /-! |
| 7 | # Singular comparison for a supported nerve cone |
| 8 | |
| 9 | The selected coordinate neighborhood contracts to the selected least |
| 10 | vertex while fixing it. Its actual covering is a product with the fiber |
| 11 | over that vertex. The resulting fiber retraction is a homotopy equivalence, |
| 12 | and the literal cone augmentation proves the characteristic comparison. |
| 13 | Source: Hatcher, Theorem 2.27, printed pp. 128-130. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open CategoryTheory HomologicalComplex |
| 21 | open scoped Simplicial unitInterval |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.Proofs.M59 |
| 26 | |
| 27 | open M02.Topology |
| 28 | |
| 29 | variable {E X : Type u} [TopologicalSpace E] [TopologicalSpace X] |
| 30 | (p : C(E, X)) (hp : IsCoveringMap p) (H : C(I × X, X)) |
| 31 | (hzero : ∀ x, H (0, x) = x) (x₀ : X) (hone : ∀ x, H (1, x) = x₀) |
| 32 | (hfixed : ∀ t, H (t, x₀) = x₀) |
| 33 | |
| 34 | include hfixed in |
| 35 | set_option backward.isDefEq.respectTransparency false in |
| 36 | /-- The endpoint-fiber retraction of a lifted strong contraction |
| 37 | induces the actual singular-chain quasi-isomorphism. |
| 38 | Source: Hatcher, Proposition 1.30 and Theorem 2.27. -/ |
| 39 | theorem coveringFiberRetraction_chainMap_quasiIso : |
| 40 | QuasiIso (SSet.chainComplexMap (TopCat.toSSet.map |
| 41 | (TopCat.ofHom (coveringFiberRetraction p hp H hzero x₀ hone))) |
| 42 | integralCoefficient.{u}) := by |
| 43 | let equiv := (coveringDeformationEquiv p hp H hzero {x₀} hone |
| 44 | (fun x hx t => by |
| 45 | have hx' : x = x₀ := hx |
| 46 | subst x |
| 47 | exact hfixed t)).symm |
| 48 | rw [quasiIso_iff] |
| 49 | intro n |
| 50 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 51 | change IsIso (integralHomologyIsoOfHomotopyEquiv equiv n).hom |
| 52 | infer_instance |
| 53 | |
| 54 | variable {J : Type u} [PartialOrder J] [Fintype J] |
| 55 | |
| 56 | set_option backward.isDefEq.respectTransparency false in |
| 57 | /-- The actual characteristic map of a supported lifted cone is a |
| 58 | quasi-isomorphism. No compactness or finiteness of the covering fiber is |
| 59 | needed. Source: Hatcher, Theorem 2.27, pp. 128-130. -/ |
| 60 | theorem supportedSingularComparison_cone_quasiIso |
| 61 | (p : C(E, (finiteOrderComplex J).space)) (hp : IsCoveringMap p) |
| 62 | (s : Finset J) (v : J) (hv : v ∈ s) (hmin : ∀ j ∈ s, v ≤ j) : |
| 63 | QuasiIso (SSet.chainComplexMap (supportedSingularComparison p s) |
| 64 | integralCoefficient.{u}) := by |
| 65 | let p' := liftedCoordinateProjection p s |
| 66 | have hp' : IsCoveringMap p' := hp.restrictPreimage (orderComplexNeighborhood s) |
| 67 | let H := orderComplexConeHomotopy s v hv hmin |
| 68 | let x₀ := orderComplexConePoint s v hv |
| 69 | let F := p' ⁻¹' {x₀} |
| 70 | let : DiscreteTopology F := (hp' x₀).discreteTopology_fiber |
| 71 | let e := contractibleCoveringHomeomorph p' hp' H.toContinuousMap |
| 72 | H.map_zero_left x₀ H.map_one_left |
| 73 | have hret : QuasiIso (SSet.chainComplexMap |
| 74 | (TopCat.toSSet.map (TopCat.ofHom (coveringProductRetraction e))) |
| 75 | integralCoefficient.{u}) := |
| 76 | coveringFiberRetraction_chainMap_quasiIso p' hp' H.toContinuousMap |
| 77 | H.map_zero_left x₀ H.map_one_left |
| 78 | (orderComplexConeHomotopy_fixed s v hv hmin) |
| 79 | let := singularLiftConeComparison_quasiIso s v hv hmin p' |
| 80 | (orderComplexSupportedSingular s) e (fun _ => rfl) hret |
| 81 | let T := (SSet.chainComplexFunctor (ModuleCat.{u} ℤ)).obj integralCoefficient |
| 82 | have h := supportedLiftRestrictionIso_projection p s |
| 83 | change QuasiIso (T.map (supportedSingularComparison p s)) |
| 84 | rw [← h, Functor.map_comp] |
| 85 | infer_instance |
| 86 | |
| 87 | end PoincareMT.Proofs.M59 |