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.Rescaling.Paths.RescalingPathInverse |
| 2 | |
| 3 | /-! |
| 4 | # Unique minimizing paths under rescaling |
| 5 | |
| 6 | Morgan-Tian Remark 6.73 and Corollary 6.74, pp. 141-142. The exact |
| 7 | path bijection and positive action factor identify uniqueness against |
| 8 | every actual admissible minimizing competitor on the closed interval. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | -- The actual rescaled curve has the source point type definitionally. |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 23 | {time : X → ℝ} {I : SpacetimeInterval} |
| 24 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 25 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 26 | (G : GeneralizedLGeometryTransport n X time I) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 27 | |
| 28 | /-- Uniqueness against all actual minimizing competitors is equivalent |
| 29 | under the exact rescaling path bijection. Corollary 6.74, p. 142. -/ |
| 30 | theorem rescalingPath_unique_iff |
| 31 | {T τ₁ τ₂ : ℝ} {x y : G.Point} (p : M14BackwardPath G T τ₁ τ₂ x y) : |
| 32 | (∀ q : M14BackwardPath (rescalingTransport hM12 hM13 G Q hQ a) |
| 33 | (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) x y, |
| 34 | M14IsMinimizing q → EqOn q.curve (rescalingPath hM12 hM13 G Q hQ a p).curve |
| 35 | (Icc (Q * τ₁) (Q * τ₂))) ↔ |
| 36 | ∀ q : M14BackwardPath G T τ₁ τ₂ x y, |
| 37 | M14IsMinimizing q → EqOn q.curve p.curve (Icc τ₁ τ₂) := by |
| 38 | constructor |
| 39 | · intro h q hq s hs |
| 40 | have hm := (rescalingPath_minimizing_iff hM12 hM13 G Q hQ a q).mpr hq |
| 41 | have heq := h (rescalingPath hM12 hM13 G Q hQ a q) hm |
| 42 | ⟨mul_le_mul_of_nonneg_left hs.1 hQ.le, mul_le_mul_of_nonneg_left hs.2 hQ.le⟩ |
| 43 | simpa only [rescalingPath_curve] using heq |
| 44 | · intro h q hq s hs |
| 45 | let q' := rescalingPathInverse hM12 hM13 G Q hQ a q |
| 46 | have hq' : M14IsMinimizing q' := by |
| 47 | apply (rescalingPath_minimizing_iff hM12 hM13 G Q hQ a q').mp |
| 48 | simpa only [q', rescalingPath_right_inverse] using hq |
| 49 | have ht : s / Q ∈ Icc τ₁ τ₂ := |
| 50 | ⟨(le_div_iff₀ hQ).mpr (by simpa only [mul_comm] using hs.1), |
| 51 | (div_le_iff₀ hQ).mpr (by simpa only [mul_comm] using hs.2)⟩ |
| 52 | have heq := h q' hq' ht |
| 53 | change q.curve (Q * (s / Q)) = p.curve (s / Q) at heq |
| 54 | rw [mul_div_cancel₀ _ hQ.ne'] at heq |
| 55 | exact heq |
| 56 | |
| 57 | end PoincareMT.M14 |