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.Noncollapse.Provider |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Data |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.Geometry |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 5 | |
| 6 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Prop8_2_CylinderFlow.lean` at |
| 7 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 8 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # The ordinary flow on the actual based cylinder |
| 12 | |
| 13 | Morgan-Tian Definition 3.38 and Remark 3.37, pp. 60-61, used in Claim 8.5, |
| 14 | p. 172. The flow retains the actual cylinder metric and chosen compatible |
| 15 | connection. Its terminal source map pulls back the selected slice metric. |
| 16 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-cylinder-flow.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.Generalized.Noncollapse |
| 26 | |
| 27 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 28 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 29 | {T r : ℝ} {x : (G.slices T).Point} {K : SpacetimeInterval} |
| 30 | {C : Type u} [TopologicalSpace C] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 32 | [T2Space C] [SecondCountableTopology C] |
| 33 | |
| 34 | /-- The actual cylinder carries an ordinary flow with exactly its metric, |
| 35 | scalar curvature and full curvature norm. Source: Definition 3.38 and |
| 36 | Remark 3.37, pp. 60-61, as used in Claim 8.5, p. 172. -/ |
| 37 | theorem actualBallCylinder_exists_flow |
| 38 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 39 | (B : M15ActualBallCylinder G T x r K C) : |
| 40 | ∃ F : RicciFlow n C K.domain, F.metric = B.metric.metric ∧ |
| 41 | (∀ (t : (G.timeIntervals.interval K).Point) (c : C), |
| 42 | (F.connection t.val).curvatureTensorNorm c = |
| 43 | horizontalCurvatureNorm G.leafwise (B.embedding.toSpacetime (t, c))) ∧ |
| 44 | (∀ (t : (G.timeIntervals.interval K).Point) (c : C), |
| 45 | (F.connection t.val).scalarCurvature c = |
| 46 | horizontalScalarCurvature G.leafwise (B.embedding.toSpacetime (t, c))) := by |
| 47 | have H := hM12.gauges X time I G.spacetime G.slices G.timeIntervals |
| 48 | G.gaugeCover G.leafwise |
| 49 | obtain ⟨c⟩ := H.moving_connections C K B.embedding.toMovingSpacetimeGauge |
| 50 | B.metric.toMovingSpacetimeGaugeGeometry |
| 51 | have heq : IntrinsicGeneralizedRicciEquationOn G.leafwise |
| 52 | (Set.range B.embedding.toSpacetime) := fun p _ u v => G.ricciEquation p u v |
| 53 | have hPDE := (H.compatible_equivalence C K B.embedding B.metric c).mp heq |
| 54 | let F : RicciFlow n C K.domain := |
| 55 | { metric := B.metric.metric |
| 56 | connection := c |
| 57 | interval := K.ordConnected |
| 58 | nontrivial := K.nontrivial |
| 59 | smooth := B.metric.smooth |
| 60 | equation := hPDE } |
| 61 | have hcalc := H.moving_calculus C K B.embedding.toMovingSpacetimeGauge |
| 62 | B.metric.toMovingSpacetimeGaugeGeometry c |
| 63 | exact ⟨F, rfl, hcalc.curvature_norm_eq, hcalc.scalar_eq⟩ |
| 64 | |
| 65 | /-- The terminal slice map is the specified source map on every source |
| 66 | point. Source: Definition 3.38, p. 61, and the based cylinder in Claim 8.5, |
| 67 | p. 172. -/ |
| 68 | theorem actualBallCylinder_terminal_sliceMap_eq |
| 69 | (B : M15ActualBallCylinder G T x r K C) : |
| 70 | movingGaugeSliceMap B.embedding.toMovingSpacetimeGauge G.slices |
| 71 | ⟨T, B.base_mem⟩ = B.source_map := by |
| 72 | funext c |
| 73 | exact Subtype.ext (B.based c) |
| 74 | |
| 75 | /-- The actual terminal source map pulls back the selected slice metric |
| 76 | to the cylinder metric. Source: Definition 3.38, p. 61, used for the |
| 77 | metric comparison in Claim 8.5, p. 172. -/ |
| 78 | theorem actualBallCylinder_terminal_metric_pullback |
| 79 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 80 | (B : M15ActualBallCylinder G T x r K C) |
| 81 | (c : C) (u v : TangentSpace (𝓡 n) c) : |
| 82 | (G.slices T).metricOnPoints.inner (B.source_map c) |
| 83 | (mfderiv (𝓡 n) (𝓡 n) B.source_map c u) |
| 84 | (mfderiv (𝓡 n) (𝓡 n) B.source_map c v) = |
| 85 | (B.metric.metric T).inner c u v := by |
| 86 | have H := hM12.gauges X time I G.spacetime G.slices G.timeIntervals |
| 87 | G.gaugeCover G.leafwise |
| 88 | obtain ⟨D⟩ := H.moving_connections C K B.embedding.toMovingSpacetimeGauge |
| 89 | B.metric.toMovingSpacetimeGaugeGeometry |
| 90 | have hcalc := H.moving_calculus C K B.embedding.toMovingSpacetimeGauge |
| 91 | B.metric.toMovingSpacetimeGaugeGeometry D |
| 92 | have h := hcalc.slice_metric_eq ⟨T, B.base_mem⟩ c u v |
| 93 | rw [actualBallCylinder_terminal_sliceMap_eq B] at h |
| 94 | exact h |
| 95 | |
| 96 | end PoincareMT.Generalized.Noncollapse |