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.Flow.TerminalPolicy |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Vanishing policy under a fixed pre-carrier identification |
| 6 | |
| 7 | MT Definition 15.8 and Section 17.2, pp. 362 and 409-411. A copied global |
| 8 | event retains its source event's strict scalar-margin witnesses. Its |
| 9 | pre-carrier may differ, so use the actual fixed metric identification and |
| 10 | the supplied M13 scalar identity, not equality of complete pre-flow data. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.SurgeryVanishingEventData |
| 20 | |
| 21 | /-- A fixed isometry of the actual pre-flows transports the same witnesses |
| 22 | at every later time in their common preinterval. -/ |
| 23 | theorem transportTerminalPolicy |
| 24 | (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 25 | {P₀ P₁ : SurgeryParameters} {slice₀ slice₁ : ℝ → GeneralizedSliceCarrier.{u}} |
| 26 | {metric₀ : ∀ t, RiemannianMetric 3 (slice₀ t).carrier} |
| 27 | {metric₁ : ∀ t, RiemannianMetric 3 (slice₁ t).carrier} {T : ℝ} |
| 28 | (A : SurgeryVanishingEventData P₀ slice₀ metric₀ T) |
| 29 | (B : SurgeryVanishingEventData P₁ slice₁ metric₁ T) |
| 30 | (parameters : P₁ = P₀) (reference : B.tMinus = A.tMinus) |
| 31 | (e : Diffeomorph (𝓡 3) (𝓡 3) |
| 32 | (slice₁ B.tMinus).carrier (slice₀ A.tMinus).carrier ∞) |
| 33 | (hmetric : ∀ t ∈ Set.Ico B.tMinus T, |
| 34 | MetricHomothety (B.pre_flow.metric t) (A.pre_flow.metric t) e 1) |
| 35 | (policy : SurgeryVanishingEventTerminalPolicy A) : |
| 36 | SurgeryVanishingEventTerminalPolicy B := by |
| 37 | intro x |
| 38 | obtain ⟨L, hL, s, hs, hscalar⟩ := policy (e x) |
| 39 | have hs' : s ∈ Set.Ico B.tMinus T := by simpa only [reference] using hs |
| 40 | refine ⟨L, ?_, s, hs', ?_⟩ |
| 41 | · simpa only [parameters] using hL |
| 42 | · intro t ht |
| 43 | have htpre : t ∈ Set.Ico B.tMinus T := ⟨hs'.1.trans ht.1, ht.2⟩ |
| 44 | have geometry := m13.metric_homothety _ _ |
| 45 | (B.pre_flow.metric t) (A.pre_flow.metric t) e 1 (by norm_num) (hmetric t htpre) |
| 46 | exact (hscalar t ht).trans_eq (by |
| 47 | simpa only [div_one] using |
| 48 | geometry.scalar_eq (B.pre_flow.connection t) (A.pre_flow.connection t) x) |
| 49 | |
| 50 | end PoincareMT.SurgeryVanishingEventData |