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.Extinction.Width.Transport.Regular.Agreement |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Chronology |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Slice.Metric |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle Topology |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | /-- Assemble calibrated slices and actual event maps into the width path. |
| 14 | Every ordinary piece uses the supplied M66 theory on the actual regular flow. -/ |
| 15 | noncomputable def m67ChangingWidthPathOfSlices |
| 16 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 17 | (W : RepairedEventChildWitness D.flow) {T : ℝ} |
| 18 | (P : RepairedComponentPath D.flow T W) |
| 19 | (K : RepairedComparisonMapData D) (C : RepairedComparisonHomotopyData D K) |
| 20 | (H : RepairedAncestryTransportInput D W P K C) |
| 21 | (B : M59HigherBasepointTransportService.{u}) |
| 22 | (A : RepairedAncestryTransportData D W P K C H B) |
| 23 | (S : M59IdentificationSystem.{u}) (hM61 : M61WidthTheory.{u} S.quotient) |
| 24 | {hM64 : M64ComparisonTheory.{u}} |
| 25 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 26 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 27 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 28 | (hscalar : M67ScalarLowerBound D.flow (Set.Icc 0 T)) |
| 29 | (slice : ∀ s, M67WidthSlice S.quotient (P.component s)) |
| 30 | (hambient : ∀ s, (slice s).ambient_metric = D.flow.metric s.1) |
| 31 | (hclass : ∀ (a b : Set.Icc (0 : ℝ) T) (hab : a.1 < b.1) |
| 32 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a.1 b.1)), |
| 33 | M67AlphaTransport B (P.component a).basepoint (P.component b).basepoint |
| 34 | (repairedDiffeomorphContinuousMap (P.regular_transport a b hab hJ)) |
| 35 | (slice a).alpha (slice b).alpha) |
| 36 | (events : ∀ (t : Set.Icc (0 : ℝ) T) (ht : t.1 ∈ D.flow.surgery_times) |
| 37 | (hpost : Nonempty (D.flow.slice t.1).carrier) |
| 38 | (hd : D.flow.parameters.delta t.1 < repairedComparisonDeltaBound D.flow.local_constants) |
| 39 | (hh : D.flow.parameters.h t.1 < repairedComparisonHeightBound D.flow.local_constants) |
| 40 | (eta : ℝ) (heta : 0 < eta), |
| 41 | M67EventTransportFamily B A S.quotient t ht hpost hd hh eta heta) : |
| 42 | M67ChangingWidthPath D W P K C H B A S.quotient hM61.toM61RawWidthCore hM65 where |
| 43 | terminal_nonnegative := D.flow.time_domain_nonnegative P.terminal_mem |
| 44 | slice := slice |
| 45 | ambient_metric_eq := hambient |
| 46 | regular_flow := repairedRegularFlow D P |
| 47 | regular_flow_metric_calibration := repairedRegularFlow_metric D P |
| 48 | regular_flow_scalar_calibration := repairedRegularFlow_scalarCurvature D P |
| 49 | width := fun s => m61BasedClassWidth S.quotient (slice s).metric |
| 50 | (P.component s).basepoint (slice s).alpha |
| 51 | width_eq_based := fun _ => rfl |
| 52 | scalar_infimum := fun s => sInf (Set.range (slice s).connection.scalarCurvature) |
| 53 | scalar_infimum_eq := fun _ => rfl |
| 54 | scalar_lower_bound := by |
| 55 | intro s |
| 56 | apply le_csInf (show (Set.range (slice s).connection.scalarCurvature).Nonempty from |
| 57 | ⟨_, (P.component s).basepoint, rfl⟩) |
| 58 | rintro _ ⟨x, rfl⟩ |
| 59 | have heq := (slice s).connection.scalarCurvature_eq_of_local_isometry |
| 60 | (D.flow.connection s.1) isOpen_univ (P.component s).inclusion_smooth.contMDiffOn |
| 61 | (fun y _ v w => ?_) (Set.mem_univ x) |
| 62 | · rw [heq] |
| 63 | exact hscalar s.1 s.2 (P.time_subset s.2) _ |
| 64 | · rw [← hambient s] |
| 65 | exact ((slice s).metric_pullback y v w).symm |
| 66 | chronology := repairedComponentPathChronology (g₀ := g₀) P |
| 67 | regular_piece := by |
| 68 | intro a b ha hab hb hJ |
| 69 | exact m67_regular_piece_of_actual_slice |
| 70 | (P.component ⟨a, ha, hab.le.trans hb⟩) S (slice ⟨a, ha, hab.le.trans hb⟩) |
| 71 | hM61.toM61RawWidthCore hM65 hM58 hM66 (repairedRegularFlow D P ha hab hb hJ) |
| 72 | _ D.flow.surgery_times ha hab hb hJ |
| 73 | (m67_regular_width_agreement D P S B hM61 slice hambient hclass ha hab hb hJ) |
| 74 | event_transport := events |
| 75 | |
| 76 | end PoincareMT |