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.Generalized.ReducedGeometry.Exponential.Action.ActionSmooth |
| 2 | import Mathlib.Geometry.Manifold.Algebra.LieGroup |
| 3 | |
| 4 | /-! |
| 5 | # Smooth action along a local survivor inverse |
| 6 | |
| 7 | No minimizing condition is needed for the action of a surviving branch |
| 8 | to be smooth. Its positive square time also gives a smooth normalized |
| 9 | action. Morgan-Tian Lemma 6.22, pp. 115-116, and Definition 6.45, p. 129. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T : ℝ} {x : G.Point} |
| 24 | |
| 25 | /-- Actual action and normalized action are smooth along every smooth |
| 26 | positive survivor inverse. Minimality is not assumed, Lemma 6.22 and |
| 27 | Definition 6.45, pp. 115-116, 129. -/ |
| 28 | theorem survivorInverse_actions_contMDiffOn |
| 29 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 30 | (E : M14ExponentialFamily G T x) {O : Set G.Point} |
| 31 | {inv : G.Point → G.Horizontal x × ℝ} |
| 32 | (hinv : letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 33 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 34 | ContMDiffOn (spacetimeModel n) 𝓘(ℝ, G.Horizontal x × ℝ) ∞ inv O) |
| 35 | (hmap : ∀ q ∈ O, inv q ∈ E.domain ∧ 0 < (inv q).2) : |
| 36 | ContMDiffOn (spacetimeModel n) 𝓘(ℝ) ∞ |
| 37 | (fun q => E.action (inv q).1 (inv q).2) O ∧ |
| 38 | ContMDiffOn (spacetimeModel n) 𝓘(ℝ) ∞ |
| 39 | (fun q => E.action (inv q).1 (inv q).2 / (2 * (inv q).2)) O := by |
| 40 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 41 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 42 | have hinv' : ContMDiffOn (spacetimeModel n) |
| 43 | ((𝓘(ℝ, G.Horizontal x)).prod (𝓘(ℝ, ℝ))) ∞ inv O := by |
| 44 | rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] |
| 45 | exact hinv |
| 46 | have ha := (exponentialFamily_action_smooth hM04 hM12 E).comp hinv' hmap |
| 47 | have ht := (ContinuousLinearMap.snd ℝ (G.Horizontal x) ℝ).contMDiff.comp_contMDiffOn hinv |
| 48 | exact ⟨ha, ha.div₀ ((contMDiffOn_const (c := (2 : ℝ))).mul ht) |
| 49 | (fun q hq => mul_ne_zero (by norm_num) (hmap q hq).2.ne')⟩ |
| 50 | |
| 51 | end PoincareMT.M14 |