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.SourceNames.ReducedVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Ordinary.Capture.OrdinaryCaptureBranches |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialVector |
| 4 | |
| 5 | /-! |
| 6 | # Identifying captured branches in the ordinary family |
| 7 | |
| 8 | Morgan-Tian Lemma 6.8, Definition 6.25 and Proposition 7.5, |
| 9 | pp. 108, 116, 151-152. M09 lifts the mapped minimizer into its actual |
| 10 | ordinary exponential family. The two generalized square-root branches |
| 11 | then have the same initial vector, and the exact path-lifting statement |
| 12 | transports uniqueness back to all ordinary competitors. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff |
| 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 | {C : Type u} [TopologicalSpace C] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 28 | [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 29 | [MeasurableSpace C] [BorelSpace C] {K : SpacetimeInterval} |
| 30 | {e : CompatibleSpacetimeCylinder G.spacetime (G.timeIntervals.interval K) C} |
| 31 | {g : SpacetimeCylinderMetric e} {F : RicciFlow n C K.domain} {τmax : ℝ} |
| 32 | (t₀ : (G.timeIntervals.interval K).Point) (c₀ : C) |
| 33 | (D : M14OrdinaryCaptureData G C K e g F t₀.val τmax) |
| 34 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 35 | |
| 36 | include hCoordinates |
| 37 | |
| 38 | /-- A uniquely minimizing generalized branch corresponds to a unique |
| 39 | ordinary family member with exactly the same normalized initial vector, |
| 40 | Definition 6.25 and Proposition 7.5, pp. 116, 151-152. -/ |
| 41 | theorem ordinaryCapture_unique_branch_lift |
| 42 | (hPath : M14PathCalculusConclusion G) |
| 43 | (E : M14ExponentialFamily G t₀.val (e.toSpacetime (t₀, c₀))) |
| 44 | (A : LExponentialGeometry F t₀.val τmax c₀) |
| 45 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 46 | (Z : G.Horizontal (e.toSpacetime (t₀, c₀))) |
| 47 | (hZ : M14UniqueMinimizingBranch G t₀.val τ (e.toSpacetime (t₀, c₀)) E Z) : |
| 48 | ∃ W : TangentSpace (𝓡 n) c₀, |
| 49 | Z = g.spatialTangentEquiv t₀ c₀ W ∧ |
| 50 | A.toLExponentialFamily.uniqueMinimizing W τ ∧ |
| 51 | E.gamma Z (Real.sqrt τ) ∈ range e.toSpacetime ∧ |
| 52 | D.point_map (E.gamma Z (Real.sqrt τ)) = A.gamma W τ := by |
| 53 | obtain ⟨hZD, p, hpcurve, hp, hunique⟩ := hZ |
| 54 | have hx : e.toSpacetime (t₀, c₀) ∈ range e.toSpacetime := mem_range_self _ |
| 55 | let hc := D.capture_from_start 0 τ _ _ hmax.le hx p |
| 56 | let q := D.path_map 0 τ _ _ p hc |
| 57 | have hqmin := (ordinaryCapture_minimizing_transport D hCoordinates hmax.le hx p hc).mp hp |
| 58 | have hqstart : q.curve 0 = c₀ := |
| 59 | (D.path_start_eq 0 τ _ _ p hc).trans (D.point_map_on_cylinder t₀ c₀) |
| 60 | obtain ⟨W, hW, _⟩ := A.minimizers_lift τ hτ hmax q hqstart hqmin |
| 61 | obtain ⟨hWD, hbranch⟩ := ordinaryCapture_minimizing_branch_identification t₀ c₀ D |
| 62 | hPath E A.toLExponentialFamily W p hp hmax hc hW |
| 63 | have hZW : Z = g.spatialTangentEquiv t₀ c₀ W := by |
| 64 | apply initialVector_eq_of_backward_branches_eqOn E hZD hWD (Real.sqrt_pos.mpr hτ) |
| 65 | simpa only [Real.sq_sqrt hτ.le] using hpcurve.symm.trans hbranch |
| 66 | have hy : E.gamma Z (Real.sqrt τ) ∈ range e.toSpacetime := by |
| 67 | simpa only [p.curve_end] using hc τ ⟨hτ.le, le_rfl⟩ |
| 68 | have hpoint : D.point_map (E.gamma Z (Real.sqrt τ)) = A.gamma W τ := |
| 69 | (D.path_end_eq 0 τ _ _ p hc).symm.trans (hW ⟨hτ.le, le_rfl⟩) |
| 70 | refine ⟨W, hZW, ⟨hτ, hmax, ?_, ?_⟩, hy, hpoint⟩ |
| 71 | · apply M10.minimizing_of_eqOn hqmin |
| 72 | simpa only [A.path_eq] using hW |
| 73 | · intro r hrstart hrend hrmin |
| 74 | obtain ⟨r', hrc, hrq⟩ := ordinaryCapture_exists_mapped_lift D hx hy |
| 75 | p.base_time p.endpoint_time r |
| 76 | (hrstart.trans (D.point_map_on_cylinder t₀ c₀).symm) (hrend.trans hpoint.symm) |
| 77 | have hr'min := (ordinaryCapture_minimizing_transport D hCoordinates hmax.le hx r' hrc).mpr |
| 78 | (M10.minimizing_of_eqOn hrmin hrq.symm) |
| 79 | have hr'p := hunique r' hr'min |
| 80 | intro s hs |
| 81 | exact (hrq hs).symm.trans ((D.path_curve_eq 0 τ _ _ r' hrc s hs).symm.trans |
| 82 | ((congrArg D.point_map (hr'p hs)).trans |
| 83 | ((D.path_curve_eq 0 τ _ _ p hc s hs).trans (hW hs)))) |
| 84 | |
| 85 | /-- The ordinary initial vector of a captured uniquely minimizing |
| 86 | branch is the inverse of the actual cylinder tangent equivalence, |
| 87 | Lemma 6.8 and Proposition 7.5, pp. 108, 151-152. -/ |
| 88 | theorem ordinaryCapture_unique_branch_transport |
| 89 | (hPath : M14PathCalculusConclusion G) |
| 90 | (E : M14ExponentialFamily G t₀.val (e.toSpacetime (t₀, c₀))) |
| 91 | (A : LExponentialGeometry F t₀.val τmax c₀) |
| 92 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 93 | (Z : G.Horizontal (e.toSpacetime (t₀, c₀))) |
| 94 | (hZ : M14UniqueMinimizingBranch G t₀.val τ (e.toSpacetime (t₀, c₀)) E Z) : |
| 95 | A.toLExponentialFamily.uniqueMinimizing ((g.spatialTangentEquiv t₀ c₀).symm Z) τ ∧ |
| 96 | E.gamma Z (Real.sqrt τ) ∈ range e.toSpacetime ∧ |
| 97 | D.point_map (E.gamma Z (Real.sqrt τ)) = |
| 98 | A.gamma ((g.spatialTangentEquiv t₀ c₀).symm Z) τ := by |
| 99 | obtain ⟨W, hW, huniq, hcapture, hpoint⟩ := |
| 100 | ordinaryCapture_unique_branch_lift t₀ c₀ D hCoordinates hPath E A hτ hmax Z hZ |
| 101 | have hWinv : (g.spatialTangentEquiv t₀ c₀).symm Z = W := by |
| 102 | rw [hW, ContinuousLinearEquiv.symm_apply_apply] |
| 103 | rw [hWinv] |
| 104 | exact ⟨huniq, hcapture, hpoint⟩ |
| 105 | |
| 106 | end PoincareMT.M14 |