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.Measure.Transport.FixedSourceMonotonicity |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.ReducedVolumeAssembly |
| 3 | |
| 4 | /-! |
| 5 | # The full actual reduced-volume analytic witness |
| 6 | |
| 7 | The measurable stable density, its genuine Gaussian bound and |
| 8 | calibrated integrals use one prescribed source basis. Actual backward |
| 9 | stability and fixed-source monotonicity supply the remaining clauses. |
| 10 | Morgan-Tian Theorem 6.80 and Proposition 6.81, pp. 144-146. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T τ : ℝ} {x : G.Point} |
| 24 | |
| 25 | /-- The full frozen analytic witness can retain any prescribed |
| 26 | orthonormal initial basis, Theorem 6.80 and Proposition 6.81, |
| 27 | pp. 144-146. -/ |
| 28 | noncomputable def reducedVolumeAnalyticDataWithBasis |
| 29 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 30 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 31 | (E : M14ExponentialFamily G T x) (H : M14StableSet G T τ x E) |
| 32 | (b : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 33 | (hb : ∀ i j, G.spacetime.horizontalMetric.inner x (b i) (b j) = |
| 34 | if i = j then 1 else 0) : M14ReducedVolumeAnalyticData G T τ x E H := by |
| 35 | let D := rescalingMeasureDataWithBasis H b hb |
| 36 | have hbound := fun Z hZ => |
| 37 | stableDensity_mul_jacobian_le_gaussian hCoordinates hM04 hM12 E H D (Z := Z) hZ |
| 38 | have hi := stableDensity_integrable_of_gaussian hM04 hM12 H D hbound |
| 39 | refine { |
| 40 | density := stableReducedVolumeDensity H |
| 41 | density_eq := fun _ hq => stableReducedVolumeDensity_eq H hq |
| 42 | density_measurable_on_image := |
| 43 | (stableReducedVolumeDensity_measurable hM04 hM12 H).comp measurable_subtype_coe |
| 44 | density_nonnegative := fun q _ => stableReducedVolumeDensity_nonneg H q |
| 45 | measure_data := D |
| 46 | initial_density := fun Z => Real.rpow (2 : ℝ) (n : ℝ) * |
| 47 | Real.exp (-G.spacetime.horizontalMetric.inner x Z Z) |
| 48 | initial_density_eq := fun _ => rfl |
| 49 | gaussian_bound := hbound |
| 50 | density_integrable := hi.2.1 |
| 51 | density_integrable_on_source := hi.1 |
| 52 | density_change_of_variables_on_image := hi.2.2 |
| 53 | backward_star := ?_ |
| 54 | fixed_W_monotone := ?_ } |
| 55 | · intro W hW Z hZ |
| 56 | exact stableSet_backward_star hCoordinates hM04 hM12 E H (hW hZ) |
| 57 | · intro W hW _ _ hm _ σ hσ hle |
| 58 | exact stableDensity_fixed_source_mono hCoordinates hM04 hM12 E H b hb hW hm hσ hle |
| 59 | |
| 60 | /-- Every actual stable record has the full frozen analytic data, |
| 61 | Theorem 6.80 and Proposition 6.81, pp. 144-146. -/ |
| 62 | theorem reducedVolumeAnalyticData |
| 63 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 64 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 65 | (E : M14ExponentialFamily G T x) (H : M14StableSet G T τ x E) : |
| 66 | Nonempty (M14ReducedVolumeAnalyticData G T τ x E H) := by |
| 67 | obtain ⟨b, hb⟩ := exists_orthonormal_horizontalBasis G x |
| 68 | exact ⟨reducedVolumeAnalyticDataWithBasis hCoordinates hM04 hM12 E H b hb⟩ |
| 69 | |
| 70 | /-- The full frozen reduced-volume monotonicity statement follows |
| 71 | from the actual analytic witnesses, Theorem 6.80, pp. 144-146. -/ |
| 72 | theorem reducedVolumeStatement |
| 73 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 74 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 75 | (G : GeneralizedLGeometryTransport n X time I) : M14ReducedVolumeStatement G := |
| 76 | reducedVolumeStatement_of_analytic hCoordinates hM04 hM12 |
| 77 | (fun _ _ _ E H => reducedVolumeAnalyticData hCoordinates hM04 hM12 E H) |
| 78 | |
| 79 | end PoincareMT.M14 |