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.CompactMinimizers |
| 2 | |
| 3 | /-! |
| 4 | # Compact actual exponential action sublevels |
| 5 | |
| 6 | Morgan--Tian Proposition 16.4 and Corollary 6.67, pp. 389-391 and |
| 7 | 139-140. Compact confinement controls every bounded-action exponential |
| 8 | branch, including branches which are not minimizing. The phase estimate |
| 9 | closes survival and bounds the initial vector, so the full action sublevel |
| 10 | is compact before any free-endpoint minimum is selected. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- Confinement of the actual paths makes the whole exponential action |
| 27 | sublevel compact. No minimizing or endpoint regularity assumption occurs. |
| 28 | Source: Proposition 16.4 and Corollary 6.67, pp. 389-391 and 139-140. -/ |
| 29 | theorem exponential_action_sublevel_compact |
| 30 | (hM04 : RicciFlowCurvatureTheory.{0}) |
| 31 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (LG : GeneralizedLGeometryConclusion G) |
| 33 | (E : M14ExponentialFamily G T x) {b : ℝ} (hb : 0 < b) |
| 34 | {D : ℝ} (hD : 0 ≤ D) {K : Set G.Point} (hK : IsCompact K) |
| 35 | (hconf : ∀ Z : G.Horizontal x, (Z, b) ∈ E.domain → E.action Z b ≤ D → |
| 36 | MapsTo (E.gamma Z) (Icc 0 b) K) : |
| 37 | IsCompact {Z : G.Horizontal x | (Z, b) ∈ E.domain ∧ E.action Z b ≤ D} := by |
| 38 | classical |
| 39 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 40 | let : NormedAddCommGroup (G.Horizontal x) := |
| 41 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 42 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 43 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 44 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 45 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 46 | let : FiniteDimensional ℝ (G.Horizontal x) := |
| 47 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 48 | let : FirstCountableTopology (G.Horizontal x) := UniformSpace.firstCountableTopology _ |
| 49 | let : SequentialSpace (G.Horizontal x) := |
| 50 | @FrechetUrysohnSpace.to_sequentialSpace _ _ |
| 51 | FirstCountableTopology.frechetUrysohnSpace |
| 52 | obtain ⟨CR, Cgrad, hCR, hCgrad, hRic, hgrad⟩ := compact_cage_analytic_bounds hM12 hK |
| 53 | obtain ⟨C, hC, henergy⟩ := exponential_square_energy_uniform_bound hM12 E |
| 54 | (H := b) hb hD hCR hCgrad hRic hgrad |
| 55 | let B : Set (G.Horizontal x) := {Z | (Z, b) ∈ E.domain ∧ E.action Z b ≤ D} |
| 56 | have henergyB (Z : G.Horizontal x) (hZB : Z ∈ B) |
| 57 | (s : ℝ) (hs : s ∈ Icc 0 b) : |
| 58 | G.spacetime.horizontalMetric.inner ((E.square_path Z b hZB.1 hb).curve s) |
| 59 | ((E.square_path Z b hZB.1 hb).horizontal_velocity s) |
| 60 | ((E.square_path Z b hZB.1 hb).horizontal_velocity s) ≤ C := |
| 61 | henergy Z b le_rfl le_rfl hZB.1 hZB.2 |
| 62 | (fun r hr => hconf Z hZB.1 hZB.2 hr) s hs |
| 63 | have hclosed : IsClosed B := by |
| 64 | apply IsSeqClosed.isClosed |
| 65 | intro Zs Z hZs hlim |
| 66 | have hZ : (Z, b) ∈ E.domain := exponential_survival_of_uniform_phase_limit hM04 hM12 E |
| 67 | hb hlim (fun k => (hZs k).1) hK C |
| 68 | (fun k s hs => hconf (Zs k) (hZs k).1 (hZs k).2 hs) |
| 69 | (fun k s hs => henergyB (Zs k) (hZs k) s hs) |
| 70 | have hactionLim : Tendsto (fun k => E.action (Zs k) b) atTop (𝓝 (E.action Z b)) := |
| 71 | ((LG.exponential.action_differential T x E).2 Z b hZ hb).1.continuousAt.tendsto.comp hlim |
| 72 | exact ⟨hZ, le_of_tendsto hactionLim (Eventually.of_forall fun k => (hZs k).2)⟩ |
| 73 | have hbounded : B ⊆ Metric.closedBall (0 : G.Horizontal x) (Real.sqrt C) := by |
| 74 | intro Z hZB |
| 75 | let Q : M14SquareRootInitialValuePath G T (b ^ 2) x (E.gamma Z b) Z := { |
| 76 | path := E.path Z b hZB.1 hb |
| 77 | square_path := E.square_path Z b hZB.1 hb |
| 78 | extension := E.square_extension Z b hZB.1 hb |
| 79 | euler := E.square_euler Z b hZB.1 hb |
| 80 | initial_velocity := E.square_initial_velocity Z b hZB.1 hb } |
| 81 | have hbound := henergyB Z hZB 0 ⟨le_rfl, hb.le⟩ |
| 82 | change G.spacetime.horizontalMetric.inner (Q.square_path.curve 0) |
| 83 | (Q.square_path.horizontal_velocity 0) (Q.square_path.horizontal_velocity 0) ≤ C at hbound |
| 84 | rw [initialValue_energy_zero Q] at hbound |
| 85 | change 4 * inner ℝ Z Z ≤ C at hbound |
| 86 | rw [real_inner_self_eq_norm_sq] at hbound |
| 87 | have hnorm : ‖Z‖ ≤ Real.sqrt C := by |
| 88 | nlinarith [Real.sq_sqrt hC, Real.sqrt_nonneg C, norm_nonneg Z, sq_nonneg ‖Z‖] |
| 89 | simpa only [Metric.mem_closedBall, dist_zero_right] using hnorm |
| 90 | exact (isCompact_closedBall (0 : G.Horizontal x) (Real.sqrt C)).of_isClosed_subset |
| 91 | hclosed hbounded |
| 92 | |
| 93 | end PoincareMT.Proofs.M46 |