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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Calibration.CalibratedPositive |
| 3 | |
| 4 | /-! |
| 5 | # Positive calibrated volume on open regions |
| 6 | |
| 7 | Restrict the actual inverse-chart volume formula to a nonempty open patch. |
| 8 | This applies to a discarded connected component with its pre-surgery metric; |
| 9 | no identification with a component of the regular-limit manifold is needed. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M51 |
| 20 | |
| 21 | open M10 |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 26 | |
| 27 | /-- Every nonempty open region has positive volume for the displayed metric. -/ |
| 28 | theorem calibratedMetricVolume_open_pos (g : RiemannianMetric n M) |
| 29 | {U : Set M} (hU : IsOpen U) (hne : U.Nonempty) : |
| 30 | 0 < calibratedMetricVolume g U := by |
| 31 | obtain ⟨p, hp⟩ := hne |
| 32 | let e := (chartAt (EuclideanSpace ℝ (Fin n)) p).symm |
| 33 | let A := e.source ∩ e ⁻¹' U |
| 34 | have he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source := contMDiffOn_chart_symm |
| 35 | have hei : ContMDiffOn (𝓡 n) (𝓡 n) 1 e.symm e.target := contMDiffOn_chart |
| 36 | have heD : e.MDifferentiable (𝓡 n) (𝓡 n) := |
| 37 | ⟨he.mdifferentiableOn one_ne_zero, hei.mdifferentiableOn one_ne_zero⟩ |
| 38 | have hA : IsOpen A := e.isOpen_inter_preimage hU |
| 39 | have hAsource : A ⊆ e.source := inter_subset_left |
| 40 | have hAne : A.Nonempty := by |
| 41 | refine ⟨chartAt (EuclideanSpace ℝ (Fin n)) p p, ?_, ?_⟩ |
| 42 | · exact (chartAt (EuclideanSpace ℝ (Fin n)) p).map_source (mem_chart_source _ _) |
| 43 | · change (chartAt (EuclideanSpace ℝ (Fin n)) p).symm |
| 44 | (chartAt (EuclideanSpace ℝ (Fin n)) p p) ∈ U |
| 45 | simpa only [(chartAt (EuclideanSpace ℝ (Fin n)) p).left_inv |
| 46 | (mem_chart_source _ _)] using hp |
| 47 | have hj : AEMeasurable (fun y ↦ ENNReal.ofReal (pullbackJacobian g e y)) |
| 48 | (volume.restrict A) := |
| 49 | (ENNReal.continuous_ofReal.comp_continuousOn (fun y hy ↦ |
| 50 | (pullbackJacobian_continuousAt g (he.contMDiffAt |
| 51 | (e.open_source.mem_nhds (hAsource hy)))).continuousWithinAt)).aemeasurable |
| 52 | hA.measurableSet |
| 53 | have hmass : 0 < ∫⁻ y in A, ENNReal.ofReal (pullbackJacobian g e y) := by |
| 54 | apply bot_lt_iff_ne_bot.mpr |
| 55 | intro hz |
| 56 | obtain ⟨y, hy, hzero⟩ := Measure.exists_mem_of_measure_ne_zero_of_ae |
| 57 | (hA.measure_ne_zero volume hAne) ((lintegral_eq_zero_iff' hj).mp hz) |
| 58 | exact (ENNReal.ofReal_pos.mpr |
| 59 | (pullbackJacobian_pos g (heD.mfderiv_bijective (hAsource hy)).injective)).ne' hzero |
| 60 | rw [← M10.calibratedMetricVolume_image_eq_lintegral g e he hei |
| 61 | hA.measurableSet hAsource] at hmass |
| 62 | exact hmass.trans_le (measure_mono (by |
| 63 | rintro _ ⟨y, hy, rfl⟩ |
| 64 | exact hy.2)) |
| 65 | |
| 66 | /-- A component of a smooth manifold has positive actual metric volume. -/ |
| 67 | theorem calibratedMetricVolume_component_pos (g : RiemannianMetric n M) (x : M) : |
| 68 | 0 < calibratedMetricVolume g (connectedComponent x) := by |
| 69 | let : LocallyConnectedSpace M := |
| 70 | ChartedSpace.locallyConnectedSpace (EuclideanSpace ℝ (Fin n)) M |
| 71 | exact calibratedMetricVolume_open_pos g isOpen_connectedComponent |
| 72 | ⟨x, mem_connectedComponent⟩ |
| 73 | |
| 74 | end PoincareMT.M51 |