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.StableSet.RegularImage.InitialBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialVector |
| 3 | |
| 4 | /-! |
| 5 | # Uniform phase bounds for the actual selected exponential paths |
| 6 | |
| 7 | Morgan--Tian Proposition 6.59 and Lemma 6.60, pp. 134-137. |
| 8 | The lower energy estimate applies directly to the selected exponential |
| 9 | square path, so its compact-phase bound retains the same E throughout. |
| 10 | No equality between independently chosen regularizations is required. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- A common cage, action ceiling and positive time bounds give one |
| 27 | uniform full square-velocity bound for every actual surviving E branch, |
| 28 | Proposition 6.59 and Lemma 6.60, pp. 134-137. -/ |
| 29 | theorem exponential_square_energy_uniform_bound |
| 30 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 31 | (E : M14ExponentialFamily G T x) |
| 32 | {F0 : Set G.Point} {delta H D CR Cgrad : ℝ} |
| 33 | (hdelta : 0 < delta) (hD : 0 ≤ D) (hCR : 0 ≤ CR) (hCgrad : 0 ≤ Cgrad) |
| 34 | (hRic : ∀ q ∈ F0, ∀ v w : G.Horizontal q, |horizontalRicci G.leafwise q v w| ≤ |
| 35 | CR * Real.sqrt (G.spacetime.horizontalMetric.inner q v v) * |
| 36 | Real.sqrt (G.spacetime.horizontalMetric.inner q w w)) |
| 37 | (hgrad : ∀ q ∈ F0, ∀ v : G.Horizontal q, |
| 38 | |M14HorizontalScalarDifferential G q v.val| ≤ |
| 39 | Cgrad * Real.sqrt (G.spacetime.horizontalMetric.inner q v v)) : |
| 40 | ∃ C : ℝ, 0 ≤ C ∧ ∀ Z : G.Horizontal x, ∀ s : ℝ, |
| 41 | ∀ hlower : delta ≤ s, s ≤ H → ∀ hs : (Z, s) ∈ E.domain, |
| 42 | E.action Z s ≤ D → (∀ r ∈ Icc 0 s, E.gamma Z r ∈ F0) → |
| 43 | ∀ r ∈ Icc 0 s, |
| 44 | G.spacetime.horizontalMetric.inner |
| 45 | ((E.square_path Z s hs (hdelta.trans_le hlower)).curve r) |
| 46 | ((E.square_path Z s hs (hdelta.trans_le hlower)).horizontal_velocity r) |
| 47 | ((E.square_path Z s hs (hdelta.trans_le hlower)).horizontal_velocity r) ≤ C := by |
| 48 | let A := 2 * H ^ 2 * Cgrad + 4 * H * CR |
| 49 | let B := Real.exp (A * H) * (2 * D + 4 * ((n : ℝ) * CR) * H ^ 3 + H) |
| 50 | let C := (Real.sqrt (B / delta + 4 * H ^ 2)) ^ 2 |
| 51 | refine ⟨C, sq_nonneg _, ?_⟩ |
| 52 | intro Z s hlower hupper hs haction hconf r hr |
| 53 | have hpos : 0 < s := hdelta.trans_le hlower |
| 54 | let R := E.square_path Z s hs hpos |
| 55 | have hinterval : M14SqrtParameterInterval 0 (s ^ 2) = Icc 0 s := by |
| 56 | rw [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hpos.le] |
| 57 | have hconfR (a : ℝ) (ha : a ∈ M14SqrtParameterInterval 0 (s ^ 2)) : R.curve a ∈ F0 := by |
| 58 | rw [M14.exponential_square_curve_eq E Z hs hpos ha] |
| 59 | exact hconf a (hinterval ▸ ha) |
| 60 | have henergy := M14.squareRoot_energy_uniform_bound hM12 R (E.square_extension Z s hs hpos) |
| 61 | (E.square_euler Z s hs hpos) hdelta |
| 62 | (by simpa only [Real.sqrt_sq hpos.le] using hlower) |
| 63 | (by simpa only [Real.sqrt_sq hpos.le] using hupper) hCR hCgrad hD |
| 64 | (by simpa only [← E.action_eq Z s hs hpos] using haction) |
| 65 | (fun a ha => hRic _ (hconfR a ha)) |
| 66 | (fun a ha => hgrad _ (hconfR a ha)) (hinterval.symm ▸ hr) |
| 67 | change G.spacetime.horizontalMetric.inner (R.curve r) |
| 68 | (R.horizontal_velocity r) (R.horizontal_velocity r) + 4 * r ^ 2 ≤ C at henergy |
| 69 | nlinarith [sq_nonneg r] |
| 70 | |
| 71 | end PoincareMT.Proofs.M46 |