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.RicciFlow.CanonicalNeighborhood.Cap |
| 2 | |
| 3 | /-! |
| 4 | # Transporting an actual cap model |
| 5 | |
| 6 | A smooth partial diffeomorphism transports every field of the retained |
| 7 | model equivalence, including its actual smooth standard-model witness. |
| 8 | Source: Morgan--Tian Proposition 9.79(3), p. 234, and Theorem 12.28, |
| 9 | pp. 323-324; cap-persistence-implementation.md, section 2. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.CapModelEquivalence |
| 20 | |
| 21 | variable {M N : Type u} [TopologicalSpace M] [TopologicalSpace N] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] |
| 24 | {kind : CapModelKind} {p : RealProjectiveThree} |
| 25 | |
| 26 | /-- Push an actual cap-model equivalence through an actual smooth |
| 27 | partial diffeomorphism, preserving the model and its standard witness |
| 28 | (Proposition 9.79(3), p. 234). -/ |
| 29 | noncomputable def transport |
| 30 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M N ∞) |
| 31 | (K : CapModelEquivalence kind p e.source) : |
| 32 | CapModelEquivalence kind p e.target where |
| 33 | model := K.model |
| 34 | model_topology := K.model_topology |
| 35 | model_charted := K.model_charted |
| 36 | model_manifold := K.model_manifold |
| 37 | standard_model := K.standard_model |
| 38 | standard_smooth := K.standard_smooth |
| 39 | forward := K.forward ∘ e.symm |
| 40 | inverse := e ∘ K.inverse |
| 41 | inverse_mem := fun y => e.toPartialEquiv.map_source (K.inverse_mem y) |
| 42 | left_inverse := by |
| 43 | intro x hx |
| 44 | exact (congrArg (fun y => e y) |
| 45 | (K.left_inverse _ (e.toPartialEquiv.map_target hx))).trans |
| 46 | (e.toPartialEquiv.right_inv hx) |
| 47 | right_inverse := by |
| 48 | intro y |
| 49 | exact (congrArg K.forward (e.toPartialEquiv.left_inv (K.inverse_mem y))).trans |
| 50 | (K.right_inverse y) |
| 51 | forward_smooth := by |
| 52 | let : TopologicalSpace K.model := K.model_topology |
| 53 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) K.model := K.model_charted |
| 54 | let : IsManifold (𝓡 3) ∞ K.model := K.model_manifold |
| 55 | exact K.forward_smooth.comp e.contMDiffOn_invFun |
| 56 | (fun _ hx => e.toPartialEquiv.map_target hx) |
| 57 | inverse_smooth := by |
| 58 | let : TopologicalSpace K.model := K.model_topology |
| 59 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) K.model := K.model_charted |
| 60 | let : IsManifold (𝓡 3) ∞ K.model := K.model_manifold |
| 61 | exact e.contMDiffOn_toFun.comp K.inverse_smooth (fun y _ => K.inverse_mem y) |
| 62 | |
| 63 | end PoincareMT.CapModelEquivalence |