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.Continuation.ContinuationPath |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Continuation.ContinuationBackward |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Continuation.ContinuationUniqueness |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/ExtensionToZero.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 7 | |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | open Set Filter Topology |
| 12 | open scoped Manifold ContDiff Bundle |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.LGeometry |
| 17 | |
| 18 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 20 | [ConnectedSpace M] [T3Space M] [SecondCountableTopology M] |
| 21 | |
| 22 | theorem exists_backward_geodesic_extension {J : Set ℝ} {F : RicciFlow n M J} |
| 23 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 24 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 25 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 26 | (hτ₁ : 0 < τ₁) (hτ₂ : τ₂ ≤ τmax) (p : BackwardTimePath F T τ₁ τ₂) |
| 27 | (hp : IsBackwardLGeodesic F T τ₁ τ₂ p) : |
| 28 | ∃ q : BackwardTimePath F T 0 τ₂, |
| 29 | (∀ τ ∈ Icc τ₁ τ₂, q.curve τ = p.curve τ) ∧ IsBackwardLGeodesic F T 0 τ₂ q ∧ |
| 30 | ∀ q' : BackwardTimePath F T 0 τ₂, |
| 31 | (∀ τ ∈ Icc τ₁ τ₂, q'.curve τ = p.curve τ) → |
| 32 | IsBackwardLGeodesic F T 0 τ₂ q' → ∀ τ ∈ Icc 0 τ₂, q'.curve τ = q.curve τ := by |
| 33 | obtain ⟨R⟩ := nonempty_regularizedLGeodesicData hM04 hwindow hcurvature hτ₂ p hp |
| 34 | obtain ⟨α, hαC, hα, hαR⟩ := exists_extended_square_continuation |
| 35 | hM04 hwindow hcurvature hτ₁ hτ₂ p R |
| 36 | obtain ⟨q, hqα, hq⟩ := exists_backward_geodesic_of_continuation F hM04 T τmax τ₂ |
| 37 | (hτ₁.trans p.ordered) hτ₂ hwindow α hαC hα |
| 38 | have hqp : ∀ τ ∈ Icc τ₁ τ₂, q.curve τ = p.curve τ := by |
| 39 | intro τ hτ |
| 40 | have hτ0 : 0 ≤ τ := hτ₁.le.trans hτ.1 |
| 41 | have hs : Real.sqrt τ ∈ sqrtParameterInterval τ₁ τ₂ := |
| 42 | ⟨Real.sqrt_le_sqrt hτ.1, Real.sqrt_le_sqrt hτ.2⟩ |
| 43 | exact (hqα ⟨hτ0, hτ.2⟩).trans ((hαR hs).trans (sqrtRegularPath_point_eq R.path hτ)) |
| 44 | refine ⟨q, hqp, hq, ?_⟩ |
| 45 | intro q' hq'p hq' |
| 46 | exact backward_geodesic_eqOn_of_terminal_agreement hM04 hwindow hcurvature |
| 47 | hτ₁ p.ordered hτ₂ q' q hq' hq (fun τ hτ ↦ (hq'p τ hτ).trans (hqp τ hτ).symm) |
| 48 | |
| 49 | end PoincareMT.LGeometry |
| 50 | |
| 51 |