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.ReducedLength.Basic |
| 2 | import Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 3 | |
| 4 | /-! |
| 5 | # Continuity of the actual action at initial time |
| 6 | |
| 7 | The actual exponential path has an integrable L-integrand on each bounded |
| 8 | geometric interval. Its action is that integrand's primitive, and therefore |
| 9 | tends to zero from positive time, with no curvature term discarded. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 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 actual exponential action is continuous on every admissible closed initial interval. -/ |
| 26 | theorem action_continuousOn_initial (G : LExponentialGeometry F T τmax p) |
| 27 | (Z : TangentSpace (𝓡 n) p) {b : ℝ} (hb : 0 < b) (hmax : b < τmax) : |
| 28 | ContinuousOn (G.toLExponentialFamily.action Z) (Icc 0 b) := by |
| 29 | have hi := (G.path Z b hb hmax).l_integrable |
| 30 | rw [G.path_eq Z b hb hmax] at hi |
| 31 | have hc := intervalIntegral.continuousOn_primitive_interval' hi (left_mem_uIcc : |
| 32 | (0 : ℝ) ∈ uIcc 0 b) |
| 33 | change ContinuousOn (fun s ↦ ∫ t in 0..s, backwardLIntegrand F T (G.gamma Z) t) (Icc 0 b) |
| 34 | simpa only [uIcc_of_le hb.le] using hc |
| 35 | |
| 36 | /-- The actual action tends to zero as backward time decreases to zero. -/ |
| 37 | theorem action_tendsto_zero (G : LExponentialGeometry F T τmax p) |
| 38 | (hmax : 0 < τmax) (Z : TangentSpace (𝓡 n) p) : |
| 39 | Tendsto (G.toLExponentialFamily.action Z) (𝓝[>] (0 : ℝ)) (𝓝 0) := by |
| 40 | obtain ⟨b, hb, hbmax⟩ := exists_between hmax |
| 41 | have hc := action_continuousOn_initial G Z hb hbmax 0 ⟨le_rfl, hb.le⟩ |
| 42 | have he : Icc (0 : ℝ) b ∈ 𝓝[>] (0 : ℝ) := by |
| 43 | filter_upwards [self_mem_nhdsWithin, |
| 44 | (eventually_lt_nhds hb).filter_mono nhdsWithin_le_nhds] with s hs hsb |
| 45 | exact ⟨hs.le, hsb.le⟩ |
| 46 | have ht := hc.tendsto.mono_left (le_inf nhdsWithin_le_nhds (Filter.le_principal_iff.2 he)) |
| 47 | have hzero : G.toLExponentialFamily.action Z 0 = 0 := by |
| 48 | simp only [LExponentialFamily.action, backwardLLength, intervalIntegral.integral_same] |
| 49 | rwa [hzero] at ht |
| 50 | |
| 51 | end PoincareMT.ReducedVolume |