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.ReducedGeometry.SourceNames.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Rescaling.Geometry.RescalingGeometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian |
| 4 | |
| 5 | /-! |
| 6 | # Actual slice volume under rescaling |
| 7 | |
| 8 | Morgan-Tian Definition 3.40 and Lemma 6.75, pp. 61, 142. The supplied |
| 9 | M13 homothety calculus applies to the actual identified slices. Its |
| 10 | measure pushforward gives the set-integral factor, including the |
| 11 | totalized nonintegrable case through measurable-embedding transport. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | -- Actual slice aliases unfold across the prescribed equality of times. |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set MeasureTheory |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 26 | {time : X → ℝ} {I : SpacetimeInterval} |
| 27 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 28 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 29 | (G : GeneralizedLGeometryTransport n X time I) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 30 | |
| 31 | /-- The bare M13 slice diffeomorphism at a supplied equal rescaled time. |
| 32 | Definition 3.40, p. 61, and Lemma 6.75, p. 142. -/ |
| 33 | noncomputable def rescalingSliceAt (t t' : ℝ) (ht : t' = parabolicTime Q a t) : |
| 34 | Diffeomorph (𝓡 n) (𝓡 n) (G.slices t).Point |
| 35 | ((rescalingTransport hM12 hM13 G Q hQ a).slices t').Point ∞ := by |
| 36 | subst t' |
| 37 | exact M13.parabolicSliceIdentification G.spacetime G.slices Q hQ a t |
| 38 | |
| 39 | /-- The identified slices retain the actual underlying spacetime point. |
| 40 | Definition 3.40, p. 61. -/ |
| 41 | theorem rescalingSliceAt_val (t t' : ℝ) (ht : t' = parabolicTime Q a t) |
| 42 | (p : (G.slices t).Point) : |
| 43 | (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht p).val = p.val := by |
| 44 | subst t' |
| 45 | exact M13.parabolicSliceIdentification_val G.spacetime G.slices Q hQ a t p |
| 46 | |
| 47 | /-- The actual slice identification is a metric homothety with scale Q. |
| 48 | Definition 3.40, p. 61. -/ |
| 49 | theorem rescalingSliceAt_metric (t t' : ℝ) (ht : t' = parabolicTime Q a t) : |
| 50 | MetricHomothety (G.slices t).metricOnPoints |
| 51 | ((rescalingTransport hM12 hM13 G Q hQ a).slices t').metricOnPoints |
| 52 | (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht) Q := by |
| 53 | subst t' |
| 54 | exact M13.parabolicSliceIdentification_metric G.spacetime G.slices Q hQ a t |
| 55 | |
| 56 | /-- Calibrated volume is the Q-to-half-dimension multiple of the actual |
| 57 | slice pushforward, by the supplied M13 calculus. Lemma 6.75, p. 142. -/ |
| 58 | theorem rescalingSliceAt_volume_map (t t' : ℝ) (ht : t' = parabolicTime Q a t) : |
| 59 | calibratedMetricVolume ((rescalingTransport hM12 hM13 G Q hQ a).slices t').metricOnPoints = |
| 60 | ENNReal.ofReal (Real.rpow Q ((n : ℝ) / 2)) • Measure.map |
| 61 | (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht) |
| 62 | (calibratedMetricVolume (G.slices t).metricOnPoints) := by |
| 63 | exact (hM13.metric_homothety (G.slices t).Point |
| 64 | ((rescalingTransport hM12 hM13 G Q hQ a).slices t').Point |
| 65 | (G.slices t).metricOnPoints |
| 66 | ((rescalingTransport hM12 hM13 G Q hQ a).slices t').metricOnPoints |
| 67 | (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht) Q hQ |
| 68 | (rescalingSliceAt_metric hM12 hM13 G Q hQ a t t' ht)).volume_map |
| 69 | |
| 70 | /-- Arbitrary real set integrals have the slice volume factor under |
| 71 | the actual diffeomorphism. No extra integrability premise is needed for |
| 72 | this totalized integral identity. Lemma 6.75, p. 142. -/ |
| 73 | theorem rescalingSliceAt_setIntegral (t t' : ℝ) (ht : t' = parabolicTime Q a t) |
| 74 | (S : Set (G.slices t).Point) |
| 75 | (φ : ((rescalingTransport hM12 hM13 G Q hQ a).slices t').Point → ℝ) : |
| 76 | (∫ q in (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht) '' S, φ q |
| 77 | ∂calibratedMetricVolume |
| 78 | ((rescalingTransport hM12 hM13 G Q hQ a).slices t').metricOnPoints) = |
| 79 | Real.rpow Q ((n : ℝ) / 2) * |
| 80 | ∫ p in S, φ (rescalingSliceAt hM12 hM13 G Q hQ a t t' ht p) |
| 81 | ∂calibratedMetricVolume (G.slices t).metricOnPoints := by |
| 82 | let f := rescalingSliceAt hM12 hM13 G Q hQ a t t' ht |
| 83 | have hf : MeasurableEmbedding f := f.toHomeomorph.measurableEmbedding |
| 84 | rw [rescalingSliceAt_volume_map hM12 hM13 G Q hQ a t t' ht] |
| 85 | have hpre : f ⁻¹' f '' S = S := preimage_image_eq S hf.injective |
| 86 | rw [Measure.restrict_smul, integral_smul_measure, hf.restrict_map] |
| 87 | change (ENNReal.ofReal (Real.rpow Q ((n : ℝ) / 2))).toReal • |
| 88 | (∫ q, φ q ∂Measure.map f |
| 89 | ((calibratedMetricVolume (G.slices t).metricOnPoints).restrict (f ⁻¹' f '' S))) = |
| 90 | Real.rpow Q ((n : ℝ) / 2) * |
| 91 | ∫ p in S, φ (f p) ∂calibratedMetricVolume (G.slices t).metricOnPoints |
| 92 | rw [hpre, hf.integral_map] |
| 93 | have hc : (ENNReal.ofReal (Real.rpow Q ((n : ℝ) / 2))).toReal = |
| 94 | Real.rpow Q ((n : ℝ) / 2) := ENNReal.toReal_ofReal (Real.rpow_nonneg hQ.le _) |
| 95 | rw [hc, smul_eq_mul] |
| 96 | |
| 97 | end PoincareMT.M14 |