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.LGeometry.Theory |
| 2 | |
| 3 | /-! |
| 4 | # Comparing reduced length with admissible paths |
| 5 | |
| 6 | Morgan-Tian Definition 6.45, using the attained infimum supplied by M08. |
| 7 | All competitors below are actual backward-time paths. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open scoped Manifold ContDiff Bundle |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.ReducedLength |
| 17 | |
| 18 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 20 | [ConnectedSpace M] {J : Set ℝ} {F : RicciFlow n M J} |
| 21 | {T τmax τ : ℝ} {p q : M} |
| 22 | |
| 23 | theorem reducedLength_le_path (hL : LGeodesicTheory F T τmax) |
| 24 | (hτ : 0 < τ) (hmax : τ ≤ τmax) (c : BackwardTimePath F T 0 τ) |
| 25 | (hc0 : c.curve 0 = p) (hcτ : c.curve τ = q) : |
| 26 | reducedLength F T p q τ ≤ backwardLLength F T 0 τ c.curve / (2 * Real.sqrt τ) := by |
| 27 | obtain ⟨a, ha0, haτ, hmin, hvalue⟩ := hL.reduced_length_attained τ hτ hmax p q |
| 28 | rw [hvalue] |
| 29 | exact div_le_div_of_nonneg_right |
| 30 | (hmin c (hc0.trans ha0.symm) (hcτ.trans haτ.symm)) |
| 31 | (mul_nonneg zero_le_two (Real.sqrt_nonneg τ)) |
| 32 | |
| 33 | theorem reducedLength_eq_minimizing_path (hL : LGeodesicTheory F T τmax) |
| 34 | (hτ : 0 < τ) (hmax : τ ≤ τmax) (c : BackwardTimePath F T 0 τ) |
| 35 | (hc0 : c.curve 0 = p) (hcτ : c.curve τ = q) |
| 36 | (hc : IsMinimizingBackwardLPath F T 0 τ c) : |
| 37 | reducedLength F T p q τ = backwardLLength F T 0 τ c.curve / (2 * Real.sqrt τ) := by |
| 38 | obtain ⟨a, ha0, haτ, hmin, hvalue⟩ := hL.reduced_length_attained τ hτ hmax p q |
| 39 | have heq : backwardLLength F T 0 τ a.curve = backwardLLength F T 0 τ c.curve := |
| 40 | le_antisymm (hmin c (hc0.trans ha0.symm) (hcτ.trans haτ.symm)) |
| 41 | (hc a (ha0.trans hc0.symm) (haτ.trans hcτ.symm)) |
| 42 | exact hvalue.trans (congrArg (fun a : ℝ ↦ a / (2 * Real.sqrt τ)) heq) |
| 43 | |
| 44 | end PoincareMT.ReducedLength |