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.SmallTime.Stability.SmallTimeUniqueBranches |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Candidates.SmallTimeCandidate |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Stability.SmallTimeStability |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Local.CompactCoordinateBox |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Theory |
| 6 | |
| 7 | /-! |
| 8 | # Compact small-time coverage by actual stable branches |
| 9 | |
| 10 | Morgan-Tian Corollary 6.79, pp. 144-145. A compact coordinate box and |
| 11 | uniform bounds for the actual candidate family give global unique |
| 12 | minimality on an open source neighborhood. Uniform noncriticality and |
| 13 | capture then supply the exact frozen small-time coverage statement. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | {T : ℝ} {x : G.Point} |
| 28 | |
| 29 | /-- The actual family has uniformly unique minimizing branches on an |
| 30 | open neighborhood of any compact initial set, Corollary 6.79, |
| 31 | pp. 144-145. The curvature bound is on the entire past slab. -/ |
| 32 | theorem exists_open_smallTime_uniqueMinimizing |
| 33 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 34 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) (E : M14ExponentialFamily G T x) |
| 35 | {B : Set (G.Horizontal x)} (hB : IsCompact B) |
| 36 | {δ : ℝ} (hδ : 0 < δ) (hwindow : Icc (T - δ) T ⊆ I.domain) |
| 37 | {C : ℝ} (hC : 0 ≤ C) |
| 38 | (hcurv : ∀ q : G.Point, G.spacetime.timeFunction q ∈ Icc (T - δ) T → |
| 39 | horizontalCurvatureNorm G.leafwise q ≤ C) : |
| 40 | ∃ N : Set (G.Horizontal x), IsOpen N ∧ B ⊆ N ∧ |
| 41 | ∃ ε : ℝ, 0 < ε ∧ ε ≤ δ ∧ |
| 42 | ∀ W ∈ N, ∀ τ ∈ Ioc 0 ε, M14UniqueMinimizingBranch G T τ x E W := by |
| 43 | obtain ⟨b, U, lift, hU, hxU, hlift, hright, htime⟩ := exists_smooth_gauge_lift G x |
| 44 | have hcoord_cont : ContinuousOn (fun q => (lift q).2.val) U := |
| 45 | continuous_subtype_val.comp_continuousOn hlift.continuousOn.snd |
| 46 | obtain ⟨O, hO, hxO, hOU, S, hS, hconvex, hSU, hcoord⟩ := |
| 47 | exists_compact_convex_coordinate_box hU hxU (fun q => (lift q).2.val) hcoord_cont |
| 48 | (G.gaugeCover.spatial b).isOpen (lift x).2.property |
| 49 | obtain ⟨N, η, M, A, hN, hBN, hη, hηδ, _hM, hA, hcapture, hspeed, haction⟩ := |
| 50 | smallTimeCandidateBounds hM12 E (hB.insert 0) b lift hO hxO |
| 51 | (hlift.mono hOU) hδ hwindow |
| 52 | obtain ⟨ε, hε, hεη, hunique⟩ := |
| 53 | exists_uniform_uniqueMinimizing_of_candidate_bounds hCoordinates hM12 E b lift |
| 54 | hU hlift hright htime hO hxO hOU hS hconvex hSU hcoord |
| 55 | (hBN (mem_insert 0 B)) hη hηδ hA hC hcurv hcapture hspeed haction |
| 56 | exact ⟨N, hN, (subset_insert 0 B).trans hBN, ε, hε, hεη.trans hηδ, hunique⟩ |
| 57 | |
| 58 | /-- The exact compact small-time coverage clause follows from actual |
| 59 | confinement, comparison and noncriticality, Corollary 6.79, |
| 60 | pp. 144-145. No additional minimizing or completeness premise is used. -/ |
| 61 | theorem smallTimeCoverageStatement (hCoordinates : M12MetricPredecessors.{0} n) |
| 62 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 63 | (G : GeneralizedLGeometryTransport n X time I) : M14SmallTimeCoverageStatement G := by |
| 64 | intro T x E B K δ hδ hwindow hB _hK hKN _hR hcurv |
| 65 | obtain ⟨C, hC, hcurv⟩ := hcurv |
| 66 | obtain ⟨N, hN, hBN, η, hη, hηδ, hunique⟩ := |
| 67 | exists_open_smallTime_uniqueMinimizing hCoordinates hM12 E hB hδ hwindow hC hcurv |
| 68 | exact smallTime_stability_of_open_uniqueMinimizing E hB hKN hδ hwindow |
| 69 | hN hBN hη hηδ hunique |
| 70 | |
| 71 | end PoincareMT.M14 |