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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.NormalCover |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.Rescaling |
| 4 | |
| 5 | /-! |
| 6 | # Regular-component charts on the common unit ball |
| 7 | |
| 8 | Rescale the actual normal maps while retaining their regular-component |
| 9 | cover and the next-level target inclusion. The construction follows the |
| 10 | finite-chart extraction in Morgan--Tian Theorem 5.6, printed pp. 86-87. |
| 11 | The lower normal-chart rescaling proof is reused at its genuine local |
| 12 | map level; no radial covering hypothesis is supplied. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Metric |
| 19 | open scoped Manifold ContDiff ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.RegularNormalChartCover |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {g : RiemannianMetric n M} {p : M} {δ R ρ : ℝ} {N : ℕ} |
| 28 | |
| 29 | /-- The actual normal map on a fixed unit coordinate ball. Theorem 5.6, |
| 30 | printed pp. 86-87. -/ |
| 31 | noncomputable def unitBallMap (C : RegularNormalChartCover g p δ R ρ N) |
| 32 | (i : Fin (N + 1)) (x : ball (0 : EuclideanSpace ℝ (Fin n)) 1) : M := |
| 33 | C.chart i ((ρ / 2) • (x : EuclideanSpace ℝ (Fin n))) |
| 34 | |
| 35 | /-- Rescaling preserves the actual source distance bounds. Theorem 5.6, |
| 36 | printed pp. 86-87. -/ |
| 37 | theorem unitBallMap_distances (C : RegularNormalChartCover g p δ R ρ N) |
| 38 | (hρ : 0 < ρ) (i : Fin (N + 1)) |
| 39 | (x y : ball (0 : EuclideanSpace ℝ (Fin n)) 1) : |
| 40 | (Real.sqrt (1 / 4 : ℝ) * (ρ / 2)) * dist x y ≤ |
| 41 | (g.edist (C.unitBallMap i x) (C.unitBallMap i y)).toReal ∧ |
| 42 | (g.edist (C.unitBallMap i x) (C.unitBallMap i y)).toReal ≤ |
| 43 | (Real.sqrt (9 / 4 : ℝ) * (ρ / 2)) * dist x y := by |
| 44 | have h := C.distances i _ (NormalChartCover.rescale_mem_half_ball hρ x) |
| 45 | _ (NormalChartCover.rescale_mem_half_ball hρ y) |
| 46 | simpa only [unitBallMap, dist_smul₀, Real.norm_eq_abs, abs_of_pos (half_pos hρ), |
| 47 | mul_assoc, Subtype.dist_eq] using h |
| 48 | |
| 49 | /-- Every rescaled chart is locally a diffeomorphism in the canonical |
| 50 | smooth structure of the unit ball. Theorem 5.6, printed pp. 86-87. -/ |
| 51 | theorem unitBallMap_isLocalDiffeomorph |
| 52 | (C : RegularNormalChartCover g p δ R ρ N) |
| 53 | (hρ : 0 < ρ) (hρR : ρ / 2 ≤ R) (i : Fin (N + 1)) : |
| 54 | letI : Nonempty (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := ⟨⟨0, by simp⟩⟩ |
| 55 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) |
| 56 | (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := |
| 57 | isOpen_ball.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 58 | IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ (C.unitBallMap i) := by |
| 59 | let : Nonempty (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := ⟨⟨0, by simp⟩⟩ |
| 60 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) |
| 61 | (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := |
| 62 | isOpen_ball.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 63 | let L := (LinearEquiv.smulOfNeZero ℝ (EuclideanSpace ℝ (Fin n)) |
| 64 | (ρ / 2) (ne_of_gt (half_pos hρ))).toContinuousLinearEquiv.toDiffeomorph |
| 65 | intro x |
| 66 | have hsub := Poincare.isLocalDiffeomorph_subtypeVal (𝓡 n) |
| 67 | (ball (0 : EuclideanSpace ℝ (Fin n)) 1) isOpen_ball ∞ x |
| 68 | have hL := hsub.comp (𝓡 n) _ (L.isLocalDiffeomorph (x : EuclideanSpace ℝ (Fin n))) |
| 69 | have hx : (ρ / 2) • (x : EuclideanSpace ℝ (Fin n)) ∈ (C.chart i).source := by |
| 70 | rw [C.source] |
| 71 | exact (ball_subset_ball hρR) (NormalChartCover.rescale_mem_half_ball hρ x) |
| 72 | exact hL.comp (𝓡 n) M ((C.chart i).isLocalDiffeomorphAt (𝓡 n) (𝓡 n) ∞ hx) |
| 73 | |
| 74 | /-- The common-domain normal map is an actual open embedding. Theorem 5.6, |
| 75 | printed pp. 86-87. -/ |
| 76 | theorem unitBallMap_isOpenEmbedding |
| 77 | (C : RegularNormalChartCover g p δ R ρ N) |
| 78 | (hρ : 0 < ρ) (hρR : ρ / 2 ≤ R) (i : Fin (N + 1)) : |
| 79 | Topology.IsOpenEmbedding (C.unitBallMap i) := by |
| 80 | let : Nonempty (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := ⟨⟨0, by simp⟩⟩ |
| 81 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) |
| 82 | (ball (0 : EuclideanSpace ℝ (Fin n)) 1) := |
| 83 | isOpen_ball.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 84 | have hd := C.unitBallMap_isLocalDiffeomorph hρ hρR i |
| 85 | apply Topology.IsOpenEmbedding.of_continuous_injective_isOpenMap |
| 86 | hd.contMDiff.continuous _ hd.isOpenMap |
| 87 | intro x y hxy |
| 88 | have hx : (ρ / 2) • (x : EuclideanSpace ℝ (Fin n)) ∈ (C.chart i).source := by |
| 89 | rw [C.source] |
| 90 | exact (ball_subset_ball hρR) (NormalChartCover.rescale_mem_half_ball hρ x) |
| 91 | have hy : (ρ / 2) • (y : EuclideanSpace ℝ (Fin n)) ∈ (C.chart i).source := by |
| 92 | rw [C.source] |
| 93 | exact (ball_subset_ball hρR) (NormalChartCover.rescale_mem_half_ball hρ y) |
| 94 | apply Subtype.ext |
| 95 | exact (smul_right_injective _ (ne_of_gt (half_pos hρ))) |
| 96 | ((C.chart i).injOn hx hy hxy) |
| 97 | |
| 98 | /-- The fixed quarter-radius coordinate cores cover the actual regular |
| 99 | component. Theorem 5.6, printed pp. 86-87. -/ |
| 100 | theorem unitBallMap_cover (C : RegularNormalChartCover g p δ R ρ N) |
| 101 | (hρ : 0 < ρ) : |
| 102 | regularComponent g p (4 * δ) ⊆ ⋃ i, C.unitBallMap i '' |
| 103 | {x : ball (0 : EuclideanSpace ℝ (Fin n)) 1 | |
| 104 | ‖(x : EuclideanSpace ℝ (Fin n))‖ ≤ 1 / 4} := by |
| 105 | intro q hq |
| 106 | obtain ⟨i, y, hy, rfl⟩ := mem_iUnion.mp (C.cover hq) |
| 107 | have hy' : ‖y‖ ≤ ρ / 8 := mem_closedBall_zero_iff.mp hy |
| 108 | let x := (ρ / 2)⁻¹ • y |
| 109 | have hx : ‖x‖ ≤ 1 / 4 := by |
| 110 | dsimp [x] |
| 111 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr (half_pos hρ))] |
| 112 | apply (inv_mul_le_iff₀ (half_pos hρ)).mpr |
| 113 | nlinarith |
| 114 | refine mem_iUnion.mpr ⟨i, ⟨⟨x, mem_ball_zero_iff.mpr (hx.trans_lt (by norm_num))⟩, |
| 115 | hx, ?_⟩⟩ |
| 116 | dsimp [unitBallMap, x] |
| 117 | rw [smul_smul, mul_inv_cancel₀ (ne_of_gt (half_pos hρ)), one_smul] |
| 118 | |
| 119 | /-- The complete chosen coordinate domain lies in the next lower |
| 120 | regularity component, not merely in the regular set. Theorem 5.6, |
| 121 | printed pp. 86-87. -/ |
| 122 | theorem unitBallMap_mem_regularComponent |
| 123 | (C : RegularNormalChartCover g p δ R ρ N) |
| 124 | (hρ : 0 < ρ) (hρR : ρ / 2 ≤ R) (i : Fin (N + 1)) |
| 125 | (x : ball (0 : EuclideanSpace ℝ (Fin n)) 1) : |
| 126 | C.unitBallMap i x ∈ regularComponent g p (2 * δ) := by |
| 127 | apply C.target_regular i |
| 128 | apply (C.chart i).map_source |
| 129 | rw [C.source] |
| 130 | exact (ball_subset_ball hρR) (NormalChartCover.rescale_mem_half_ball hρ x) |
| 131 | |
| 132 | end PoincareMT.M28.RegularNormalChartCover |