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.Rigidity.Exponential.ExponentialDiffeomorph |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Rigidity.Exponential.RescaledExponential |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Rigidity.Exponential.PullbackMetric |
| 4 | |
| 5 | /-! |
| 6 | # The metric of the rescaled exponential map |
| 7 | |
| 8 | Morgan-Tian Proposition 7.27. The actual source dilation removes the |
| 9 | four-times-time factor in the Gram identity, in every dimension. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 24 | |
| 25 | /-- The genuine global rescaled exponential diffeomorphism at a positive time. -/ |
| 26 | noncomputable def rescaledExponentialDiffeomorph |
| 27 | (G : LExponentialGeometry F T τmax p) (τ : ℝ) (hτ : 0 < τ) |
| 28 | (hsource : (exponentialSliceChart G τ).source = univ) |
| 29 | (htarget : (exponentialSliceChart G τ).target = univ) : |
| 30 | Diffeomorph (𝓡 n) (𝓡 n) (EuclideanSpace ℝ (Fin n)) M ∞ := |
| 31 | let L := LinearEquiv.smulOfNeZero ℝ (EuclideanSpace ℝ (Fin n)) (2 * Real.sqrt τ)⁻¹ |
| 32 | (inv_ne_zero (mul_ne_zero (by norm_num) (Real.sqrt_pos.2 hτ).ne')) |
| 33 | L.toContinuousLinearEquiv.toDiffeomorph.trans (exponentialSliceDiffeomorph G τ hsource htarget) |
| 34 | |
| 35 | set_option backward.isDefEq.respectTransparency false in |
| 36 | /-- The diffeomorphism uses exactly the actual rescaled exponential function. -/ |
| 37 | theorem rescaledExponentialDiffeomorph_apply |
| 38 | (G : LExponentialGeometry F T τmax p) (τ : ℝ) (hτ : 0 < τ) |
| 39 | (hsource : (exponentialSliceChart G τ).source = univ) |
| 40 | (htarget : (exponentialSliceChart G τ).target = univ) |
| 41 | (y : EuclideanSpace ℝ (Fin n)) : |
| 42 | rescaledExponentialDiffeomorph G τ hτ hsource htarget y = |
| 43 | rescaledExponential G τ y := by |
| 44 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 45 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 46 | change exponentialSliceChart G τ ((2 * Real.sqrt τ)⁻¹ • y) = _ |
| 47 | rw [exponentialSliceChart_apply, map_smul] |
| 48 | rfl |
| 49 | |
| 50 | set_option backward.isDefEq.respectTransparency false in |
| 51 | /-- Removing the spatial scale gives the exact Euclidean pullback metric. -/ |
| 52 | theorem rescaledExponential_pairing |
| 53 | (G : LExponentialGeometry F T τmax p) {τ : ℝ} (hτ : 0 < τ) |
| 54 | (hsource : (exponentialSliceChart G τ).source = univ) |
| 55 | (htarget : (exponentialSliceChart G τ).target = univ) |
| 56 | (hgram : ∀ x u v : EuclideanSpace ℝ (Fin n), |
| 57 | pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) x u v = |
| 58 | 4 * τ * inner ℝ u v) |
| 59 | (x u v : EuclideanSpace ℝ (Fin n)) : |
| 60 | pullbackMetricForm (F.metric (T - τ)) (rescaledExponential G τ) x u v = |
| 61 | inner ℝ u v := by |
| 62 | let a := (2 * Real.sqrt τ)⁻¹ |
| 63 | let L := (LinearEquiv.smulOfNeZero ℝ (EuclideanSpace ℝ (Fin n)) a |
| 64 | (inv_ne_zero (mul_ne_zero (by norm_num) (Real.sqrt_pos.2 hτ).ne'))).toContinuousLinearEquiv |
| 65 | let E := exponentialSliceDiffeomorph G τ hsource htarget |
| 66 | have hfun : rescaledExponential G τ = E ∘ L := by |
| 67 | funext y |
| 68 | exact (rescaledExponentialDiffeomorph_apply G τ hτ hsource htarget y).symm |
| 69 | rw [hfun] |
| 70 | change (F.metric (T - τ)).inner (E (L x)) |
| 71 | (mfderiv (𝓡 n) (𝓡 n) (E ∘ L) x u) |
| 72 | (mfderiv (𝓡 n) (𝓡 n) (E ∘ L) x v) = _ |
| 73 | have hE := (E.contMDiffAt (x := L x)).mdifferentiableAt (by simp) |
| 74 | rw [mfderiv_comp_apply x hE L.differentiableAt.mdifferentiableAt, |
| 75 | mfderiv_comp_apply x hE L.differentiableAt.mdifferentiableAt, |
| 76 | mfderiv_eq_fderiv, L.fderiv] |
| 77 | change pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) |
| 78 | (a • x) (a • u) (a • v) = _ |
| 79 | rw [hgram] |
| 80 | simp only [inner_smul_left, inner_smul_right, conj_trivial] |
| 81 | dsimp only [a] |
| 82 | have hs : (Real.sqrt τ) ^ 2 = τ := Real.sq_sqrt hτ.le |
| 83 | have hn : Real.sqrt τ ≠ 0 := (Real.sqrt_pos.2 hτ).ne' |
| 84 | field_simp |
| 85 | rw [hs] |
| 86 | ring |
| 87 | |
| 88 | end PoincareMT.ReducedVolume |