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.Paths.SquareRoot.Families.SquareFamilyAction |
| 2 | |
| 3 | /-! |
| 4 | # Smooth actions on arbitrary retained subintervals |
| 5 | |
| 6 | Morgan-Tian equation (6.2) and Proposition 6.30, pp. 106, 118-119. |
| 7 | The actual prefix primitives give smooth actions between any two |
| 8 | fixed points of the retained closed time interval. This includes |
| 9 | the continuation action in the broken-cost argument. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff intervalIntegral |
| 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 | {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] |
| 24 | |
| 25 | /-- Every fixed subinterval action of an actual smooth closed-time |
| 26 | family is smooth in its open parameters. Both endpoint orders and |
| 27 | equal endpoints are allowed, equation (6.2), p. 106. -/ |
| 28 | theorem squareFamilyAction_interval_contDiffOn |
| 29 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) {a b l r : ℝ} (hab : a < b) |
| 30 | {U : Set P} (hU : IsOpen U) {γ : ℝ × P → G.Point} |
| 31 | (hγ : ContMDiffOn ((𝓘(ℝ, ℝ)).prod (𝓘(ℝ, P))) (spacetimeModel n) ∞ γ (Icc a b ×ˢ U)) |
| 32 | (hl : l ∈ Icc a b) (hr : r ∈ Icc a b) : |
| 33 | ContDiffOn ℝ ∞ (squareFamilyAction G γ (Icc a b) l r) U := by |
| 34 | have h := (squareFamilyAction_contDiffOn hM12 hab hU hγ hr).sub |
| 35 | (squareFamilyAction_contDiffOn hM12 hab hU hγ hl) |
| 36 | apply h.congr |
| 37 | intro p hp |
| 38 | have hd : ContinuousOn (fun s => squareCurveDensity G (fun t => γ (t, p)) (Icc a b) s) |
| 39 | (Icc a b) := |
| 40 | (squareFamilyDensity_contDiffOn hM12 (uniqueDiffOn_Icc hab) hU hγ).continuousOn.comp |
| 41 | (continuous_id.prodMk continuous_const).continuousOn (fun _ hs => ⟨hs, hp⟩) |
| 42 | have hIr := (hd.mono (show Icc a r ⊆ Icc a b from |
| 43 | fun _ hs => ⟨hs.1, hs.2.trans hr.2⟩)).intervalIntegrable_of_Icc |
| 44 | (μ := MeasureTheory.volume) hr.1 |
| 45 | have hIl := (hd.mono (show Icc a l ⊆ Icc a b from |
| 46 | fun _ hs => ⟨hs.1, hs.2.trans hl.2⟩)).intervalIntegrable_of_Icc |
| 47 | (μ := MeasureTheory.volume) hl.1 |
| 48 | exact (intervalIntegral.integral_interval_sub_left hIr hIl).symm |
| 49 | |
| 50 | end PoincareMT.M14 |