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.Minimum.Compactness.ReducedLengthSublevel |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.CompactSublevelMinimum |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Continuity.Continuity |
| 4 | |
| 5 | /-! |
| 6 | # Attainment and continuity of the spatial reduced-length infimum |
| 7 | |
| 8 | On a compact interior time interval the zero-initial-vector ray gives |
| 9 | one bounded comparator. Compact sublevel confinement makes minimization |
| 10 | on a single compact set global and gives continuity of its value. |
| 11 | This reconstructs the compactness step of Morgan-Tian Claim 7.11. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 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 | [ConnectedSpace M] [T3Space M] |
| 26 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 27 | |
| 28 | omit [T3Space M] in |
| 29 | /-- The zero ray supplies a uniformly bounded comparator on every compact interior time interval. -/ |
| 30 | theorem exists_uniform_reducedLength_comparator |
| 31 | (hL : LGeodesicTheory F T τmax) (G : LExponentialGeometry F T τmax p) |
| 32 | {a b : ℝ} (ha : 0 < a) (hbmax : b < τmax) : |
| 33 | ∃ L : ℝ, ∀ τ ∈ Icc a b, ∃ q : M, reducedLength F T p q τ ≤ L := by |
| 34 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 35 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 36 | let Z : TangentSpace (𝓡 n) p := 0 |
| 37 | let A := fun τ : ℝ ↦ G.toLExponentialFamily.action Z τ / (2 * Real.sqrt τ) |
| 38 | have hA : ContinuousOn A (Icc a b) := by |
| 39 | dsimp only [A] |
| 40 | refine ContinuousOn.div ?_ (by fun_prop) ?_ |
| 41 | · apply G.action_smooth.continuousOn.comp |
| 42 | (continuous_const.prodMk continuous_id).continuousOn |
| 43 | intro τ hτ |
| 44 | exact ⟨mem_univ _, ha.trans_le hτ.1, hτ.2.trans_lt hbmax⟩ |
| 45 | · intro τ hτ |
| 46 | exact mul_ne_zero (by norm_num : (2 : ℝ) ≠ 0) |
| 47 | (Real.sqrt_pos.mpr (ha.trans_le hτ.1)).ne' |
| 48 | obtain ⟨L, hLbound⟩ := isCompact_Icc.bddAbove_image hA |
| 49 | refine ⟨L, ?_⟩ |
| 50 | intro τ hτ |
| 51 | refine ⟨G.gamma Z τ, (reducedLength_le_normalized_action hL G Z τ |
| 52 | (ha.trans_le hτ.1) (hτ.2.trans_lt hbmax)).trans ?_⟩ |
| 53 | exact hLbound (mem_image_of_mem A hτ) |
| 54 | |
| 55 | /-- Compact sublevels give continuous attained spatial infima on each compact interior interval. -/ |
| 56 | theorem reducedLength_infimum_on_compact_time |
| 57 | (hL : LGeodesicTheory F T τmax) (G : LExponentialGeometry F T τmax p) |
| 58 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 59 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 60 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 61 | {a b : ℝ} (ha : 0 < a) (hab : a ≤ b) (hbmax : b < τmax) : |
| 62 | ContinuousOn (fun τ : ℝ ↦ sInf (range (fun q ↦ reducedLength F T p q τ))) (Icc a b) ∧ |
| 63 | ∀ τ ∈ Icc a b, ∃ q : M, |
| 64 | reducedLength F T p q τ = sInf (range (fun y ↦ reducedLength F T p y τ)) := by |
| 65 | obtain ⟨L, hcomp⟩ := exists_uniform_reducedLength_comparator hL G ha hbmax |
| 66 | obtain ⟨K, hK, hsub⟩ := exists_compact_reducedLength_sublevel hL G hwindow hcurvature |
| 67 | (ha.trans_le hab) hbmax L |
| 68 | have hf : Continuous (fun z : Icc a b × M ↦ reducedLength F T p z.2 z.1) := |
| 69 | (reducedLength_continuousOn hL hDifferential p).comp_continuous |
| 70 | (continuous_snd.prodMk (continuous_subtype_val.comp continuous_fst)) |
| 71 | (fun z ↦ ⟨mem_univ _, ha.trans_le z.1.property.1, z.1.property.2.trans_lt hbmax⟩) |
| 72 | constructor |
| 73 | · apply continuousOn_iff_continuous_domRestrict.mpr |
| 74 | exact continuous_sInf_of_compact_sublevels |
| 75 | (f := fun τ : Icc a b ↦ fun q ↦ reducedLength F T p q τ) hf hK |
| 76 | (fun τ q hq ↦ hsub τ (ha.trans_le τ.property.1) τ.property.2 q hq) |
| 77 | (fun τ ↦ hcomp τ τ.property) |
| 78 | · intro τ hτ |
| 79 | have hslice : Continuous (fun q : M ↦ reducedLength F T p q τ) := |
| 80 | (reducedLength_continuousOn hL hDifferential p).comp_continuous |
| 81 | (continuous_id.prodMk continuous_const) |
| 82 | (fun _ ↦ ⟨mem_univ _, ha.trans_le hτ.1, hτ.2.trans_lt hbmax⟩) |
| 83 | obtain ⟨q, _, _, hq⟩ := exists_global_minimum_of_compact_sublevel hslice hK |
| 84 | (hsub τ (ha.trans_le hτ.1) hτ.2) (hcomp τ hτ) |
| 85 | exact ⟨q, hq⟩ |
| 86 | |
| 87 | /-- The spatial infimum is continuous throughout the strict window and attained at every time. -/ |
| 88 | theorem reducedLength_minimum_data |
| 89 | (hL : LGeodesicTheory F T τmax) (G : LExponentialGeometry F T τmax p) |
| 90 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 91 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 92 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) : |
| 93 | ContinuousOn (fun τ : ℝ ↦ sInf (range (fun q ↦ reducedLength F T p q τ))) (Ioo 0 τmax) ∧ |
| 94 | ∀ τ ∈ Ioo 0 τmax, ∃ q : M, |
| 95 | reducedLength F T p q τ = sInf (range (fun y ↦ reducedLength F T p y τ)) := by |
| 96 | constructor |
| 97 | · intro τ hτ |
| 98 | have hc := (reducedLength_infimum_on_compact_time hL G hDifferential hwindow hcurvature |
| 99 | (a := τ / 2) (b := (τ + τmax) / 2) (by linarith [hτ.1]) |
| 100 | (by linarith [hτ.1, hτ.2]) (by linarith [hτ.2])).1 |
| 101 | exact (hc.continuousAt (Icc_mem_nhds (by linarith [hτ.1]) |
| 102 | (by linarith [hτ.2]))).continuousWithinAt |
| 103 | · intro τ hτ |
| 104 | exact (reducedLength_infimum_on_compact_time hL G hDifferential hwindow hcurvature |
| 105 | hτ.1 le_rfl hτ.2).2 τ ⟨le_rfl, le_rfl⟩ |
| 106 | |
| 107 | end PoincareMT.ReducedVolume |