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.Spacetime.Coordinates.MetricVolumeLipschitz |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.EmbeddingInverse |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.RelativeCompactMetric |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.InverseOpenDistance |
| 6 | |
| 7 | /-! |
| 8 | # Total volume of the actual regular spatial limit |
| 9 | |
| 10 | The inverse on each actual open stage image is globally Lipschitz for |
| 11 | its intrinsic metric. Its image volume is uniformly bounded, so monotone |
| 12 | exhaustion controls the whole limit. Source: Morgan--Tian Theorem 5.6, |
| 13 | pp. 85-87, and Proposition 10.7, p. 253; M28 derivation 127. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option maxSynthPendingDepth 12 |
| 19 | |
| 20 | open Set Filter MeasureTheory |
| 21 | open scoped Manifold ContDiff Topology NNReal ENNReal |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28.RegularPointedMetricConvergence |
| 26 | |
| 27 | variable {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 28 | [∀ k, MeasurableSpace (M k)] [∀ k, BorelSpace (M k)] |
| 29 | [∀ k, T2Space (M k)] [∀ k, T3Space (M k)] |
| 30 | [∀ k, SecondCountableTopology (M k)] |
| 31 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin 3)) (M k)] |
| 32 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] |
| 33 | {g : ∀ k, RiemannianMetric 3 (M k)} {p : ∀ k, M k} |
| 34 | |
| 35 | /-- A uniform source volume bound passes to the actual limit. Each |
| 36 | exhaustion stage may choose its own sufficiently late source index. |
| 37 | Source: Theorem 5.6, pp. 85-87; M28 derivation 127. -/ |
| 38 | theorem volumeMeasure_univ_le_of_source_bound |
| 39 | (G : RegularPointedMetricConvergence g p) (V : ℝ≥0∞) |
| 40 | (hV : ∀ k, (g k).volumeMeasure univ ≤ V) : |
| 41 | letI := G.limitCarrier.topologicalSpace |
| 42 | letI := G.limitCarrier.measurableSpace |
| 43 | letI := G.limitCarrier.borelSpace |
| 44 | letI := G.limitCarrier.t3Space |
| 45 | letI := G.limitCarrier.chartedSpace |
| 46 | letI := G.limitCarrier.isManifold |
| 47 | G.limitMetric.volumeMeasure univ ≤ 8 * V := by |
| 48 | classical |
| 49 | let := G.limitCarrier.topologicalSpace |
| 50 | let := G.limitCarrier.measurableSpace |
| 51 | let := G.limitCarrier.borelSpace |
| 52 | let := G.limitCarrier.t3Space |
| 53 | let := G.limitCarrier.chartedSpace |
| 54 | let := G.limitCarrier.isManifold |
| 55 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ |
| 56 | (fun j => subset_closure.trans (G.exhaustion_step j)) |
| 57 | rw [← G.exhaustion_covers, hmono.measure_iUnion] |
| 58 | apply iSup_le |
| 59 | intro j |
| 60 | obtain ⟨k, hcompare, hjk⟩ := ((G.eventually_compact_relative_inner_bounds |
| 61 | (closure (G.exhaustion j)) (G.exhaustion_compactClosure j) 3 (by norm_num)).and |
| 62 | (eventually_ge_atTop j)).exists |
| 63 | let e := G.stageDiffeomorph k |
| 64 | have hsource : G.exhaustion j ⊆ e.source := hmono hjk |
| 65 | let U : TopologicalSpace.Opens (M (G.subsequence k)) := |
| 66 | ⟨e '' G.exhaustion j, |
| 67 | e.toOpenPartialHomeomorph.isOpen_image_of_subset_source (G.exhaustion_open j) hsource⟩ |
| 68 | have hU : (U : Set (M (G.subsequence k))) ⊆ e.target := by |
| 69 | rintro _ ⟨x, hx, rfl⟩ |
| 70 | exact e.toPartialEquiv.map_source (hsource hx) |
| 71 | have hbound : ∀ y ∈ (U : Set (M (G.subsequence k))), |
| 72 | ∀ v : TangentSpace (𝓡 3) (e.symm y), |
| 73 | G.limitMetric.inner (e.symm y) v v ≤ (2 : ℝ) ^ 2 * |
| 74 | (g (G.subsequence k)).inner (e (e.symm y)) |
| 75 | (mfderiv (𝓡 3) (𝓡 3) e (e.symm y) v) |
| 76 | (mfderiv (𝓡 3) (𝓡 3) e (e.symm y) v) := by |
| 77 | rintro _ ⟨x, hx, rfl⟩ |
| 78 | have hleft : e.symm (e x) = x := e.toPartialEquiv.left_inv (hsource hx) |
| 79 | rw [hleft] |
| 80 | intro v |
| 81 | have hl := (hcompare x (subset_closure hx) v).1 |
| 82 | change G.limitMetric.inner x v v ≤ (2 : ℝ) ^ 2 * |
| 83 | (g (G.subsequence k)).inner (G.embedding k x) |
| 84 | (mfderiv (𝓡 3) (𝓡 3) (G.embedding k) x v) |
| 85 | (mfderiv (𝓡 3) (𝓡 3) (G.embedding k) x v) |
| 86 | norm_num at hl ⊢ |
| 87 | linarith only [hl] |
| 88 | let f : U → G.limitCarrier.carrier := fun y => e.symm (y : M (G.subsequence k)) |
| 89 | have hdist : ∀ y z, G.limitMetric.edist (f y) (f z) ≤ |
| 90 | ((2 : ℝ≥0) : ℝ≥0∞) * (intrinsicOpenMetric (g (G.subsequence k)) U).edist y z := by |
| 91 | intro y z |
| 92 | simpa only [ENNReal.ofReal_ofNat, ENNReal.coe_ofNat] using |
| 93 | inverse_edist_le_intrinsicOpenMetric G.limitMetric (g (G.subsequence k)) |
| 94 | e U hU (by norm_num : (0 : ℝ) < 2) hbound y z |
| 95 | have himage : f '' univ = G.exhaustion j := by |
| 96 | ext x |
| 97 | constructor |
| 98 | · rintro ⟨y, _, rfl⟩ |
| 99 | obtain ⟨z, hz, hzy⟩ := y.property |
| 100 | change e.symm (y : M (G.subsequence k)) ∈ G.exhaustion j |
| 101 | have hleft : e.symm (e z) = z := e.toPartialEquiv.left_inv (hsource hz) |
| 102 | rw [← hzy, hleft] |
| 103 | exact hz |
| 104 | · intro hx |
| 105 | refine ⟨⟨e x, ⟨x, hx, rfl⟩⟩, mem_univ _, ?_⟩ |
| 106 | exact e.toPartialEquiv.left_inv (hsource hx) |
| 107 | have hv := volumeMeasure_image_le_of_edist_le |
| 108 | (intrinsicOpenMetric (g (G.subsequence k)) U) G.limitMetric f 2 hdist univ |
| 109 | rw [himage, intrinsicOpenMetric_volumeMeasure_univ] at hv |
| 110 | norm_num at hv |
| 111 | exact hv.trans (mul_le_mul_right ((measure_mono (subset_univ _)).trans |
| 112 | (hV (G.subsequence k))) 8) |
| 113 | |
| 114 | end PoincareMT.M28.RegularPointedMetricConvergence |