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.Compactness.Convergence.Volume.MetricComparison |
| 2 | |
| 3 | /-! |
| 4 | # Metric comparison uniform on compact time sets |
| 5 | |
| 6 | The frozen pullback convergence field is already uniform on compact spatial |
| 7 | and temporal sets. Its quadratic-form estimate therefore controls tangent |
| 8 | norms uniformly on compact spacetime cylinders. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | namespace PoincareMT.PointedGeometricConvergence |
| 17 | |
| 18 | variable {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 19 | |
| 20 | /-- A uniform quadratic-form upper bound on compact spatial and time sets. -/ |
| 21 | theorem eventually_pullback_inner_upper_on_compactTime |
| 22 | (G : PointedGeometricConvergence S) {K : Set G.limitCarrier.carrier} |
| 23 | (hK : @IsCompact G.limitCarrier.carrier G.limitCarrier.topologicalSpace K) |
| 24 | {J : Set ℝ} (hJ : IsCompact J) (hJT : J ⊆ Ioo T' T) {ε : ℝ} (hε : 0 < ε) : |
| 25 | ∀ᶠ k : ℕ in atTop, ∀ t ∈ J, ∀ x ∈ K, ∀ v : G.limitCarrier.tangent x, |
| 26 | pullbackInnerValue G.limitFlow (S.flow (G.subsequence k)) (G.embedding k) t x v v ≤ |
| 27 | (1 + ε) * G.limitCarrier.metricInner (G.limitFlow.metricAt t) x v v := by |
| 28 | let : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 29 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset hK |
| 30 | obtain ⟨N, _, hN⟩ := G.pullback_metric_converges j K J hK hj hJ hJT ε hε |
| 31 | filter_upwards [eventually_ge_atTop N] with k hk t ht x hx v |
| 32 | have h := (abs_le.mp (G.abs_pullback_inner_sub_le k t x |
| 33 | (hN k hk t ht x hx) v)).2 |
| 34 | linarith |
| 35 | |
| 36 | /-- The pullback tangent norm has arbitrarily small multiplicative upper |
| 37 | distortion uniformly on compact time intervals. -/ |
| 38 | theorem eventually_pullback_tangentNorm_upper_on_compactTime |
| 39 | (G : PointedGeometricConvergence S) {K : Set G.limitCarrier.carrier} |
| 40 | (hK : @IsCompact G.limitCarrier.carrier G.limitCarrier.topologicalSpace K) |
| 41 | {J : Set ℝ} (hJ : IsCompact J) (hJT : J ⊆ Ioo T' T) {C : ℝ} (hC : 1 < C) : |
| 42 | ∀ᶠ k : ℕ in atTop, ∀ t ∈ J, ∀ x ∈ K, ∀ v : G.limitCarrier.tangent x, |
| 43 | Real.sqrt (pullbackInnerValue G.limitFlow (S.flow (G.subsequence k)) |
| 44 | (G.embedding k) t x v v) ≤ C * G.limitCarrier.metricNorm (G.limitFlow.metricAt t) x v := by |
| 45 | let : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 46 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 47 | G.limitCarrier.chartedSpace |
| 48 | let : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 49 | have hCpos : 0 < C := zero_lt_one.trans hC |
| 50 | filter_upwards [G.eventually_pullback_inner_upper_on_compactTime hK hJ hJT |
| 51 | (by nlinarith : 0 < C ^ 2 - 1)] with k hk t ht x hx v |
| 52 | have h := hk t ht x hx v |
| 53 | rw [show 1 + (C ^ 2 - 1) = C ^ 2 by ring] at h |
| 54 | have hs := Real.sqrt_le_sqrt h |
| 55 | rw [Real.sqrt_mul (sq_nonneg C), Real.sqrt_sq hCpos.le] at hs |
| 56 | exact hs |
| 57 | |
| 58 | end PoincareMT.PointedGeometricConvergence |