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.Measure.Analytic |
| 2 | |
| 3 | /-! Adapted from Mapher `PoincareMT/Statements/M14GeneralizedLGeometry.lean` at |
| 4 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 5 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped Manifold ContMDiff ContDiff Bundle Topology intervalIntegral BigOperators |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT |
| 14 | |
| 15 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 16 | {I : SpacetimeInterval} |
| 17 | |
| 18 | /-- Analytic transport for a prescribed positive M13 rescaling. The target |
| 19 | clock, interval and primitive geometric identities are part of the type. -/ |
| 20 | structure M14AnalyticRescalingData |
| 21 | (G : GeneralizedLGeometryTransport n X time I) |
| 22 | (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 23 | (G' : GeneralizedLGeometryTransport n X |
| 24 | (fun x => parabolicTime Q a (time x)) (parabolicInterval Q hQ a I)) where |
| 25 | chartedSpace_eq : G'.spacetime.chartedSpace = G.spacetime.chartedSpace |
| 26 | point_equiv : Diffeomorph (spacetimeModel n) (spacetimeModel n) G.Point G'.Point ∞ |
| 27 | point_equiv_eq : ∀ p, point_equiv p = p |
| 28 | point_differential : ∀ p (Z : TangentSpace (spacetimeModel n) p), |
| 29 | (show SpacetimeModelVector n from |
| 30 | mfderiv (spacetimeModel n) (spacetimeModel n) point_equiv p Z) = Z |
| 31 | point_time : ∀ p, |
| 32 | G'.spacetime.timeFunction (point_equiv p) = |
| 33 | parabolicTime Q a (G.spacetime.timeFunction p) |
| 34 | timeVector_map : ∀ p, |
| 35 | mfderiv (spacetimeModel n) (spacetimeModel n) point_equiv p |
| 36 | (G.spacetime.timeVector p) = Q • G'.spacetime.timeVector (point_equiv p) |
| 37 | horizontal_map : ∀ p, G.Horizontal p ≃L[ℝ] G'.Horizontal (point_equiv p) |
| 38 | horizontal_differential : ∀ p (v : G.Horizontal p), |
| 39 | (horizontal_map p v).val = |
| 40 | mfderiv (spacetimeModel n) (spacetimeModel n) point_equiv p v.val |
| 41 | horizontal_metric : ∀ p v w, |
| 42 | G'.spacetime.horizontalMetric.inner (point_equiv p) |
| 43 | (horizontal_map p v) (horizontal_map p w) = |
| 44 | Q * G.spacetime.horizontalMetric.inner p v w |
| 45 | scalar_curvature : ∀ p, |
| 46 | horizontalScalarCurvature G'.leafwise (point_equiv p) = |
| 47 | Q⁻¹ * horizontalScalarCurvature G.leafwise p |
| 48 | slice_identification : ∀ t, |
| 49 | Diffeomorph (𝓡 n) (𝓡 n) (G.slices t).Point |
| 50 | (G'.slices (parabolicTime Q a t)).Point ∞ |
| 51 | slice_identification_eq : ∀ t x, |
| 52 | (slice_identification t x).val = point_equiv x.val |
| 53 | slice_tangent : ∀ t (x : (G.slices t).Point) (v : TangentSpace (𝓡 n) x), |
| 54 | (show SpacetimeModelVector n from |
| 55 | ((G'.slices (parabolicTime Q a t)).tangentEquiv (slice_identification t x) |
| 56 | (mfderiv (𝓡 n) (𝓡 n) (slice_identification t) x v)).val) = |
| 57 | (horizontal_map x.val ((G.slices t).tangentEquiv x v)).val |
| 58 | slice_metric : ∀ t, |
| 59 | MetricHomothety (G.slices t).metricOnPoints |
| 60 | (G'.slices (parabolicTime Q a t)).metricOnPoints (slice_identification t) Q |
| 61 | initial_equiv : ∀ x : G.Point, |
| 62 | G.Horizontal x ≃L[ℝ] G'.Horizontal (point_equiv x) |
| 63 | initial_equiv_eq : ∀ x v, |
| 64 | initial_equiv x v = (Real.sqrt Q)⁻¹ • horizontal_map x v |
| 65 | initial_equiv_isometry : ∀ x v w, |
| 66 | G'.spacetime.horizontalMetric.inner (point_equiv x) |
| 67 | (initial_equiv x v) (initial_equiv x w) = |
| 68 | G.spacetime.horizontalMetric.inner x v w |
| 69 | path_map : ∀ (T τ₁ τ₂ : ℝ) (x y : G.Point), |
| 70 | M14BackwardPath G T τ₁ τ₂ x y → |
| 71 | M14BackwardPath G' (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) |
| 72 | (point_equiv x) (point_equiv y) |
| 73 | path_map_eq : ∀ T τ₁ τ₂ x y p s, |
| 74 | (path_map T τ₁ τ₂ x y p).curve (Q * s) = point_equiv (p.curve s) |
| 75 | action_scale : ∀ T τ₁ τ₂ x y p, |
| 76 | M14BackwardLAction G' (path_map T τ₁ τ₂ x y p) = |
| 77 | Real.sqrt Q * M14BackwardLAction G p |
| 78 | path_inverse : ∀ T τ₁ τ₂ x y |
| 79 | (p' : M14BackwardPath G' (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) |
| 80 | (point_equiv x) (point_equiv y)), |
| 81 | ∃ p : M14BackwardPath G T τ₁ τ₂ x y, |
| 82 | ∀ s, p'.curve (Q * s) = point_equiv (p.curve s) |
| 83 | path_inverse_exact : ∀ T τ₁ τ₂ x y |
| 84 | (p' : M14BackwardPath G' (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) |
| 85 | (point_equiv x) (point_equiv y)), |
| 86 | ∃ p : M14BackwardPath G T τ₁ τ₂ x y, |
| 87 | path_map T τ₁ τ₂ x y p = p' |
| 88 | path_minimizer_iff : ∀ T τ₁ τ₂ x y |
| 89 | (p : M14BackwardPath G T τ₁ τ₂ x y), |
| 90 | M14IsMinimizing (path_map T τ₁ τ₂ x y p) ↔ M14IsMinimizing p |
| 91 | path_inverse_action : ∀ T τ₁ τ₂ x y |
| 92 | (p' : M14BackwardPath G' (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) |
| 93 | (point_equiv x) (point_equiv y)), |
| 94 | ∃ p : M14BackwardPath G T τ₁ τ₂ x y, |
| 95 | path_map T τ₁ τ₂ x y p = p' ∧ |
| 96 | M14BackwardLAction G' p' = |
| 97 | Real.sqrt Q * M14BackwardLAction G p |
| 98 | reduced_length_scale : ∀ T τ₁ τ₂ x y, |
| 99 | 0 < τ₂ → M14FiniteValueDomain G T τ₁ τ₂ x y → |
| 100 | M14ReducedLengthValue G' (parabolicTime Q a T) (Q * τ₁) (Q * τ₂) |
| 101 | (point_equiv x) (point_equiv y) = |
| 102 | M14ReducedLengthValue G T τ₁ τ₂ x y |
| 103 | density : ∀ (_T _τ : ℝ) (_x _q : G.Point), ℝ |
| 104 | density_eq : ∀ T τ x q, |
| 105 | 0 < τ → G.spacetime.timeFunction x = T → |
| 106 | G.spacetime.timeFunction q = T - τ → M14FiniteValueDomain G T 0 τ x q → |
| 107 | density T τ x q = Real.rpow τ (-(n : ℝ) / 2) * |
| 108 | Real.exp (-M14ReducedLengthValue G T 0 τ x q) |
| 109 | density' : ∀ (_T _τ : ℝ) (_x _q : G'.Point), ℝ |
| 110 | density'_eq : ∀ T τ x q, |
| 111 | 0 < τ → G'.spacetime.timeFunction x = T → |
| 112 | G'.spacetime.timeFunction q = T - τ → M14FiniteValueDomain G' T 0 τ x q → |
| 113 | density' T τ x q = Real.rpow τ (-(n : ℝ) / 2) * |
| 114 | Real.exp (-M14ReducedLengthValue G' T 0 τ x q) |
| 115 | density_scale : ∀ T τ x q, |
| 116 | 0 < τ → G.spacetime.timeFunction x = T → |
| 117 | G.spacetime.timeFunction q = T - τ → M14FiniteValueDomain G T 0 τ x q → |
| 118 | density' (parabolicTime Q a T) (Q * τ) (point_equiv x) (point_equiv q) = |
| 119 | Real.rpow Q (-(n : ℝ) / 2) * density T τ x q |
| 120 | target_family : ∀ (T : ℝ) (x : G.Point) (_E : M14ExponentialFamily G T x), |
| 121 | M14ExponentialFamily G' (parabolicTime Q a T) (point_equiv x) |
| 122 | exponential_domain_transport : ∀ T x (E : M14ExponentialFamily G T x) Z s, |
| 123 | (Z, s) ∈ E.domain ↔ |
| 124 | (initial_equiv x Z, Real.sqrt Q * s) ∈ (target_family T x E).domain |
| 125 | exponential_transport : ∀ T x (E : M14ExponentialFamily G T x) Z s, |
| 126 | (Z, s) ∈ E.domain → |
| 127 | (target_family T x E).gamma (initial_equiv x Z) (Real.sqrt Q * s) = |
| 128 | point_equiv (E.gamma Z s) |
| 129 | stable_transport : ∀ (T τ : ℝ) (x : G.Point) |
| 130 | (E : M14ExponentialFamily G T x) |
| 131 | (H : M14StableSet G T τ x E), |
| 132 | ∃ H' : M14StableSet G' (parabolicTime Q a T) (Q * τ) |
| 133 | (point_equiv x) (target_family T x E), |
| 134 | (∀ Z, Z ∈ H.carrier ↔ initial_equiv x Z ∈ H'.carrier) ∧ |
| 135 | ∃ D : M14MeasureJacobianData G T τ x E H, |
| 136 | ∃ D' : M14MeasureJacobianData G' (parabolicTime Q a T) (Q * τ) |
| 137 | (point_equiv x) (target_family T x E) H', |
| 138 | (∀ Z, Z ∈ H.carrier → |
| 139 | D'.jacobian (initial_equiv x Z) = |
| 140 | Real.rpow Q ((n : ℝ) / 2) * D.jacobian Z) ∧ |
| 141 | (fun q => point_equiv q.val) '' |
| 142 | (H.endpoint_slice_map '' H.carrier) = |
| 143 | (fun q => q.val) '' (H'.endpoint_slice_map '' H'.carrier) ∧ |
| 144 | (∫ q in H.endpoint_slice_map '' H.carrier, |
| 145 | density T τ x q.val ∂calibratedMetricVolume |
| 146 | (G.slices (T - τ)).metricOnPoints) = |
| 147 | ∫ q' in H'.endpoint_slice_map '' H'.carrier, |
| 148 | density' (parabolicTime Q a T) (Q * τ) (point_equiv x) q'.val |
| 149 | ∂calibratedMetricVolume |
| 150 | (G'.slices (parabolicTime Q a T - Q * τ)).metricOnPoints |
| 151 | joint_domain_transport : ∀ (T : ℝ) (x : G.Point) |
| 152 | (E : M14ExponentialFamily G T x) Z s, |
| 153 | (Z, s) ∈ M14JointDomain G E ↔ |
| 154 | (initial_equiv x Z, Real.sqrt Q * s) ∈ |
| 155 | M14JointDomain G' (target_family T x E) |
| 156 | jacobian_data : ∀ (T τ : ℝ) (x : G.Point) |
| 157 | (E : M14ExponentialFamily G T x) |
| 158 | (H : M14StableSet G T τ x E), |
| 159 | Nonempty (M14MeasureJacobianData G T τ x E H) |
| 160 | |
| 161 | def M14AnalyticRescalingConclusion |
| 162 | (G : GeneralizedLGeometryTransport n X time I) : Prop := |
| 163 | ∀ (Q : ℝ) (hQ : 0 < Q) (a : ℝ), |
| 164 | ∃ G' : GeneralizedLGeometryTransport n X |
| 165 | (fun x => parabolicTime Q a (time x)) (parabolicInterval Q hQ a I), |
| 166 | Nonempty (M14AnalyticRescalingData G Q hQ a G') |
| 167 | |
| 168 | |
| 169 | end PoincareMT |