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.SourceNames.LGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Compat.GeneralizedEquation |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.CapEntry.InverseEnergy |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.CapEntry.SideAction |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Avoidance.ActualPositiveAction |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Density.InteriorDensity |
| 7 | |
| 8 | /-! |
| 9 | # Finite physical cap-entry energy for admissible backward paths |
| 10 | |
| 11 | Proposition 16.13 and Lemma 16.15, pp. 377-381. The supplied path |
| 12 | velocity is its actual horizontal projection. Positive action therefore |
| 13 | dominates the actual inverse-cylinder birth energy. This finite-energy |
| 14 | estimate supplies the checked continuous-completion theorem. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set MeasureTheory Function |
| 21 | open scoped Manifold ContDiff Topology intervalIntegral |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.Proofs.M12 |
| 26 | end PoincareMT.Proofs.M12 |
| 27 | open PoincareMT.EpochExtension.Spacetime |
| 28 | namespace PoincareMT.M08 |
| 29 | export PoincareMT.LGeometry (referenceSpeedSq) |
| 30 | end PoincareMT.M08 |
| 31 | |
| 32 | namespace PoincareMT.Proofs.M46 |
| 33 | |
| 34 | open PoincareMT.Proofs.M12 |
| 35 | |
| 36 | variable {F : GeneralizedRicciFlowData.{u}} (G : FlowBoxRicciGeometry F) |
| 37 | |
| 38 | /-- The realized horizontal kinetic readout is the kinetic term of |
| 39 | the literal admissible path. Source: Definition 6.1, p. 105. -/ |
| 40 | theorem backwardPath_realizedKinetic_eq {T a b : ℝ} {x y : G.toLGeometry.Point} |
| 41 | (p : M14BackwardPath G.toLGeometry T a b x y) {s : ℝ} (hs : s ∈ Ioo a b) : |
| 42 | realizedHorizontalForm G.realization (p.curve s) |
| 43 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) p.curve s 1) |
| 44 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) p.curve s 1) = |
| 45 | G.toLGeometry.spacetime.horizontalMetric.inner (p.curve s) |
| 46 | (p.horizontal_velocity s) (p.horizontal_velocity s) := by |
| 47 | change G.toLGeometry.spacetime.horizontalMetric.inner (p.curve s) |
| 48 | (M14.projectedCurveVelocity G.toLGeometry p.curve s) |
| 49 | (M14.projectedCurveVelocity G.toLGeometry p.curve s) = _ |
| 50 | rw [← M14.backwardPath_velocity_eq_projected p hs] |
| 51 | |
| 52 | /-- Actual positive action on a tracked cap suffix controls finite |
| 53 | physical birth energy. Source: Proposition 16.13 and equation (16.2), |
| 54 | pp. 377-378 and 381. -/ |
| 55 | theorem exists_backwardCap_birthEnergy |
| 56 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 57 | {C : GeneralizedSliceCarrier.{u}} {origin scale : ℝ} {J : SpacetimeInterval} |
| 58 | {U : TopologicalSpace.Opens C.carrier} |
| 59 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) |
| 60 | (hI : (cylinderPhysicalInterval origin scale e.scale_pos J).domain ⊆ F.interval) |
| 61 | (gBirth : RiemannianMetric 3 C.carrier) {mu : ℝ} (hmu : 0 < mu) |
| 62 | (hbound : ∀ (s : ℝ) (hs : s ∈ J.domain) (z : U) |
| 63 | (v : TangentSpace (𝓡 3) z.val), |
| 64 | scale * (mu * gBirth.inner z.val v v) ≤ e.pullbackInner s hs z.val v v) |
| 65 | {T tau a b : ℝ} {x y : G.toLGeometry.Point} |
| 66 | (p : M14BackwardPath G.toLGeometry T 0 tau x y) |
| 67 | (ha : 0 < a) (hab : a < b) (hbtau : b ≤ tau) |
| 68 | (himage : MapsTo p.curve (Ioo a b) (range (rawCylinderMap G.realization e))) : |
| 69 | ∃ beta : ℝ → (G.realization.timeIntervals.interval |
| 70 | (cylinderPhysicalInterval origin scale e.scale_pos J)).Point × U, |
| 71 | EqOn (rawCylinderMap G.realization e ∘ beta) p.curve (Ioo a b) ∧ |
| 72 | ContinuousOn beta (Ioo a b) ∧ |
| 73 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 (fun t => (beta t).2.val) (Ioo a b) ∧ |
| 74 | (∀ t ∈ Ioo a b, (beta t).1.val = G.realization.spacetime.timeFunction (p.curve t)) ∧ |
| 75 | (∀ t ∈ Ioo a b, |
| 76 | mu * M08.referenceSpeedSq gBirth (fun r => (beta r).2.val) t ≤ |
| 77 | pathPositiveDensity p t) ∧ |
| 78 | IntervalIntegrable (M08.referenceSpeedSq gBirth (fun t => (beta t).2.val)) volume a b ∧ |
| 79 | mu * (∫ t in a..b, M08.referenceSpeedSq gBirth (fun r => (beta r).2.val) t) ≤ |
| 80 | ∫ t in a..b, pathPositiveDensity p t := by |
| 81 | have hsub : Ioo a b ⊆ Ioo 0 tau := Ioo_subset_Ioo ha.le hbtau |
| 82 | obtain ⟨beta, heq, hcont, hregular, hclock, henergy⟩ := |
| 83 | exists_rawCylinder_energy_lift G e hI gBirth mu hbound (nonempty_Ioo.mpr hab) |
| 84 | isOpen_Ioo (p.curve_regular.mono hsub) himage |
| 85 | have hpositive := pathPositiveDensity_tail_integrable hM12 p ha hab.le hbtau |
| 86 | have hpoint : ∀ t ∈ Ioo a b, |
| 87 | mu * M08.referenceSpeedSq gBirth (fun r => (beta r).2.val) t ≤ |
| 88 | pathPositiveDensity p t := by |
| 89 | intro t ht |
| 90 | apply ((henergy t ht).trans_eq (backwardPath_realizedKinetic_eq G p (hsub ht))).trans |
| 91 | exact le_add_of_nonneg_left (le_max_right _ _) |
| 92 | obtain ⟨hint, hboundEnergy⟩ := birthEnergy_integrable_of_action_bound gBirth hab.le hmu |
| 93 | hregular (pathPositiveDensity p) hpositive hpoint |
| 94 | exact ⟨beta, heq, hcont, hregular, hclock, hpoint, hint, hboundEnergy⟩ |
| 95 | |
| 96 | end PoincareMT.Proofs.M46 |