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.StandardCap.Persistence.SourceNames.Normalization |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Evolution.FamilyJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cylinder.CylinderRicciFlow |
| 4 | |
| 5 | /-! |
| 6 | # Reading the family comparison in the actual cylinder |
| 7 | |
| 8 | The normalized ordinary flow on the physical chart target gives the |
| 9 | literal cylinder pullback in both tangent slots. Morgan--Tian, |
| 10 | Corollary 16.9 and Proposition 16.5, pp. 373-375; M44 derivation 81. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter TopologicalSpace |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | local notation "E" => StandardCapSpace |
| 24 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 25 | |
| 26 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 27 | normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | variable {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 30 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 31 | {e : SurgeryFlowCylinder F C origin scale I U} |
| 32 | {f : PartialDiffeomorph (𝓡 3) (𝓡 3) E C.carrier ∞} |
| 33 | |
| 34 | /-- The physical target flow's fixed-chart coefficients are exactly |
| 35 | the frozen normalized cylinder tensor throughout the open birth chart. |
| 36 | Source: Corollary 16.9, p. 373; derivation 81. -/ |
| 37 | theorem CylinderRicciFlow.pullback_eq_cylinder |
| 38 | (G : CylinderRicciFlow e f) (hmap : f.target ⊆ U) |
| 39 | (p : (⟨f.target, f.open_target⟩ : Opens C.carrier)) |
| 40 | (s : ℝ) (hs : s ∈ I) {x : E} (hx : x ∈ f.source) (v w : E) : |
| 41 | (G.flow.metric s).pullbackCoefficients (targetChart f p) x v w = |
| 42 | e.pullbackInner s hs (f x) (mfderiv (𝓡 3) (𝓡 3) f x v) |
| 43 | (mfderiv (𝓡 3) (𝓡 3) f x w) := by |
| 44 | let g := m01RescaledMetric (F.metric (origin + s / scale)) scale e.scale_pos |
| 45 | have heq : e.forward s hs ∘ f =ᶠ[nhds x] |
| 46 | cylinderTargetTransport e f s hs ∘ targetChart f p := by |
| 47 | filter_upwards [f.open_source.mem_nhds hx] with y hy |
| 48 | change e.forward s hs (f y) = e.forward s hs (targetChart f p y).1 |
| 49 | rw [targetChart_val f p hy] |
| 50 | have hcoeff := pullbackCoefficients_eq_of_metric_germ (G.flow.metric s) g |
| 51 | ((cylinderTargetTransport_smooth e f hmap s hs).mdifferentiable (by simp) _) |
| 52 | (((contMDiffOn_targetChart f p).contMDiffAt |
| 53 | (f.open_source.mem_nhds hx)).mdifferentiableAt (by simp)) heq |
| 54 | (fun a b => (G.metric_link s hs (targetChart f p x) a b).symm) |
| 55 | have hnorm : (G.flow.metric s).pullbackCoefficients (targetChart f p) x v w = |
| 56 | scale * cylinderPhysicalCoefficients e f s hs x v w := by |
| 57 | exact congrArg (fun B : V => B v w) hcoeff.symm |
| 58 | rw [hnorm] |
| 59 | have hdf := (f.contMDiffOn.contMDiffAt (f.open_source.mem_nhds hx)).mdifferentiableAt |
| 60 | (by simp) |
| 61 | have hde := (((e.forward_smooth s hs).mono hmap).contMDiffAt |
| 62 | (f.open_target.mem_nhds (f.map_source hx))).mdifferentiableAt (by simp) |
| 63 | change scale * (F.metric (origin + s / scale)).inner ((e.forward s hs ∘ f) x) |
| 64 | (mfderiv (𝓡 3) (𝓡 3) (e.forward s hs ∘ f) x v) |
| 65 | (mfderiv (𝓡 3) (𝓡 3) (e.forward s hs ∘ f) x w) = _ |
| 66 | rw [mfderiv_comp x hde hdf] |
| 67 | rfl |
| 68 | |
| 69 | /-- The ordinary target flow and its actual cylinder have identical |
| 70 | frozen covariant errors at every point of the open birth chart. |
| 71 | Source: Corollary 16.9, p. 373; derivation 81. -/ |
| 72 | theorem CylinderRicciFlow.metricJetError_eq_cylinder |
| 73 | (G : CylinderRicciFlow e f) (hmap : f.target ⊆ U) |
| 74 | (p : (⟨f.target, f.open_target⟩ : Opens C.carrier)) |
| 75 | (s : ℝ) (hs : s ∈ I) {x : E} (hx : x ∈ f.source) |
| 76 | (g : RiemannianMetric 3 E) (D : LeviCivitaData g) (m : ℕ) : |
| 77 | singularMetricJetErrorSquared g D |
| 78 | (fun y v => (G.flow.metric s).pullbackCoefficients (targetChart f p) y (v 0) (v 1)) |
| 79 | m x = |
| 80 | singularMetricJetErrorSquared g D |
| 81 | (fun y v => e.pullbackInner s hs (f y) |
| 82 | (mfderiv (𝓡 3) (𝓡 3) f y (v 0)) (mfderiv (𝓡 3) (𝓡 3) f y (v 1))) m x := by |
| 83 | apply singularMetricJetErrorSquared_congr_germ |
| 84 | filter_upwards [f.open_source.mem_nhds hx] with y hy |
| 85 | funext v |
| 86 | exact G.pullback_eq_cylinder hmap p s hs hy (v 0) (v 1) |
| 87 | |
| 88 | end PoincareMT.M44 |