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.Exponential.Stability.StableLength |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian |
| 3 | import Mathlib.MeasureTheory.Constructions.BorelSpace.Basic |
| 4 | |
| 5 | /-! |
| 6 | # A measurable density on the actual stable image |
| 7 | |
| 8 | The fixed-slice smooth reduced length gives the specified density |
| 9 | on the stable image. Its zero extension is globally measurable, |
| 10 | without imposing regularity on the raw infimum elsewhere. |
| 11 | Morgan-Tian Definition 6.70 and Lemma 6.71, pp. 140-141. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 26 | |
| 27 | /-- The actual reduced-volume density on the stable image, extended |
| 28 | by zero away from that image, Definition 6.70, p. 140. -/ |
| 29 | noncomputable def stableReducedVolumeDensity (H : M14StableSet G T τ x E) : |
| 30 | (G.slices (T - τ)).Point → ℝ := |
| 31 | (H.endpoint_slice_map '' H.carrier).indicator (fun q => |
| 32 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-M14ReducedLengthValue G T 0 τ x q.val)) |
| 33 | |
| 34 | /-- On the actual stable image the chosen density is precisely the |
| 35 | frozen reduced-volume integrand, Definition 6.70, p. 140. -/ |
| 36 | theorem stableReducedVolumeDensity_eq (H : M14StableSet G T τ x E) |
| 37 | {q : (G.slices (T - τ)).Point} (hq : q ∈ H.endpoint_slice_map '' H.carrier) : |
| 38 | stableReducedVolumeDensity H q = Real.rpow τ (-(n : ℝ) / 2) * |
| 39 | Real.exp (-M14ReducedLengthValue G T 0 τ x q.val) := |
| 40 | indicator_of_mem hq _ |
| 41 | |
| 42 | /-- The actual density is continuous on the full stable image, |
| 43 | including at a physical terminal time, Lemma 6.71, p. 141. -/ |
| 44 | theorem stableReducedVolumeDensity_continuousOn |
| 45 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 46 | (H : M14StableSet G T τ x E) : |
| 47 | ContinuousOn (stableReducedVolumeDensity H) (H.endpoint_slice_map '' H.carrier) := by |
| 48 | have hl := (reducedLengthValue_contMDiffOn_stableImage hM04 hM12 H).continuousOn |
| 49 | exact (continuousOn_const.mul (Real.continuous_exp.comp_continuousOn hl.neg)).congr |
| 50 | (fun _ hq => stableReducedVolumeDensity_eq H hq) |
| 51 | |
| 52 | /-- The zero extension of the actual stable density is globally |
| 53 | measurable, as required by calibrated transport in Lemma 6.71, p. 141. -/ |
| 54 | theorem stableReducedVolumeDensity_measurable |
| 55 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 56 | (H : M14StableSet G T τ x E) : Measurable (stableReducedVolumeDensity H) := by |
| 57 | classical |
| 58 | have hl := (reducedLengthValue_contMDiffOn_stableImage hM04 hM12 H).continuousOn |
| 59 | have hd := (continuousOn_const (c := Real.rpow τ (-(n : ℝ) / 2))).mul |
| 60 | (Real.continuous_exp.comp_continuousOn hl.neg) |
| 61 | exact hd.measurable_piecewise continuousOn_const (stableSliceChart H).open_target.measurableSet |
| 62 | |
| 63 | /-- The chosen stable density is nonnegative everywhere, including |
| 64 | its zero extension, Definition 6.70, p. 140. -/ |
| 65 | theorem stableReducedVolumeDensity_nonneg (H : M14StableSet G T τ x E) |
| 66 | (q : (G.slices (T - τ)).Point) : 0 ≤ stableReducedVolumeDensity H q := by |
| 67 | exact indicator_nonneg (fun _ _ => |
| 68 | (mul_pos (Real.rpow_pos_of_pos H.tau_pos _) (Real.exp_pos _)).le) q |
| 69 | |
| 70 | end PoincareMT.M14 |