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.VolumeEvolution |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Event.EventHistory |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Proofs/M49/SlabVolume.lean` at |
| 7 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 8 | |
| 9 | # Volume comparison on actual surgery-flow slabs |
| 10 | |
| 11 | Morgan-Tian Lemma 17.12, p. 410. The actual slab and pre-event |
| 12 | diffeomorphisms preserve the displayed metrics. M13's scale-one |
| 13 | naturality interface transfers the scalar bound and calibrated volumes. |
| 14 | See `proof-work/tasks/M49/derivations/03-slab-left-limit.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.SurgeryVolume |
| 25 | |
| 26 | /-- Absolute-time surgery pinching implies the scalar bound used in |
| 27 | the ordinary-volume inequality of MT Lemma 17.12, p. 410. -/ |
| 28 | theorem pinched_scalar_ge_neg_six {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [T2Space M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 31 | [SecondCountableTopology M] {g : RiemannianMetric 3 M} |
| 32 | {D : LeviCivitaData g} {t : ℝ} (ht : SurgeryPinchedAt D t) (x : M) : |
| 33 | -6 ≤ D.scalarCurvature x := by |
| 34 | have hd : 0 < 1 + 4 * t := by linarith [ht.1] |
| 35 | apply le_trans _ (ht.2.1 x (mem_univ x)) |
| 36 | apply (le_div_iff₀ hd).mpr |
| 37 | nlinarith [ht.1] |
| 38 | |
| 39 | /-- A metric-preserving diffeomorphism preserves total calibrated volume; |
| 40 | this is M13 metric naturality at scale one (MT Theorem 1.2, pp. 3-4, |
| 41 | used in Lemma 17.12, p. 410). -/ |
| 42 | theorem volume_univ_eq_of_metric_isometry {n : ℕ} |
| 43 | (H : GeneralizedParabolicRescalingTheory.{u} n) |
| 44 | {M N : Type u} [TopologicalSpace M] |
| 45 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 46 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 47 | [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 48 | [IsManifold (𝓡 n) ∞ N] [T3Space N] [MeasurableSpace N] [BorelSpace N] |
| 49 | (g : RiemannianMetric n M) (h : RiemannianMetric n N) |
| 50 | (f : Diffeomorph (𝓡 n) (𝓡 n) M N ∞) (hf : MetricHomothety g h f 1) : |
| 51 | calibratedMetricVolume h univ = calibratedMetricVolume g univ := by |
| 52 | have he := (H.metric_homothety M N g h f 1 (by norm_num) hf).volume_image univ |
| 53 | change calibratedMetricVolume h (f '' univ) = |
| 54 | ENNReal.ofReal ((1 : ℝ) ^ ((n : ℝ) / 2)) * calibratedMetricVolume g univ at he |
| 55 | rw [image_univ_of_surjective (f := (f : M → N)) f.surjective, Real.one_rpow, |
| 56 | ENNReal.ofReal_one, one_mul] at he |
| 57 | exact he |
| 58 | |
| 59 | /-- The actual regular-slab volumes obey the exponential estimate between |
| 60 | any two included ordered times (MT Lemma 17.12, p. 410). -/ |
| 61 | theorem regularSlab_volume_le_exp_mul (H : GeneralizedParabolicRescalingTheory.{u} 3) |
| 62 | {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 63 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} |
| 64 | (connection : ∀ t, LeviCivitaData (metric t)) {a b : ℝ} |
| 65 | (B : SurgeryRegularSlab slice metric a b) |
| 66 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (connection t) t) |
| 67 | {s t : ℝ} (hs : s ∈ Icc a b) (ht : t ∈ Icc a b) (hst : s ≤ t) : |
| 68 | calibratedMetricVolume (metric t) univ ≤ |
| 69 | ENNReal.ofReal (Real.exp (6 * (t - s))) * calibratedMetricVolume (metric s) univ := by |
| 70 | have hiso (r : Icc a b) : |
| 71 | MetricHomothety (B.flow.metric r.1) (metric r.1) (B.identify r) 1 := by |
| 72 | intro x v w |
| 73 | simpa only [one_mul] using B.metric_pullback r x v w |
| 74 | have hvol (r : Icc a b) := volume_univ_eq_of_metric_isometry H |
| 75 | (B.flow.metric r.1) (metric r.1) (B.identify r) (hiso r) |
| 76 | rw [hvol ⟨t, ht⟩, hvol ⟨s, hs⟩] |
| 77 | apply calibratedMetricVolume_le_exp_mul B.flow hst |
| 78 | (fun r hr => ⟨hs.1.trans hr.1, hr.2.trans ht.2⟩) _ MeasurableSet.univ |
| 79 | intro r hr x |
| 80 | let rt : Icc a b := ⟨r, ⟨hs.1.trans hr.1, hr.2.trans ht.2⟩⟩ |
| 81 | have he := (H.metric_homothety (slice a).carrier (slice r).carrier |
| 82 | (B.flow.metric r) (metric r) (B.identify rt) 1 (by norm_num) (hiso rt)).scalar_eq |
| 83 | (B.flow.connection r) (connection r) x |
| 84 | rw [div_one] at he |
| 85 | rw [← he] |
| 86 | exact pinched_scalar_ge_neg_six (hpinched r rt.2) _ |
| 87 | |
| 88 | /-- On an included interval with no surgery in `(a,b]`, the raw slice |
| 89 | volumes satisfy the ordinary estimate (MT Lemma 17.12, p. 410). -/ |
| 90 | theorem regular_volume_le_exp_mul (H : GeneralizedParabolicRescalingTheory.{u} 3) |
| 91 | (F : SurgeryFlowData.{u}) {a b : ℝ} (hab : a ≤ b) |
| 92 | (hJ : Icc a b ⊆ F.time_domain) (hevents : Disjoint F.surgery_times (Ioc a b)) |
| 93 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (F.connection t) t) : |
| 94 | calibratedMetricVolume (F.metric b) univ ≤ |
| 95 | ENNReal.ofReal (Real.exp (6 * (b - a))) * calibratedMetricVolume (F.metric a) univ := by |
| 96 | obtain hlt | rfl := hab.lt_or_eq |
| 97 | · exact regularSlab_volume_le_exp_mul H F.connection |
| 98 | (F.regular_slabs a b hlt hJ hevents) hpinched ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab |
| 99 | · simp |
| 100 | |
| 101 | /-- The actual pre-event identifications transfer the ordinary estimate |
| 102 | throughout the predecessor interval (MT Lemma 17.12, p. 410). -/ |
| 103 | theorem preEvent_volume_le_exp_mul (H : GeneralizedParabolicRescalingTheory.{u} 3) |
| 104 | (F : SurgeryFlowData.{u}) (T : ℝ) (hT : T ∈ F.surgery_times) |
| 105 | [Nonempty (F.slice T).carrier] |
| 106 | (hpinched : ∀ t ∈ Ico (F.event T hT).tMinus T, SurgeryPinchedAt (F.connection t) t) |
| 107 | {s t : ℝ} (hs : s ∈ Ico (F.event T hT).tMinus T) |
| 108 | (ht : t ∈ Ico (F.event T hT).tMinus T) (hst : s ≤ t) : |
| 109 | calibratedMetricVolume (F.metric t) univ ≤ |
| 110 | ENNReal.ofReal (Real.exp (6 * (t - s))) * calibratedMetricVolume (F.metric s) univ := by |
| 111 | let E := F.event T hT |
| 112 | have hiso (r : Ico E.tMinus T) : |
| 113 | MetricHomothety (E.pre_flow.metric r.1) (F.metric r.1) (E.pre_identify r) 1 := by |
| 114 | intro x v w |
| 115 | simpa only [one_mul] using E.pre_metric r x v w |
| 116 | have hvol (r : Ico E.tMinus T) := volume_univ_eq_of_metric_isometry H |
| 117 | (E.pre_flow.metric r.1) (F.metric r.1) (E.pre_identify r) (hiso r) |
| 118 | rw [hvol ⟨t, ht⟩, hvol ⟨s, hs⟩] |
| 119 | apply calibratedMetricVolume_le_exp_mul E.pre_flow hst |
| 120 | (fun r hr => ⟨hs.1.trans hr.1, hr.2.trans_lt ht.2⟩) _ MeasurableSet.univ |
| 121 | intro r hr x |
| 122 | let rt : Ico E.tMinus T := ⟨r, ⟨hs.1.trans hr.1, hr.2.trans_lt ht.2⟩⟩ |
| 123 | have he := (H.metric_homothety (F.slice E.tMinus).carrier (F.slice r).carrier |
| 124 | (E.pre_flow.metric r) (F.metric r) (E.pre_identify rt) 1 (by norm_num) (hiso rt)).scalar_eq |
| 125 | (E.pre_flow.connection r) (F.connection r) x |
| 126 | rw [div_one] at he |
| 127 | rw [← he] |
| 128 | exact pinched_scalar_ge_neg_six (hpinched r rt.2) _ |
| 129 | |
| 130 | end PoincareMT.SurgeryVolume |