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.Surgery.Induction.Noncollapse.Attainment.Minimum.CappedSliceValue |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialReducedLength |
| 3 | |
| 4 | /-! |
| 5 | # The initial bound for the capped slice minimum |
| 6 | |
| 7 | Morgan--Tian Proposition 16.4, pp. 389-391, and Proposition 6.78, |
| 8 | pp. 142-144. The zero initial vector survives for a short positive |
| 9 | prefix and its actual reduced length tends to zero. No value of the |
| 10 | chosen exponential action at time zero is assumed. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | variable {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport 3 X time I} |
| 24 | {T start : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- Every positive included interval contains a short slice where the |
| 27 | normalized capped minimum is at most the dimension-three threshold. -/ |
| 28 | theorem exists_initial_cappedSliceAction_bound |
| 29 | (hM04 : RicciFlowCurvatureTheory.{0}) |
| 30 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 31 | (LG : GeneralizedLGeometryConclusion G) |
| 32 | (E : M14ExponentialFamily G T x) (C : ActionConfinement G T start x) |
| 33 | (hstrip : Icc start T ⊆ I.domain) |
| 34 | {c : ℝ} (hcpos : 0 < c) (hc : c ^ 2 ≤ T - start) : |
| 35 | ∃ a : ℝ, 0 < a ∧ a ≤ c ∧ |
| 36 | cappedSliceAction G T x C.barrier a / (2 * a) ≤ 3 / 2 := by |
| 37 | obtain ⟨U, hU, hUzero, hsub⟩ := E.domain_relative_open (0, 0) (E.domain_zero 0) |
| 38 | have hUnear : ∀ᶠ s in 𝓝[>] (0 : ℝ), ((0 : G.Horizontal x), s) ∈ U := |
| 39 | mem_nhdsWithin_of_mem_nhds |
| 40 | ((continuous_const.prodMk continuous_id).continuousAt.preimage_mem_nhds |
| 41 | (hU.mem_nhds hUzero)) |
| 42 | have hsurv : ∀ᶠ s in 𝓝[>] (0 : ℝ), s ∈ Ioc 0 c ∧ ((0 : G.Horizontal x), s) ∈ E.domain := by |
| 43 | filter_upwards [hUnear, Ioc_mem_nhdsGT hcpos] with s hsU hs |
| 44 | have hsq : s ^ 2 ≤ T - start := ((sq_le_sq₀ hs.1.le hcpos.le).mpr hs.2).trans hc |
| 45 | exact ⟨hs, hsub ⟨hsU, hs.1.le, |
| 46 | hstrip ⟨by linarith, sub_le_self _ (sq_nonneg s)⟩⟩⟩ |
| 47 | obtain ⟨b, ⟨hb, hbc⟩, hZb⟩ := hsurv.exists |
| 48 | have hlim := M14.tendsto_exponential_reducedLength_zero hM04 hM12 E hZb hb |
| 49 | simp only [map_zero] at hlim |
| 50 | have hsmall : ∀ᶠ s in 𝓝[>] (0 : ℝ), E.reduced_length 0 s < 3 / 2 := |
| 51 | hlim.eventually (Iio_mem_nhds (by norm_num)) |
| 52 | have hinterval : ∀ᶠ s in 𝓝[>] (0 : ℝ), s ∈ Ioc 0 b := Ioc_mem_nhdsGT hb |
| 53 | obtain ⟨a, ha, hared⟩ := (hinterval.and hsmall).exists |
| 54 | have hac := ha.2.trans hbc |
| 55 | have hZa : ((0 : G.Horizontal x), a) ∈ E.domain := |
| 56 | (E.maximal_lifetime 0).out (E.domain_zero 0) hZb ⟨ha.1.le, ha.2⟩ |
| 57 | have hsq : a ^ 2 ≤ T - start := ((sq_le_sq₀ ha.1.le hcpos.le).mpr hac).trans hc |
| 58 | have hm := (cappedSliceAction_alternative hM04 hM12 LG E C ha.1 hsq).2.1 |
| 59 | (E.gamma 0 a) (E.path 0 a hZa ha.1) |
| 60 | rw [← E.action_eq 0 a hZa ha.1] at hm |
| 61 | have hdiv := div_le_div_of_nonneg_right hm (by nlinarith [ha.1] : (0 : ℝ) ≤ 2 * a) |
| 62 | rw [← E.reduced_length_eq 0 a hZa ha.1] at hdiv |
| 63 | exact ⟨a, ha.1, hac, hdiv.trans hared.le⟩ |
| 64 | |
| 65 | end PoincareMT.Proofs.M46 |