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.AnalyticBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.BackwardStable |
| 3 | |
| 4 | /-! |
| 5 | # Full-carrier monotonicity from the analytic witnesses |
| 6 | |
| 7 | The fixed-source monotonicity field compares the later carrier with |
| 8 | its image at an earlier time. Nonnegative density then enlarges to the |
| 9 | whole earlier stable carrier. An empty terminal carrier has zero volume. |
| 10 | Morgan-Tian Theorem 6.80 and Proposition 6.81, pp. 144-146. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set MeasureTheory |
| 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 | |
| 24 | /-- Analytic witnesses at all positive stable times give the frozen |
| 25 | full reduced-volume monotonicity statement, including an empty |
| 26 | terminal carrier, Theorem 6.80, pp. 144-146. -/ |
| 27 | theorem reducedVolumeStatement_of_analytic |
| 28 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 29 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 30 | (hanalytic : ∀ (T τ : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) |
| 31 | (H : M14StableSet G T τ x E), Nonempty (M14ReducedVolumeAnalyticData G T τ x E H)) : |
| 32 | M14ReducedVolumeStatement G := by |
| 33 | intro T x E τmax _ Hmax τ hτ hle |
| 34 | obtain ⟨Amax⟩ := hanalytic T τmax x E Hmax |
| 35 | by_cases hne : Hmax.carrier.Nonempty |
| 36 | · have hmin : ∀ Z ∈ Hmax.carrier, |
| 37 | ∃ p : M14BackwardPath G T 0 τmax x (Hmax.endpoint_map Z), M14IsMinimizing p := by |
| 38 | intro Z hZ |
| 39 | obtain ⟨p, _, hp, _⟩ := Hmax.minimizing_path Z hZ |
| 40 | exact ⟨p, hp⟩ |
| 41 | obtain ⟨Hτ, hsub, hmono⟩ := Amax.fixed_W_monotone Hmax.carrier Subset.rfl hne |
| 42 | Hmax.carrier_open Hmax.carrier_open.measurableSet hmin τ hτ hle |
| 43 | obtain ⟨Aτ⟩ := hanalytic T τ x E Hτ |
| 44 | refine ⟨Hτ, hsub, ?_⟩ |
| 45 | rw [← analyticCarrier_eq_stableVolume Hmax Amax, |
| 46 | ← analyticCarrier_eq_stableVolume Hτ Aτ] |
| 47 | have hcompare : M14ReducedVolumeOnAnalyticCarrier Amax Hmax.carrier ≤ |
| 48 | M14ReducedVolumeOnAnalyticCarrier Aτ Hmax.carrier := by |
| 49 | rw [analyticCarrier_eq_densityIntegral Hτ Aτ hsub Hmax.carrier_open.measurableSet] |
| 50 | exact hmono |
| 51 | exact hcompare.trans (analyticCarrier_mono Hτ Aτ hsub Subset.rfl |
| 52 | Hτ.carrier_open.measurableSet) |
| 53 | · obtain ⟨Hτ, hsub⟩ := exists_stableSet_backward hCoordinates hM04 hM12 E Hmax hτ hle |
| 54 | obtain ⟨Aτ⟩ := hanalytic T τ x E Hτ |
| 55 | refine ⟨Hτ, hsub, ?_⟩ |
| 56 | have hempty : Hmax.carrier = ∅ := not_nonempty_iff_eq_empty.mp hne |
| 57 | rw [← analyticCarrier_eq_stableVolume Hmax Amax, |
| 58 | ← analyticCarrier_eq_stableVolume Hτ Aτ] |
| 59 | have hzero : M14ReducedVolumeOnAnalyticCarrier Amax Hmax.carrier = 0 := by |
| 60 | simp [M14ReducedVolumeOnAnalyticCarrier, hempty] |
| 61 | rw [hzero] |
| 62 | exact analyticCarrier_nonneg Hτ Aτ Subset.rfl Hτ.carrier_open.measurableSet |
| 63 | |
| 64 | end PoincareMT.M14 |