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.Minimum.Variational.InteriorRegularity |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variational.MinimizingPath |
| 3 | |
| 4 | /-! |
| 5 | # Free-endpoint minimizing reduced-length curves |
| 6 | |
| 7 | The actual uniform action limit is smooth in the interior. Its weak chart |
| 8 | action is therefore its admissible backward action and attains the spatial |
| 9 | action infimum under the original ancient-solution hypotheses. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Manifold ContDiff Bundle Topology intervalIntegral |
| 17 | |
| 18 | namespace PoincareMT.AncientKappaSolution |
| 19 | |
| 20 | open ReducedLengthMinimum ReducedLengthMinimum.Variational |
| 21 | |
| 22 | variable {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 24 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 25 | [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | |
| 27 | /-- An anchored free-endpoint admissible path attains the spatial action infimum. -/ |
| 28 | theorem exists_spatial_minimizing_backwardPath (K : AncientKappaSolution 2 M) |
| 29 | (p : M) {τ : ℝ} (hτ : 0 < τ) : |
| 30 | ∃ α : BackwardTimePath K.flow 0 0 τ, |
| 31 | α.curve 0 = p ∧ |
| 32 | backwardLLength K.flow 0 0 τ α.curve = |
| 33 | 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ ∧ |
| 34 | ∀ β : BackwardTimePath K.flow 0 0 τ, β.curve 0 = p → |
| 35 | backwardLLength K.flow 0 0 τ α.curve ≤ backwardLLength K.flow 0 0 τ β.curve := by |
| 36 | let : MetricSpace M := referenceMetricSpace (K.flow.metric 0) |
| 37 | let : LocallyCompactSpace M := Manifold.locallyCompact_of_finiteDimensional (M := M) (𝓡 2) |
| 38 | obtain ⟨paths, γ, _, hanti, haction, hγ, hγ0, hlim, _⟩ := |
| 39 | K.exists_spatial_minimizing_uniform_limit p hτ |
| 40 | have hreg := K.minimizing_uniform_limit_contMDiffOn p hτ paths hanti haction γ hγ hγ0 hlim |
| 41 | obtain ⟨m, t, x, Q, _, ht, hta, htb, hQ, _⟩ := |
| 42 | exists_compact_partition_of_uniform_limit |
| 43 | (fun x : M => (chartAt (EuclideanSpace ℝ (Fin 2)) x).source) |
| 44 | (fun x => (chartAt (EuclideanSpace ℝ (Fin 2)) x).open_source) |
| 45 | (fun y => ⟨y, mem_chart_source _ y⟩) (Real.sqrt_nonneg τ) γ hγ |
| 46 | (fun k s => (paths k).curve (s ^ 2)) hlim |
| 47 | obtain ⟨w, hw, hsum⟩ := K.finite_chart_limit_le_spatialInfimum p hτ paths hanti |
| 48 | haction γ hγ hlim t ht hta htb x Q hQ |
| 49 | have hsrc (i : Fin m) : MapsTo γ (Icc (t i.castSucc) (t i.succ)) |
| 50 | (chartAt (EuclideanSpace ℝ (Fin 2)) (x i)).source := |
| 51 | fun s hs => (hQ i).2.2 (interior_subset ((hQ i).2.1 (mem_image_of_mem γ hs))) |
| 52 | obtain ⟨α, hα, hact, hminimal⟩ := K.exists_minimizing_path_of_regular_chart_limit hτ |
| 53 | t ht hta htb γ hγ.continuousOn (hreg.of_le (by simp)) x hsrc w hw |
| 54 | (by simpa only [chartH1Action, hγ0] using hsum) |
| 55 | refine ⟨α, ?_, ?_, ?_⟩ |
| 56 | · simpa only [Real.sqrt_zero, hγ0] using hα 0 |
| 57 | · simpa only [hγ0] using hact |
| 58 | · simpa only [hγ0] using hminimal |
| 59 | |
| 60 | end PoincareMT.AncientKappaSolution |