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.Generalized.ReducedGeometry.SourceNames.ReducedLength |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Paths.Joining.PrefixBlendDensity |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Paths.Joining.PrefixBlendEnergy |
| 4 | |
| 5 | /-! |
| 6 | # Vanishing actual action of the shrinking prefix transition |
| 7 | |
| 8 | The actual action density is bounded by the coordinate energy plus |
| 9 | the interval length. Both terms vanish. Morgan-Tian Proposition 6.30, |
| 10 | pp. 118-119. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Topology intervalIntegral |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14.PrefixJoinGauge |
| 21 | |
| 22 | open Proofs.M09 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T τ₁ τ₂ c : ℝ} {x y : G.Point} |
| 27 | {q : M14BackwardPath G T τ₁ τ₂ x y} |
| 28 | {p : M14BackwardPath G T τ₁ c x (q.curve c)} (D : PrefixJoinGauge q p) |
| 29 | |
| 30 | /-- The actual geometric action of the transition tends to zero |
| 31 | as its positive width vanishes, Proposition 6.30, pp. 118-119. -/ |
| 32 | theorem tendsto_blend_action_zero (hM12 : GeneralizedRicciGaugeTheory.{u} n) : |
| 33 | Tendsto (fun d => ∫ s in (c - 2 * d)..(c - d), |
| 34 | M14RawLIntegrand G (gaugeBlend D.index D.lift p.curve q.curve (c - 3 * d / 2) (d / 2)) |
| 35 | (projectedCurveVelocity G |
| 36 | (gaugeBlend D.index D.lift p.curve q.curve (c - 3 * d / 2) (d / 2))) s) |
| 37 | (𝓝[>] (0 : ℝ)) (𝓝 0) := by |
| 38 | obtain ⟨C, _, hbound⟩ := D.exists_blend_density_bound hM12 |
| 39 | have henergy := D.blend_energy_properties hM12 |
| 40 | let e := fun d s => ‖deriv (smoothJoinBlend (fun t => (D.lift (p.curve t)).2.val) |
| 41 | (fun t => (D.lift (q.curve t)).2.val) (c - 3 * d / 2) (d / 2)) s‖ ^ 2 |
| 42 | have hdlim : Tendsto (fun d : ℝ => d) (𝓝[>] 0) (𝓝 0) := |
| 43 | tendsto_id.mono_left nhdsWithin_le_nhds |
| 44 | have hlim : Tendsto (fun d => C * (d + ∫ s in (c - 2 * d)..(c - d), e d s)) |
| 45 | (𝓝[>] (0 : ℝ)) (𝓝 0) := by |
| 46 | simpa only [add_zero, mul_zero] using (hdlim.add henergy.2).const_mul C |
| 47 | apply squeeze_zero_norm' ?_ hlim |
| 48 | filter_upwards [Ioo_mem_nhdsGT (by linarith [D.radius_pos] : 0 < D.radius / 2)] with d hd |
| 49 | have hsmall : 2 * d < D.radius := by linarith [hd.2] |
| 50 | have hE : IntervalIntegrable (e d) volume (c - 2 * d) (c - d) := |
| 51 | henergy.1 d hd.1 hsmall |
| 52 | calc |
| 53 | _ ≤ ∫ s in (c - 2 * d)..(c - d), C * (1 + e d s) := by |
| 54 | apply intervalIntegral.norm_integral_le_of_norm_le (by linarith [hd.1]) |
| 55 | (ae_of_all _ (fun s hs => ?_)) ((intervalIntegrable_const.add hE).const_mul C) |
| 56 | exact hbound _ _ s ⟨by linarith [hs.1], by linarith [hs.2, hd.1]⟩ |
| 57 | _ = C * (d + ∫ s in (c - 2 * d)..(c - d), e d s) := by |
| 58 | rw [intervalIntegral.integral_const_mul, |
| 59 | intervalIntegral.integral_add intervalIntegrable_const hE, |
| 60 | intervalIntegral.integral_const, smul_eq_mul] |
| 61 | ring |
| 62 | |
| 63 | end PoincareMT.M14.PrefixJoinGauge |