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.CanonicalInduction.Terminal.Regular.TerminalRegularStageFamily |
| 2 | |
| 3 | /-! |
| 4 | # The actual physical terminal projection of each regular chart |
| 5 | |
| 6 | The whole dependent history map and the actual source inclusion identify |
| 7 | the same physical point. The zero clock is simplified only after that |
| 8 | identity, preserving the original chart and both source carriers. |
| 9 | MT Proposition 14.12; terminal-regular-finite-germs.md, I1. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | variable {S : RepairedControlledSchedulesData.{u}} |
| 25 | {B : M47ComponentAnalyticBounds.{u} S.setup.C} {p : SurgeryParameterPrefix S.constants} |
| 26 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} {W : M33RegularHistoryWindow F} |
| 27 | {H : M33RegularHistoryData W} {base Q r A tau0 tau K L a R rho : ℝ} {N : ℕ} |
| 28 | {center : (F.slice base).carrier} |
| 29 | (data : TerminalRegularStageData S B p O H base Q r A tau0 tau K L a R rho N center) |
| 30 | (h0 : (0 : ℝ) ∈ Icc (-tau) 0) |
| 31 | |
| 32 | /-- The actual chart projection and source history map are the same |
| 33 | dependent physical spacetime point before simplifying the zero clock. -/ |
| 34 | theorem terminalSource_regular_terminal_sigma (i : Fin (N + 1)) |
| 35 | (x : terminalSourceCountableDomain rho) : |
| 36 | (⟨base, (data.maps i x).val⟩ : (t : ℝ) × (F.slice t).carrier) = |
| 37 | ⟨base + 0 / Q, H.history.forward (base + 0 / Q) (data.time 0 h0) |
| 38 | (data.cylinder.forward 0 h0 ((data.cover.chart i).chart x.val).val)⟩ := by |
| 39 | let U := terminalRegularStageSource F base Q A center |
| 40 | let z : U := (data.cover.chart i).chart x.val |
| 41 | let j := terminalSourceNormal_terminalMap U data.point |
| 42 | (terminalSourceNormal_historyCylinder H U data.time data.cylinder) h0 |
| 43 | have hmap := terminalSourceNormal_history_terminal_map H U data.time data.cylinder |
| 44 | data.point h0 |
| 45 | have hpoint := congrArg |
| 46 | (fun q : (t : ℝ) × (U → (F.slice t).carrier) => |
| 47 | (⟨q.1, q.2 z⟩ : (t : ℝ) × (F.slice t).carrier)) hmap |
| 48 | have hj : j z = (data.maps i x).val := |
| 49 | ((data.terminal h0).2.2 z).trans (data.projection i x).symm |
| 50 | change (⟨base, j z⟩ : (t : ℝ) × (F.slice t).carrier) = _ at hpoint |
| 51 | rw [hj] at hpoint |
| 52 | exact hpoint |
| 53 | |
| 54 | /-- The literal zero-time physical projection required by the original |
| 55 | finite-germ consumer follows from the retained actual history identity. -/ |
| 56 | theorem terminalSource_regular_terminal_projection : |
| 57 | let physical : Poincare.connectedComponentOpens E center → |
| 58 | (F.slice (base + 0 / Q)).carrier := fun z => by |
| 59 | simpa only [zero_div, add_zero] using z.val |
| 60 | ∀ (i : Fin (N + 1)) (x : terminalSourceCountableDomain rho), |
| 61 | physical (data.maps i x) = H.history.forward (base + 0 / Q) (data.time 0 h0) |
| 62 | (data.cylinder.forward 0 h0 ((data.cover.chart i).chart x.val).val) := by |
| 63 | let physical : Poincare.connectedComponentOpens E center → |
| 64 | (F.slice (base + 0 / Q)).carrier := fun z => by |
| 65 | simpa only [zero_div, add_zero] using z.val |
| 66 | dsimp only |
| 67 | intro i x |
| 68 | have hcast : (⟨base + 0 / Q, physical (data.maps i x)⟩ : (t : ℝ) × (F.slice t).carrier) = |
| 69 | ⟨base, (data.maps i x).val⟩ := by |
| 70 | apply Sigma.ext |
| 71 | · simp only [zero_div, add_zero] |
| 72 | · dsimp only [physical] |
| 73 | exact cast_heq _ _ |
| 74 | have hs := hcast.trans (terminalSource_regular_terminal_sigma data h0 i x) |
| 75 | exact eq_of_heq (Sigma.mk.inj_iff.mp hs).2 |
| 76 | |
| 77 | end PoincareMT.M47 |