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.Domain.JointMap |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Action.ActionSmooth |
| 3 | import Mathlib.Geometry.Manifold.Algebra.LieGroup |
| 4 | |
| 5 | /-! |
| 6 | # Smooth actual reduced length on the joint image |
| 7 | |
| 8 | The actual inverse clock and minimizing branch identify the raw reduced |
| 9 | length with the smooth normalized action. The selected slice inclusion |
| 10 | then gives spatial smoothness. Morgan-Tian Proposition 6.28, p. 117, |
| 11 | Lemma 6.22, pp. 115-116, and Definition 6.45, p. 129. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- The raw spacetime reduced length on a joint branch is the actual |
| 28 | normalized action, Proposition 6.28 and Definition 6.45, pp. 117, 129. -/ |
| 29 | theorem reducedLengthAt_jointEndpoint (E : M14ExponentialFamily G T x) |
| 30 | {Z : G.Horizontal x} {s : ℝ} (hz : (Z, s) ∈ M14JointDomain G E) : |
| 31 | M14ReducedLengthAt G T 0 x (E.gamma Z s) = E.action Z s / (2 * s) := by |
| 32 | have hs := jointDomain_time_pos E hz |
| 33 | have hsurv := jointDomain_subset_domain E hz |
| 34 | obtain ⟨_, _, _, _, _, hlength⟩ := jointDomain_action_branch E hz |
| 35 | unfold M14ReducedLengthAt |
| 36 | rw [E.clock Z s hsurv, sub_sub_cancel, ← hlength, E.reduced_length_eq Z s hsurv hs] |
| 37 | |
| 38 | /-- On the actual joint image, reduced length is normalized action |
| 39 | composed with the genuine joint inverse, Proposition 6.28, p. 117. -/ |
| 40 | theorem reducedLengthAt_jointInverse (E : M14ExponentialFamily G T x) {q : G.Point} |
| 41 | (hq : q ∈ range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) : |
| 42 | M14ReducedLengthAt G T 0 x q = |
| 43 | E.action (jointEndpointInverse E q).1 (jointEndpointInverse E q).2 / |
| 44 | (2 * (jointEndpointInverse E q).2) := by |
| 45 | obtain ⟨hmem, heq⟩ := jointEndpointInverse_spec E hq |
| 46 | exact (congrArg (M14ReducedLengthAt G T 0 x) heq).symm.trans |
| 47 | (reducedLengthAt_jointEndpoint E (Z := (jointEndpointInverse E q).1) |
| 48 | (s := (jointEndpointInverse E q).2) hmem) |
| 49 | |
| 50 | /-- The actual raw reduced length is smooth on the open joint image, |
| 51 | including physical boundary points, Proposition 6.28 and Definition 6.45, |
| 52 | pp. 117, 129. -/ |
| 53 | theorem reducedLengthAt_contMDiffOn_jointImage |
| 54 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 55 | (E : M14ExponentialFamily G T x) : |
| 56 | ContMDiffOn (spacetimeModel n) (𝓘(ℝ, ℝ)) ∞ (M14ReducedLengthAt G T 0 x) |
| 57 | (range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) := by |
| 58 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 59 | let : NormedAddCommGroup (G.Horizontal x) := |
| 60 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 61 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 62 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 63 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 64 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 65 | have hinv : ContMDiffOn (spacetimeModel n) (𝓘(ℝ, G.Horizontal x × ℝ)) ∞ |
| 66 | (jointEndpointInverse E) |
| 67 | (range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) := |
| 68 | jointEndpointInverse_smooth E |
| 69 | have ha : ContMDiffOn ((𝓘(ℝ, G.Horizontal x)).prod (𝓘(ℝ, ℝ))) (𝓘(ℝ, ℝ)) ∞ |
| 70 | (fun z => E.action z.1 z.2) (E.domain ∩ {z | 0 < z.2}) := |
| 71 | exponentialFamily_action_smooth hM04 hM12 E |
| 72 | have hinv' : ContMDiffOn (spacetimeModel n) |
| 73 | ((𝓘(ℝ, G.Horizontal x)).prod (𝓘(ℝ, ℝ))) ∞ (jointEndpointInverse E) |
| 74 | (range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) := by |
| 75 | rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] |
| 76 | exact hinv |
| 77 | have hmap : MapsTo (jointEndpointInverse E) |
| 78 | (range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) |
| 79 | (E.domain ∩ {z | 0 < z.2}) := by |
| 80 | intro q hq |
| 81 | have hz := (jointEndpointInverse_spec E hq).1 |
| 82 | exact ⟨jointDomain_subset_domain E hz, jointDomain_time_pos E hz⟩ |
| 83 | have haction := ha.comp hinv' hmap |
| 84 | have htime := (ContinuousLinearMap.snd ℝ (G.Horizontal x) ℝ).contMDiff.comp_contMDiffOn hinv |
| 85 | have hnorm := haction.div₀ ((contMDiffOn_const (c := (2 : ℝ))).mul htime) |
| 86 | (fun q hq => mul_ne_zero (by norm_num) (jointDomain_time_pos E |
| 87 | (jointEndpointInverse_spec E hq).1).ne') |
| 88 | exact hnorm.congr (fun q hq => reducedLengthAt_jointInverse E hq) |
| 89 | |
| 90 | /-- Restricting actual regular reduced length to a selected slice is |
| 91 | smooth at every point of the joint image, Definition 6.45, p. 129. -/ |
| 92 | theorem reducedLengthAt_slice_contMDiffAt |
| 93 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 94 | (E : M14ExponentialFamily G T x) {t : ℝ} (q : (G.slices t).Point) |
| 95 | (hq : q.val ∈ range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2)) : |
| 96 | ContMDiffAt (𝓡 n) (𝓘(ℝ, ℝ)) ∞ |
| 97 | (fun r : (G.slices t).Point => M14ReducedLengthAt G T 0 x r.val) q := by |
| 98 | have h := ((reducedLengthAt_contMDiffOn_jointImage hM04 hM12 E) q.val hq).contMDiffAt |
| 99 | ((jointMap_range_isOpen E).mem_nhds hq) |
| 100 | have hi : ContMDiff (𝓡 n) (spacetimeModel n) ∞ |
| 101 | (fun r : (G.slices t).Point => r.val) := (G.slices t).inclusion_smooth |
| 102 | exact h.comp q hi.contMDiffAt |
| 103 | |
| 104 | end PoincareMT.M14 |