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.Spacetime.Rescaling.Domain.Transport |
| 2 | |
| 3 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/DomainMetric.lean`, |
| 4 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 5 | |
| 6 | /-! |
| 7 | # The metric on a transported compatible cylinder |
| 8 | |
| 9 | Any two supplied pullback metric witnesses agree on the actual cylinder. |
| 10 | The comparison therefore concerns every metric choice, not only the |
| 11 | constructed scaled representative. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | open PoincareMT.Homothety |
| 22 | |
| 23 | namespace PoincareMT.ParabolicRescaling |
| 24 | |
| 25 | theorem cylinderMetric_inner_eq {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 26 | {time : X → ℝ} {I K : SpacetimeInterval} |
| 27 | {S : GeneralizedFlowSpacetime n X time I} {T : SmoothSpacetimeInterval K} |
| 28 | {C : Type v} [TopologicalSpace C] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 30 | {e : CompatibleSpacetimeCylinder S T C} (g h : SpacetimeCylinderMetric e) |
| 31 | (t : T.Point) (x : C) (v w : TangentSpace (𝓡 n) x) : |
| 32 | (g.metric t.val).inner x v w = (h.metric t.val).inner x v w := by |
| 33 | have ht : g.spatialTangentEquiv t x = h.spatialTangentEquiv t x := by |
| 34 | apply ContinuousLinearEquiv.ext |
| 35 | funext z |
| 36 | apply Subtype.ext |
| 37 | rw [g.spatialTangentEquiv_eq, h.spatialTangentEquiv_eq] |
| 38 | rw [g.metric_eq, h.metric_eq, ht] |
| 39 | |
| 40 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 41 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 42 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 43 | |
| 44 | theorem domain_cylinder_metric |
| 45 | (C : Type v) [TopologicalSpace C] |
| 46 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 47 | (K : SpacetimeInterval) |
| 48 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) |
| 49 | (g : SpacetimeCylinderMetric e) |
| 50 | (h : SpacetimeCylinderMetric ((domainTransport R Q hQ a).cylinderEquiv C K e)) |
| 51 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a K)).Point) |
| 52 | (x : C) (v w : TangentSpace (𝓡 n) x) : |
| 53 | (h.metric s.val).inner x v w = |
| 54 | Q * (g.metric (parabolicTimeInv Q a s.val)).inner x v w := by |
| 55 | exact cylinderMetric_inner_eq h |
| 56 | (transportedCylinderMetric (R := R) (Q := Q) (hQ := hQ) (a := a) K e g) s x v w |
| 57 | |
| 58 | theorem domain_cylinder_metric_exists |
| 59 | (H : CompatibleSpacetimeTheory.{u, v} R.spacetime R.timeIntervals) |
| 60 | (C : Type v) [TopologicalSpace C] |
| 61 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 62 | (K : SpacetimeInterval) |
| 63 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) : |
| 64 | Nonempty (SpacetimeCylinderMetric ((domainTransport R Q hQ a).cylinderEquiv C K e)) := by |
| 65 | obtain ⟨g⟩ := H.cylinder_metric C K e |
| 66 | exact ⟨transportedCylinderMetric K e g⟩ |
| 67 | |
| 68 | end PoincareMT.ParabolicRescaling |