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.Coordinates.Rescaling |
| 2 | |
| 3 | /-! |
| 4 | # Ordinary metric bounds for rescaled normal charts |
| 5 | |
| 6 | The indexed source family uses a common unit-ball domain. These lemmas |
| 7 | translate its rescaled intrinsic-distance estimates into the ordinary metric |
| 8 | interface consumed by the overlap and source-exhaustion producers. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Metric |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | theorem NormalChartCover.unitBallMap_lipschitzWith_of_flow |
| 20 | {n : ℕ} {T' T : ℝ} {C : FlowCarrier n} |
| 21 | {F : BasedFlow n T' T C} {A R ρ a b : ℝ} {N : ℕ} |
| 22 | (cover : @NormalChartCover n C.carrier C.topologicalSpace C.chartedSpace |
| 23 | C.isManifold |
| 24 | (@RicciFlow.metric n C.carrier C.topologicalSpace C.chartedSpace |
| 25 | C.isManifold (Set.Ioo T' T) F.flow) |
| 26 | F.base T' T A R ρ a b N) |
| 27 | (i : Fin (N + 1)) (hρ : 0 < ρ) (_hb : 0 ≤ b) : |
| 28 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 29 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 30 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 31 | letI : MetricSpace C.carrier := C.metricSpaceOf (F.flow.metric 0) |
| 32 | LipschitzWith ⟨Real.sqrt b * (ρ / 2), |
| 33 | mul_nonneg (Real.sqrt_nonneg _) (le_of_lt (half_pos hρ))⟩ |
| 34 | (cover.unitBallMap i) := by |
| 35 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 36 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 37 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 38 | letI : MetricSpace C.carrier := C.metricSpaceOf (F.flow.metric 0) |
| 39 | apply LipschitzWith.of_dist_le_mul |
| 40 | intro x y |
| 41 | have hxy := (cover.unitBallMap_distances hρ i x y).2 |
| 42 | change dist (cover.unitBallMap i x) (cover.unitBallMap i y) ≤ |
| 43 | (Real.sqrt b * (ρ / 2)) * dist x y |
| 44 | simpa only [FlowCarrier.dist_metricSpaceOf] using hxy |
| 45 | |
| 46 | theorem NormalChartCover.unitBallMap_lower_distance_of_flow |
| 47 | {n : ℕ} {T' T : ℝ} {C : FlowCarrier n} |
| 48 | {F : BasedFlow n T' T C} {A R ρ a b : ℝ} {N : ℕ} |
| 49 | (cover : @NormalChartCover n C.carrier C.topologicalSpace C.chartedSpace |
| 50 | C.isManifold |
| 51 | (@RicciFlow.metric n C.carrier C.topologicalSpace C.chartedSpace |
| 52 | C.isManifold (Set.Ioo T' T) F.flow) |
| 53 | F.base T' T A R ρ a b N) |
| 54 | (i : Fin (N + 1)) (hρ : 0 < ρ) (_ha : 0 < a) : |
| 55 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 56 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 57 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 58 | letI : MetricSpace C.carrier := C.metricSpaceOf (F.flow.metric 0) |
| 59 | ∀ x y : Metric.ball (0 : EuclideanSpace ℝ (Fin n)) 1, |
| 60 | (Real.sqrt a * (ρ / 2)) * dist x y ≤ |
| 61 | dist (cover.unitBallMap i x) (cover.unitBallMap i y) := by |
| 62 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 63 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 64 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 65 | letI : MetricSpace C.carrier := C.metricSpaceOf (F.flow.metric 0) |
| 66 | intro x y |
| 67 | have hxy := (cover.unitBallMap_distances hρ i x y).1 |
| 68 | simpa only [FlowCarrier.dist_metricSpaceOf] using hxy |
| 69 | |
| 70 | end PoincareMT |