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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.OpenCapture |
| 3 | |
| 4 | /-! |
| 5 | # Regularity and volume through nested open regions |
| 6 | |
| 7 | Definition 5.1 of Morgan--Tian, printed p. 83, descends through actual |
| 8 | open inclusion: compact intrinsic ball closures have compact ambient |
| 9 | images containing the ambient balls supplied by OpenCapture. Applying |
| 10 | the exact volume identity twice handles the critical region inside the |
| 11 | already normalized tube. See the critical-region-noncollapse derivation |
| 12 | dated 2026-09-24 under tasks/M28/review-endpoints. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | |
| 28 | /-- Intrinsic regularity in an open region gives ambient regularity at |
| 29 | the same radius, by compact images of the smaller ball closures. -/ |
| 30 | theorem regularPoints_of_intrinsicOpenMetric |
| 31 | (g : RiemannianMetric 3 M) (U : TopologicalSpace.Opens M) (p : U) |
| 32 | {r : ℝ} (hp : p ∈ regularPoints (intrinsicOpenMetric g U) r) : |
| 33 | (p : M) ∈ regularPoints g r := by |
| 34 | intro s hsr |
| 35 | let K := (Subtype.val : U → M) '' closure ((intrinsicOpenMetric g U).ball p s) |
| 36 | have hK : IsCompact K := (hp s hsr).image continuous_subtype_val |
| 37 | have hball : g.ball (p : M) s ⊆ K := by |
| 38 | rw [← intrinsicOpenMetric_ball_image_of_regular g U p |
| 39 | (regularPoints_antitone (intrinsicOpenMetric g U) hsr.le hp)] |
| 40 | rintro _ ⟨x, hx, rfl⟩ |
| 41 | exact ⟨x, subset_closure hx, rfl⟩ |
| 42 | exact hK.of_isClosed_subset isClosed_closure (closure_minimal hball hK.isClosed) |
| 43 | |
| 44 | /-- At an intrinsically regular point of two nested open regions, inclusion |
| 45 | maps the entire regular ball onto the ambient ball. This is the finite-path |
| 46 | capture used in Claim 10.6, printed p. 252; see M28 derivation 70. -/ |
| 47 | theorem nested_intrinsicOpenMetric_ball_image_of_regular |
| 48 | (g : RiemannianMetric 3 M) (U : TopologicalSpace.Opens M) |
| 49 | (V : TopologicalSpace.Opens U) (p : V) {r : ℝ} |
| 50 | (hp : p ∈ regularPoints (intrinsicOpenMetric (intrinsicOpenMetric g U) V) r) : |
| 51 | (fun q : V => ((q : U) : M)) '' |
| 52 | (intrinsicOpenMetric (intrinsicOpenMetric g U) V).ball p r = |
| 53 | g.ball ((p : U) : M) r := by |
| 54 | calc |
| 55 | _ = (Subtype.val : U → M) '' |
| 56 | ((Subtype.val : V → U) '' |
| 57 | (intrinsicOpenMetric (intrinsicOpenMetric g U) V).ball p r) := by |
| 58 | rw [Set.image_image] |
| 59 | _ = (Subtype.val : U → M) '' (intrinsicOpenMetric g U).ball (p : U) r := by |
| 60 | rw [intrinsicOpenMetric_ball_image_of_regular (intrinsicOpenMetric g U) V p hp] |
| 61 | _ = g.ball ((p : U) : M) r := |
| 62 | intrinsicOpenMetric_ball_image_of_regular g U (p : U) |
| 63 | (regularPoints_of_intrinsicOpenMetric (intrinsicOpenMetric g U) V p hp) |
| 64 | |
| 65 | variable [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 66 | |
| 67 | /-- A regular ball in two actual nested open restrictions has the volume |
| 68 | of the ambient ball; both capture statements follow from regularity. -/ |
| 69 | theorem nested_intrinsicOpenMetric_ball_volume_of_regular |
| 70 | (g : RiemannianMetric 3 M) (U : TopologicalSpace.Opens M) |
| 71 | (V : TopologicalSpace.Opens U) (p : V) {r : ℝ} |
| 72 | (hp : p ∈ regularPoints (intrinsicOpenMetric (intrinsicOpenMetric g U) V) r) : |
| 73 | (intrinsicOpenMetric (intrinsicOpenMetric g U) V).volumeMeasure |
| 74 | ((intrinsicOpenMetric (intrinsicOpenMetric g U) V).ball p r) = |
| 75 | g.volumeMeasure (g.ball ((p : U) : M) r) := by |
| 76 | rw [intrinsicOpenMetric_ball_volume_of_regular (intrinsicOpenMetric g U) V p hp] |
| 77 | exact intrinsicOpenMetric_ball_volume_of_regular g U (p : U) |
| 78 | (regularPoints_of_intrinsicOpenMetric (intrinsicOpenMetric g U) V p hp) |
| 79 | |
| 80 | end PoincareMT.M28 |