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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Limits.SourceActualChain |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Local.Coordinates.LocalFiniteCertificate |
| 4 | |
| 5 | /-! |
| 6 | # The actual finite source tube |
| 7 | |
| 8 | The selected source minimum produces its coherent list and literal balanced |
| 9 | chain. The universal local finite-gluing theorem supplies the actual cylinder |
| 10 | and all central-sphere isotopies on that chain's carrier union. No balanced |
| 11 | chain, overlap or tube conclusion is assumed. See derivation 54. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M28 |
| 22 | |
| 23 | /-- A selected counterexample segment produces a frozen tube certificate |
| 24 | covering its original retained path, with the actual source list and chain |
| 25 | identities retained. The tolerance precedes every counterexample and flow. -/ |
| 26 | theorem exists_actual_source_tube_accuracy : |
| 27 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 10000 : ℝ) ∧ |
| 28 | ∀ {epsilon C A D₀ D : ℝ} (E : SameTimeCounterexample.{u} epsilon C A D₀ D) |
| 29 | (S : CounterexampleNeckSegment E), |
| 30 | 0 < E.flow.scalar ⟨E.time, E.basepoint⟩ → epsilon ≤ epsilon₀ → |
| 31 | ∃ (L : SourceOrientedList S) (B : BalancedNeckChain (E.flow.metric E.time) epsilon), |
| 32 | B.shape = ChainShape.finite 0 (L.nodes.length - 1) ∧ |
| 33 | B.neck = neckOfList (L.nodes.map Prod.snd) (L.nodes.head L.nonempty).2 ∧ |
| 34 | B.source_necks = S.cover.necks ∧ |
| 35 | ∃ T : EpsilonTubeCertificate (E.flow.metric E.time) S.cover.X, |
| 36 | T.epsilon = epsilon ∧ HEq T.chain B ∧ T.carrier = B.unionOpen := by |
| 37 | obtain ⟨epsilonC, hCpos, hCsmall, hC⟩ := exists_actual_source_balanced_chain_accuracy.{u} |
| 38 | obtain ⟨epsilonT, hTpos, _, hT⟩ := |
| 39 | BalancedNeckChain.exists_finite_tubeCertificate_threshold_m28.{u} |
| 40 | refine ⟨min epsilonC epsilonT, lt_min hCpos hTpos, |
| 41 | (min_le_left _ _).trans hCsmall, ?_⟩ |
| 42 | intro epsilon C A D₀ D E S hbase hsmall |
| 43 | obtain ⟨L, B, hshape, hneck, hsource, hcover⟩ := |
| 44 | hC E S hbase (hsmall.trans (min_le_left _ _)) |
| 45 | obtain ⟨T, heps, hchain, hcarrier⟩ := hT B |
| 46 | (hsmall.trans (min_le_right _ _)) 0 (L.nodes.length - 1) hshape S.cover.X hcover |
| 47 | exact ⟨L, B, hshape, hneck, hsource, T, heps, hchain, hcarrier⟩ |
| 48 | |
| 49 | end PoincareMT.M28 |