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.LGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Euler.NormalizedPhase |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Families.ClosedEulerExistence |
| 4 | |
| 5 | /-! |
| 6 | # Local existence with the actual prescribed initial vector |
| 7 | |
| 8 | Morgan-Tian Definition 6.17 and Lemma 6.18, pp. 113-114. |
| 9 | On a compatible cylinder admitting a positive backward interval, the |
| 10 | closed phase existence theorem and the actual metric inverse construct |
| 11 | a frozen initial-value path through every horizontal vector. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | -- The ordinary chart operator acts on the cylinder's Euclidean tangent model. |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Metric |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | |
| 28 | /-- A neighborhood of a prescribed horizontal vector has actual |
| 29 | initial-value paths on one common positive interval whenever the gauge |
| 30 | admits a backward clock interval, Lemma 6.18, pp. 113-114. -/ |
| 31 | theorem exists_localInitialValuePath_neighborhood_in_gauge |
| 32 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 33 | (b : G.gaugeCover.index) |
| 34 | (W : OrdinaryGaugeWitness G.leafwise (G.gaugeCover.cylinder b) (G.gaugeCover.metric b)) |
| 35 | (t₀ : (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 36 | (x₀ : G.gaugeCover.spatial b) |
| 37 | (Z : G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))) |
| 38 | {smax : ℝ} (hsmax : 0 < smax) |
| 39 | (htime : ∀ s ∈ Icc 0 smax, t₀.val - s ^ 2 ∈ (G.gaugeCover.interval b).domain) : |
| 40 | ∃ s : ℝ, 0 < s ∧ s ≤ smax ∧ |
| 41 | ∃ U : Set (G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))), |
| 42 | IsOpen U ∧ Z ∈ U ∧ ∀ V ∈ U, ∃ y : G.Point, |
| 43 | Nonempty (M14SquareRootInitialValuePath G t₀.val (s ^ 2) |
| 44 | ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) y V) := by |
| 45 | let j := (G.gaugeCover.metric b).spatialTangentEquiv t₀ x₀ |
| 46 | let B := M08.chartMetricOperator W.flow t₀.val x₀ (0, x₀.val) |
| 47 | let z : G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) → |
| 48 | EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) := |
| 49 | fun V => (x₀.val, B ((2 : ℝ) • j.symm V)) |
| 50 | have hz : Continuous z := continuous_const.prodMk |
| 51 | (B.continuous.comp (j.symm.continuous.const_smul (2 : ℝ))) |
| 52 | have hx₀ : x₀.val ∈ (extChartAt (𝓡 n) x₀).target := by |
| 53 | have hval : extChartAt (𝓡 n) x₀ x₀ = x₀.val := by rw [extChartAt_coe]; rfl |
| 54 | rw [← hval] |
| 55 | exact mem_extChartAt_target x₀ |
| 56 | obtain ⟨δ, hδ, r, hr, _, α, _, hα⟩ := |
| 57 | exists_closedChartEulerPhase_family W.flow hM04 t₀.val x₀ hsmax htime |
| 58 | (show (0 : ℝ) ∈ Icc 0 smax from ⟨le_rfl, hsmax.le⟩) (z₀ := z Z) hx₀ |
| 59 | have hleft : max (0 : ℝ) (0 - δ) = 0 := max_eq_left (by linarith) |
| 60 | rw [hleft, zero_add] at hα |
| 61 | let c : ℝ := min smax δ |
| 62 | have hc : 0 < c := lt_min hsmax hδ |
| 63 | have hcmax : c ≤ smax := min_le_left _ _ |
| 64 | have hC : M14SqrtParameterInterval 0 (c ^ 2) = Icc 0 c := by |
| 65 | rw [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hc.le] |
| 66 | refine ⟨c, hc, hcmax, z ⁻¹' ball (z Z) r, isOpen_ball.preimage hz, |
| 67 | mem_ball_self hr, ?_⟩ |
| 68 | intro V hV |
| 69 | obtain ⟨hi, hmap, hsm, hd⟩ := hα (z V) (ball_subset_closedBall hV) |
| 70 | refine exists_initialValuePath_of_momentum_phase hM04 hM12 b W t₀ x₀ V |
| 71 | (sq_pos_of_pos hc) (q := fun s => (α (z V, s)).1) (P := fun s => (α (z V, s)).2) |
| 72 | ?_ ?_ ?_ ?_ hi |
| 73 | · intro s hs |
| 74 | rw [hC] at hs |
| 75 | exact htime s ⟨hs.1, hs.2.trans hcmax⟩ |
| 76 | · rw [hC] |
| 77 | exact hsm.fst |
| 78 | · rw [hC] |
| 79 | exact hmap |
| 80 | · rw [hC] |
| 81 | exact hd |
| 82 | |
| 83 | /-- Every prescribed horizontal vector has an actual local initial-value |
| 84 | path whenever the compatible gauge contains a positive closed backward |
| 85 | clock interval, Definition 6.17 and Lemma 6.18, pp. 113-114. -/ |
| 86 | theorem exists_localInitialValuePath_in_gauge |
| 87 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 88 | (b : G.gaugeCover.index) |
| 89 | (W : OrdinaryGaugeWitness G.leafwise (G.gaugeCover.cylinder b) (G.gaugeCover.metric b)) |
| 90 | (t₀ : (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 91 | (x₀ : G.gaugeCover.spatial b) |
| 92 | (Z : G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))) |
| 93 | {smax : ℝ} (hsmax : 0 < smax) |
| 94 | (htime : ∀ s ∈ Icc 0 smax, t₀.val - s ^ 2 ∈ (G.gaugeCover.interval b).domain) : |
| 95 | ∃ s : ℝ, 0 < s ∧ s ≤ smax ∧ ∃ y : G.Point, |
| 96 | Nonempty (M14SquareRootInitialValuePath G t₀.val (s ^ 2) |
| 97 | ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) y Z) := by |
| 98 | obtain ⟨s, hs, hsmax, U, _, hZU, hU⟩ := |
| 99 | exists_localInitialValuePath_neighborhood_in_gauge hM04 hM12 b W t₀ x₀ Z hsmax htime |
| 100 | exact ⟨s, hs, hsmax, hU Z hZU⟩ |
| 101 | |
| 102 | end PoincareMT.M14 |