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.ReducedGeometry.ReducedLength.Theory |
| 2 | |
| 3 | /-! |
| 4 | # Minimizing lifts in the supplied L-exponential family |
| 5 | |
| 6 | Agreement on the geometric interval preserves the actual backward action. |
| 7 | M08 minimizers can therefore be used in M09's one coherent exponential |
| 8 | family, without assuming that their total curve functions agree everywhere. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle Topology intervalIntegral |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.ReducedVolume |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 22 | |
| 23 | /-- The backward integrand is local in the curve and its first derivative. -/ |
| 24 | theorem backwardLIntegrand_eq_of_eventuallyEq {γ η : ℝ → M} {s : ℝ} |
| 25 | (h : γ =ᶠ[𝓝 s] η) : backwardLIntegrand F T γ s = backwardLIntegrand F T η s := by |
| 26 | unfold backwardLIntegrand curveVelocity |
| 27 | rw [h.mfderiv_eq (I := 𝓘(ℝ, ℝ)) (I' := 𝓡 n), h.eq_of_nhds] |
| 28 | |
| 29 | /-- Endpoint values of totalized velocities do not affect the backward action. -/ |
| 30 | theorem backwardLLength_eq_of_eqOn {a b : ℝ} {γ η : ℝ → M} (hab : a ≤ b) |
| 31 | (h : Set.EqOn γ η (Set.Icc a b)) : |
| 32 | backwardLLength F T a b γ = backwardLLength F T a b η := by |
| 33 | apply intervalIntegral.integral_congr_Ioo_of_le hab |
| 34 | intro s hs |
| 35 | apply backwardLIntegrand_eq_of_eventuallyEq |
| 36 | exact Filter.eventuallyEq_of_mem (isOpen_Ioo.mem_nhds hs) |
| 37 | (fun x hx ↦ h ⟨hx.1.le, hx.2.le⟩) |
| 38 | |
| 39 | /-- Minimality depends only on the curve on its geometric interval. -/ |
| 40 | theorem minimizing_of_eqOn {a b : ℝ} {γ η : BackwardTimePath F T a b} |
| 41 | (hγ : IsMinimizingBackwardLPath F T a b γ) |
| 42 | (h : Set.EqOn γ.curve η.curve (Set.Icc a b)) : |
| 43 | IsMinimizingBackwardLPath F T a b η := by |
| 44 | intro path hstart hend |
| 45 | have ha := h ⟨le_rfl, γ.ordered.le⟩ |
| 46 | have hb := h ⟨γ.ordered.le, le_rfl⟩ |
| 47 | rw [← backwardLLength_eq_of_eqOn γ.ordered.le h] |
| 48 | exact hγ path (hstart.trans ha.symm) (hend.trans hb.symm) |
| 49 | |
| 50 | variable [ConnectedSpace M] {p : M} |
| 51 | |
| 52 | /-- Every endpoint has a minimizing lift in the exact supplied exponential family. -/ |
| 53 | theorem exists_minimizing_lift (hL : LGeodesicTheory F T τmax) |
| 54 | (G : LExponentialGeometry F T τmax p) (q : M) (τ : ℝ) |
| 55 | (hτ : 0 < τ) (hmax : τ < τmax) : |
| 56 | ∃ Z : TangentSpace (𝓡 n) p, |
| 57 | G.gamma Z τ = q ∧ |
| 58 | IsMinimizingBackwardLPath F T 0 τ (G.path Z τ hτ hmax) ∧ |
| 59 | reducedLength F T p q τ = G.toLExponentialFamily.action Z τ / (2 * Real.sqrt τ) := by |
| 60 | obtain ⟨path, hp, hq, hmin, hlength⟩ := hL.reduced_length_attained τ hτ hmax.le p q |
| 61 | obtain ⟨Z, hZ, _⟩ := G.minimizers_lift τ hτ hmax path hp hmin |
| 62 | have hpath : Set.EqOn path.curve (G.path Z τ hτ hmax).curve (Set.Icc 0 τ) := by |
| 63 | rw [G.path_eq] |
| 64 | exact hZ |
| 65 | refine ⟨Z, (hZ ⟨hτ.le, le_rfl⟩).symm.trans hq, minimizing_of_eqOn hmin hpath, ?_⟩ |
| 66 | exact hlength.trans (congrArg (fun a : ℝ ↦ a / (2 * Real.sqrt τ)) |
| 67 | (backwardLLength_eq_of_eqOn hτ.le hZ)) |
| 68 | |
| 69 | /-- The normalized action of every canonical path bounds reduced length from above. -/ |
| 70 | theorem reducedLength_le_normalized_action (hL : LGeodesicTheory F T τmax) |
| 71 | (G : LExponentialGeometry F T τmax p) (Z : TangentSpace (𝓡 n) p) (τ : ℝ) |
| 72 | (hτ : 0 < τ) (hmax : τ < τmax) : |
| 73 | reducedLength F T p (G.gamma Z τ) τ ≤ |
| 74 | G.toLExponentialFamily.action Z τ / (2 * Real.sqrt τ) := by |
| 75 | obtain ⟨path, hp, hq, hmin, hlength⟩ := |
| 76 | hL.reduced_length_attained τ hτ hmax.le p (G.gamma Z τ) |
| 77 | have hstart : (G.path Z τ hτ hmax).curve 0 = path.curve 0 := by |
| 78 | rw [G.path_eq, G.gamma_at_zero, hp] |
| 79 | have hend : (G.path Z τ hτ hmax).curve τ = path.curve τ := by |
| 80 | rw [G.path_eq, hq] |
| 81 | have hcomp := hmin (G.path Z τ hτ hmax) hstart hend |
| 82 | rw [G.path_eq] at hcomp |
| 83 | rw [hlength] |
| 84 | exact div_le_div_of_nonneg_right hcomp |
| 85 | (mul_nonneg (by norm_num) (Real.sqrt_nonneg τ)) |
| 86 | |
| 87 | end PoincareMT.ReducedVolume |