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.Regularity.Lipschitz.LocalLipschitzConfinedEnergy |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Minimizers.MinimizerEuler |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Euler.EulerEquation |
| 4 | |
| 5 | /-! |
| 6 | # Uniform square velocities of supplied confined minimizers |
| 7 | |
| 8 | One actual confined minimizer at each endpoint is enough. A uniform |
| 9 | action bound, positive time bounds, and the Ricci and scalar-gradient |
| 10 | bounds produce one auxiliary speed constant. Morgan-Tian Proposition |
| 11 | 6.59 and Lemma 6.60, pp. 134-137. |
| 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 | /-- Actual supplied confined minimizers admit square Euler |
| 28 | representatives with one uniform auxiliary speed bound. No compactness |
| 29 | or completeness of the confining set is required, Proposition 6.59 and |
| 30 | Lemma 6.60, pp. 134-137. -/ |
| 31 | theorem exists_confined_minimizers_with_uniform_square_speed |
| 32 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 33 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 34 | {N F0 : Set G.Point} {δ H D CR Cgrad : ℝ} |
| 35 | (hδ : 0 < δ) (hD : 0 ≤ D) (hCR : 0 ≤ CR) (hCgrad : 0 ≤ Cgrad) |
| 36 | (hclock : ∀ q ∈ N, δ ≤ Real.sqrt (T - G.spacetime.timeFunction q) ∧ |
| 37 | Real.sqrt (T - G.spacetime.timeFunction q) ≤ H) |
| 38 | (hmin : ∀ q ∈ N, ∃ p : M14BackwardPath G T 0 (T - G.spacetime.timeFunction q) x q, |
| 39 | M14IsMinimizing p ∧ ∀ s ∈ Icc 0 (T - G.spacetime.timeFunction q), p.curve s ∈ F0) |
| 40 | (hL : ∀ q ∈ N, ∀ p : M14BackwardPath G T 0 (T - G.spacetime.timeFunction q) x q, |
| 41 | M14IsMinimizing p → M14BackwardLAction G p ≤ D) |
| 42 | (hRic : ∀ q ∈ F0, ∀ v w : G.Horizontal q, |horizontalRicci G.leafwise q v w| ≤ |
| 43 | CR * Real.sqrt (G.spacetime.horizontalMetric.inner q v v) * |
| 44 | Real.sqrt (G.spacetime.horizontalMetric.inner q w w)) |
| 45 | (hgrad : ∀ q ∈ F0, ∀ v : G.Horizontal q, |
| 46 | |M14HorizontalScalarDifferential G q v.val| ≤ |
| 47 | Cgrad * Real.sqrt (G.spacetime.horizontalMetric.inner q v v)) : |
| 48 | ∃ C : ℝ, 0 ≤ C ∧ ∀ q ∈ N, |
| 49 | ∃ p : M14BackwardPath G T 0 (T - G.spacetime.timeFunction q) x q, |
| 50 | M14IsMinimizing p ∧ ∃ R : M14SquareRootPath G p, |
| 51 | ∃ ER : M14PullbackExtension G R.curve |
| 52 | (M14SqrtParameterInterval 0 (T - G.spacetime.timeFunction q)) R.horizontal_velocity, |
| 53 | (∀ s ∈ M14SqrtParameterInterval 0 (T - G.spacetime.timeFunction q), ∀ W, |
| 54 | M14SquareRootEulerResidual G R ER s W = 0) ∧ |
| 55 | ∀ s ∈ M14SqrtParameterInterval 0 (T - G.spacetime.timeFunction q), |
| 56 | G.spacetime.horizontalMetric.inner (R.curve s) |
| 57 | (R.horizontal_velocity s) (R.horizontal_velocity s) + 4 * s ^ 2 ≤ C ^ 2 := by |
| 58 | let A := 2 * H ^ 2 * Cgrad + 4 * H * CR |
| 59 | let B := Real.exp (A * H) * (2 * D + 4 * ((n : ℝ) * CR) * H ^ 3 + H) |
| 60 | refine ⟨Real.sqrt (B / δ + 4 * H ^ 2), Real.sqrt_nonneg _, ?_⟩ |
| 61 | intro q hq |
| 62 | obtain ⟨p, hp, hconf⟩ := hmin q hq |
| 63 | obtain ⟨E0, hE0⟩ := minimizerEulerStatement hCoordinates hM12 T 0 _ x q p hp |
| 64 | obtain ⟨R, ER, hEuler⟩ := squareRootRegularizationStatement hCoordinates hM12 |
| 65 | T 0 _ x q p E0 hE0 |
| 66 | have hconfR (s : ℝ) (hs : s ∈ M14SqrtParameterInterval 0 |
| 67 | (T - G.spacetime.timeFunction q)) : R.curve s ∈ F0 := by |
| 68 | rw [R.agrees s hs] |
| 69 | apply hconf |
| 70 | have hs0 : 0 ≤ s := by simpa only [Real.sqrt_zero] using hs.1 |
| 71 | exact ⟨sq_nonneg s, (sq_le_sq₀ hs0 (Real.sqrt_nonneg _) |>.mpr hs.2).trans |
| 72 | (Real.sq_sqrt p.tau_lt.le).le⟩ |
| 73 | refine ⟨p, hp, R, ER, hEuler, ?_⟩ |
| 74 | intro s hs |
| 75 | exact squareRoot_energy_uniform_bound hM12 R ER hEuler hδ (hclock q hq).1 |
| 76 | (hclock q hq).2 hCR hCgrad hD (hL q hq p hp) |
| 77 | (fun r hr => hRic (R.curve r) (hconfR r hr)) |
| 78 | (fun r hr => hgrad (R.curve r) (hconfR r hr)) hs |
| 79 | |
| 80 | end PoincareMT.M14 |