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.Induction.Noncollapse.Assembly.Configuration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveHistoryPaths |
| 3 | |
| 4 | /-! |
| 5 | # The positive-component exemption along actual backward paths |
| 6 | |
| 7 | Morgan--Tian Remark 16.2 and p. 393. Reverse the actual continuous |
| 8 | backward path and propagate its full physical component predicate. |
| 9 | The nonpositive tested center excludes every positive old ancestor. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M46 |
| 20 | |
| 21 | /-- The actual half-radius history satisfies the literal positive |
| 22 | ancestor exclusion used by the stable-source producer, p. 393. -/ |
| 23 | theorem positiveAncestorExclusion |
| 24 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 25 | {D : NoncollapseTest F O} (H : HalfRadiusHistory D) : |
| 26 | PositiveAncestorExclusion H := by |
| 27 | intro tau htau ht y hpath hpositive |
| 28 | obtain ⟨path⟩ := hpath |
| 29 | let γ : ℝ → H.spacetime.history.generalized.point := fun s => path.curve (tau - s) |
| 30 | have hmaps : MapsTo (fun s : ℝ => tau - s) (Icc 0 tau) (Icc 0 tau) := by |
| 31 | intro s hs |
| 32 | exact ⟨sub_nonneg.mpr hs.2, sub_le_self _ hs.1⟩ |
| 33 | have hγ : ContinuousOn γ (Icc 0 tau) := path.curve_continuous.comp |
| 34 | (continuous_const.sub continuous_id).continuousOn hmaps |
| 35 | have hclock : MonotoneOn (fun s => (γ s).1) (Icc 0 tau) := by |
| 36 | intro s hs t ht' hst |
| 37 | have hs' := path.curve_time (tau - s) (hmaps hs) |
| 38 | have ht'' := path.curve_time (tau - t) (hmaps ht') |
| 39 | change (γ s).1 = D.time - (tau - s) at hs' |
| 40 | change (γ t).1 = D.time - (tau - t) at ht'' |
| 41 | change (γ s).1 ≤ (γ t).1 |
| 42 | rw [hs', ht''] |
| 43 | linarith |
| 44 | have hfirst : γ 0 = (⟨D.time - tau, y⟩ : H.spacetime.history.generalized.point) := by |
| 45 | change path.curve (tau - 0) = _ |
| 46 | rw [sub_zero, path.curve_end] |
| 47 | exact (H.spacetime.geometry.sliceIdentification (D.time - tau)).identification_eq y |
| 48 | have hlast : γ tau = (⟨D.time, H.center⟩ : H.spacetime.history.generalized.point) := by |
| 49 | change path.curve (tau - tau) = _ |
| 50 | rw [sub_self, path.curve_start] |
| 51 | exact (H.spacetime.geometry.sliceIdentification D.time).identification_eq H.center |
| 52 | have hstart : HistoryPositive H.spacetime.history.history (γ 0) := by |
| 53 | rw [hfirst] |
| 54 | intro ht' |
| 55 | exact hpositive |
| 56 | have hend := historyPositive_along_path H.spacetime.history.history htau.le γ hγ hclock hstart |
| 57 | rw [hlast] at hend |
| 58 | have hpos := hend H.time_mem |
| 59 | apply D.not_positive |
| 60 | simpa only [H.center_eq] using hpos |
| 61 | |
| 62 | end PoincareMT.Proofs.M46 |