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.Rescaling.Measure.RescalingJacobian |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Rescaling.Measure.RescalingStableVolume |
| 3 | |
| 4 | /-! |
| 5 | # Complete stable-carrier analytic transport under rescaling |
| 6 | |
| 7 | Morgan-Tian Corollary 6.74 and Lemma 6.75, p. 142. The full stable |
| 8 | record, its exact carrier, actual metric Jacobian, endpoint image and |
| 9 | calibrated density integral are transported together. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | -- The normalized basis map uses the actual transported horizontal fiber. |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 24 | {time : X → ℝ} {I : SpacetimeInterval} |
| 25 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 26 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 27 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 28 | (G : GeneralizedLGeometryTransport n X time I) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 29 | |
| 30 | include hCoordinates in |
| 31 | /-- The entire frozen stable-carrier transport clause, with explicit |
| 32 | measure-Jacobian records and the actual calibrated set integral. |
| 33 | Corollary 6.74 and Lemma 6.75, p. 142. -/ |
| 34 | theorem rescalingStableTransport {T τ : ℝ} {x : G.Point} |
| 35 | (E : M14ExponentialFamily G T x) |
| 36 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 37 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) : |
| 38 | ∃ H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 39 | (parabolicTime Q a T) (Q * τ) x E', |
| 40 | (∀ Z, Z ∈ H.carrier ↔ rescalingInitialEquiv G.spacetime Q hQ a x Z ∈ H'.carrier) ∧ |
| 41 | ∃ D : M14MeasureJacobianData G T τ x E H, |
| 42 | ∃ D' : M14MeasureJacobianData (rescalingTransport hM12 hM13 G Q hQ a) |
| 43 | (parabolicTime Q a T) (Q * τ) x E' H', |
| 44 | (∀ Z, Z ∈ H.carrier → D'.jacobian (rescalingInitialEquiv G.spacetime Q hQ a x Z) = |
| 45 | Real.rpow Q ((n : ℝ) / 2) * D.jacobian Z) ∧ |
| 46 | (fun q => q.val) '' (H.endpoint_slice_map '' H.carrier) = |
| 47 | (fun q => q.val) '' (H'.endpoint_slice_map '' H'.carrier) ∧ |
| 48 | (∫ q in H.endpoint_slice_map '' H.carrier, rescalingDensity G T τ x q.val |
| 49 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) = |
| 50 | ∫ q in H'.endpoint_slice_map '' H'.carrier, |
| 51 | rescalingDensity (rescalingTransport hM12 hM13 G Q hQ a) |
| 52 | (parabolicTime Q a T) (Q * τ) x q.val |
| 53 | ∂calibratedMetricVolume |
| 54 | ((rescalingTransport hM12 hM13 G Q hQ a).slices |
| 55 | (parabolicTime Q a T - Q * τ)).metricOnPoints := by |
| 56 | let H' := rescalingStableSet hM12 hM13 G Q hQ a E E' H |
| 57 | have hcarrier := rescalingStable_carrier_iff hCoordinates hM12 hM13 G Q hQ a E E' H H' |
| 58 | obtain ⟨D⟩ := measureJacobianData H |
| 59 | let b' := D.sourceBasis.map (rescalingInitialEquiv G.spacetime Q hQ a x).toLinearEquiv |
| 60 | have hb' (i j : Fin n) : |
| 61 | (rescalingTransport hM12 hM13 G Q hQ a).spacetime.horizontalMetric.inner x |
| 62 | (b' i) (b' j) = if i = j then 1 else 0 := by |
| 63 | exact (rescalingInitialEquiv_inner G.spacetime Q hQ a x |
| 64 | (D.sourceBasis i) (D.sourceBasis j)).trans (D.source_basis_orthonormal i j) |
| 65 | let D' := rescalingMeasureDataWithBasis H' b' hb' |
| 66 | refine ⟨H', hcarrier, D, D', ?_, |
| 67 | rescalingStableImage_values hCoordinates hM12 hM13 G Q hQ a E E' H H', |
| 68 | rescalingStableDensityIntegral hCoordinates hM12 hM13 G Q hQ a E E' H H'⟩ |
| 69 | intro Z hZ |
| 70 | exact rescalingJacobian_scale hCoordinates hM12 hM13 G Q hQ a E E' H H' D D' |
| 71 | rfl Z hZ ((hcarrier Z).mp hZ) |
| 72 | |
| 73 | end PoincareMT.M14 |