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 Mathlib.Geometry.Manifold.ContMDiff.Basic |
| 2 | import Mathlib.Geometry.Manifold.MFDeriv.Atlas |
| 3 | |
| 4 | /-! |
| 5 | # The differential of an open inclusion chart |
| 6 | |
| 7 | In the singleton chart supplied by an open inclusion into a normed space, |
| 8 | the inclusion differential is the identity. This is the coordinate |
| 9 | identification used for the compact double in Morgan-Tian Theorem 12.5, |
| 10 | p. 297, compact-double derivation. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | /-- An open subset's inclusion has identity derivative in its singleton |
| 19 | inclusion chart (Theorem 12.5, p. 297, compact-double derivation). -/ |
| 20 | theorem mfderiv_subtypeVal_singleton |
| 21 | {𝕜 : Type*} [NontriviallyNormedField 𝕜] |
| 22 | {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E] |
| 23 | {U : Set E} (hU : IsOpen U) [Nonempty U] (x : U) : |
| 24 | let := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 25 | mfderiv 𝓘(𝕜, E) 𝓘(𝕜, E) (Subtype.val : U → E) x = |
| 26 | ContinuousLinearMap.id 𝕜 E := by |
| 27 | let := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 28 | let := hU.isOpenEmbedding_subtypeVal.isManifold_singleton (I := 𝓘(𝕜, E)) (n := ∞) |
| 29 | change mfderiv 𝓘(𝕜, E) 𝓘(𝕜, E) (extChartAt 𝓘(𝕜, E) x) x = _ |
| 30 | exact mfderiv_extChartAt_self |