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.Surgery.Induction.Noncollapse.StableSet.RegularImage.EndpointRecovery |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.RegularImage.ActionContact |
| 3 | |
| 4 | /-! |
| 5 | # Minimality of a surviving exponential limit |
| 6 | |
| 7 | Morgan--Tian Corollary 6.67 and Claim 6.69, pp. 139-140. |
| 8 | The independently constructed endpoint recovery passes minimality to a |
| 9 | surviving limit, including critical endpoints. This supplies the closedness |
| 10 | step for the compact set of actual minimizing branches without using the |
| 11 | later finite-branch regularity of the minimum action. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M46 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T tau : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- A surviving limit of minimizing branches still minimizes. Attainment |
| 28 | only at the limiting endpoint supplies the smooth recovery competitors; |
| 29 | the two action limits use the same fixed square-root time, Corollary 6.67 |
| 30 | and Claim 6.69, pp. 139-140. -/ |
| 31 | theorem minimizing_exponential_limit |
| 32 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 33 | (LG : GeneralizedLGeometryConclusion G) |
| 34 | (E : M14ExponentialFamily G T x) (htau : 0 < tau) |
| 35 | (q0 : (G.slices (T - tau)).Point) |
| 36 | {Zs : ℕ → G.Horizontal x} {Z : G.Horizontal x} |
| 37 | (hlim : Tendsto Zs atTop (𝓝 Z)) |
| 38 | (hZs : ∀ k, (Zs k, Real.sqrt tau) ∈ E.domain) |
| 39 | (hmins : ∀ k, M14IsMinimizing |
| 40 | (E.path (Zs k) (Real.sqrt tau) (hZs k) (Real.sqrt_pos.mpr htau))) |
| 41 | (hZ : (Z, Real.sqrt tau) ∈ E.domain) |
| 42 | (htime : T - tau ∈ interior I.domain) |
| 43 | (hattained : ∃ p : M14BackwardPath G T 0 tau x |
| 44 | (survivalSliceMap E tau htau.le q0 Z).val, M14IsMinimizing p) : |
| 45 | M14IsMinimizing (E.path Z (Real.sqrt tau) hZ (Real.sqrt_pos.mpr htau)) := by |
| 46 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 47 | let : NormedAddCommGroup (G.Horizontal x) := |
| 48 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 49 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 50 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 51 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 52 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 53 | let f := survivalSliceMap E tau htau.le q0 |
| 54 | obtain ⟨p, hp⟩ := hattained |
| 55 | obtain ⟨W, hW, htrace, _⟩ := minimizing_exponential_branch LG E p hp |
| 56 | obtain ⟨V, hV, hqV, cost, hcost, hcenter, hpaths⟩ := |
| 57 | smooth_action_recovery_of_represented_path hM12 E p hW htrace htime |
| 58 | have hf : ContinuousAt f Z := (survivalSliceMap_smooth E htau.le q0 hZ).continuousAt |
| 59 | have hend : Tendsto (fun k => f (Zs k)) atTop (𝓝 (f Z)) := hf.tendsto.comp hlim |
| 60 | have haction : Tendsto (fun k => E.action (Zs k) (Real.sqrt tau)) atTop |
| 61 | (𝓝 (E.action Z (Real.sqrt tau))) := |
| 62 | ((LG.exponential.action_differential T x E).2 Z (Real.sqrt tau) hZ |
| 63 | (Real.sqrt_pos.mpr htau)).1.continuousAt.tendsto.comp hlim |
| 64 | have hcostlim : Tendsto (fun k => cost (f (Zs k))) atTop (𝓝 (cost (f Z))) := |
| 65 | ((hcost _ hqV).continuousWithinAt.continuousAt (hV.mem_nhds hqV)).tendsto.comp hend |
| 66 | have hle : ∀ᶠ k in atTop, E.action (Zs k) (Real.sqrt tau) ≤ cost (f (Zs k)) := by |
| 67 | filter_upwards [hend.eventually (hV.mem_nhds hqV)] with k hk |
| 68 | obtain ⟨r, hr⟩ := hpaths (f (Zs k)) hk |
| 69 | have hfinite : M14FiniteValueDomain G T 0 tau x (f (Zs k)).val := by |
| 70 | have h := M14.finiteValueDomain_of_minimizing |
| 71 | (E.path (Zs k) (Real.sqrt tau) (hZs k) (Real.sqrt_pos.mpr htau)) (hmins k) |
| 72 | rwa [Real.sq_sqrt htau.le, ← survivalSliceMap_val E htau.le q0 (hZs k)] at h |
| 73 | calc |
| 74 | E.action (Zs k) (Real.sqrt tau) = M14ActionValue G T 0 tau x (f (Zs k)).val := |
| 75 | minimizing_survival_action_eq E htau q0 (hZs k) (hmins k) |
| 76 | _ ≤ M14BackwardLAction G r := M14.actionValue_le_action hfinite r |
| 77 | _ = cost (f (Zs k)) := hr |
| 78 | have hlimit := le_of_tendsto_of_tendsto haction hcostlim hle |
| 79 | have hfinite := M14.finiteValueDomain_of_minimizing p hp |
| 80 | have heq : E.action Z (Real.sqrt tau) = M14ActionValue G T 0 tau x (f Z).val := by |
| 81 | apply le_antisymm |
| 82 | · exact hlimit.trans_eq (hcenter.trans (M14.action_eq_actionValue_of_minimizing p hp)) |
| 83 | · exact actionValue_le_survival_action E htau q0 hZ hfinite |
| 84 | have hfinite' : M14FiniteValueDomain G T 0 ((Real.sqrt tau) ^ 2) x |
| 85 | (E.gamma Z (Real.sqrt tau)) := by |
| 86 | rw [Real.sq_sqrt htau.le, ← survivalSliceMap_val E htau.le q0 hZ] |
| 87 | exact hfinite |
| 88 | apply (M14.isMinimizing_iff_action_eq_actionValue hfinite' _).mpr |
| 89 | rw [← E.action_eq Z (Real.sqrt tau) hZ (Real.sqrt_pos.mpr htau), |
| 90 | Real.sq_sqrt htau.le, ← survivalSliceMap_val E htau.le q0 hZ] |
| 91 | exact heq |
| 92 | |
| 93 | end PoincareMT.Proofs.M46 |