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.Stability.StableSliceChart |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.StablePrefix |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Action.ActionSmooth |
| 4 | import Mathlib.Geometry.Manifold.Algebra.LieGroup |
| 5 | |
| 6 | /-! |
| 7 | # Raw reduced length on a fixed stable slice image |
| 8 | |
| 9 | The actual minimizing branch identifies the raw reduced length with |
| 10 | the smooth exponential action. The fixed-time stable inverse gives |
| 11 | smoothness on the image without assuming future spacetime stability. |
| 12 | Morgan-Tian Proposition 6.28 and Lemma 6.71, pp. 117, 141. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 27 | |
| 28 | /-- On every stable endpoint, the raw reduced length is exactly the |
| 29 | actual normalized exponential action, Proposition 6.28, p. 117. -/ |
| 30 | theorem reducedLengthValue_stableEndpoint_eq_action (H : M14StableSet G T τ x E) |
| 31 | {Z : G.Horizontal x} (hZ : Z ∈ H.carrier) : |
| 32 | M14ReducedLengthValue G T 0 τ x (H.endpoint_slice_map Z).val = |
| 33 | E.action Z (Real.sqrt τ) / (2 * Real.sqrt τ) := by |
| 34 | have hs := Real.sqrt_pos.mpr H.tau_pos |
| 35 | have hbranch : M14UniqueMinimizingBranch G T ((Real.sqrt τ) ^ 2) x E Z := by |
| 36 | simpa only [Real.sq_sqrt H.tau_pos.le] using |
| 37 | stableInitialVector_unique_branch E ((H.carrier_exact Z).mp hZ) |
| 38 | have hmin := exponentialPath_minimizing_of_uniqueBranch E hs (H.survivor Z hZ) hbranch |
| 39 | have hglobal := E.reduced_length_global_eq Z (Real.sqrt τ) (H.survivor Z hZ) hs hmin |
| 40 | rw [Real.sq_sqrt H.tau_pos.le] at hglobal |
| 41 | rw [H.endpoint_slice_map_val Z hZ, H.endpoint_map_eq Z hZ, ← hglobal] |
| 42 | exact E.reduced_length_eq Z (Real.sqrt τ) (H.survivor Z hZ) hs |
| 43 | |
| 44 | /-- The actual normalized action is smooth on a fixed stable carrier, |
| 45 | including a physical terminal time, Lemma 6.22 and Proposition 6.28, |
| 46 | pp. 115-117. -/ |
| 47 | theorem stable_normalizedAction_smooth |
| 48 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 49 | (H : M14StableSet G T τ x E) : |
| 50 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 51 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 52 | ContMDiffOn (𝓘(ℝ, G.Horizontal x)) (𝓘(ℝ, ℝ)) ∞ |
| 53 | (fun Z => E.action Z (Real.sqrt τ) / (2 * Real.sqrt τ)) H.carrier := by |
| 54 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 55 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 56 | have ha := (exponentialFamily_action_smooth hM04 hM12 E).comp |
| 57 | (contMDiff_id.prodMk (contMDiff_const (c := Real.sqrt τ))).contMDiffOn |
| 58 | (fun Z hZ => ⟨H.survivor Z hZ, Real.sqrt_pos.mpr H.tau_pos⟩) |
| 59 | exact ha.div₀ (contMDiffOn_const (c := 2 * Real.sqrt τ)) |
| 60 | (fun _ _ => (mul_pos zero_lt_two (Real.sqrt_pos.mpr H.tau_pos)).ne') |
| 61 | |
| 62 | /-- The raw reduced length is smooth on the entire fixed stable |
| 63 | image, without an additional joint-domain assumption, |
| 64 | Proposition 6.28 and Lemma 6.71, pp. 117, 141. -/ |
| 65 | theorem reducedLengthValue_contMDiffOn_stableImage |
| 66 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 67 | (H : M14StableSet G T τ x E) : |
| 68 | ContMDiffOn (𝓡 n) (𝓘(ℝ, ℝ)) ∞ |
| 69 | (fun q : (G.slices (T - τ)).Point => M14ReducedLengthValue G T 0 τ x q.val) |
| 70 | (H.endpoint_slice_map '' H.carrier) := by |
| 71 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 72 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 73 | let e := stableSliceChart H |
| 74 | have h := (stable_normalizedAction_smooth hM04 hM12 H).comp |
| 75 | (stableSliceChart_symm_smooth H) (fun q hq => e.map_target hq) |
| 76 | apply h.congr |
| 77 | intro q hq |
| 78 | have heq : H.endpoint_slice_map (e.symm q) = q := e.right_inv hq |
| 79 | exact (congrArg (fun r : (G.slices (T - τ)).Point => |
| 80 | M14ReducedLengthValue G T 0 τ x r.val) heq).symm.trans |
| 81 | (reducedLengthValue_stableEndpoint_eq_action H (e.map_target hq)) |
| 82 | |
| 83 | end PoincareMT.M14 |