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.GeometricLimit.SourceCharts.Coefficients |
| 2 | |
| 3 | /-! |
| 4 | # Bounds for the actual rescaled normal charts |
| 5 | |
| 6 | Morgan--Tian, Theorem 5.6, pp. 86-87, and Proposition 5.14, pp. 90-91: |
| 7 | the supplied normal charts retain their spatial containment and quadratic |
| 8 | metric bounds after rescaling to the unit ball. These statements use the |
| 9 | literal main `NormalChartCover.unitBallMap` and its canonical ambient |
| 10 | representative, without selecting a chart family or a limit. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Metric |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 24 | [IsManifold (𝓡 n) ∞ M] |
| 25 | {g : ℝ → RiemannianMetric n M} {p : M} |
| 26 | {T' T A R ρ a b : ℝ} {N : ℕ} |
| 27 | |
| 28 | /-- Morgan--Tian, Theorem 5.6, pp. 86-87: every actual rescaled normal |
| 29 | chart lies in the native terminal ball of radius `A + ρ / 2`. -/ |
| 30 | theorem normalChart_unitBallMap_mem_ball |
| 31 | (C : NormalChartCover g p T' T A R ρ a b N) |
| 32 | (hρ : 0 < ρ) (hρR : ρ / 2 ≤ R) (i : Fin (N + 1)) |
| 33 | (x : Metric.ball (0 : EuclideanSpace ℝ (Fin n)) 1) : |
| 34 | C.unitBallMap i x ∈ (g 0).ball p (A + ρ / 2) := by |
| 35 | let : Bundle.RiemannianBundle |
| 36 | (TangentSpace (𝓡 n) : M → Type _) := |
| 37 | ⟨(g 0).toRiemannianMetric⟩ |
| 38 | have hxhalf := NormalChartCover.rescale_mem_half_ball hρ x |
| 39 | have hxR := Metric.ball_subset_ball hρR hxhalf |
| 40 | have hcentre : (g 0).edist p (C.centre i) < ENNReal.ofReal A := |
| 41 | C.centre_mem i |
| 42 | have hA : 0 < A := |
| 43 | ENNReal.ofReal_pos.mp (zero_le.trans_lt hcentre) |
| 44 | have hnear : (g 0).edist (C.centre i) (C.unitBallMap i x) < |
| 45 | ENNReal.ofReal (ρ / 2) := by |
| 46 | rw [NormalChartCover.unitBallMap, C.radial_distance i _ hxR] |
| 47 | exact (ENNReal.ofReal_lt_ofReal_iff (half_pos hρ)).mpr |
| 48 | (mem_ball_zero_iff.mp hxhalf) |
| 49 | change (g 0).edist p (C.unitBallMap i x) < ENNReal.ofReal (A + ρ / 2) |
| 50 | rw [ENNReal.ofReal_add hA.le (half_pos hρ).le] |
| 51 | have htriangle : (g 0).edist p (C.unitBallMap i x) ≤ |
| 52 | (g 0).edist p (C.centre i) + |
| 53 | (g 0).edist (C.centre i) (C.unitBallMap i x) := |
| 54 | Manifold.riemannianEDist_triangle |
| 55 | exact htriangle.trans_lt (ENNReal.add_lt_add hcentre hnear) |
| 56 | |
| 57 | local instance : |
| 58 | Nonempty (Metric.ball (0 : EuclideanSpace ℝ (Fin n)) 1) := |
| 59 | ⟨⟨0, by simp⟩⟩ |
| 60 | |
| 61 | /-- Morgan--Tian, Proposition 5.14, pp. 90-91: the canonical ambient |
| 62 | representative of a rescaled normal chart retains the upper quadratic |
| 63 | coefficient bound at every time in the supplied coefficient interval. -/ |
| 64 | theorem normalChart_unitBallMap_upper_coefficients |
| 65 | (C : NormalChartCover g p T' T A R ρ a b N) |
| 66 | (hρ : 0 < ρ) (hρR : ρ / 2 ≤ R) (i : Fin (N + 1)) |
| 67 | {t : ℝ} (ht : t ∈ Ioo T' T) |
| 68 | {x : EuclideanSpace ℝ (Fin n)} (hx : x ∈ Metric.ball 0 1) |
| 69 | (v : EuclideanSpace ℝ (Fin n)) : |
| 70 | (g t).pullbackCoefficients |
| 71 | (ChartDistance.chartParametrization |
| 72 | (fun _ : ℕ => Metric.ball 0 1) |
| 73 | (fun _ => isOpen_ball) (i := 0) (C.unitBallMap i)) x v v ≤ |
| 74 | (b * (ρ / 2) ^ 2) * ‖v‖ ^ 2 := by |
| 75 | rw [NormalChartCover.unitBallMap_pullbackCoefficients C hρ hρR i t hx] |
| 76 | have hx' : (ρ / 2) • x ∈ Metric.closedBall 0 (2 * ρ) := |
| 77 | (Metric.ball_subset_closedBall.trans |
| 78 | (Metric.closedBall_subset_closedBall (by linarith))) |
| 79 | (NormalChartCover.rescale_mem_half_ball hρ ⟨x, hx⟩) |
| 80 | have h := mul_le_mul_of_nonneg_left |
| 81 | (C.coefficients i t ht _ hx' v).2 (sq_nonneg (ρ / 2)) |
| 82 | nlinarith only [h] |
| 83 | |
| 84 | end PoincareMT.M30 |