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.Path.Theory |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | |
| 5 | open scoped Manifold ContDiff Bundle ENNReal Topology intervalIntegral |
| 6 | |
| 7 | universe u |
| 8 | |
| 9 | namespace PoincareMT |
| 10 | |
| 11 | /-! The ordinary-piece constructor is independent of surgery-family rebasing. |
| 12 | |
| 13 | Once an actual restricted flow and its M66 input have been supplied, the |
| 14 | regular-piece record is just the interval embedding together with the M66 |
| 15 | conclusion. Keeping this constructor separate makes the remaining event |
| 16 | family obligation explicit in the finite assembler. |
| 17 | -/ |
| 18 | theorem m67_regular_piece_of_m66 |
| 19 | {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 21 | {a b T : ℝ} |
| 22 | (hM61 : M61RawWidthCore.{u}) |
| 23 | {hM64 : M64ComparisonTheory.{u}} |
| 24 | (hM65 : M65DeformationTheory hM61 hM64) |
| 25 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 26 | (hM66 : M66SmoothTimeTheory hM61 hM58 hM65) |
| 27 | (actual_flow : RicciFlow 3 M (Set.Icc a b)) |
| 28 | (global_width : Set.Icc (0 : ℝ) T → ℝ) |
| 29 | (events : Set ℝ) |
| 30 | (ha : 0 ≤ a) (hab : a < b) (hb : b ≤ T) |
| 31 | (hJ : Disjoint events (Set.Ioc a b)) |
| 32 | (input : M65RawFlowInput M a b) |
| 33 | (hinput : input.flow = actual_flow) |
| 34 | (class_data : M66ClassData input) |
| 35 | (hwidth : ∀ s : Set.Icc a b, |
| 36 | global_width ⟨s.1, ⟨ha.trans s.2.1, s.2.2.trans hb⟩⟩ = m66Width input s) : |
| 37 | Nonempty (M67RegularPiece hM61 hM65 actual_flow global_width events |
| 38 | (a := a) (b := b) (T := T)) := by |
| 39 | let predecessors := m66PredecessorsFromServices hM61 hM58 hM65 input class_data |
| 40 | obtain ⟨conclusion⟩ := hM66 M input class_data |
| 41 | refine ⟨{ |
| 42 | ordered := hab |
| 43 | inside := ⟨ha, hb⟩ |
| 44 | no_event := hJ |
| 45 | input := input |
| 46 | input_flow_eq := hinput |
| 47 | class_data := class_data |
| 48 | predecessors := predecessors |
| 49 | conclusion := conclusion |
| 50 | interval := fun s => ⟨s.1, ⟨ha.trans s.2.1, s.2.2.trans hb⟩⟩ |
| 51 | interval_time := fun s => rfl |
| 52 | width_agreement := hwidth }⟩ |
| 53 | |
| 54 | end PoincareMT |