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.Regularity.PositiveStart.PositiveStartHessian |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.AdaptedFields.AdaptedIndexIntegral |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Regularity.Hessian.HorizontalHessianTrace |
| 4 | |
| 5 | /-! |
| 6 | # The actual shifted positive-start Laplacian bound |
| 7 | |
| 8 | The normalized unit-adapted frame traces the actual endpoint Hessian. |
| 9 | The integrated index trace retains the exact shifted Harnack weight. |
| 10 | Morgan-Tian Proposition 6.43, pp. 127-129, and Theorem 6.50, p. 131. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle BigOperators intervalIntegral |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T a b : ℝ} {x y : G.Point} {p : M14BackwardPath G T a b x y} |
| 25 | |
| 26 | /-- A smooth actual minimizing endpoint has the frozen shifted |
| 27 | Laplacian upper bound, retaining absolute-time normalization and the |
| 28 | square-time interval length, Theorem 6.50 and its positive-start variant, |
| 29 | p. 131. -/ |
| 30 | theorem positiveStart_laplacian_bound |
| 31 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 32 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 33 | (hp : M14IsMinimizing p) (R : M14SquareRootPath G p) |
| 34 | (U : Set G.Point) (hU : IsOpen U) (hy : y ∈ U) |
| 35 | (hf : ContMDiffOn (spacetimeModel n) (𝓘(ℝ, ℝ)) ∞ |
| 36 | (M14ReducedLengthAt G T a x) U) |
| 37 | (hq : G.spacetime.timeFunction (R.curve (Real.sqrt b)) = T - b) : |
| 38 | M14ReducedLengthLaplacian (τ₁ := a) G x ⟨R.curve (Real.sqrt b), hq⟩ ≤ |
| 39 | (n : ℝ) / (2 * Real.sqrt b * (Real.sqrt b - Real.sqrt a)) - |
| 40 | horizontalScalarCurvature G.leafwise (R.curve (Real.sqrt b)) - |
| 41 | (∫ t in a..b, Real.sqrt t * (Real.sqrt t - Real.sqrt a) ^ 2 * |
| 42 | M14GeneralizedHarnackDensity G p |
| 43 | (fun r => M14BackwardTimeDerivative G (horizontalScalarCurvature G.leafwise) |
| 44 | (p.curve r)) t) / |
| 45 | (2 * Real.sqrt b * (Real.sqrt b - Real.sqrt a) ^ 2) := by |
| 46 | classical |
| 47 | let q : (G.slices (T - b)).Point := ⟨R.curve (Real.sqrt b), hq⟩ |
| 48 | have hab := Real.sqrt_lt_sqrt p.tau_nonneg p.tau_lt |
| 49 | have hb : 0 < b := p.tau_nonneg.trans_lt p.tau_lt |
| 50 | have hs : Real.sqrt b ∈ M14SqrtParameterInterval a b := ⟨hab.le, le_rfl⟩ |
| 51 | have hpoint : R.curve (Real.sqrt b) = y := by |
| 52 | rw [R.agrees _ hs, Real.sq_sqrt hb.le, p.curve_end] |
| 53 | have hRU : R.curve (Real.sqrt b) ∈ U := by rwa [hpoint] |
| 54 | have hsmooth : ContMDiffAt (𝓡 n) (𝓘(ℝ, ℝ)) ∞ |
| 55 | (fun r : (G.slices (T - b)).Point => M14ReducedLengthAt G T a x r.val) q := by |
| 56 | have hi : ContMDiff (𝓡 n) (spacetimeModel n) ∞ |
| 57 | (fun r : (G.slices (T - b)).Point => r.val) := (G.slices (T - b)).inclusion_smooth |
| 58 | exact ((hf _ hRU).contMDiffAt (hU.mem_nhds hRU)).comp q hi.contMDiffAt |
| 59 | obtain ⟨P, hP, horth, hbas⟩ := exists_horizontalUnitAdaptedFrame R hM04 hM12 |
| 60 | let EP := fun i => Classical.choose (hP i).equation |
| 61 | obtain ⟨B, hB⟩ := hbas (Real.sqrt b) hs |
| 62 | let Y := fun i => horizontalAdaptedField (Real.sqrt a) (Real.sqrt b) (P i) |
| 63 | have hYleft (i : Fin n) : Y i (Real.sqrt a) = 0 := |
| 64 | (horizontalAdaptedField_endpoints hab).1 |
| 65 | have hYright (i : Fin n) : Y i (Real.sqrt b) = B i := |
| 66 | (horizontalAdaptedField_endpoints hab).2.trans (hB i).symm |
| 67 | have htrace := reducedLengthLaplacian_eq_horizontal_hessian_trace x q hsmooth B (by |
| 68 | intro i j |
| 69 | simpa only [hB i, hB j] using horth (Real.sqrt b) hs i j) |
| 70 | have hbound (i : Fin n) := positiveStart_hessian_le_pullback_index hCoordinates hM04 hM12 |
| 71 | hp U hU hy hf hq (horizontalAdaptedExtension (EP i)) (hYleft i) |
| 72 | obtain ⟨E⟩ := exists_squareRoot_velocity_extension R |
| 73 | have hK := squareRoot_weightedHarnack_intervalIntegrable hM12 R E (by |
| 74 | intro r hr W |
| 75 | exact squareRootEulerResidual_eq_zero_of_minimizing hCoordinates hM12 hp E |
| 76 | (Ioo_subset_Icc_self hr) W) |
| 77 | have hsum := integral_adaptedPullbackIndex R hM04 hM12 P hP EP horth hK |
| 78 | rw [htrace] |
| 79 | calc |
| 80 | _ = ∑ i, M14ReducedLengthHessianPairing G q (M14ReducedLengthAt G T a x) |
| 81 | (Y i (Real.sqrt b)) (Y i (Real.sqrt b)) := by simp only [hYright] |
| 82 | _ ≤ ∑ i, (∫ r in Real.sqrt a..Real.sqrt b, pullbackIndexPairDensity R |
| 83 | (horizontalAdaptedExtension (EP i)) (horizontalAdaptedExtension (EP i)) r) / |
| 84 | (2 * Real.sqrt b) := Finset.sum_le_sum (fun i _ => hbound i) |
| 85 | _ = (∑ i, ∫ r in Real.sqrt a..Real.sqrt b, pullbackIndexPairDensity R |
| 86 | (horizontalAdaptedExtension (EP i)) (horizontalAdaptedExtension (EP i)) r) / |
| 87 | (2 * Real.sqrt b) := (Finset.sum_div _ _ _).symm |
| 88 | _ = _ := by |
| 89 | rw [hsum] |
| 90 | field_simp [(Real.sqrt_pos.mpr hb).ne', sub_ne_zero.mpr hab.ne'] |
| 91 | |
| 92 | end PoincareMT.M14 |