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 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Regular.TerminalRegularAtlasCoefficients |
| 3 | |
| 4 | /-! |
| 5 | # Original coefficient jets in the captured actual sources |
| 6 | |
| 7 | The physical history conversion preserves both included metric slots. |
| 8 | On each original compact chart, one capture tail gives exact equality |
| 9 | of all coefficient derivatives through the genuine source inverse. |
| 10 | MT Theorem 5.11; terminal-regular-growing-capture.md, H1c. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | /-- The selected actual data gives the literal physical metric readout |
| 26 | on its entire included interval, using the same history cylinder. -/ |
| 27 | theorem terminalSource_regular_included_metric |
| 28 | {S : RepairedControlledSchedulesData.{u}} |
| 29 | {B : M47ComponentAnalyticBounds.{u} S.setup.C} {p : SurgeryParameterPrefix S.constants} |
| 30 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} {W : M33RegularHistoryWindow F} |
| 31 | {H : M33RegularHistoryData W} {base Q r A tau0 tau K L a R rho : ℝ} {N : ℕ} |
| 32 | {center : (F.slice base).carrier} |
| 33 | (data : TerminalRegularStageData S B p O H base Q r A tau0 tau K L a R rho N center) : |
| 34 | let U := terminalRegularStageSource F base Q A center |
| 35 | let e := terminalSourceNormal_historyCylinder H U data.time data.cylinder |
| 36 | ∀ s hs (z : U) (v w : TangentSpace (𝓡 3) z), |
| 37 | (data.flow.metric s).inner z v w = e.pullbackInner s hs z.val |
| 38 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → (F.slice base).carrier) z v) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → (F.slice base).carrier) z w) := by |
| 40 | dsimp only |
| 41 | intro s hs z v w |
| 42 | exact (data.metric s hs z v w).trans |
| 43 | ((terminalSourceNormal_historyCylinder_maps H _ data.time data.cylinder).2 |
| 44 | s hs z.val z.property _ _).symm |
| 45 | |
| 46 | /-- Exact source isometries transfer the original uniform coefficient |
| 47 | jets on the unchanged exhaustion and original charts. -/ |
| 48 | theorem terminalSource_regular_captured_jets |
| 49 | {X : Type v} [TopologicalSpace X] [ChartedSpace E X] [IsManifold (𝓡 3) ∞ X] |
| 50 | {Y : ℕ → Type u} [∀ k, TopologicalSpace (Y k)] [∀ k, ChartedSpace E (Y k)] |
| 51 | [∀ k, IsManifold (𝓡 3) ∞ (Y k)] |
| 52 | {M : ℕ → Type w} [∀ k, TopologicalSpace (M k)] [∀ k, ChartedSpace E (M k)] |
| 53 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] |
| 54 | (g : RiemannianMetric 3 X) (gY : ∀ k, RiemannianMetric 3 (Y k)) |
| 55 | (gM : ∀ k, RiemannianMetric 3 (M k)) |
| 56 | (V : ℕ → Set X) (hV : ∀ k, IsOpen (V k)) (hmono : Monotone V) |
| 57 | (hcover : (⋃ k, V k) = univ) |
| 58 | (j : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) (Y k) (M k) ∞) |
| 59 | (hj : ∀ k, (j k).source = univ) |
| 60 | (hmetric : ∀ k z (v w : TangentSpace (𝓡 3) z), |
| 61 | (gY k).inner z v w = (gM k).inner (j k z) |
| 62 | (mfderiv (𝓡 3) (𝓡 3) (j k) z v) (mfderiv (𝓡 3) (𝓡 3) (j k) z w)) |
| 63 | (phi : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) X (Y k) ∞) |
| 64 | (hsource : ∀ k, (phi k).source = V k) (f : ∀ k, X → M k) |
| 65 | (hfactor : ∀ k x, x ∈ V k → j k (phi k x) = f k x) |
| 66 | (c : ℕ → PartialDiffeomorph (𝓡 3) (𝓡 3) X E ∞) |
| 67 | (hjets : ∀ i m K, IsCompact K → K ⊆ (c i).target → TendstoUniformlyOn |
| 68 | (fun k => iteratedFDeriv ℝ m ((gM k).pullbackCoefficients (f k ∘ (c i).symm))) |
| 69 | (iteratedFDeriv ℝ m (g.pullbackCoefficients (c i).symm)) atTop K) : |
| 70 | ∀ i m K, IsCompact K → K ⊆ (c i).target → TendstoUniformlyOn |
| 71 | (fun k => iteratedFDeriv ℝ m ((gY k).pullbackCoefficients (phi k ∘ (c i).symm))) |
| 72 | (iteratedFDeriv ℝ m (g.pullbackCoefficients (c i).symm)) atTop K := by |
| 73 | intro i m K hK hKU |
| 74 | have hC : IsCompact ((c i).symm '' K) := |
| 75 | hK.image_of_continuousOn ((c i).symm.contMDiffOn_toFun.continuousOn.mono hKU) |
| 76 | obtain ⟨k0, hk0⟩ := hC.elim_directed_cover V hV |
| 77 | (by rw [hcover]; exact subset_univ _) hmono.directed_le |
| 78 | apply (hjets i m K hK hKU).congr |
| 79 | filter_upwards [eventually_ge_atTop k0] with k hk y hy |
| 80 | have hcapture : (c i).symm y ∈ (phi k).source := by |
| 81 | rw [hsource k] |
| 82 | exact hmono hk (hk0 ⟨y, hy, rfl⟩) |
| 83 | exact (terminalSource_atlas_inverse_coefficient_jets (gY k) (gM k) (j k) (hj k) |
| 84 | (hmetric k) (phi k) (f k) (fun x hx => hfactor k x ((hsource k) ▸ hx)) |
| 85 | (c i) (hKU hy) hcapture).2 m |>.symm |
| 86 | |
| 87 | end PoincareMT.M47 |