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.Path.ActionBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Path.AdmissiblePaths |
| 3 | import Mathlib.Topology.Order.IsLUB |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/MinimizingSequence.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 7 | |
| 8 | |
| 9 | /-! |
| 10 | # Fixed-endpoint minimizing sequences |
| 11 | |
| 12 | The infimum here ranges over every frozen admissible backward path. |
| 13 | Coercivity makes it finite; no minimizer or endpoint regularity is assumed. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle intervalIntegral Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.LGeometry |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 26 | [IsManifold (𝓡 n) ∞ M] |
| 27 | |
| 28 | def backwardActionValues {J : Set ℝ} (F : RicciFlow n M J) |
| 29 | (T τ₁ τ₂ : ℝ) (p₁ p₂ : M) : Set ℝ := |
| 30 | {L | ∃ p : BackwardTimePath F T τ₁ τ₂, |
| 31 | p.curve τ₁ = p₁ ∧ p.curve τ₂ = p₂ ∧ |
| 32 | backwardLLength F T τ₁ τ₂ p.curve = L} |
| 33 | |
| 34 | theorem backwardActionValues_bddBelow {J : Set ℝ} {F : RicciFlow n M J} |
| 35 | [T3Space M] {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 36 | (hcurvature : CompleteBoundedCurvatureOn F (Set.Icc (T - τmax) T)) |
| 37 | (hτ₂ : τ₂ ≤ τmax) (p₁ p₂ : M) : |
| 38 | BddBelow (backwardActionValues F T τ₁ τ₂ p₁ p₂) := by |
| 39 | obtain ⟨K, _, hK⟩ := hcurvature.2 |
| 40 | refine ⟨-(Real.sqrt τ₂ * (n : ℝ) ^ 2 * K) * (τ₂ - τ₁), ?_⟩ |
| 41 | rintro L ⟨p, _, _, rfl⟩ |
| 42 | exact (backwardLLength_coercive hM04 p hτ₂ hK).1 |
| 43 | |
| 44 | /-- A bounded sequence of actual competitors whose actions converge to the infimum. -/ |
| 45 | theorem exists_backward_minimizing_sequence {J : Set ℝ} {F : RicciFlow n M J} |
| 46 | [ConnectedSpace M] [T3Space M] {T τmax τ₁ τ₂ : ℝ} |
| 47 | (hM04 : RicciFlowCurvatureTheory.{u}) (hT : T ∈ J) |
| 48 | (hwindow : Set.Icc (T - τmax) T ⊆ J) |
| 49 | (hcurvature : CompleteBoundedCurvatureOn F (Set.Icc (T - τmax) T)) |
| 50 | (hτ₁ : 0 ≤ τ₁) (hordered : τ₁ < τ₂) (hτ₂ : τ₂ ≤ τmax) |
| 51 | (p₁ p₂ : M) : |
| 52 | ∃ p : ℕ → BackwardTimePath F T τ₁ τ₂, |
| 53 | (∀ k, (p k).curve τ₁ = p₁ ∧ (p k).curve τ₂ = p₂) ∧ |
| 54 | Antitone (fun k ↦ backwardLLength F T τ₁ τ₂ (p k).curve) ∧ |
| 55 | Filter.Tendsto (fun k ↦ backwardLLength F T τ₁ τ₂ (p k).curve) |
| 56 | Filter.atTop (𝓝 (sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂))) := by |
| 57 | have hne : (backwardActionValues F T τ₁ τ₂ p₁ p₂).Nonempty := by |
| 58 | obtain ⟨p, hp₁, hp₂⟩ := exists_backwardTimePath (F := F) hM04 hT hτ₁ hordered |
| 59 | (fun τ hτ ↦ hwindow (backwardTime_mem_window hτ₁ hτ₂ hτ)) p₁ p₂ |
| 60 | exact ⟨backwardLLength F T τ₁ τ₂ p.curve, p, hp₁, hp₂, rfl⟩ |
| 61 | obtain ⟨c, hcmono, hclim, hc⟩ := exists_seq_tendsto_sInf hne |
| 62 | (backwardActionValues_bddBelow hM04 hcurvature hτ₂ p₁ p₂) |
| 63 | choose p hp₁ hp₂ hpval using hc |
| 64 | refine ⟨p, fun k ↦ ⟨hp₁ k, hp₂ k⟩, ?_, ?_⟩ |
| 65 | · simpa only [hpval] using hcmono |
| 66 | · simpa only [hpval] using hclim |
| 67 | |
| 68 | end PoincareMT.LGeometry |