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.CylinderLocalInverse |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderMetric |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Ordinary.Capture.OrdinaryCaptureAction |
| 6 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Path.ReferenceEnergy |
| 7 | |
| 8 | /-! |
| 9 | # Actual kinetic energy in physical inverse-cylinder coordinates |
| 10 | |
| 11 | Proposition 16.13, pp. 377-378. The actual cylinder differential sends |
| 12 | the spatial derivative to the horizontal projection of the full path |
| 13 | derivative. The normalized pullback metric is divided by its same |
| 14 | positive scale before comparison with the physical birth metric. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | -- The physical source and actual horizontal tangent fibers are retained. |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter Function |
| 22 | open scoped Manifold ContDiff Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.Proofs.M12 |
| 27 | end PoincareMT.Proofs.M12 |
| 28 | open PoincareMT.EpochExtension.Spacetime |
| 29 | namespace PoincareMT.M08 |
| 30 | export PoincareMT.LGeometry (referenceSpeedSq) |
| 31 | end PoincareMT.M08 |
| 32 | |
| 33 | namespace PoincareMT.Proofs.M46 |
| 34 | |
| 35 | open PoincareMT.Proofs.M12 |
| 36 | |
| 37 | variable {F : GeneralizedRicciFlowData.{u}} (G : FlowBoxRicciGeometry F) |
| 38 | {C : GeneralizedSliceCarrier.{u}} {a q : ℝ} {J : SpacetimeInterval} |
| 39 | {U : TopologicalSpace.Opens C.carrier} |
| 40 | (e : GeneralizedFlowCylinder F C a q J.domain U) |
| 41 | (hI : (cylinderPhysicalInterval a q e.scale_pos J).domain ⊆ F.interval) |
| 42 | |
| 43 | include hI in |
| 44 | /-- The actual horizontal kinetic energy dominates the birth-coordinate |
| 45 | kinetic energy when the physical cylinder metrics have that lower bound. |
| 46 | Source: Proposition 16.13, pp. 377-378. -/ |
| 47 | theorem rawCylinder_birthEnergy_lower |
| 48 | (gBirth : RiemannianMetric 3 C.carrier) (mu : ℝ) |
| 49 | (hbound : ∀ (s : ℝ) (hs : s ∈ J.domain) (x : U) |
| 50 | (v : TangentSpace (𝓡 3) x.val), |
| 51 | q * (mu * gBirth.inner x.val v v) ≤ e.pullbackInner s hs x.val v v) |
| 52 | (theta : ℝ → (G.realization.timeIntervals.interval |
| 53 | (cylinderPhysicalInterval a q e.scale_pos J)).Point) |
| 54 | (z : ℝ → U) {r : ℝ} |
| 55 | (htheta : MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡∂ 1) theta r) |
| 56 | (hz : MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡 3) z r) : |
| 57 | mu * M08.referenceSpeedSq gBirth (fun t => (z t).val) r ≤ |
| 58 | realizedHorizontalForm G.realization (rawCylinderMap G.realization e (theta r, z r)) |
| 59 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) |
| 60 | (fun t => rawCylinderMap G.realization e (theta t, z t)) r 1) |
| 61 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) |
| 62 | (fun t => rawCylinderMap G.realization e (theta t, z t)) r 1) := by |
| 63 | let M := rawCylinderMetric G.realization e hI |
| 64 | let s := cylinderClockHomeomorph a q e.scale_pos J (theta r) |
| 65 | have hclock : a + s.val / q = (theta r).val := |
| 66 | parabolicTimeInv_parabolicTime q e.scale_pos a (theta r).val |
| 67 | have hvelocity := M14.ordinaryCapture_cylinderVelocity (G := G.toLGeometry) |
| 68 | (e := rawCylinderTransport G.realization e hI) (g := M) theta z htheta hz |
| 69 | change M14.projectedCurveVelocity G.toLGeometry |
| 70 | (fun t => rawCylinderMap G.realization e (theta t, z t)) r = |
| 71 | M.spatialTangentEquiv (theta r) (z r) (curveVelocity z r) at hvelocity |
| 72 | change mu * M08.referenceSpeedSq gBirth (fun t => (z t).val) r ≤ |
| 73 | G.toLGeometry.spacetime.horizontalMetric.inner |
| 74 | (rawCylinderMap G.realization e (theta r, z r)) |
| 75 | (M14.projectedCurveVelocity G.toLGeometry |
| 76 | (fun t => rawCylinderMap G.realization e (theta t, z t)) r) |
| 77 | (M14.projectedCurveVelocity G.toLGeometry |
| 78 | (fun t => rawCylinderMap G.realization e (theta t, z t)) r) |
| 79 | rw [hvelocity] |
| 80 | change mu * M08.referenceSpeedSq gBirth (fun t => (z t).val) r ≤ |
| 81 | G.realization.spacetime.horizontalMetric.inner |
| 82 | ((rawCylinderTransport G.realization e hI).toSpacetime (theta r, z r)) |
| 83 | (M.spatialTangentEquiv (theta r) (z r) (curveVelocity z r)) |
| 84 | (M.spatialTangentEquiv (theta r) (z r) (curveVelocity z r)) |
| 85 | rw [← M.metric_eq] |
| 86 | have hm := rawCylinderMetric_eq G.realization e hI M s |
| 87 | (G.sliceIdentification (a + s.val / q)) (z r) (curveVelocity z r) (curveVelocity z r) |
| 88 | rw [hclock] at hm |
| 89 | rw [hm] |
| 90 | have hv : curveVelocity (fun t => (z t).val) r = |
| 91 | mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) (z r) (curveVelocity z r) := |
| 92 | mfderiv_comp_apply r |
| 93 | ((contMDiff_subtype_val (n := ∞) (z r)).mdifferentiableAt (by simp)) hz 1 |
| 94 | unfold M08.referenceSpeedSq |
| 95 | rw [hv] |
| 96 | exact (le_div_iff₀ e.scale_pos).mpr (by |
| 97 | simpa only [mul_comm] using hbound s.val s.property (z r) |
| 98 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) (z r) (curveVelocity z r))) |
| 99 | |
| 100 | /-- Equality of actual path germs preserves the kinetic readout. |
| 101 | Source: Definition 6.1 and Proposition 16.13, pp. 105 and 377-378. -/ |
| 102 | theorem realizedHorizontalEnergy_congr |
| 103 | {gamma eta : ℝ → G.realization.spacetime.Point} {r : ℝ} |
| 104 | (h : gamma =ᶠ[𝓝 r] eta) : |
| 105 | realizedHorizontalForm G.realization (gamma r) |
| 106 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) gamma r 1) |
| 107 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) gamma r 1) = |
| 108 | realizedHorizontalForm G.realization (eta r) |
| 109 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) eta r 1) |
| 110 | (mfderiv 𝓘(ℝ, ℝ) (spacetimeModel 3) eta r 1) := by |
| 111 | rw [h.mfderiv_eq, h.eq_of_nhds] |
| 112 | |
| 113 | end PoincareMT.Proofs.M46 |