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.SmallTime.Candidates.SmallTimeCandidateTube |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Candidates.SmallTimeCandidateSpeed |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Candidates.SmallTimeCandidateAction |
| 4 | |
| 5 | /-! |
| 6 | # Uniform candidate speed and action near compact initial vectors |
| 7 | |
| 8 | One physical cutoff controls actual survival, capture, coordinate |
| 9 | speed and action for every initial vector in an open neighborhood of |
| 10 | the given compact set. These are the candidate inputs to the unique |
| 11 | minimality argument in Morgan-Tian Corollary 6.79, pp. 144-145. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- A compact initial set has one open neighborhood and one physical |
| 28 | cutoff with actual survival, capture, closed-interval coordinate speed |
| 29 | and short-action bounds for the supplied paths, Corollary 6.79, |
| 30 | pp. 144-145. No minimizing hypothesis is required. -/ |
| 31 | theorem smallTimeCandidateBounds (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (E : M14ExponentialFamily G T x) {B : Set (G.Horizontal x)} (hB : IsCompact B) |
| 33 | (b : G.gaugeCover.index) |
| 34 | (lift : G.Point → (G.timeIntervals.interval (G.gaugeCover.interval b)).Point × |
| 35 | G.gaugeCover.spatial b) |
| 36 | {O : Set G.Point} (hO : IsOpen O) (hxO : x ∈ O) |
| 37 | (hlift : ContMDiffOn (spacetimeModel n) (spacetimeModel n) ∞ lift O) |
| 38 | {δ : ℝ} (hδ : 0 < δ) (hwindow : Icc (T - δ) T ⊆ I.domain) : |
| 39 | ∃ (N : Set (G.Horizontal x)) (η M A : ℝ), IsOpen N ∧ B ⊆ N ∧ |
| 40 | 0 < η ∧ η ≤ δ ∧ 0 ≤ M ∧ 0 ≤ A ∧ |
| 41 | (∀ W ∈ N, ∀ σ ∈ Icc 0 η, |
| 42 | (W, Real.sqrt σ) ∈ E.domain ∧ E.gamma W (Real.sqrt σ) ∈ O) ∧ |
| 43 | (∀ W ∈ N, ∀ (τ : ℝ) (hτ : τ ∈ Ioc 0 η) |
| 44 | (hD : (W, Real.sqrt τ) ∈ E.domain), ∀ r ∈ Icc 0 (Real.sqrt τ), |
| 45 | ‖derivWithin |
| 46 | (fun v => (lift ((E.path W (Real.sqrt τ) hD (Real.sqrt_pos.mpr hτ.1)).curve |
| 47 | (v ^ 2))).2.val) (Icc 0 (Real.sqrt τ)) r‖ ≤ M) ∧ |
| 48 | (∀ W ∈ N, ∀ (τ : ℝ) (hτ : τ ∈ Ioc 0 η) |
| 49 | (hD : (W, Real.sqrt τ) ∈ E.domain), |
| 50 | M14BackwardLAction G (E.path W (Real.sqrt τ) hD (Real.sqrt_pos.mpr hτ.1)) ≤ |
| 51 | A * Real.sqrt τ) := by |
| 52 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 53 | let : NormedAddCommGroup (G.Horizontal x) := |
| 54 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 55 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 56 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 57 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 58 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 59 | obtain ⟨N, K, U, hN, hBN, hNK, hK, hKU, hU, η, hη, hηδ, hcapture⟩ := |
| 60 | exists_smallTimeCandidate_tube E hB hO hxO hδ hwindow |
| 61 | obtain ⟨hcoord, M, hM, hspeed⟩ := exists_smallTimeCandidate_coordinate_bound E b lift |
| 62 | hU hK hKU hlift hη hcapture |
| 63 | obtain ⟨A, hA, hdensity⟩ := exists_smallTimeCandidate_density_bound hM12 E |
| 64 | hU hK hKU hη hcapture |
| 65 | obtain ⟨hγ, hmap⟩ := smallTimeCandidate_family_smooth E hη.le hcapture |
| 66 | refine ⟨N, η, M, A, hN, hBN, hη, hηδ, hM, hA, |
| 67 | fun W hW => hcapture W (hKU (hNK hW)), ?_, ?_⟩ |
| 68 | · intro W hW τ hτ hD |
| 69 | have hCW : ContDiffOn ℝ ∞ (fun r => (lift (E.gamma W r)).2.val) |
| 70 | (Icc 0 (Real.sqrt η)) := |
| 71 | hcoord.comp (contDiff_id.prodMk contDiff_const).contDiffOn |
| 72 | (fun _ hr => ⟨hr, hKU (hNK hW)⟩) |
| 73 | exact smallTimeCandidate_coordinate_speed_le E b lift W (Real.sqrt_pos.mpr hτ.1) |
| 74 | (Real.sqrt_le_sqrt hτ.2) hD hCW (hspeed W (hNK hW)) |
| 75 | · intro W hW τ hτ hD |
| 76 | have hγW : ContMDiffOn (𝓘(ℝ, ℝ)) (spacetimeModel n) ∞ (E.gamma W) |
| 77 | (Icc 0 (Real.sqrt η)) := |
| 78 | hγ.comp (contMDiff_id.prodMk contMDiff_const).contMDiffOn |
| 79 | (fun _ hr => ⟨hr, hKU (hNK hW)⟩) |
| 80 | exact smallTimeCandidate_action_le hM12 E W (Real.sqrt_pos.mpr hτ.1) |
| 81 | (Real.sqrt_le_sqrt hτ.2) hD hγW |
| 82 | (fun r hr => (hmap W (hKU (hNK hW)) r hr).1) (hdensity W (hNK hW)) |
| 83 | |
| 84 | end PoincareMT.M14 |