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.Equality.RayEquality |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Rigidity.Exponential.PositiveJacobianInverse |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Rigidity.Exponential.OpenDenseInjectivity |
| 4 | |
| 5 | /-! |
| 6 | # The global regular exponential chart in the equality case |
| 7 | |
| 8 | Morgan-Tian Proposition 7.27. Positive raw Jacobian gives openness, while |
| 9 | conullity of the canonical regular source gives density. Injectivity on |
| 10 | that source is therefore global. Attained minimizing lifts then show that |
| 11 | every initial vector is uniquely minimizing and noncritical. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.ReducedVolume |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 26 | |
| 27 | variable [ConnectedSpace M] |
| 28 | |
| 29 | set_option backward.isDefEq.respectTransparency false in |
| 30 | /-- Attained minimizing lifts make the actual full-source exponential slice surjective. -/ |
| 31 | theorem exponentialSliceChart_surjective (hL : LGeodesicTheory F T τmax) |
| 32 | (G : LExponentialGeometry F T τmax p) {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 33 | Function.Surjective (exponentialSliceChart G τ) := by |
| 34 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 35 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 36 | intro q |
| 37 | obtain ⟨Z, hZ, _⟩ := exists_minimizing_lift hL G q τ hτ hmax |
| 38 | refine ⟨(metricCoordinates (F.metric T) p).symm Z, ?_⟩ |
| 39 | rw [exponentialSliceChart_apply, LinearIsometryEquiv.apply_symm_apply, hZ] |
| 40 | |
| 41 | set_option backward.isDefEq.respectTransparency false in |
| 42 | /-- A globally injective and noncritical slice has the whole canonical regular source. -/ |
| 43 | theorem exponentialSliceChart_source_eq_univ |
| 44 | (hL : LGeodesicTheory F T τmax) (G : LExponentialGeometry F T τmax p) |
| 45 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 46 | (hinj : Function.Injective (exponentialSliceChart G τ)) |
| 47 | (hD : ∀ x, Function.Bijective (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G τ) x)) : |
| 48 | (exponentialSliceChart G τ).source = univ := by |
| 49 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 50 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 51 | let β := metricCoordinates (F.metric T) p |
| 52 | have hgamma : Function.Injective (fun Z ↦ G.gamma Z τ) := by |
| 53 | intro Z W hZW |
| 54 | apply β.symm.injective |
| 55 | apply hinj |
| 56 | simpa only [exponentialSliceChart_apply, β, LinearIsometryEquiv.apply_symm_apply] using hZW |
| 57 | rw [exponentialSliceChart_source, eq_univ_iff_forall] |
| 58 | intro x |
| 59 | change G.toLExponentialFamily.uniqueMinimizing (β x) τ ∧ |
| 60 | Function.Bijective (G.toLExponentialFamily.sliceDifferential (β x) τ) |
| 61 | obtain ⟨Z, hZ, hmin, _⟩ := exists_minimizing_lift hL G (G.gamma (β x) τ) τ hτ hmax |
| 62 | have hZx : Z = β x := hgamma hZ |
| 63 | rw [hZx] at hmin |
| 64 | refine ⟨⟨hτ, hmax, hmin, ?_⟩, ?_⟩ |
| 65 | · intro q hq0 hqτ hqmin |
| 66 | obtain ⟨W, hW, _⟩ := G.minimizers_lift τ hτ hmax q hq0 hqmin |
| 67 | have hWx : W = β x := hgamma ((hW ⟨hτ.le, le_rfl⟩).symm.trans hqτ) |
| 68 | simpa only [hWx] using hW |
| 69 | · have hcomp : Function.Bijective (fun v : EuclideanSpace ℝ (Fin n) ↦ |
| 70 | G.toLExponentialFamily.sliceDifferential (β x) τ (β v)) := by |
| 71 | constructor |
| 72 | · intro a b hab |
| 73 | apply (hD x).1 |
| 74 | rw [exponentialSliceChart_differential G hτ hmax, |
| 75 | exponentialSliceChart_differential G hτ hmax] |
| 76 | exact hab |
| 77 | · intro w |
| 78 | obtain ⟨a, ha⟩ := (hD x).2 w |
| 79 | refine ⟨a, ?_⟩ |
| 80 | rw [exponentialSliceChart_differential G hτ hmax] at ha |
| 81 | exact ha |
| 82 | constructor |
| 83 | · intro v w hvw |
| 84 | obtain ⟨a, rfl⟩ := β.surjective v |
| 85 | obtain ⟨b, rfl⟩ := β.surjective w |
| 86 | exact congrArg β (hcomp.1 hvw) |
| 87 | · intro w |
| 88 | obtain ⟨v, hv⟩ := hcomp.2 w |
| 89 | exact ⟨β v, hv⟩ |
| 90 | |
| 91 | variable [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 92 | |
| 93 | /-- Maximal actual reduced volume makes both canonical slice-chart domains global. -/ |
| 94 | theorem exponentialSliceChart_global_of_volume_eq |
| 95 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 96 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 97 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 98 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 99 | {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) |
| 100 | (heq : reducedVolume F T p τ = euclideanReducedVolume n) : |
| 101 | (exponentialSliceChart G τ).source = univ ∧ |
| 102 | (exponentialSliceChart G τ).target = univ := by |
| 103 | have hae := regularWeightedJacobian_ae_eq_gaussian_of_volume_eq hL hDifferential G hmax |
| 104 | hT hwindow hcurvature hτ hτmax heq |
| 105 | have hgauss := weightedExponentialJacobian_eq_gaussian_of_ae G hτ hτmax hae |
| 106 | have hD (x : EuclideanSpace ℝ (Fin n)) : |
| 107 | Function.Bijective (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G τ) x) := |
| 108 | mfderiv_bijective_of_pullbackJacobian_pos (F.metric (T - τ)) |
| 109 | (exponentialSliceJacobian_pos_of_gaussian G hτ hgauss x) |
| 110 | have hdense : Dense (exponentialSliceChart G τ).source := |
| 111 | Measure.dense_of_ae (μ := volume) (ae_mem_exponentialSlice_source_of_gaussian G hae) |
| 112 | have hinj := injective_of_open_dense_injOn |
| 113 | (exponentialSliceChart_contMDiff G hτ hτmax).continuous |
| 114 | (isOpenMap_of_mfderiv_bijective (exponentialSliceChart_contMDiff G hτ hτmax) hD) |
| 115 | (exponentialSliceChart G τ).open_source hdense (exponentialSliceChart G τ).injOn |
| 116 | have hsource := exponentialSliceChart_source_eq_univ hL G hτ hτmax hinj hD |
| 117 | refine ⟨hsource, eq_univ_iff_forall.mpr ?_⟩ |
| 118 | intro q |
| 119 | obtain ⟨x, rfl⟩ := exponentialSliceChart_surjective hL G hτ hτmax q |
| 120 | exact (exponentialSliceChart G τ).map_source (hsource.symm ▸ mem_univ x) |
| 121 | |
| 122 | end PoincareMT.ReducedVolume |