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.ReducedGeometry.ReducedVolume.Regularity.Continuity.MinimizingLifts |
| 2 | |
| 3 | /-! |
| 4 | # Countability from the actual L-exponential family |
| 5 | |
| 6 | At any interior time the supplied smooth exponential map is surjective, |
| 7 | by attained minimizing lifts. Its finite-dimensional source makes the |
| 8 | manifold separable, hence second countable in its compatible metric. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | [ConnectedSpace M] [T3Space M] |
| 23 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false in |
| 26 | /-- The actual exponential surjection supplies the countability needed for null-set assembly. -/ |
| 27 | theorem secondCountableTopology_of_exponential |
| 28 | (hL : LGeodesicTheory F T τmax) (G : LExponentialGeometry F T τmax p) |
| 29 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : SecondCountableTopology M := by |
| 30 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 31 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 32 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 33 | (TangentSpace (𝓡 n) : M → Type _) := |
| 34 | ⟨⟨(F.metric T).inner, (F.metric T).toContinuousRiemannianMetric.continuous, |
| 35 | fun _ _ _ ↦ rfl⟩⟩ |
| 36 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 37 | let : FiniteDimensional ℝ (TangentSpace (𝓡 n) p) := |
| 38 | inferInstanceAs (FiniteDimensional ℝ (EuclideanSpace ℝ (Fin n))) |
| 39 | have hcont : Continuous (fun Z : TangentSpace (𝓡 n) p ↦ G.gamma Z τ) := by |
| 40 | apply continuous_iff_continuousAt.mpr |
| 41 | intro Z |
| 42 | exact (G.gamma_smooth.continuousOn.continuousAt |
| 43 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ Z, hτ, hmax⟩)).comp |
| 44 | (continuous_id.prodMk continuous_const).continuousAt |
| 45 | have hsurj : Function.Surjective (fun Z : TangentSpace (𝓡 n) p ↦ G.gamma Z τ) := by |
| 46 | intro q |
| 47 | obtain ⟨Z, hZ, _⟩ := exists_minimizing_lift hL G q τ hτ hmax |
| 48 | exact ⟨Z, hZ⟩ |
| 49 | let : TopologicalSpace.SeparableSpace M := hsurj.denseRange.separableSpace hcont |
| 50 | exact UniformSpace.secondCountable_of_separable M |
| 51 | |
| 52 | end PoincareMT.ReducedVolume |