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.Harnack.Assembly |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Continuation |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.VolumeToCurvature |
| 4 | |
| 5 | /-! |
| 6 | # Frozen Harnack assembly from local curvature continuation |
| 7 | |
| 8 | The component continuation consumer reduces the finite estimate to a local |
| 9 | right-hand curvature bound. This module packages that reduction into the |
| 10 | frozen `HarnackAncientTheory` interface. The final assembly constructs the |
| 11 | geometric producer using scalar-integral bounds and ancient zero volume. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | open Poincare.RicciFlow.Harnack |
| 24 | |
| 25 | /-- Assemble the frozen theory from a componentwise local right-hand |
| 26 | curvature-bound producer. -/ |
| 27 | theorem differentialHarnackAncientTheory_of_component_local_right_curvature_bounds |
| 28 | (hM04 : RicciFlowCurvatureTheory.{u}) |
| 29 | (hright : |
| 30 | ∀ (n : ℕ) (M : Type u) [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 32 | [IsManifold (𝓡 n) ∞ M] |
| 33 | [T2Space M] [T3Space M] [SecondCountableTopology M], |
| 34 | ∀ T₀ T₁ : ℝ, T₀ < T₁ → |
| 35 | ∀ F : RicciFlow n M (Ioo T₀ T₁), |
| 36 | (∀ t ∈ Ioo T₀ T₁, MetricComplete (F.metric t)) → |
| 37 | (∀ t ∈ Ioo T₀ T₁, ∀ x : M, |
| 38 | LeviCivitaData.NonnegativeCurvatureOperator (F.connection t) x) → |
| 39 | (∀ t ∈ Ioo T₀ T₁, ∃ K : ℝ, 0 ≤ K ∧ |
| 40 | ∀ x : M, LeviCivitaData.CurvatureOperatorBound |
| 41 | (F.connection t) K x) → |
| 42 | ∀ p : M, ∀ a b : ℝ, a < b → Icc a b ⊆ Ioo T₀ T₁ → |
| 43 | ∀ c ∈ Ico a b, ∃ d ∈ Ioc c b, ∃ K : ℝ, |
| 44 | ∀ t ∈ Icc c d, ∀ x ∈ connectedComponent p, |
| 45 | (F.connection t).curvatureTensorNorm x ≤ K) : |
| 46 | HarnackAncientTheory.{u} := by |
| 47 | apply Poincare.Geometry.RicciFlow.Harnack.assemble_harnack_from_finite_differential |
| 48 | hM04 |
| 49 | intro n M _ _ _ _ _ _ T₀ T₁ hT F hcomplete hcurv hbound |
| 50 | apply finite_differential_of_component_local_right_curvature_bounds |
| 51 | hM04 F hcomplete hcurv hbound |
| 52 | intro p a b hab hJ |
| 53 | exact hright n M T₀ T₁ hT F hcomplete hcurv hbound p a b hab hJ |
| 54 | |
| 55 | /-- The frozen Harnack theory follows after applying the bounded ancient |
| 56 | zero-volume theorem. The local curvature and volume hypotheses are constructed |
| 57 | from the original per-slice assumptions. -/ |
| 58 | theorem differentialHarnackAncientTheory_of_bounded_ancient_zero_volume |
| 59 | (hM04 : RicciFlowCurvatureTheory.{u}) : HarnackAncientTheory.{u} := by |
| 60 | apply differentialHarnackAncientTheory_of_component_local_right_curvature_bounds hM04 |
| 61 | intro n M _ _ _ _ _ _ T₀ T₁ _ F hcomplete hcurv hbound p a b hab hJ c hc |
| 62 | let : MeasurableSpace M := borel M |
| 63 | let : BorelSpace M := ⟨rfl⟩ |
| 64 | have hsub : Icc c b ⊆ Icc a b := Icc_subset_Icc_left hc.1 |
| 65 | obtain ⟨K, hK, hb⟩ := hbound c (hJ ⟨hc.1, hc.2.le⟩) |
| 66 | obtain ⟨d, hd, B, _, hB⟩ := |
| 67 | F.exists_right_curvatureTensorNorm_bound_on_component_of_bounded_ancient_zero_volume |
| 68 | hM04 p hc.2 (by simpa only [interior_Ioo] using hsub.trans hJ) |
| 69 | (fun t ht => hcomplete t (hJ (hsub ht))) |
| 70 | (fun t ht x _ => hcurv t (hJ (hsub ht)) x) |
| 71 | ⟨K, hK, fun x _ => hb x⟩ |
| 72 | exact ⟨d, hd, B, hB⟩ |
| 73 | |
| 74 | end PoincareMT |