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.Comparison.WeightedRays |
| 2 | |
| 3 | /-! |
| 4 | # Regularity on the full initial-vector space |
| 5 | |
| 6 | The total forward map of the regular slice chart is the actual exponential |
| 7 | family even away from its injective source. Smoothness of that family makes |
| 8 | the raw Jacobian and weighted Jacobian continuous on every initial vector. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter |
| 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 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false in |
| 25 | /-- The total exponential slice map is smooth on all initial vectors at every interior time. -/ |
| 26 | theorem exponentialSliceChart_contMDiff (G : LExponentialGeometry F T τmax p) |
| 27 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 28 | ContMDiff (𝓡 n) (𝓡 n) ∞ (exponentialSliceChart G τ) := by |
| 29 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 30 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 31 | let β := (metricCoordinates (F.metric T) p).toContinuousLinearEquiv |
| 32 | have heq : (exponentialSliceChart G τ : EuclideanSpace ℝ (Fin n) → M) = |
| 33 | (fun x ↦ G.gamma (β x) τ) := funext (exponentialSliceChart_apply G τ) |
| 34 | rw [heq] |
| 35 | intro x |
| 36 | have hz : (β x, τ) ∈ univ ×ˢ Ioo 0 τmax := ⟨mem_univ _, hτ, hmax⟩ |
| 37 | have hγ := G.gamma_smooth.contMDiffAt ((isOpen_univ.prod isOpen_Ioo).mem_nhds hz) |
| 38 | exact hγ.comp x (β.toContinuousLinearMap.contMDiff.contMDiffAt.prodMk contMDiffAt_const) |
| 39 | |
| 40 | /-- The actual full-source Gram Jacobian is continuous, including at critical vectors. -/ |
| 41 | theorem exponentialSliceJacobian_continuous (G : LExponentialGeometry F T τmax p) |
| 42 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 43 | Continuous (exponentialSliceJacobian G τ) := by |
| 44 | apply continuous_iff_continuousAt.mpr |
| 45 | intro x |
| 46 | exact pullbackJacobian_continuousAt _ |
| 47 | ((exponentialSliceChart_contMDiff G hτ hmax x).of_le (by simp)) |
| 48 | |
| 49 | set_option backward.isDefEq.respectTransparency false in |
| 50 | /-- The actual action in fixed terminal coordinates is continuous on the full source. -/ |
| 51 | theorem exponentialAction_continuous (G : LExponentialGeometry F T τmax p) |
| 52 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 53 | Continuous (fun x : EuclideanSpace ℝ (Fin n) ↦ |
| 54 | G.toLExponentialFamily.action (metricCoordinates (F.metric T) p x) τ) := by |
| 55 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 56 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 57 | let β := metricCoordinates (F.metric T) p |
| 58 | apply continuous_iff_continuousAt.mpr |
| 59 | intro x |
| 60 | have hz : (β x, τ) ∈ univ ×ˢ Ioo 0 τmax := ⟨mem_univ _, hτ, hmax⟩ |
| 61 | have hact := (G.action_smooth.contDiffAt |
| 62 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds hz)).continuousAt |
| 63 | exact hact.comp (f := fun y : EuclideanSpace ℝ (Fin n) ↦ (β y, τ)) |
| 64 | (β.continuous.continuousAt.prodMk continuousAt_const) |
| 65 | |
| 66 | /-- The raw weighted Jacobian is continuous everywhere; its zero extension need not be. -/ |
| 67 | theorem weightedExponentialJacobian_continuous (G : LExponentialGeometry F T τmax p) |
| 68 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 69 | Continuous (weightedExponentialJacobian G τ) := by |
| 70 | have ha := exponentialAction_continuous G hτ hmax |
| 71 | have hexp := Real.continuous_exp.comp (ha.div_const (2 * Real.sqrt τ)).neg |
| 72 | change Continuous (fun x : EuclideanSpace ℝ (Fin n) ↦ |
| 73 | Real.rpow τ (-(n : ℝ) / 2) * |
| 74 | Real.exp (-(G.toLExponentialFamily.action (metricCoordinates (F.metric T) p x) τ / |
| 75 | (2 * Real.sqrt τ))) * exponentialSliceJacobian G τ x) |
| 76 | exact (hexp.const_mul (Real.rpow τ (-(n : ℝ) / 2))).mul |
| 77 | (exponentialSliceJacobian_continuous G hτ hmax) |
| 78 | |
| 79 | end PoincareMT.ReducedVolume |