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.OrdinaryCaptureInitialPath |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Continuity.MinimizingLifts |
| 4 | |
| 5 | /-! |
| 6 | # The same minimizing branches in the captured cylinder |
| 7 | |
| 8 | Morgan-Tian Definition 6.25 and Proposition 7.5, pp. 116, 151-152. |
| 9 | Ordinary minimizing branches lift to the actual generalized competitors. |
| 10 | Normalized initial-value uniqueness then identifies the supplied |
| 11 | exponential branch, while the exact competitor correspondence transports |
| 12 | uniqueness on the entire closed geometric interval. |
| 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 | /-- Every minimizing ordinary family member has a minimizing captured |
| 39 | lift with the same closed spatial curve, Proposition 7.5, pp. 151-152. -/ |
| 40 | theorem ordinaryCapture_minimizing_family_lift |
| 41 | (A : LExponentialFamily F t₀.val τmax c₀) (W : TangentSpace (𝓡 n) c₀) |
| 42 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 43 | (hmin : IsMinimizingBackwardLPath F t₀.val 0 τ (A.path W τ hτ hmax)) : |
| 44 | ∃ y : G.Point, ∃ p : M14BackwardPath G t₀.val 0 τ (e.toSpacetime (t₀, c₀)) y, |
| 45 | M14IsMinimizing p ∧ |
| 46 | ∃ hc : ∀ s ∈ Icc 0 τ, p.curve s ∈ range e.toSpacetime, |
| 47 | EqOn (D.path_map 0 τ _ y p hc).curve (A.gamma W) (Icc 0 τ) := by |
| 48 | let q := A.path W τ hτ hmax |
| 49 | let t : (G.timeIntervals.interval K).Point := ⟨t₀.val - τ, q.time_mem τ ⟨hτ.le, le_rfl⟩⟩ |
| 50 | let y := e.toSpacetime (t, q.curve τ) |
| 51 | have hx : e.toSpacetime (t₀, c₀) ∈ range e.toSpacetime := mem_range_self _ |
| 52 | have hy : y ∈ range e.toSpacetime := mem_range_self _ |
| 53 | obtain ⟨p, hc, hpq⟩ := ordinaryCapture_exists_mapped_lift D hx hy |
| 54 | (by simpa only [sub_zero] using e.time_eq (t₀, c₀)) (e.time_eq (t, q.curve τ)) q |
| 55 | (by rw [D.point_map_on_cylinder, A.path_eq, A.gamma_at_zero]) |
| 56 | (D.point_map_on_cylinder t (q.curve τ)).symm |
| 57 | refine ⟨y, p, (ordinaryCapture_minimizing_transport D hCoordinates hmax.le hx p hc).mpr |
| 58 | (M10.minimizing_of_eqOn hmin hpq.symm), hc, ?_⟩ |
| 59 | simpa only [q, A.path_eq] using hpq |
| 60 | |
| 61 | /-- Unique ordinary minimality transports to every generalized |
| 62 | competitor with the same endpoints, Definition 6.25, p. 116. -/ |
| 63 | theorem ordinaryCapture_minimizer_unique |
| 64 | {τ : ℝ} {y : G.Point} (A : LExponentialFamily F t₀.val τmax c₀) |
| 65 | (W : TangentSpace (𝓡 n) c₀) (huniq : A.uniqueMinimizing W τ) |
| 66 | (p : M14BackwardPath G t₀.val 0 τ (e.toSpacetime (t₀, c₀)) y) |
| 67 | (hc : ∀ s ∈ Icc 0 τ, p.curve s ∈ range e.toSpacetime) |
| 68 | (hcurve : EqOn (D.path_map 0 τ _ y p hc).curve (A.gamma W) (Icc 0 τ)) |
| 69 | (q : M14BackwardPath G t₀.val 0 τ (e.toSpacetime (t₀, c₀)) y) |
| 70 | (hq : M14IsMinimizing q) : EqOn q.curve p.curve (Icc 0 τ) := by |
| 71 | obtain ⟨hτ, hmax, _, hunique⟩ := huniq |
| 72 | have hx : e.toSpacetime (t₀, c₀) ∈ range e.toSpacetime := mem_range_self _ |
| 73 | let hqc := D.capture_from_start 0 τ _ y hmax.le hx q |
| 74 | have hqmin := (ordinaryCapture_minimizing_transport D hCoordinates hmax.le hx q hqc).mp hq |
| 75 | have hqstart : (D.path_map 0 τ _ y q hqc).curve 0 = c₀ := |
| 76 | (D.path_start_eq 0 τ _ y q hqc).trans (D.point_map_on_cylinder t₀ c₀) |
| 77 | have hqend : (D.path_map 0 τ _ y q hqc).curve τ = A.gamma W τ := |
| 78 | (D.path_end_eq 0 τ _ y q hqc).trans |
| 79 | ((D.path_end_eq 0 τ _ y p hc).symm.trans (hcurve ⟨hτ.le, le_rfl⟩)) |
| 80 | have hqcurve := hunique (D.path_map 0 τ _ y q hqc) hqstart hqend hqmin |
| 81 | intro s hs |
| 82 | apply ordinaryCapture_point_injective D (hqc s hs) (hc s hs) |
| 83 | ((q.curve_time s hs).trans (p.curve_time s hs).symm) |
| 84 | exact (D.path_curve_eq 0 τ _ y q hqc s hs).trans |
| 85 | ((hqcurve hs).trans ((hcurve hs).symm.trans (D.path_curve_eq 0 τ _ y p hc s hs).symm)) |
| 86 | |
| 87 | /-- A uniquely minimizing ordinary branch becomes the exact uniquely |
| 88 | minimizing supplied generalized branch with transported initial vector, |
| 89 | Definition 6.25 and Proposition 7.5, pp. 116, 151-152. -/ |
| 90 | theorem ordinaryCapture_unique_family_transport |
| 91 | (hPath : M14PathCalculusConclusion G) |
| 92 | (E : M14ExponentialFamily G t₀.val (e.toSpacetime (t₀, c₀))) |
| 93 | (A : LExponentialFamily F t₀.val τmax c₀) (W : TangentSpace (𝓡 n) c₀) |
| 94 | {τ : ℝ} (huniq : A.uniqueMinimizing W τ) : |
| 95 | M14UniqueMinimizingBranch G t₀.val τ (e.toSpacetime (t₀, c₀)) E |
| 96 | (g.spatialTangentEquiv t₀ c₀ W) ∧ |
| 97 | E.gamma (g.spatialTangentEquiv t₀ c₀ W) (Real.sqrt τ) ∈ range e.toSpacetime ∧ |
| 98 | D.point_map (E.gamma (g.spatialTangentEquiv t₀ c₀ W) (Real.sqrt τ)) = A.gamma W τ := by |
| 99 | obtain ⟨hτ, hmax, hmin, hunique⟩ := huniq |
| 100 | obtain ⟨y, p, hp, hc, hcurve⟩ := |
| 101 | ordinaryCapture_minimizing_family_lift t₀ c₀ D hCoordinates A W hτ hmax hmin |
| 102 | obtain ⟨hdom, heq⟩ := ordinaryCapture_minimizing_branch_identification t₀ c₀ D |
| 103 | hPath E A W p hp hmax hc hcurve |
| 104 | have hy : y = E.gamma (g.spatialTangentEquiv t₀ c₀ W) (Real.sqrt τ) := |
| 105 | p.curve_end.symm.trans (heq ⟨hτ.le, le_rfl⟩) |
| 106 | have hcapture : y ∈ range e.toSpacetime := by |
| 107 | simpa only [p.curve_end] using hc τ ⟨hτ.le, le_rfl⟩ |
| 108 | have hpoint : D.point_map y = A.gamma W τ := |
| 109 | (D.path_end_eq 0 τ _ y p hc).symm.trans (hcurve ⟨hτ.le, le_rfl⟩) |
| 110 | cases hy |
| 111 | refine ⟨⟨hdom, p, heq, hp, ?_⟩, hcapture, hpoint⟩ |
| 112 | exact ordinaryCapture_minimizer_unique t₀ c₀ D hCoordinates A W |
| 113 | ⟨hτ, hmax, hmin, hunique⟩ p hc hcurve |
| 114 | |
| 115 | end PoincareMT.M14 |