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.Volume.Surgery.Neck.CylinderDensityPatch |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Neck.CylinderCoordinateBox |
| 3 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Neck.NeckChartJacobian |
| 4 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Measure.CalibratedTransport |
| 5 | |
| 6 | /-! |
| 7 | Adapted from Mapher `PoincareMT/Proofs/M49/Lemma17_12_NeckVolume.lean` at |
| 8 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 9 | |
| 10 | # Uniform positive-half-neck volume |
| 11 | |
| 12 | Morgan-Tian Lemma 17.12, p. 410, uses the cylinder of Definition 2.18, |
| 13 | p. 31. A fixed sphere-chart patch over the full positive line interval |
| 14 | has density bounded below by a constant times the cube of the actual |
| 15 | neck scale. Its interval length supplies the inverse epsilon factor. |
| 16 | This proves the corrected `h^3 / delta` scale used in M49. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set MeasureTheory |
| 22 | open scoped Manifold ContDiff ENNReal |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.SurgeryVolume |
| 27 | |
| 28 | /-- Constants chosen before the ambient manifold and actual neck give |
| 29 | the corrected cubic positive-half-neck volume bound |
| 30 | (MT Lemma 17.12, p. 410, with corrected scaling). -/ |
| 31 | theorem exists_uniform_positive_half_neck_volume : |
| 32 | ∃ c d : ℝ, 0 < c ∧ 0 < d ∧ |
| 33 | ∀ (M : Type u) [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 35 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 36 | (g : RiemannianMetric 3 M) (N : EpsilonNeck g), N.epsilon ≤ d → |
| 37 | ENNReal.ofReal (c * N.scale ^ 3 / N.epsilon) ≤ |
| 38 | calibratedMetricVolume g (N.region 0 N.epsilon⁻¹) := by |
| 39 | let q : UnitTwoSphere := ⟨EuclideanSpace.basisFun (Fin 3) ℝ 0, |
| 40 | by simp⟩ |
| 41 | obtain ⟨r, d, a, hr, hd, ha, hpatch⟩ := exists_cylinder_density_patch q |
| 42 | refine ⟨a * r ^ 2, d, mul_pos ha (pow_pos hr _), hd, ?_⟩ |
| 43 | intro M _ _ _ _ _ _ g N hsmall |
| 44 | let c := chartAt (EuclideanSpace ℝ (Fin 2)) q |
| 45 | let e := epsilonNeckEuclideanChart N q |
| 46 | let A := cylinderCoordinateBox (c q) r N.epsilon⁻¹ |
| 47 | have hA : MeasurableSet A := (isOpen_cylinderCoordinateBox _ _ _).measurableSet |
| 48 | have hline : 0 < N.epsilon⁻¹ := inv_pos.mpr N.epsilon_pos |
| 49 | have hbox (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∈ A) : |
| 50 | (cylinderCoordinateEquiv x).1 ∈ Metric.ball (c q) r ∧ |
| 51 | (cylinderCoordinateEquiv x).2 ∈ Ioo 0 N.epsilon⁻¹ := |
| 52 | cylinderCoordinateBox_subset (c q) hr N.epsilon⁻¹ hx |
| 53 | have hsource : A ⊆ e.source := by |
| 54 | intro x hx |
| 55 | rw [epsilonNeckEuclideanChart_source] |
| 56 | exact ⟨(hpatch _ (hbox x hx).1).1, |
| 57 | (neg_neg_of_pos hline).trans (hbox x hx).2.1, (hbox x hx).2.2⟩ |
| 58 | have hJ (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∈ A) : |
| 59 | N.scale ^ 3 * a ≤ SurgeryVolume.Measure.pullbackJacobian g e x := by |
| 60 | let p := cylinderCoordinateEquiv x |
| 61 | let Q : Matrix (Fin 3) (Fin 3) ℝ := fun i j => N.scale⁻¹ ^ 2 * |
| 62 | roundCylinderTensorCoefficient (roundCylinderPullback g N.coordinate_map) c p i j |
| 63 | have hp : p.2 ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := |
| 64 | ⟨(neg_neg_of_pos hline).trans (hbox x hx).2.1, (hbox x hx).2.2⟩ |
| 65 | have hdensity : a ≤ Real.sqrt Q.det := (hpatch p (hbox x hx).1).2 Q (by |
| 66 | intro i j |
| 67 | exact (epsilonNeck_coefficient_error_le N c p hp i j).trans |
| 68 | (mul_le_mul_of_nonneg_right |
| 69 | (mul_le_mul_of_nonneg_right hsmall (Real.sqrt_nonneg _)) (Real.sqrt_nonneg _))) |
| 70 | rw [epsilonNeckEuclideanChart_jacobian_eq N q x (hsource hx)] |
| 71 | exact mul_le_mul_of_nonneg_left hdensity (pow_nonneg N.scale_pos.le _) |
| 72 | have hvolume := SurgeryVolume.Measure.calibratedMetricVolume_image_eq_lintegral g e |
| 73 | ((epsilonNeckEuclideanChart_contMDiffOn N q).of_le (by simp)) |
| 74 | ((epsilonNeckEuclideanChart_symm_contMDiffOn N q).of_le (by simp)) hA hsource |
| 75 | have himage : e '' A ⊆ N.region 0 N.epsilon⁻¹ := by |
| 76 | rw [← epsilonNeckChart_image_region N 0 N.epsilon⁻¹ |
| 77 | (neg_nonpos.mpr hline.le) le_rfl] |
| 78 | rintro _ ⟨x, hx, rfl⟩ |
| 79 | exact ⟨(c.symm (cylinderCoordinateEquiv x).1, (cylinderCoordinateEquiv x).2), |
| 80 | ⟨mem_univ _, (hbox x hx).2⟩, rfl⟩ |
| 81 | calc |
| 82 | ENNReal.ofReal (a * r ^ 2 * N.scale ^ 3 / N.epsilon) = |
| 83 | ENNReal.ofReal (N.scale ^ 3 * a) * volume A := by |
| 84 | rw [volume_cylinderCoordinateBox _ hr.le, |
| 85 | ← ENNReal.ofReal_mul (mul_nonneg (pow_nonneg N.scale_pos.le _) ha.le)] |
| 86 | congr 1 |
| 87 | simp only [div_eq_mul_inv] |
| 88 | ring |
| 89 | _ = ∫⁻ _ in A, ENNReal.ofReal (N.scale ^ 3 * a) := by simp |
| 90 | _ ≤ calibratedMetricVolume g (e '' A) := by |
| 91 | rw [hvolume] |
| 92 | apply lintegral_mono_ae |
| 93 | filter_upwards [ae_restrict_mem hA] with x hx |
| 94 | exact ENNReal.ofReal_le_ofReal (hJ x hx) |
| 95 | _ ≤ calibratedMetricVolume g (N.region 0 N.epsilon⁻¹) := measure_mono himage |
| 96 | |
| 97 | end PoincareMT.SurgeryVolume |