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.RescalingStable |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Rescaling.Measure.RescalingSliceVolume |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Rescaling.Geometry.RescalingActionValue |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.MeasureTransport |
| 5 | |
| 6 | /-! |
| 7 | # Stable-image density integrals under rescaling |
| 8 | |
| 9 | Morgan-Tian Corollary 6.74 and Lemma 6.75, p. 142. Exact stable |
| 10 | carrier transport identifies the actual earlier-slice images. The |
| 11 | pointwise density factor cancels the actual calibrated volume factor. |
| 12 | The finite action hypothesis follows from each supplied minimizing path. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | -- Actual slice points share their underlying spacetime point type. |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M14 |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 27 | {time : X → ℝ} {I : SpacetimeInterval} |
| 28 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 29 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 30 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 31 | (G : GeneralizedLGeometryTransport n X time I) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 32 | |
| 33 | /-- Absolute backward time has the same actual earlier slice after |
| 34 | parabolic rescaling. Definition 3.40, p. 61. -/ |
| 35 | theorem rescalingBackwardTime (T τ : ℝ) : |
| 36 | parabolicTime Q a T - Q * τ = parabolicTime Q a (T - τ) := by |
| 37 | unfold parabolicTime |
| 38 | ring |
| 39 | |
| 40 | include hCoordinates in |
| 41 | /-- The actual earlier-slice endpoint maps commute on the full stable |
| 42 | carrier with the actual slice identification. Corollary 6.74, p. 142. -/ |
| 43 | theorem rescalingStableEndpoint {T τ : ℝ} {x : G.Point} |
| 44 | (E : M14ExponentialFamily G T x) |
| 45 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 46 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) |
| 47 | (H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 48 | (parabolicTime Q a T) (Q * τ) x E') (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) : |
| 49 | rescalingSliceAt hM12 hM13 G Q hQ a (T - τ) (parabolicTime Q a T - Q * τ) |
| 50 | (rescalingBackwardTime Q a T τ) (H.endpoint_slice_map Z) = |
| 51 | H'.endpoint_slice_map (rescalingInitialEquiv G.spacetime Q hQ a x Z) := by |
| 52 | have hZ' := (rescalingStable_carrier_iff hCoordinates hM12 hM13 G Q hQ a E E' H H' Z).mp hZ |
| 53 | apply Subtype.ext |
| 54 | rw [rescalingSliceAt_val, H.endpoint_slice_map_val Z hZ, H.endpoint_map_eq Z hZ, |
| 55 | H'.endpoint_slice_map_val _ hZ', H'.endpoint_map_eq _ hZ'] |
| 56 | simpa only [Real.sqrt_mul hQ.le] using |
| 57 | (rescalingExponential_gamma hCoordinates hM12 hM13 G Q hQ a E E' |
| 58 | Z (Real.sqrt τ) (H.survivor Z hZ)).symm |
| 59 | |
| 60 | include hCoordinates in |
| 61 | /-- The stable earlier-slice image is the exact image of the source |
| 62 | stable slice image under the actual homothety. Corollary 6.74, p. 142. -/ |
| 63 | theorem rescalingStableImage {T τ : ℝ} {x : G.Point} |
| 64 | (E : M14ExponentialFamily G T x) |
| 65 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 66 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) |
| 67 | (H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 68 | (parabolicTime Q a T) (Q * τ) x E') : |
| 69 | (rescalingSliceAt hM12 hM13 G Q hQ a (T - τ) (parabolicTime Q a T - Q * τ) |
| 70 | (rescalingBackwardTime Q a T τ)) '' (H.endpoint_slice_map '' H.carrier) = |
| 71 | H'.endpoint_slice_map '' H'.carrier := by |
| 72 | let A := rescalingInitialEquiv G.spacetime Q hQ a x |
| 73 | ext q |
| 74 | constructor |
| 75 | · rintro ⟨p, ⟨Z, hZ, rfl⟩, rfl⟩ |
| 76 | refine ⟨A Z, |
| 77 | (rescalingStable_carrier_iff hCoordinates hM12 hM13 G Q hQ a E E' H H' Z).mp hZ, ?_⟩ |
| 78 | exact (rescalingStableEndpoint hCoordinates hM12 hM13 G Q hQ a E E' H H' Z hZ).symm |
| 79 | · rintro ⟨W, hW, rfl⟩ |
| 80 | have hZ : A.symm W ∈ H.carrier := |
| 81 | (rescalingStable_carrier_iff hCoordinates hM12 hM13 G Q hQ a E E' H H' _).mpr |
| 82 | (by simpa only [A, ContinuousLinearEquiv.apply_symm_apply] using hW) |
| 83 | refine ⟨H.endpoint_slice_map (A.symm W), ⟨A.symm W, hZ, rfl⟩, ?_⟩ |
| 84 | simpa only [A, ContinuousLinearEquiv.apply_symm_apply] using |
| 85 | rescalingStableEndpoint hCoordinates hM12 hM13 G Q hQ a E E' H H' (A.symm W) hZ |
| 86 | |
| 87 | include hCoordinates in |
| 88 | /-- The source and target stable images have equal underlying actual |
| 89 | spacetime point sets. Corollary 6.74, p. 142. -/ |
| 90 | theorem rescalingStableImage_values {T τ : ℝ} {x : G.Point} |
| 91 | (E : M14ExponentialFamily G T x) |
| 92 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 93 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) |
| 94 | (H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 95 | (parabolicTime Q a T) (Q * τ) x E') : |
| 96 | (fun q => q.val) '' (H.endpoint_slice_map '' H.carrier) = |
| 97 | (fun q => q.val) '' (H'.endpoint_slice_map '' H'.carrier) := by |
| 98 | rw [← rescalingStableImage hCoordinates hM12 hM13 G Q hQ a E E' H H'] |
| 99 | simp only [image_image] |
| 100 | exact image_congr (fun Z _ => (rescalingSliceAt_val hM12 hM13 G Q hQ a |
| 101 | (T - τ) (parabolicTime Q a T - Q * τ) (rescalingBackwardTime Q a T τ) |
| 102 | (H.endpoint_slice_map Z)).symm) |
| 103 | |
| 104 | include hCoordinates in |
| 105 | /-- The actual stable-image reduced-volume density integral is invariant. |
| 106 | The Q-to-half-dimension volume factor cancels its inverse in the density, |
| 107 | as in Morgan-Tian Lemma 6.75, p. 142. -/ |
| 108 | theorem rescalingStableDensityIntegral {T τ : ℝ} {x : G.Point} |
| 109 | (E : M14ExponentialFamily G T x) |
| 110 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 111 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) |
| 112 | (H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 113 | (parabolicTime Q a T) (Q * τ) x E') : |
| 114 | (∫ q in H.endpoint_slice_map '' H.carrier, rescalingDensity G T τ x q.val |
| 115 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) = |
| 116 | ∫ q in H'.endpoint_slice_map '' H'.carrier, |
| 117 | rescalingDensity (rescalingTransport hM12 hM13 G Q hQ a) |
| 118 | (parabolicTime Q a T) (Q * τ) x q.val |
| 119 | ∂calibratedMetricVolume |
| 120 | ((rescalingTransport hM12 hM13 G Q hQ a).slices |
| 121 | (parabolicTime Q a T - Q * τ)).metricOnPoints := by |
| 122 | let f := rescalingSliceAt hM12 hM13 G Q hQ a (T - τ) (parabolicTime Q a T - Q * τ) |
| 123 | (rescalingBackwardTime Q a T τ) |
| 124 | rw [← rescalingStableImage hCoordinates hM12 hM13 G Q hQ a E E' H H', |
| 125 | rescalingSliceAt_setIntegral hM12 hM13 G Q hQ a] |
| 126 | have heq : EqOn (fun p : (G.slices (T - τ)).Point => |
| 127 | rescalingDensity (rescalingTransport hM12 hM13 G Q hQ a) |
| 128 | (parabolicTime Q a T) (Q * τ) x (f p).val) |
| 129 | (fun p => Real.rpow Q (-(n : ℝ) / 2) * rescalingDensity G T τ x p.val) |
| 130 | (H.endpoint_slice_map '' H.carrier) := by |
| 131 | rintro q ⟨Z, hZ, rfl⟩ |
| 132 | have hfval := rescalingSliceAt_val hM12 hM13 G Q hQ a _ _ |
| 133 | (rescalingBackwardTime Q a T τ) (H.endpoint_slice_map Z) |
| 134 | change (f (H.endpoint_slice_map Z)).val = (H.endpoint_slice_map Z).val at hfval |
| 135 | dsimp only |
| 136 | rw [hfval] |
| 137 | obtain ⟨p, _, hp, _⟩ := H.minimizing_path Z hZ |
| 138 | have hfinite := finiteValueDomain_of_minimizing p hp |
| 139 | rw [H.endpoint_slice_map_val Z hZ] |
| 140 | exact rescalingDensity_scale hM12 hM13 G Q hQ a H.tau_pos hfinite |
| 141 | rw [setIntegral_congr_fun (by |
| 142 | obtain ⟨D⟩ := measureJacobianData H |
| 143 | exact D.image_measurable) heq] |
| 144 | rw [integral_const_mul, ← mul_assoc] |
| 145 | have hcancel : Real.rpow Q ((n : ℝ) / 2) * Real.rpow Q (-(n : ℝ) / 2) = 1 := by |
| 146 | change Q ^ ((n : ℝ) / 2) * Q ^ (-(n : ℝ) / 2) = 1 |
| 147 | rw [← Real.rpow_add hQ] |
| 148 | have hsum : (n : ℝ) / 2 + -(n : ℝ) / 2 = 0 := by ring |
| 149 | rw [hsum, Real.rpow_zero] |
| 150 | rw [hcancel, one_mul] |
| 151 | |
| 152 | end PoincareMT.M14 |