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.IndexedCovering |
| 2 | import PoincareLib.Topology.Sequences.Diagonal |
| 3 | |
| 4 | /-! |
| 5 | # Diagonal selection of controlled source-chart covers |
| 6 | |
| 7 | Each integer source-radius stage has its own fixed finite chart index set. A |
| 8 | single strict subsequence makes every earlier stage available at each later |
| 9 | index, and retains all metric-jet bounds whose order is no larger than the |
| 10 | stage index. |
| 11 | |
| 12 | Reference: Morgan--Tian, Proposition 5.14, pp. 90--91. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option synthInstance.maxHeartbeats 100000 |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT.PointedRicciFlowCompactnessHypotheses |
| 23 | |
| 24 | theorem exists_diagonal_normalChartCovers |
| 25 | {n : ℕ} {T' T : ℝ} |
| 26 | (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 27 | (hn : 1 ≤ n) : |
| 28 | ∃ σ : ℕ → ℕ, StrictMono σ ∧ |
| 29 | ∃ R ρ a b : ℕ → ℝ, ∃ N : ℕ → ℕ, |
| 30 | (∀ j, 0 < ρ j ∧ 2 * ρ j < R j ∧ 0 < a j ∧ 0 < b j) ∧ |
| 31 | ∀ k j, j ≤ k → |
| 32 | let C := H.sequence.carrier (σ k) |
| 33 | let F := H.sequence.flow (σ k) |
| 34 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 35 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 36 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 37 | ∃ cover : NormalChartCover F.metricAt F.base T' T (j + 1) |
| 38 | (R j) (ρ j) (a j) (b j) (N j), |
| 39 | cover.centre 0 = F.base := by |
| 40 | classical |
| 41 | choose R ρ a b hρ hρR ha hb N hcover using fun j : ℕ => |
| 42 | H.eventually_nonempty_normalChartCover hn (A := ((j : ℝ) + 1)) (by positivity) |
| 43 | let P : ℕ → ℕ → Prop := fun j k => |
| 44 | let C := H.sequence.carrier k |
| 45 | let F := H.sequence.flow k |
| 46 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 47 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 48 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 49 | Nonempty (NormalChartCover F.metricAt F.base T' T ((j : ℝ) + 1) |
| 50 | (R j) (ρ j) (a j) (b j) (N j)) |
| 51 | have hP : ∀ j, ∀ᶠ k in atTop, P j k := by |
| 52 | intro j |
| 53 | filter_upwards [hcover j] with k hk |
| 54 | exact hk |
| 55 | obtain ⟨σ, hσ, hPσ⟩ := Poincare.exists_strictMono_forall_le_of_eventually hP |
| 56 | refine ⟨σ, hσ, R, ρ, a, b, N, ?_, ?_⟩ |
| 57 | · intro j |
| 58 | exact ⟨hρ j, hρR j, ha j, hb j⟩ |
| 59 | · intro k j hkj |
| 60 | let C := H.sequence.carrier (σ k) |
| 61 | let F := H.sequence.flow (σ k) |
| 62 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 63 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 64 | let : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 65 | obtain ⟨cover⟩ := hPσ k j hkj |
| 66 | exact ⟨cover, cover.centre_zero⟩ |
| 67 | |
| 68 | end PoincareMT.PointedRicciFlowCompactnessHypotheses |