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.AnalyticData |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.ZeroTimeIntegral |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.TerminalLowerBound |
| 4 | |
| 5 | /-! |
| 6 | # Source coverage from the compact small-time theorem |
| 7 | |
| 8 | The exact stable predicate makes every full stable carrier at a fixed |
| 9 | time identical as a set. Compact coverage can therefore be transported |
| 10 | to one selected family. Dominated convergence gives its zero-time |
| 11 | limit, and the previously proved image and terminal bounds complete |
| 12 | the source-level clauses. Morgan-Tian Theorem 6.80, pp. 144-146, |
| 13 | and Theorem 8.1, pp. 169-171. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | |
| 28 | /-- Compact small-time coverage supplies the full frozen source |
| 29 | coverage record for the actual analytic densities, Theorem 6.80, |
| 30 | pp. 144-146, and Theorem 8.1, pp. 169-171. -/ |
| 31 | theorem reducedVolumeSourceCoverageData_of_smallTimeCoverage |
| 32 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 33 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 34 | (hsmall : M14SmallTimeCoverageStatement G) : |
| 35 | Nonempty (M14ReducedVolumeSourceCoverageData G) := by |
| 36 | classical |
| 37 | refine ⟨{ |
| 38 | zero_time_limit := ?_ |
| 39 | disjoint_image_additivity := ?_ |
| 40 | terminal_W_lower_bound := ?_ }⟩ |
| 41 | · intro T x E B δ hδ hwindow hcompact _ hexhaust K hK hcurv |
| 42 | obtain ⟨τ₀, hτ₀, hτ₀δ, hbase⟩ := hsmall T x E (B 0) (K 0) δ hδ hwindow |
| 43 | (hcompact 0) (hK 0).1 (hK 0).2.1 (hK 0).2.2 hcurv |
| 44 | let H := fun τ hτ hτlt => Classical.choose (hbase τ hτ hτlt) |
| 45 | obtain ⟨b, hb⟩ := exists_orthonormal_horizontalBasis G x |
| 46 | let A := fun τ hτ hτlt => |
| 47 | reducedVolumeAnalyticDataWithBasis hCoordinates hM04 hM12 E (H τ hτ hτlt) b hb |
| 48 | have hcoverage (k : ℕ) : ∃ η : ℝ, 0 < η ∧ η ≤ τ₀ ∧ |
| 49 | ∀ (τ : ℝ) (hτ : 0 < τ) (hτlt : τ < τ₀), τ < η → |
| 50 | B k ⊆ (H τ hτ hτlt).carrier ∧ |
| 51 | ∀ Z ∈ B k, ∀ s ∈ Icc 0 τ, E.gamma Z (Real.sqrt s) ∈ K k := by |
| 52 | obtain ⟨η, hη, _, hk⟩ := hsmall T x E (B k) (K k) δ hδ hwindow |
| 53 | (hcompact k) (hK k).1 (hK k).2.1 (hK k).2.2 hcurv |
| 54 | refine ⟨min η τ₀, lt_min hη hτ₀, min_le_right _ _, ?_⟩ |
| 55 | intro τ hτ hτlt hτη |
| 56 | obtain ⟨Hk, hBk, hcapture⟩ := hk τ hτ (hτη.trans_le (min_le_left _ _)) |
| 57 | refine ⟨?_, hcapture⟩ |
| 58 | intro Z hZ |
| 59 | exact ((H τ hτ hτlt).carrier_exact Z).mpr ((Hk.carrier_exact Z).mp (hBk hZ)) |
| 60 | have hcover (Z : G.Horizontal x) : ∀ᶠ τ in 𝓝[>] (0 : ℝ), |
| 61 | ∃ hτ : 0 < τ, ∃ hτlt : τ < τ₀, Z ∈ (H τ hτ hτlt).carrier := by |
| 62 | obtain ⟨k, hZ⟩ := hexhaust Z |
| 63 | obtain ⟨η, hη, hητ₀, hk⟩ := hcoverage k |
| 64 | filter_upwards [self_mem_nhdsWithin, |
| 65 | mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds hη)] with τ hτ hτη |
| 66 | have hτlt : τ < τ₀ := hτη.trans_le hητ₀ |
| 67 | exact ⟨hτ, hτlt, (hk τ hτ hτlt hτη).1 hZ⟩ |
| 68 | refine ⟨τ₀, hτ₀, hτ₀δ, H, A, ?_, hcoverage, ?_⟩ |
| 69 | · intro τ hτ hτlt |
| 70 | exact analyticCarrier_eq_stableVolume (H τ hτ hτlt) (A τ hτ hτlt) |
| 71 | · have hlim := tendsto_reducedVolume_of_eventual_stability hCoordinates hM04 hM12 E b hb |
| 72 | hτ₀ H hcover |
| 73 | apply hlim.congr' |
| 74 | apply Eventually.of_forall |
| 75 | intro τ |
| 76 | dsimp only |
| 77 | split_ifs with hτ hτlt |
| 78 | · exact (analyticCarrier_eq_stableVolume (H τ hτ hτlt) (A τ hτ hτlt)).symm |
| 79 | · rfl |
| 80 | · rfl |
| 81 | · intro T τ x E H A |
| 82 | exact disjointImageAdditivity H A |
| 83 | · intro T τmax x E τ₀ _ _ H₀ A₀ W hopen hne hm hW l₀ V _ _ hl hV |
| 84 | exact terminal_lower_bound_and_earlier H₀ A₀ |
| 85 | (fun _ Hσ => reducedVolumeAnalyticData hCoordinates hM04 hM12 E Hσ) |
| 86 | hW hne hopen hm hl hV |
| 87 | |
| 88 | end PoincareMT.M14 |