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.Compat.GeneralizedEquation |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.CapEntry.BackwardEntryEnergy |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.CapEntry.EntryFrontier |
| 4 | |
| 5 | /-! |
| 6 | # Actual backward cap entry through the physical side |
| 7 | |
| 8 | Proposition 16.13 and Lemma 16.15, pp. 377-381. An admissible path |
| 9 | tracked on an open suffix has finite physical birth energy. Completing |
| 10 | that inverse curve recovers the actual inner endpoint and forces the |
| 11 | other endpoint outside the physical birth ball. The lateral action |
| 12 | bound therefore has no separately assumed inverse curve or frontier. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter MeasureTheory Function |
| 19 | open scoped Manifold ContDiff Topology intervalIntegral |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M12 |
| 24 | end PoincareMT.Proofs.M12 |
| 25 | open PoincareMT.EpochExtension.Spacetime |
| 26 | |
| 27 | namespace PoincareMT.Proofs.M46 |
| 28 | |
| 29 | open PoincareMT.Proofs.M12 |
| 30 | |
| 31 | /-- Actual lateral cap entry gives the physical energy barrier in the |
| 32 | original backward parameter. Source: Proposition 16.13, pp. 377-378. -/ |
| 33 | theorem actualCapSideEntry_action_lower |
| 34 | {F : GeneralizedRicciFlowData.{u}} (G : FlowBoxRicciGeometry F) |
| 35 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 36 | {C : GeneralizedSliceCarrier.{u}} [CompactSpace C.carrier] |
| 37 | {origin scale : ℝ} {J : SpacetimeInterval} |
| 38 | {U : TopologicalSpace.Opens C.carrier} |
| 39 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) |
| 40 | (hI : (cylinderPhysicalInterval origin scale e.scale_pos J).domain ⊆ F.interval) |
| 41 | (gBirth : RiemannianMetric 3 C.carrier) {mu A h : ℝ} |
| 42 | (hmu : 0 < mu) (hA : 0 < A) (hh : 0 < h) |
| 43 | (hbound : ∀ (s : ℝ) (hs : s ∈ J.domain) (z : U) |
| 44 | (v : TangentSpace (𝓡 3) z.val), |
| 45 | scale * (mu * gBirth.inner z.val v v) ≤ e.pullbackInner s hs z.val v v) |
| 46 | (center : C.carrier) (hsource : (U : Set C.carrier) = gBirth.ball center (A * h)) |
| 47 | {T tau a b : ℝ} {x y : G.toLGeometry.Point} |
| 48 | (p : M14BackwardPath G.toLGeometry T 0 tau x y) |
| 49 | (ha : 0 < a) (hab : a < b) (hbtau : b ≤ tau) (hduration : b - a ≤ h ^ 2) |
| 50 | (himage : MapsTo p.curve (Ioo a b) (range (rawCylinderMap G.realization e))) |
| 51 | (haclock : G.realization.spacetime.timeFunction (p.curve a) ∈ |
| 52 | (cylinderPhysicalInterval origin scale e.scale_pos J).domain) |
| 53 | (hout : p.curve a ∉ range (rawCylinderMap G.realization e)) |
| 54 | (z : (G.realization.timeIntervals.interval |
| 55 | (cylinderPhysicalInterval origin scale e.scale_pos J)).Point × U) |
| 56 | (hend : p.curve b = rawCylinderMap G.realization e z) |
| 57 | (hinner : z.2.val ∈ gBirth.ball center (A * h / 2)) : |
| 58 | mu * A ^ 2 / 4 ≤ ∫ t in a..b, pathPositiveDensity p t := by |
| 59 | obtain ⟨beta, heq, _, hregular, hclock, hpoint, hint, _⟩ := |
| 60 | exists_backwardCap_birthEnergy G hM12 e hI gBirth hmu hbound p ha hab hbtau himage |
| 61 | obtain ⟨xi, hxi, hsame, hxiRegular, _, _⟩ := |
| 62 | exists_continuous_birthCurve_extension gBirth hab hregular hint |
| 63 | have hpcont : ContinuousOn p.curve (Icc a b) := |
| 64 | p.curve_continuous.mono (Icc_subset_Icc ha.le hbtau) |
| 65 | have hcoordinate : EqOn (fun t => (beta t).2.val) xi (Ioo a b) := hsame.symm |
| 66 | have hfront := rawCylinder_entry_coordinate_mem_frontier G.realization e hab |
| 67 | hpcont hxi.continuousOn beta heq hcoordinate hclock haclock hout |
| 68 | have houter : xi a ∉ gBirth.ball center (A * h) := by |
| 69 | rw [← hsource] |
| 70 | rw [frontier, U.isOpen.interior_eq] at hfront |
| 71 | exact hfront.2 |
| 72 | have hinnerXi : xi b ∈ gBirth.ball center (A * h / 2) := by |
| 73 | rw [rawCylinder_completed_coordinate_eq G.realization e hab ⟨hab.le, le_rfl⟩ |
| 74 | hpcont hxi.continuousOn beta heq hcoordinate z hend] |
| 75 | exact hinner |
| 76 | apply capEntryAction_lower gBirth hab hmu hA hh hduration hxi.continuousOn |
| 77 | hxiRegular (pathPositiveDensity p) |
| 78 | (pathPositiveDensity_tail_integrable hM12 p ha hab.le hbtau) _ center hinnerXi houter |
| 79 | intro t ht |
| 80 | have hgerm : xi =ᶠ[𝓝 t] fun r => (beta r).2.val := by |
| 81 | filter_upwards [isOpen_Ioo.mem_nhds ht] with r hr |
| 82 | exact hsame hr |
| 83 | rw [referenceSpeedSq_congr_of_eventuallyEq gBirth hgerm] |
| 84 | exact hpoint t ht |
| 85 | |
| 86 | end PoincareMT.Proofs.M46 |