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.Evolution.SlabVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Measure.LocalIsometryVolume |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Proofs/M49/DirectSlabVolume.lean` at |
| 7 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 8 | |
| 9 | # Direct volume comparison on actual surgery-flow slabs |
| 10 | |
| 11 | Morgan-Tian Lemma 17.12, p. 410. The actual identifying diffeomorphisms |
| 12 | preserve scalar curvature by the proved M12 local-isometry theorem and |
| 13 | preserve calibrated volume by the owned coordinate-transport theorem. |
| 14 | The comparisons therefore need no parabolic-rescaling service. |
| 15 | See `proof-work/tasks/M49/derivations/30-direct-volume-adapters.md`. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | namespace PoincareMT.SurgeryVolume |
| 26 | |
| 27 | /-- A metric-preserving diffeomorphism preserves total calibrated volume |
| 28 | directly by image-volume transport (MT Lemma 17.12, p. 410). -/ |
| 29 | theorem volume_univ_eq_of_metric_isometry_direct {n : ℕ} |
| 30 | {M : Type u} {N : Type v} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 32 | [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 33 | [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 34 | [IsManifold (𝓡 n) ∞ N] [T3Space N] [MeasurableSpace N] [BorelSpace N] |
| 35 | (g : RiemannianMetric n M) (h : RiemannianMetric n N) |
| 36 | (f : Diffeomorph (𝓡 n) (𝓡 n) M N ∞) (hf : MetricHomothety g h f 1) : |
| 37 | calibratedMetricVolume h univ = calibratedMetricVolume g univ := by |
| 38 | have he := calibratedMetricVolume_image_eq_of_injective_isometry g h |
| 39 | (f := (f : M → N)) f.contMDiff f.injective |
| 40 | (fun x a b => by simpa only [one_mul] using hf x a b) MeasurableSet.univ |
| 41 | simpa only [image_univ_of_surjective (f := (f : M → N)) f.surjective] using he |
| 42 | |
| 43 | /-- The actual regular-slab volumes obey exponential comparison using |
| 44 | direct local-isometry naturality (MT Lemma 17.12, p. 410). -/ |
| 45 | theorem regularSlab_volume_le_exp_mul_direct |
| 46 | {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 47 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} |
| 48 | (connection : ∀ t, LeviCivitaData (metric t)) {a b : ℝ} |
| 49 | (B : SurgeryRegularSlab slice metric a b) |
| 50 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (connection t) t) |
| 51 | {s t : ℝ} (hs : s ∈ Icc a b) (ht : t ∈ Icc a b) (hst : s ≤ t) : |
| 52 | calibratedMetricVolume (metric t) univ ≤ |
| 53 | ENNReal.ofReal (Real.exp (6 * (t - s))) * calibratedMetricVolume (metric s) univ := by |
| 54 | have hiso (r : Icc a b) : |
| 55 | MetricHomothety (B.flow.metric r.1) (metric r.1) (B.identify r) 1 := by |
| 56 | intro x a b |
| 57 | simpa only [one_mul] using B.metric_pullback r x a b |
| 58 | have hvol (r : Icc a b) := volume_univ_eq_of_metric_isometry_direct |
| 59 | (B.flow.metric r.1) (metric r.1) (B.identify r) (hiso r) |
| 60 | rw [hvol ⟨t, ht⟩, hvol ⟨s, hs⟩] |
| 61 | apply calibratedMetricVolume_le_exp_mul B.flow hst |
| 62 | (fun r hr => ⟨hs.1.trans hr.1, hr.2.trans ht.2⟩) _ MeasurableSet.univ |
| 63 | intro r hr x |
| 64 | let rt : Icc a b := ⟨r, ⟨hs.1.trans hr.1, hr.2.trans ht.2⟩⟩ |
| 65 | have he := (B.flow.connection r).scalarCurvature_eq_of_local_isometry (connection r) |
| 66 | isOpen_univ (B.identify rt).contMDiff.contMDiffOn |
| 67 | (fun y _ a b => (B.metric_pullback rt y a b).symm) (mem_univ x) |
| 68 | rw [he] |
| 69 | exact pinched_scalar_ge_neg_six (hpinched r rt.2) _ |
| 70 | |
| 71 | /-- An included interval without surgery in `(a,b]` obeys the ordinary |
| 72 | volume estimate without a rescaling service (MT Lemma 17.12, p. 410). -/ |
| 73 | theorem regular_volume_le_exp_mul_direct |
| 74 | (F : SurgeryFlowData.{u}) {a b : ℝ} (hab : a ≤ b) |
| 75 | (hJ : Icc a b ⊆ F.time_domain) (hevents : Disjoint F.surgery_times (Ioc a b)) |
| 76 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (F.connection t) t) : |
| 77 | calibratedMetricVolume (F.metric b) univ ≤ |
| 78 | ENNReal.ofReal (Real.exp (6 * (b - a))) * calibratedMetricVolume (F.metric a) univ := by |
| 79 | obtain hlt | rfl := hab.lt_or_eq |
| 80 | · exact regularSlab_volume_le_exp_mul_direct F.connection |
| 81 | (F.regular_slabs a b hlt hJ hevents) hpinched ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab |
| 82 | · simp |
| 83 | |
| 84 | /-- The actual pre-event diffeomorphisms transfer exponential comparison |
| 85 | throughout the predecessor interval (MT Lemma 17.12, p. 410). -/ |
| 86 | theorem preEvent_volume_le_exp_mul_direct |
| 87 | (F : SurgeryFlowData.{u}) (T : ℝ) (hT : T ∈ F.surgery_times) |
| 88 | [Nonempty (F.slice T).carrier] |
| 89 | (hpinched : ∀ t ∈ Ico (F.event T hT).tMinus T, SurgeryPinchedAt (F.connection t) t) |
| 90 | {s t : ℝ} (hs : s ∈ Ico (F.event T hT).tMinus T) |
| 91 | (ht : t ∈ Ico (F.event T hT).tMinus T) (hst : s ≤ t) : |
| 92 | calibratedMetricVolume (F.metric t) univ ≤ |
| 93 | ENNReal.ofReal (Real.exp (6 * (t - s))) * calibratedMetricVolume (F.metric s) univ := by |
| 94 | let E := F.event T hT |
| 95 | have hiso (r : Ico E.tMinus T) : |
| 96 | MetricHomothety (E.pre_flow.metric r.1) (F.metric r.1) (E.pre_identify r) 1 := by |
| 97 | intro x a b |
| 98 | simpa only [one_mul] using E.pre_metric r x a b |
| 99 | have hvol (r : Ico E.tMinus T) := volume_univ_eq_of_metric_isometry_direct |
| 100 | (E.pre_flow.metric r.1) (F.metric r.1) (E.pre_identify r) (hiso r) |
| 101 | rw [hvol ⟨t, ht⟩, hvol ⟨s, hs⟩] |
| 102 | apply calibratedMetricVolume_le_exp_mul E.pre_flow hst |
| 103 | (fun r hr => ⟨hs.1.trans hr.1, hr.2.trans_lt ht.2⟩) _ MeasurableSet.univ |
| 104 | intro r hr x |
| 105 | let rt : Ico E.tMinus T := ⟨r, ⟨hs.1.trans hr.1, hr.2.trans_lt ht.2⟩⟩ |
| 106 | have he := (E.pre_flow.connection r).scalarCurvature_eq_of_local_isometry (F.connection r) |
| 107 | isOpen_univ (E.pre_identify rt).contMDiff.contMDiffOn |
| 108 | (fun y _ a b => (E.pre_metric rt y a b).symm) (mem_univ x) |
| 109 | rw [he] |
| 110 | exact pinched_scalar_ge_neg_six (hpinched r rt.2) _ |
| 111 | |
| 112 | end PoincareMT.SurgeryVolume |